## Services on Demand

## Journal

## Article

## Indicators

## Related links

- Cited by Google
- Similars in SciELO
- Similars in Google
- FAPESP projects

## Share

## Revista de Saúde Pública

##
*On-line version* ISSN 1518-8787

### Rev. Saúde Pública vol.42 no.4 São Paulo Aug. 2008

#### http://dx.doi.org/10.1590/S0034-89102008000400010

**ORIGINAL ARTICLE**

**Spatial analysis of urban violence based on emergency room data**

**Análise espacial da violência urbana baseada em dados de pronto-socorro**

**Análisis espacial de la violencia urbana basada en datos de centros de urgencia**

**Liliam Pereira de Lima ^{I}; Julio da Motta Singer^{II}; Paulo Hilário do Nascimento Saldiva^{III}**

^{I}Logx Assessoria Financeira e Estatística. São Paulo, SP, Brasil

^{II}Instituto de Matemática e Estatística. Universidade de São Paulo (USP). São Paulo, SP, Brasil

^{III}Faculdade de Medicina. USP. São Paulo, SP, Brasil

**ABSTRACT**

**OBJECTIVE:** To estimate the spatial intensity of urban violence events using wavelet-based methods and emergency room data.

**METHODS:** Information on victims attended at the emergency room of a public hospital in the city of São Paulo, Southeastern Brazil, from January 1, 2002 to January 11, 2003 were obtained from hospital records. The spatial distribution of 3,540 events was recorded and a uniform random procedure was used to allocate records with incomplete addresses. Point processes and wavelet analysis technique were used to estimate the spatial intensity, defined as the expected number of events by unit area.

**RESULTS:** Of all georeferenced points, 59% were accidents and 40% were assaults. There is a non-homogeneous spatial distribution of the events with high concentration in two districts and three large avenues in the southern area of the city of São Paulo.

**CONCLUSIONS:** Hospital records combined with methodological tools to estimate intensity of events are useful to study urban violence. The wavelet analysis is useful in the computation of the expected number of events and their respective confidence bands for any sub-region and, consequently, in the specification of risk estimates that could be used in decision-making processes for public policies.

**Descriptors: ** Violence. Urban Zones. Medical Records. Geographic Information Systems. Statistical Methods and Procedures. Intensity of point processes.

**RESUMO**

**OBJETIVO:** Estimar a intensidade espacial de eventos violentos utilizando metodologia estatística baseada em ondaletas (wavelets) e em dados de pronto-socorro.

**MÉTODOS:** Foram analisados dados referentes a vítimas de causas externas atendidas em pronto-socorro municipal localizado na zona Sul da cidade de São Paulo (SP) no período de 1/1/2002 a 11/1/2003. As informações foram obtidas a partir dos registros hospitalares. As 3.540 ocorrências foram localizadas geograficamente e os casos com endereço incompleto foram alocados com base numa escolha aleatória uniforme. Processos pontuais e técnicas de ondaletas foram utilizados para estimar a intensidade espacial, definida como o número esperado de eventos por unidade de área.

**RESULTADOS:** Do total de ocorrências georreferenciadas, 59% foram acidentes e 40% agressões. A intensidade estimada indica que a distribuição espacial dos eventos não é homogênea, concentrando-se em dois distritos e três grandes avenidas localizados na zona Sul da cidade de São Paulo.

**CONCLUSÕES:** A utilização de ondaletas permite obter o número esperado de eventos e respectiva banda de confiança para quaisquer sub-regiões e, conseqüentemente, calcular estimativas dos riscos de ocorrência dos eventos de interesse, fornecendo subsídios para a definição de políticas para o enfrentamento da violência urbana. Dados hospitalares combinados com a metodologia para estimação da intensidade de ocorrência provaram-se úteis para estudar a violência urbana.

**Descritores: ** Violência. Zonas Urbanas. Registros Médicos. Sistemas de Informação Geográfica. Métodos e Procedimentos Estatísticos. Intensidade de processos pontuais.

