1. Introduction
Assessing public safety is a challenging responsibility for governments, since it is threatened by diverse criminal activities. In Mexico, crimes are classified into two categories: federal jurisdiction and common law.
On the one hand, crimes of federal jurisdiction affect the country’s interests and are beyond the action limits of a state or municipality. Drug trafficking, organized crime, electoral crimes, tax crimes, crimes against health, among others, are in this category. On the other, common law ones affect individuals in a state or municipality. This category includes for example, injury crimes against family and larceny for which the municipal authorities are competent to analyze, react, and implement strategies to control this social phenomenon. One main difference is that street crime is handled by local governments and they also have different legislation (each state has its own penal code and there is a single federal penal code, accompanied by special federal laws). In both cases, graphical tools for effective description and communication are required.
Statistical graphical tools are useful to describe and communicate complex scenarios in simple terms to help policymakers design public policies and campaigns to meet goals, such as reducing the incidence of specific types of crime. In this regard, visualization tools for describing, communicating, and evaluating both the criminal situation and effectiveness of public policies are scarce [
1,
2].
Aligned with the need for statistical graphical tools, we present an application of the count-based Trajectory Analysis Framework proposed by Bilintoh et al. [
3], referred to as the framework. The framework provides a way to describe and discover spatio-temporal trend and evolution of binary events. We use this implementation to describe the spatio-temporal evolution of the larceny in Mexico City between 2020 and 2024.
In the count-based Trajectory Analysis framework, every cell is classified into one of eight categories, depending on its trajectories through the entire time interval in: (1) gain, (2) loss, (3) gain with alternation, (4) loss with alternation, (5) alternation with gain first, (6) alternation with loss first, (7) stable absence, and (8) stable presence. These eight categories allow for a precise and unambiguous description of the trajectory of pixels for three time intervals of binary changes, since the number of unique combinations is limited by the number of states raised to the power of the number of intervals .
These categories depend on the comparison of individual initial and final values of each pixel, discarding some of the dynamic details that occur during the time interval. For example, if a pixel has a presence value at the start of the time interval and an absence value at the end of its trajectory, then it is classified as a loss or loss with alternation, regardless of possible intermediate changes that may occur throughout the time interval. In this sense, larceny analysis incidence is temporally sensitive, and the trajectory classification may not be aligned with the general trend. For example, different interpretations may occur when a trajectory is classified as loss with alternation when it presents an increasing trend.
When the spatio-temporal time series is longer, these eight categories become insufficient to provide a good explanation of the observed dynamics. Accordingly, we propose the incorporation of the Kendall’s
correlation coefficient which describes the strength of monotonic trajectory trends of time series. This helps complement the number of presence and number of changes maps produced by the
presencePlot function in the
timeseriesTrajectories R package (version 1.1.3) presented in [
3]. Kendall’s
is suitable and straightforward to implement in binary or rational numbers, is robust to outliers, and useful for assessing the temporal sensitivity of larceny occurrences during the entire time interval. This means that it considers the possibility of having a neutral or negative ordinal association between consecutive measurements even if there are losses or gains observed by chance in the time interval.
Our proposal also includes a method to quantify the exchange component at specific resolutions, which measures simultaneous displacements that produce gains and losses occurring among territorial sub-regions without affecting the net change of a variable during the time interval. In the context of criminal studies, the regional displacements in criminal events are referred to in the literature as spillover. The sub-region size where most spillover occurs is identified by quantifying the Exchange component across different resolutions and selecting the resolution with the smaller Exchange gain.
This application in criminality analysis adds to the list of spatio-temporal phenomena. It complements existing applications that study phenomena such as marsh evolution [
4], soybean cultivation [
5], wildfire dynamics [
6], and avocado orchards [
7], demonstrating its flexibility and relevance for the study of spatio-temporal phenomena in diverse contexts.
The rest of this manuscript is organized as follows. We first present work related to trajectory analysis and its connection with the study of larceny. Then, we introduce the basics of trajectory analysis framework of spatio-temporal data along with the study region and data used. This is followed by our contribution to the analysis, including the resolution analysis for the exchange component and the implementation of Kendall’s maps that enrich the trajectory analysis and the findings for larceny analysis. Lastly, we conclude with a discussion highlighting the strengths, areas of improvement and proposed future work.
2. Related Work
Trajectory analysis, a type of longitudinal analysis [
8], is a sub-discipline of time series that studies graphical methods for descriptive and effective exploratory data analysis of spatio-temporal patterns and their relationship with other variables that influence their behavior.
In the social sciences, sequence analysis has been translated into a set of longitudinal data methods that study the outcomes [
9]. Surveys tend to focus on highlighting the application of qualitative methods that study the population and their changes throughout time, also referred to as life course trajectories or event history trajectories [
10]. Over time, computational approaches have been emphasized to characterize complex successions of different states [
11], finding that social organization derives from spatial, hierarchical, and other ordered phenomena.
In criminology, trajectory analysis provides information that analysts can interpret and articulate to propose hypotheses that guide the confection of strategies to control crime incidence. It has also been used to examine how large samples of individuals could be grouped according to crimes throughout life [
12]. More recently, longitudinal analyses have been applied at the place scale to identify trends and clusters of street segments in terms of crime incidences [
13] and micro-geographic hotspots [
14].
Some spatio-temporal methods require the use of individual incidents and rely on global tests such as the Knox index, which is based on a Chi-square test of independence between expected and observed counts given time and space thresholds. On that same scale, the near-repeat method is a more recent version of the Knox index used to identify spatio-temporal interactions [
15,
16,
17]. Other techniques oriented toward the prediction and projection of rates or counts include conditional autoregressive models, which are widely used in spatial epidemiology [
18]. With the development of machine learning models, the risk terrain modeling method has been proposed, which also serves the purpose of making predictions [
19].
Cluster analysis methods have also been adapted to extend to spatio-temporal patterns. They result in the characterization of trajectories in other longitudinal studies of crime [
20,
21]. This last example implements the classification of trajectories with a longitudinal
k-means algorithm. It identifies groups of spatial units with similar behaviors suggesting to retain the information of time and place of each event and calculate its frequency by using count-based methods.
Local spatio-temporal techniques are less developed, like the use of spatio-temporal k-means adaptations, but it is not a widely used technique. Arguably, the emerging hotspot analysis constitutes the closest technique to trajectory analysis, particularly in our proposal. It is based on the combination of the Getis-Ord statistic to identify two classes of positive spatial autocorrelation—strong and weak—also known as hot and cold spots. The results are then combined with Kendall’s Tau to classify the spatial results of each unit along the temporal analysis vector into up to 36 classes. In contrast, our trajectory-based proposal yields more directly interpretable sequences of movement in space–time.
Examples of the application of the count-based trajectory analysis include measuring and tracking the trajectories of losses and gains of soybean cultivation [
5] and to cross-compare marsh evolution in three sites within the United States Long-Term Ecological Research Network [
4]. Both use the proposed count-based framework for a time series trajectory analysis to describe spatio-temporal changes in land cover to elucidate details and differences of the evolution of certain types of cover. In these last contributions, a highlight is the possibility to use different temporal resolutions in the study, while keeping the spatial resolution fixed.
In the context of this work, ‘count-based’ means we do not use a binary variable representing presence or absence, but rather a non-negative integer assigned to each cell at a specific resolution representing the aggregated count of the incidents. We opt to use that term to distinguish the framework from others found in the literature.
The methodology proposed in [
4] is a recent approach and, thus, the diversity of applications is yet scarce. In this sense we propose the use of this methodology for a spatio-temporal graphical analysis of the dynamics of larceny theft. But first, we briefly explain this methodology in the next section.
4. Results and Discussion
In this section, we present the results of the sensitivity of the Exchange component to resolution and the monotonic trend analysis with .
4.1. Multi-Resolution of Trajectory Analysis
The six trajectories with changes of the spatio temporal dataset of larceny presence in Mexico City are analyzed for various resolutions: 100, 200, 400, 800, 1600, and 3200 m per cell. As a first salient result, we present the trajectory plots in
Figure 5.
Figure 5 shows the sensitivity of Gain, Loss and the six trajectories to changes in resolution. The decrement is observed primarily by the reduction of the absolute values of Gross Loss, and Gross Gain.
The most prominent trajectory at 100 m is the All Alternation Gain First, which almost disappears at a resolution of 1600 m. According to this result, this component is the most sensitive to resolution. The second most sensitive is Gain without Alternation and Loss without Alternation, which almost disappears at a resolution of 400 m. In contrast, Gain with alternation and Loss with Alternation are the most robust trajectories, fluctuating across resolutions without vanishing completely. This analysis reveals the spatial distances at which displacements occur and produce alternation. For example, the trajectory plot at 3200 m shows that All Alternation categories vanish because the spatial displacements are confined within the 3200 m square region.
Figure 6 presents the Alternation, Exchange, and Quantity components for the time series from 2020 to 2024 as a function of resolution. It also reveals how rapidly the Alternation and Exchange components decrease. Quantity Loss is invariant when
U is constant. As mentioned previously, we set
for all resolutions to obtain results in terms of larceny events. Although this is an expected behavior, the analysis focuses on identifying the evolution of these components presented in
Figure 7. Note, however, that when considering non-negative continuous variables and
U is set to ‘unified’, the Quantity component is affected by changes in spatial resolution because
adds count values to the calculated unified region instead of computing the union of observations that have presence of the category at any time point.
Figure 7 presents the resolution analysis of the Exchange component. The plot shows that the Exchange component decreases following a similar function to the exponential decay. This figure indicates that the spatial concentration of larceny displacements as a function of resolution follows an exponential pattern.
4.2. Analysis of the Monotonic Trend of the Trajectories
In this subsection we present the results of the strength of the monotonic trend across the classified trajectories. While these were calculated for all resolutions, for the sake of space we only present the ones at 800 m. This was the chosen resolution to show results because the Exchange component becomes less sensitive after this resolution, as can be attested by looking at
Figure 6 and
Figure 7. Furthermore, if one considers the average rate of change of the exchange component with respect to resolution, moving from 400 m to 800 m reduces the Exchange value nearly in half (~48%), indicating a large amount of exchange reduction at this scale. From 800 m onward exchange reduction is much less than at previous resolutions and, thus, this can be interpreted as the resolution where exchange starts to stabilize.
We inspect if it is possible to identify areas of controlled and uncontrolled larceny activity using these results.
Figure 8 presents 1291 trajectories excluding the Stable Absence and Stable Presence classes that, by definition, do not show any trend, highlighting 126 trajectories with an absolute value of the
coefficient greater than 0.75.
Among the trajectories classified as Loss without Alternation and Loss with Alternation, 110 out of 709 have values above the threshold, which indicate the number of controlled areas with a strong negative monotonic trend in larceny activity. Conversely, among the trajectories classified as Gain with Alternation and Gain without Alternation, only 16 out of 173 have values above the threshold, suggesting a reduced number of areas with uncontrolled larceny activity that should be prioritized for further investigation. The remaining classes All Alternation Loss First and All Alternation Gain First do not show trajectories with values above the threshold, indicating weak monotonic trends. It is important to notice that, independently of the trend magnitude, this information is useful to identify areas that must be prioritized in case the objective is to reduce the larceny.
It is important to remark that Gain With Alternation has only 1 out of 333 strong increasing monotonic trajectory, All Alternation Loss First and All Alternation Gain First did not have any strong direction, suggesting that the larceny events variations are likely to be uncorrelated without any visible temporal association.
Figure 9 shows a
dual histogram of frequencies for each trajectory class. The horizontal axis shows the value of
, which ranges from −1 to 1. The vertical axis is the number of trajectories with a specific
coefficient. The green bars are associated with the distribution of positive values of
and the red ones with the distribution of negative values of
. Reference
values of ±0.5 and ±0.75 are indicated with vertical dashed lines.
In the histogram, the behavior of the Loss without Alternation class is expected to have only negative coefficients for all trajectories. The red negative bars are in agreement with the gross expected behavior but the strengths of the negative direction for this trajectories are between −0.5 and −1. In the case the of Loss with Alternation class, the expected behavior is to observe more negative coefficients than positive ones. The histogram shows that the strength of most trajectories with negative direction are concentrated between −0.4 and −0.5 with a few ones with positive, albeit weak, strength. For the Gain without Alternation case, the expected behavior is the opposite with respect to the Loss without Alternation one. It shows that most of the trajectories have a coefficient of 0.6, corroborating few increasing trajectories but with considerable strength. At this point we can say that the Loss with Alternation categories are more frequent and with slightly higher direction strength than the Gain without Alternation ones. Moving on to the Gain with Alternation trajectories, a general inverse distribution with respect to the Loss with Alternation case is expected. Most trajectories in this category have positive coefficient values between 0.0 and 0.75, with some trajectories presenting negative but small coefficients ranging from −0.1 to −0.25. Then, for the All Alternation Loss First class, the strength is weak for both positive and negative coefficients, showing trajectories with coefficients below 0.5 and −0.5. In this class we observe non dominant number of positive and negative coefficients. Lastly, for the All Alternation Gain first class, there is a similar balance with respect to the All Alternation Loss First case. This category contains more trajectories with weak direction strength in both, positive and negative directions, like with All Alternation Loss First.
Figure 10, is the most important one of this study, as it aims at summarizing all the results. It presents the georeferenced trajectories at a resolution of 800 m per cell extended with information of the
coefficient. This map is useful to indicate areas with minor spillover effect where larceny mitigation strategies should be aimed.
In this map, trajectories with monotonic trend values of are indicated with white borders around cells. This map reveals areas where larceny is an increasing public safety concern, while some regions present a strong consistent decrement of larceny events.
At this resolution, only 13 out of 1297 trajectories present strong monotonic increase of larceny events that must be looked into and are distributed in the southern portion of the city. Possible larceny contention strategies seem to be successful in 99 regions out of 1297, as observed by the strong negative direction of the Loss with Alternation and Loss without Alternation classes. For the rest of the trajectories, the association with consistent decrement of larceny activity is relatively weak.
The overall decrease in larceny incidence associated with the observed spatial displacement patterns warrants further investigation. The study was not designed to unveil mechanisms that could contribute to the observed pattern (like changes in local environmental conditions, policing strategies, socioeconomic dynamics, offender adaptation or displacement processes). Potential implications of spatially targeted interventions are beyond the scope of the current descriptive research. It is not the intention to attempt to establish causal relationships, but it is recognized as an interesting direction of future research.
5. Conclusions
In this work we proposed the application of resolution analysis to identify the concentration of spillover effects through the Exchange component, enhancing trajectory analysis with the strength of the monotonic trend analysis with Kendall’s coefficient, and describing the distribution of the trajectories of each class by using dual histograms to nuance the hard classification of the trajectories.
Used jointly, they are useful to generate the final map that highlights areas where anti-larceny campaigns could be implemented. The analysis of the size of the Exchange component in terms of the resolution gives information regarding the characteristics of the location of the larceny problem. It is expected to observe an decrease in exchange if the spillover is somewhat localized in bounded regions. One limitation of the trajectory analysis approach is that it does not explicitly model spatial dependence. More research is needed to further develop and strengthen the framework.
Parallel plots and histograms are complementary visual methods, where the first one presents the trajectories in a qualitative way, while the histograms show the distribution of all trajectories in each class. Parallel plots are useful to identify and visualize trajectories that present strong monotonic trend of larceny incidents. Overall, the methodology proved to be useful in describing and highlighting important regions with problems regarding reduction of larceny events and also helps showing regions with important decrement of this crime.
The resolution analysis of the Exchange component provides a fast, useful, and intuitive general approximation of the area that confines a proportion of larceny displacements.
The method is limited to quantifying the displacements inside an area but fails in providing information regarding the displacement direction of the larceny. In this sense, a method to describe the probable starting and ending points of larceny displacements is necessary to describe source and destination of the displaced larceny. In this regard an option could be the characterization of change with networks. Examples of these applications are found in [
29,
30], which identify a spatial relation of change using complex networks. Since the distribution of the Exchange component across the square tessellations is heterogeneous, it may be advantageous using graphical methods to identify regions with similar behavior.
We observed that the computation of the unified size is valid just for binary raster maps by using the Equation (
1) presented in [
4]. For raster maps with positive integers or continuous variables, it is not equivalent to compute the unified size of a site.
More research is needed to analyze the implications of computing the unified size for raster maps with continuous values. One alternative could be transform the raster map of continuous values to a binary map before calculating the unified region and then multiply the number of cells of the unified size by the appropriate scale.