**RESUMEN**

**OBJETIVO:** Estimar la intensidad espacial de eventos violentos utilizando metodología estadística basada en ondaletas (wavelets) y en datos de centros de urgencia.

**MÉTODOS:** Fueron analizados datos referentes a víctimas de causas externas atendidas en centros de urgencias municipales localizados en zonas del sur de la ciudad de São Paulo (sudeste de Brasil) en el período de 1/1/2002 a 11/1/2003. Las informaciones fueron adquiridas a partir de registros hospitalarios. Las 3.540 ocurrencias fueron localizadas geográficamente en los casos con dirección incompleta fueron localizados en base en una elección aleatoria uniforme. Procesos puntuales y técnicas de ondaletas fueron utilizados para estimar la intensidad espacial, definida como el número esperado de eventos por unidad de área.** RESULTADOS:** Del total de ocurrencias georreferenciadas, 59% fueron accidentes y 40% agresiones. La intensidad estimada indica que la distribución espacial de los eventos no es homogénea, concentrándose en dos distritos y tres grandes avenidas localizadas en la zona sur de la ciudad de São Paulo.

**CONCLUSIONES:**La utilización de ondaletas permite obtener el número esperado de eventos y respectiva banda de confianza para cualquier sub-región y, consecuentemente, calcular estimativas de los riesgos de ocurrencia de los eventos de interés, proporcionando subsidios para la definición de políticas para el enfrentamiento de la violencia urbana. Datos hospitalarios combinados con la metodología para estimar la intensidad de ocurrencia probaron ser útiles para estudiar la violencia urbana.

**Descriptores: ** Violencia. Zonas Urbanas. Historia Clínica del Paciente. Sistemas de Información Geográfica. Métodos y Procedimientos Estadísticos. Intensidad de procesos puntuales.

**INTRODUCTION**

Urban violence is a public health problem associated to factors such as sex, age, socioeconomic conditions and cultural characteristics.^{4} Identifying and quantifying seasonal and spatial patterns of violence events is essential for better understanding its causes, and could provide input for the development of interventions and prevention policies to reduce health costs.

Most studies of external causes^{a} that consider spatial analysis use lattice data, i.e., summary statistics aggregated by geographical areas. This data can be obtained from the *Instituto Brasileiro de Geografia e Estatística* (Brazilian Institute of Geography and Statistics, IBGE); *Secretaria de Segurança Pública do Estado de São Paulo* (Public Safety Department of the state of São Paulo) in the state of São Paulo; and *Programa de Aprimoramento das Informações de Mortalidade no Município de São Paulo* (Mortality Information Enhancement Program of the city of São Paulo, PRO-AIM) in the city of São Paulo. They all provide data of external causes mortality based on police reports. Hospital records also constitute an excellent source of information on urban violence and provide details to allow an evaluation of spatial and temporal distributions of such events, but their potential is still not fully explored. Moreover, emergency room data provide case event data for which location information is known for each individual.^{1,5} Case event data include detailed information and, in contrast with lattice data, are not subjected to the ecological fallacy.^{1,3}

The objective of the present study was to estimate the spatial intensity function of urban violence events using hospital records and a methodology based on point processes and wavelet analysis.^{7,b,c} This approach constitutes a useful tool to analyze multidimensional data, especially with respect to spatial or time-spatial distribution, for research and practical applications. It is also presented an allocation method for data georeferencing with incomplete address information.

**METHODS**

The data set comprised information on victims attended in the emergency room of a public hospital of the city of São Paulo, Southeastern Brazil, from January 1, 2002 to January 11, 2003. Data was provided by the *Núcleo de Atenção à Vítima de Violência* (Violence Victim Care Center, NAVV), a research group created in 2001 with the purpose of identifying potential violence causes and proposing actions for violence prevention. The hospital's front desk staff was trained to identify injured victims (by traffic accidents, falls, suicides, drowning, injuries caused by firearm, sharp or blunt objects, poisonings, burns and others) and to register the events in an appropriate file. This file includes personal information about the victim, home conditions, place and time where the event occurred, description of the event, how the victim arrived at the hospital (alone, brought by policemen, relatives, and others), psychological evaluation as well as signs of battered child syndrome, violence against women and violence against the elderly. The file also includes information about hospital discharge conditions and referral provided by NAVV. In the study period, 7,073 events were registered, of which 5,053 occurred within the boundaries of the city of São Paulo.

Each event was classified according to its description and reason for emergency room visit. This procedure was manually conducted due to lack of standardization of reference variables. First, each event was independently classified by two or three observers and then results were compared and inconsistent cases were discussed and classified in a consensual way. The following categories were considered:

- accidents: occupational accident; run-over accident; motorcycle rider accident; other transport accidents; accidental poisoning; animal bite; fall; other accidents;
- assaults: self-harm assault; sexual assault; assault by firearm, sharp or blunt objects; other assaults;
- legal interventions: events where the victim was brought to the hospital by policemen and that could not be classified into any of the previous sub-items;
- events of undetermined intent: events that could not be classified due to incomplete or incorrect information.

A fundamental step of spatial analysis is data georeferencing, i.e., to associate events to points on the Earth's surface by means of the latitude and longitude of the sites where they occurred.

The location of events was georeferenced using the Mapinfo Professional software, version 7.0, based on a map where streets are subdivided into segments. Each segment corresponds to locations situated between two successive corners. The program's automatic allocation procedure associates each event with the geographic coordinate of the centroid of the segment related to the address where the event occurred. This allocation procedure cannot be properly carried out when there is missing address information. An event is considered to have a complete address if it has both the street name and number of the location where it occurred. All events with street information but no numbers are assigned to the first segment of the street (or, alternatively, the last one) or disregarded. This allocation mechanism for incomplete addresses may introduce information bias, which could be reduced by using an alternative random uniform choice procedure. This procedure is based on the following steps: i) the events are coded 0-3 according to the type of information available about location; ii) a georeferencing criterion for each code is defined.

Codes and the criterion are described in Table 1 which also includes the number of events by allocation criterion. Only 2.3% of all 5,053 events studied had complete location information. Two main reasons might justify this small percentage: the data was not recorded with the purpose of being treated using spatial analysis tools and detailed information is usually inaccurately recalled in the case of sudden and traumatic events. There was no address information in 23.5% of the events and they could not be georeferenced. The remaining data (74%) were georeferenced using the random uniform choice procedure. If the usual procedure were used, the events classified as code 2 (70%) would be all assigned to the first street segment and those classified as code 3 (4.7%) would be all assigned to the district centroid.

Count data occurring over time or at different points in space are usually modeled by point processes.^{2} This type of statistical technique is designed to estimate the intensity at which the events occur in fixed periods of time and areas. The intensity is defined as the expected number of events by unit area or over time. The methodology proposed by de Mirandan^{b} and de Miranda & Morettin^{c} based on wavelet series expansion method was used to obtain unbiased estimators of the intensity as well as of its variance. This is an alternative to loess, kernel and spline smoothers, commonly used to obtain an approximation of the intensity.^{5} A simulation study was conducted to show that the proposed method can generate more accurate results than other related approaches. An additional advantage of this method is the choice of a smoothing parameter; in the kernel and loess methods, this choice is based on a trial and error strategy. The proposed methodology includes a threshold procedure for correcting potential overfitting (in case of very large J_{1} or J_{2}, as described in the "Estimation of the intensity" subsection).

The proposed methodology can be applied to a vast class of point processes since the required assumptions are extremely mild. More specifically, it is only required that the density exists and is a locally square integrable function. It can also be applied to estimate confidence bands for the desired intensities and to compare intensities associated to different sub-regions (or time periods). A non-internally correlated (NIC) process, where the covariance among the number of events occurring in any two disjoint regions is null is also required to estimate confidence bands for the intensity. Point processes as such seem appropriate to model the study data since it is reasonable to consider that events occurring in one region are not related to the occurrence of events in a disjoint region. The existence of neighboring regions with many (or few) occurrences does not imply that the occurrences in these regions are correlated, but rather that these regions have certain characteristics that make them more (or less) prone to event occurrence. The methods are detailed in the Appendix.

**RESULTS**

Victims' age ranged between 0 to 89 years (mean=29.4 years, standard deviation=14.4 years). There was a higher proportion of male victims (68%) but age distributions were similar for both men and women. Of all events, 59% were accidents and 39% were assaults. Traffic accidents (run-over accident, motorcycle rider accidents and other transport accidents) were the most frequent, accounting for 86% of all accidents. The majority of assault cases (67%) were classified as "other assaults". The mean number of events was greater during weekends and lesser on Tuesdays, suggesting a possible seasonality. In general, this same pattern is also seen when assault and accident data are analyzed separately. Table 2 shows the number of observed events by type and day of the week. These data suggests varied occurrence of violence events throughout the week. For example, occupational accidents occurred more frequently on Fridays while other accidents and assaults are mainly seen during the weekend.

Figure 1 shows the spatial distribution of the 3,865 events georeferenced according to the criterion described in Table 1. Events were distributed throughout the city and showed higher concentration in the hospital vicinity. This is an expected finding since rescue services usually move the victims to the closer public hospital where there are vacancies and a medical team available prepared to assist the specific type of injury. Also bearing in mind that the hospital studied is a reference trauma center, the pattern depicted in Figure 1 is expected.

Intensity was estimated in a limited region, designated as **A**, close to the hospital (Figure 1). This region has 83.4 km^{2} (6.86 km in the East-West direction by 12.15 km in the North-South direction) and includes 3,430 georeferenced points, of which 59% are accidents and 40% assaults. Figure 2 shows the enlarged **A** region with events superimposed on a street map. It shows a concentration of events around the hospital area and also some clusters of events near main roads, such as Bandeirantes, Jabaquara and Cupecê avenues, in the southern area of the city.

For wavelet analysis, the rectangular region **A** was subdivided into elementary (rectangular) regions (ER) with their size given by T_{1}T_{2}/2^{J1+J2+2}, where T_{1} and T_{2} are of the width and length measures of region **A** and J_{1} and J_{2} are parameters controlling for estimation precision. The greater J_{1} and J_{2}, the smaller ER size and, consequently, the greater the estimation precision. It was assumed that J_{1}=3 and J_{2}=4 resulting in ER size = 6.86 km × 12.15 km/2^{3+4+2} = 0.163 km^{2}. The choice of elementary regions measuring 0.163 km^{2} each (379.7 m in the East-West direction by 428.9 m in the North-South direction) seems suitable since, in most cases, it is not expected that locations can be identified at a precision greater than 380 m along street segments.

The minimum and maximum estimated intensities were zero and 376.8 events by km^{2}, respectively (mean=41.8 events by km^{2}). Estimated confidence bands with at least 75% confidence coefficients (not shown) were applied to identify regions with a significantly different number of events. To facilitate visualization, the estimated intensities were grouped into 10 categories as shown in Figure 3. It shows a non-homogeneous spatial distribution of events. Regions with more than 128 expected events by km^{2} are mostly in the vicinity of the hospital. Two sequences of elementary regions with more than 32 expected events by km^{2}, located at Bandeirantes and Jabaquara Avenues were also observed.

**DISCUSSION**

Hospital records combined with methodological tools, e.g. wavelet series expansion method, to estimate the intensity are a valuable source of information on urban violence. However, the present study showed that more attention should be given to the quality of hospital records and database with special concern to information about location and time of event occurrence.

The estimated intensity function provides the expected number of events for any subregion and may be used to calculate spatial relative risk estimates that could contribute to decision-making processes for public policies. These risk estimates could be calculated considering many possibilities. For example, Limaa presents spatial relative risks between assault against males versus assault against females and also between transport accident events occurring along different days of the week.

Data from a single hospital is not representative of the spatial distribution of events occurring in other non-neighboring regions. In the present study, intensity was estimated only in a selected area close to the hospital under investigation (region A). The reasons for the possible underestimation of the intensity are the unknown number of violent events referred to other hospitals and the lack of georeferencing for some events. Yet the purpose of the present study was to illustrate how well wavelet method can be applied in hospital record analysis. Other larger and more carefully designed studies can further the knowledge on urban violence in the city of São Paulo.

**APPENDIX**

Wavelets are simple functions, of which linear combinations are used to approximate other more complicated functions. The approximation involves linear combinations of functions (wavelets). The most suitable set of functions for this purpose is the L^{2} () space, that is, the space of all measurable square integrable function on the real line . The basic idea is to consider dilations and translations of one function y, called the mother wavelet, and form a set of functions {y* _{i,j}* |

*i, j*∈ }obtained from dilations and translations of ψ as:

The function ψ_{0,0} is obtained from another function, ψ_{0} (*t*), known as the father wavelet. In this study, functions of the Haar family were considered for such purposes. They are defined by (A.1) with ψ_{0,0} given by

and with the associated father wavelet given by

For practical purposes it is sufficient to work with wavelets defined on [0,T] ⊂ . In this case, it is convenient to use an orthonormal wavelet base formed by , where the integer *i* is associated with location and the integer *j* with scale. The indices *i* and *j* are related to the translation and dilation levels of the mother wavelet, respectively.

Considering a function *f* that belongs to the L^{2}() space with support on [0,T], the wavelet series expansion is given by

where α_{η} ∈ and *Z* represents the set of all indices

{0, (0, 0), (0, 1), (0, 2),...} =

{0, (*i,j*) |*i, j* ∈ , *j* __>__ 0, 0 __<__ *i* __<__ (2* ^{j}* - 1)}

in the base *B*; under this notation, the base can be represented by *B* = {ψ_{η}|*η* ∈ *Z}*.

Assuming that *N* is a point process with unknown density function υ and **A** is either the geographical region or the time period under study, the expected number of events that occur in **A** is defined as E*N(A)*=

**The one-dimensional case (temporal).** Taking 0 __<__ *j* __<__ *J* and 0 __<__ *i* __<__ (2* ^{j}* 1) the set of wavelets considered in the expansion (A.2) is limited so that an approximation of u via wavelets up to

*J*-th scale is given by

For example, if *J*=2 then Z* _{J}* = {0, (0,0), (0,1), (1,1), (0,2), (1,2), (2,2), (3,2)} where the first element refers to the father wavelet, ψ

*, and the other ones refer to the ψ*

_{0}*= ψ*

_{(i,j)}*wavelets.*

_{i,j}An unbiased estimator of (A.3) is given by

with denoting an unbiased estimator of β_{η}, where *t _{i}* is the instant of occurrence of the

*i*-th event and N(d

*t*) represents the number of events occurred in an infinitesimal region which contains the point t

_{i}*∈ [0,*

_{i}*T*].

An unbiased estimator of the variance of is

and an unbiased estimator of the variance of is

with η, ξ ∈ Z* _{J}* .

Note that (A.4) and (A.6) are also asymptotically, in relation to *J*, unbiased for υ and , respectively. The magnitude of the bias measured in the L^{2} norm for exponentially decreases with *J* . A detailed study of the convergence rate and bounds for the bias of these estimators is presented in de Miranda.^{b}

**The two-dimensional case (spatial).** For spatial densities, two coordinates must be considered. The estimators for υ* _{J}* (

*x*) and β

_{η}assume similar forms to those presented in the one-dimensional case. Now, η belongs to the set

*Z*=

_{J}*Z*

_{J}_{1}×

*Z*

_{J}_{2}, where

*J*corresponds to the maximum scale for the

_{i}*i*-th coordinate. Since ψ

_{η}*(x, y) =*ψ(

_{η}

_{1,}

_{η}

_{2}) (x, y) = ψ

*ψ*

_{(η1)}(x)

_{(}*is also an orthonormal base*

_{η2)}(y)^{6}it can be written as and where η

_{1}∈

*Z*

_{1}, η

_{2}∈

*Z*

_{2}and η = (η

_{1,}η

_{2}) ∈ (

*Z*

_{1}×

*Z*

_{2}). Note that now

**t**

*= (*

_{i}*x*) represents a point in

_{i}, y_{i}**A**.

Estimators of the variance of and are obtained as presented in (A.5) and (A.6).

**Threshold procedure.** A threshold procedure can be used to evaluate the significance of the wavelet coefficients based on Chebyshev's inequality. The procedure is equivalent to rejecting H0: β_{η} = 0 versus H1: β_{η} ≠ 0 for all η ∈ *Z _{J}* when . Taking λ = 2 the confidence level is 75%.

This procedure provides a threshold estimated intensity which is computed using only those wavelet coefficients that significantly differ from zero. It corrects potential overfitting due to large *J _{i}* values.

**ACKNOWLEDGMENTS**

To Dr. José Carlos Simon de Miranda of Instituto de Matemática e Estatística at USP for his comments on the statistical methodology, Dr. Alfésio Luis F. Braga of Universidade de Santo Amaro and Dr. Luiz Alberto A. Pereira of Faculdade de Medicina at USP for their help with classification of the events.

**REFERENCES**

1. Bailey TC. Spatial statistical methods in health. *Cad Saude Publica*. 2001;17(5):1083-98. doi:10.1590/S0102-311X2001000500011 [ Links ]

2. Diggle PJ. Statistical analysis of spatial point patterns. New York: Academic Press; 1983. [ Links ]

3. Elliott P, Wakefield J. Bias and confounding in spatial epidemiology. In: Elliott P, Wakefield J, Best N, Briggs D, editors. Spatial epidemiology. New York: Oxford University Press; 2000. p.68-84. [ Links ]

4. Jorge MHPM, Yunes J. Violência e saúde no Brasil. *Rev USP*. 2001;51:114-27. [ Links ]

5. Kaluzny SP, Vega SC, Cardoso TP, Shelly AA. S+ spatial stats. User´s manual for Windows and UNIX. New York: Springer; 1998. [ Links ]

6. Meyer Y. Ondelettes et algorithmes concurrents. Paris: Hermann; 1992. [ Links ]

7. Morettin PA. Ondas e ondaletas: da análise de Fourier à análise de ondaletas. São Paulo: Edusp; 1999. [ Links ]

**Correspondence: ** Liliam Pereira de Lima

R. Carlos Weber, 457

05303-000 São Paulo, SP, Brasil

E-mail: lplima@terra.com.br

Received: 11/27/2007

Approved: 1/2/2008

LP Lima was partially supported by Conselho de Desenvolvimento Científico e Tecnológico (CNPq doctorate scholarship).

Article based on the doctorate thesis by LP Lima presented to Faculdade de Medicina of Universidade de São Paulo in 2005.

Research partially funded by Fapesp (n.01/12913-3; n.04/15304-6) and CNPq (n.306180/88-0 RN).

a According to the International Classification of Diseases, Tenth Revision, external causes comprise deaths or injuries resulting from intentional injuries and poisoning (homicides and suicides) and unintentional (transport, occupational accidents and others) causes.

b De Miranda JCS. Sobre a estimação da intensidade dos processos pontuais via ondaletas [doctorate thesis]. São Paulo: Instituto de Matemática e Estatística da Universidade de São Paulo; 2003.

c De Miranda JCS, Morettin PA. Estimation of the density of point processes on R^{m} via wavelets. São Paulo: IME-USP; 2005. (RT-MAT-NS; 2005-09).