EVENT OCCURRENCE PREDICTION DEVICE AND EVENT OCCURRENCE PREDICTION METHOD
The event occurrence prediction device integrates time, spatial, and environmental effects using Moran bases and eigenvalue decomposition to enhance crime prediction accuracy and efficiency.
Patent Information
- Application Number
- JP2020061937
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-03-31
- Publication Date
- 2024-09-09
- Estimated Expiration
- 2040-03-31
AI Technical Summary
Existing crime prediction models fail to accurately capture global fluctuations, local fluctuations, and noise, leading to excessive smoothing or neglect of spatial patterns, and require significant computational resources, making them impractical for real-time applications.
An event occurrence prediction device that uses a predictive model based on Moran bases and eigenvalue decomposition of a proximity matrix to integrate time, spatial, and environmental effects, reducing calculation time and memory consumption while maintaining prediction accuracy.
The device achieves reduced calculation time and memory usage while maintaining high prediction accuracy for future event occurrences, enabling efficient real-time crime forecasting.
Smart Images

Figure 0007546880000007 
Figure 0007546880000013 
Figure 0007546880000004
Abstract
Description
[Technical field]
[0001] The present invention relates to an event occurrence prediction device and an event occurrence prediction method. [Background technology]
[0002] In one case in California, police officers patrolled areas with a high probability of crime, which reduced the occurrence of subsequent crimes. There is also a case where the proposed algorithm for predicting aftershocks of an earthquake was used to improve the accuracy of predicting the probability of crime occurring.
[0003] For example, it has been shown that when predicting crime occurrence, it is important to consider three factors: global variation, local variation, and noise. Global variation represents the effect of environmental factors such as population density and weather. Local variation reflects local spatial patterns of crime risk. Noise represents effects that are not directly represented in the model, such as oversights or unexplained factors.
[0004] Crime prediction models include kernel density estimation and negative binomial regression. [Prior art documents] [Patent documents]
[0005] [Patent Document 1] U.S. Patent No. 8,949,164 [Patent Document 2] U.S. Patent No. 9,129,219 [Patent Document 3] WO / 2017 / 222030 Summary of the Invention [Problem to be solved by the invention]
[0006] Kernel density estimation methods for crime prediction model local spatial patterns by smoothing crime counts over geographic space, but they tend to over-smooth because they ignore bandwidth variations and noise that are the effects of environmental factors.
[0007] Negative binomial regression is a regression method suitable for count data such as crime counts. It can account for global variation and noise, but it ignores local spatial patterns, resulting in reduced accuracy.
[0008] Therefore, there is a need for a crime prediction model that can capture global and local variations and noise. In order to capture a wide range of effects, it is necessary to consider time effects, spatial effects, co-occurrence effects, and the effects of environmental variables. Time effects are the effect of crimes repeatedly occurring in the same location (proximate repeated victimization). Spatial effects are the effect of a high crime risk in the neighborhood making the local area dangerous as well (spatial correlation). Co-occurrence effects are the effect of co-occurrence with other types of crime. Environmental variables are variables that indicate the effects of the environment and situation, such as changes in crime risk due to population or weather.
[0009] When a crime prediction model is expressed as a function g(Δt,Δx) of the distance difference Δx and time difference Δt between the location and time of a past crime occurrence, the prediction accuracy may not improve. In addition, when using a standard prediction method that considers the distance difference Δx, the amount of calculation required for the estimation is on the order of the cube of the amount of data N (O(N 3 Therefore, if a large amount of data is used to obtain high accuracy, the calculation time increases, which may make it difficult or impossible to use.
[0010] In addition, accuracy can be improved by estimating the model from a large amount of data, for example crime data from the past 12 months. However, the computational load (computation time and memory consumption) required to identify the effects of various factors and model spatial effects is large, making it difficult to apply standard forecasting methods to capture spatial effects. Therefore, significant improvements in computational efficiency are essential.
[0011] Therefore, the present invention aims to reduce calculation time and memory consumption while maintaining prediction accuracy in an event occurrence prediction device that predicts the future occurrence probability of a specific event based on historical data of specific events that have occurred in the past. [Means for solving the problem]
[0012] In order to achieve the above object, the present invention provides an event occurrence prediction device that predicts the number of occurrences of a specific event in a specific period in a plurality of discretized regions by using a plurality of explanatory variables as an explained variable, the device comprising: The proximity matrix C and M=I-11 indicate the proximity between the respective regions. T The matrix MCM obtained by using the matrix M of / N is decomposed into eigenvalues and is obtained as an eigenvector. A linear sum of Moran bases for the dependent variables in each of the domains The explanatory variables The system includes a prediction model construction unit that constructs a prediction model that expresses an effect, and a prediction unit that uses the prediction model to determine the future occurrence number of the specific event.
[0013] The present invention also provides an event occurrence prediction method for predicting the number of occurrences of a specific event in a specific period in a plurality of discretized regions by using a plurality of explanatory variables as an explained variable, comprising the steps of: The computer calculates a proximity matrix C indicating the degree of proximity between each of the regions and M=I-11 T The matrix MCM obtained by using the matrix M of / N is decomposed into eigenvalues and is obtained as an eigenvector. A linear sum of Moran bases for the dependent variables in each of the domains The explanatory variables The method includes a prediction model construction step of constructing a prediction model that expresses an effect, and a prediction step of determining the future occurrence number of the specific event using the prediction model. Effect of the Invention
[0014] According to the present invention, in an event occurrence prediction device that predicts the future occurrence probability of a specific event based on historical data of specific events that have occurred in the past, it is possible to reduce calculation time and memory consumption while maintaining prediction accuracy. [Brief description of the drawings]
[0015] [Figure 1] 1 is a block diagram of an embodiment of an event occurrence prediction device according to the present invention; [Diagram 2]1 is a part of a flowchart of an event occurrence prediction method using an embodiment of an event occurrence prediction device according to the present invention. [Diagram 3] 1 is a part of a flowchart of an event occurrence prediction method using an embodiment of an event occurrence prediction device according to the present invention. [Figure 4] 1 is a part of a flowchart of an event occurrence prediction method using an embodiment of an event occurrence prediction device according to the present invention. [Diagram 5] 1 is a part of a flowchart of an event occurrence prediction method using an embodiment of an event occurrence prediction device according to the present invention. [Figure 6] 1 is a graph showing an example of an ROC curve. [Figure 7] 11 is a graph showing an ROC curve of the crime number prediction results using an embodiment of an event occurrence prediction device according to the present invention, together with the results obtained using a kernel density estimation method. [Figure 8] 1 is a table showing an ROC curve of the crime number prediction results using an embodiment of an event occurrence prediction device according to the present invention, together with the results obtained using a kernel density estimation method. [Figure 9] 11 is a table showing the identification results of the effectiveness of a crime prediction model in an embodiment of an event occurrence prediction device according to the present invention. [Figure 10] FIG. 11 is a diagram showing an example of the effect of a prediction model for each location in an embodiment of an event occurrence prediction device according to the present invention. [Figure 11] 13 is a table showing an example of the strength of co-occurrence between different crime types in a prediction model in one embodiment of an event occurrence prediction device according to the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0016] An embodiment of an event occurrence prediction device according to the present invention will be described with reference to the drawings. Note that this embodiment is merely an example, and the present invention is not limited to this embodiment. The same reference numerals are used for the same or similar components, and duplicated descriptions will be omitted.
[0017] FIG. 1 is a block diagram of an embodiment of an event occurrence prediction device according to the present invention.
[0018] In this embodiment, the probability of occurrence of a crime (specific event) such as an assault at a specific time t and area s is predicted. Here, area s indicates a location on a map where a crime occurs. Both time t and area s are discretized and indicate a period and area with a certain extent.
[0019] The event occurrence prediction device has a prediction model construction unit 10, a prediction unit 30, and a display unit 40. The prediction model construction unit 10 has a Moran basis generation unit 12, a distance matrix storage unit 14, a calculation unit 16, a variable storage unit 18, a predicted crime count storage unit 20, an inner product storage unit 22, a variance parameter storage unit 24, and a factor analysis unit 26.
[0020] The prediction model construction unit 10 constructs and stores a prediction model. The prediction model is a crime rate y of crime type c in area s at time t. c (s,t) is expressed by the following formula.
[0021]
number
[0022] The first term on the right-hand side of the above equation is the likelihood of repeating a crime of the same crime type, and the second term on the right-hand side is the co-occurrence with a different crime type. Both capture the effect of the number of crimes one period prior, that is, the time effect. The third term on the right-hand side represents the effect of environmental variables. e(s,t) has a mean of 0 and a variance of σ 2 Represents noise that follows a normal distribution.
[0023] b c (s) and b c’ (s) is a function showing the time effect (proximity repetition tendency) for each region s. k (s) is a function that indicates the effect of the environmental variables for each domain s. Each function is expressed by the following formula.
[0024]
number
[0025] Here, e l (s) is the eigenvector of the spatial proximity matrix extracted so as to explain the spatial pattern described by the Moran I statistic (a descriptive statistic of spatial patterns) as well as possible, and is called the Moran basis. l,k is the coefficient that represents the strength of the effect, and e l (s) corresponding eigenvalue λ k is determined depending on the parameter set θ.
[0026] The prediction model construction unit 10 constructs a prediction model that quickly estimates the number of crimes (crime type c; by town-and-block) at time t+Δt from town-and-block data for all time points from 1 to t. In other words, it divides into town-and-block levels as areas s. The inputs are the number of crimes of crime type c (time t), the number of past crimes of crime type c (time t-Δt), the number of past crimes other than crime type c (time t-Δt), environmental variables (population, weather, etc.), the inner products calculated in the past from 1 to t, and the latitude and longitude of the center of gravity of each town-and-block.
[0027] The prediction unit 30 uses the prediction model constructed by the prediction model construction unit to output the number of crimes of crime type c (at time t + Δt) and parameters related to the causes of crime (at time t + Δt) for each area s, i.e., for each block.
[0028] 2 to 5 are flowcharts of the event occurrence prediction method according to this embodiment.
[0029] In the event occurrence prediction method according to the present embodiment, the Moran basis generation unit 12 first generates a Moran basis matrix. First, the i-th region s i and the jth region s j Distance d between the center of gravity of ij These distance matrices d are stored in the distance matrix storage unit 14 (step 1). For example, the distance matrix itself may be input from the outside, or the centers of gravity of the regions may be input from the outside to generate the distance matrix.
[0030] Next, a Moran basis matrix E is generated from the distance matrix (step S2). Specifically, the Moran basis matrix is generated as follows.
[0031] Find the proximity matrix C. Element c of the proximity matrix C ij is c ij =exp(-d ij / r), where r is the longest distance among all the links (edges) on the minimal decision tree between the centroids. The diagonal elements of the proximity matrix C are zero.
[0032] Next, we double-center C to obtain the matrix MCM, where M=I-1 1 T / N, I are unit matrices, 1 is a vertical vector of 1s, and the superscript T represents transpose.
[0033] We decompose the MCM into eigenvalues and extract the eigenvectors and eigenvalues. Let L be the number of positive eigenvalues. Then we use the Moran basis e l (l=1,,,,L) are the L eigenvectors corresponding to the positive eigenvalues.
[0034] The lth Moran basis (eigenvector) obtained in this way is the spatial basis that represents the lth largest strength of spatial correlation. Specifically, the lth Moran basis (eigenvector) is the spatial basis that represents the ith largest index of spatial correlation strength, called the Moran I statistic. For example, e 10 is the 10th largest component explaining spatial correlation.
[0035] Moreover, the calculation unit 16 substitutes the Moran basis matrix E into the matrix P (step S3).
[0036] If the variables for explaining the number of crimes are the number of past crimes of crime type c, the number of past crimes other than crime type c, and the environmental variables, collectively referred to as explanatory variables, the calculation unit 16 loops through the number of explanatory variables K times to calculate P (steps S5 to S11). First, 1 is assigned to the variable k (step S4).
[0037] Next, the kth explanatory variable x k,tare input to explanatory variable storage unit 18. The environmental variables (environment variables within) may be anything that can directly or indirectly affect the number of crimes, such as population and weather. Even if explanatory variables that do not affect the number of crimes are included, the calculation time will increase slightly, but the evaluation accuracy will not deteriorate.
[0038] Next, the kth explanatory variable x k、t It is determined whether the kth explanatory variable x k、t If varies from place to place, we define vector p as p=x k,t Calculate in °E (step S7). Here, ° is x k,t This is an operator that multiplies each element of each column of E by the kth explanatory variable x k、t does not vary across locations, i.e., the kth explanatory variable x k、t If the effect of is judged to be uniform over the entire area, then p=x k,t (Step S8).
[0039] The calculation unit 16 combines the vector p thus obtained with the right side of the matrix P (step S9). After that, k is substituted with k+1 (step S10). It is determined whether k is equal to or less than K (step S11). If k is equal to or less than K, the process proceeds to step S12. If k exceeds K, the process exits the loop and proceeds to step S12.
[0040] Next, the number of crimes at each location at time t is y t The calculation unit 16 inputs the inner product P T Calculate P and use the variable matrix M t Also, P T y t Calculate the variable matrix m t (Step S13).
[0041] Next, the inner products M and m evaluated before time t are input (step S14). The inner products M and m evaluated may be read from the inner product storage unit 22. The initial values of M and m (time t=0) are matrices with all elements being 0.
[0042] The calculation unit 16 calculates M and m at evaluation time t-Δt before time t, and calculates M in step S13. t and m t to obtain M and m at time t (step S15).
[0043] Also, the vector {Θ1,…,Θ K} is set (step S16). Here, the vector {Θ1, ..., Θ K} is x k The dispersion parameter Θ that determines the effect of k The initial value of the vector {Θ1,…,Θ K} is stored in the dispersion parameter storage unit 24.
[0044] Next, the calculation unit 16 calculates the likelihood l i =l i (Θ1,…,Θ K |M,m) is evaluated (step S17).
[0045] Next, a loop is run K times, the number of explanatory variables. First, 1 is substituted for k (step S18).
[0046] In the loop, Θ k To,
number
[0047] Regarding the number of explanatory variables, Θ k Once you have found Θ k Using the likelihood l i+1 (Step S22). The likelihood l i+1 If convergence occurs, proceed to step S25. i+1 and i(Step S23), i+1 >l i +δ, then l i 2 i+1 (step S24), and the process returns to step S 18. In this manner, the prediction model is constructed.
[0048] Finally, the prediction unit 30 calculates a predicted value of the number of crimes at time t+Δt using the prediction model constructed by the prediction model construction unit 10 (step S25). The number of crimes at time t+Δt is calculated using the following formula. y t+Δt =E[y t+Δt |{Θ1,…,Θ K},M,m] In this case, the factor analysis unit 26 calculates the coefficient β k,t is also calculated using the following formula: β k,t =E[β k,t |{Θ1,…,Θ K},M,m]
[0049] The number of crimes at time t+Δt predicted by the prediction unit 30 is displayed on the display unit 40. In addition, the magnitude of the effect of each explanatory variable of the prediction model constructed by the prediction model construction unit 10 may be displayed on the display unit.
[0050] The number of crimes was predicted using this embodiment, and compared with the crime number prediction using the kernel density estimation method. Specifically, the crime number data by town, block, crime type, and month published by the Greater Tokyo Crime Prevention Network was used. The data includes 11 types of non-burglary specific crimes, and data from 24 months from May 2017 to April 2019 was used. The number of crimes three months later was predicted using data from the past 12 months. The prediction accuracy was verified for each type of crime using the ROC curve and Hit Rate (HR). Here, Hit Rate is a value indicating the percentage of the actual number of crimes in the top z% of towns and blocks predicted to have high crimes, with the maximum being 1 (high accuracy) and random being z (low accuracy). The ROC curve is a curve in which Hit Rate is arranged for all z.
[0051] FIG. 6 is a graph showing an example of an ROC curve.
[0052] Figure 6 shows three examples of curves (ROC curves) that plot Hit Rate for all z. The horizontal axis is percentile z, and the vertical axis is Hit Rate for z. When prediction accuracy is low, it becomes random and forms a straight 45-degree line. As accuracy increases, it moves away from the 45-degree straight line to the upper side.
[0053] Fig. 7 is a graph showing the ROC curves of the crime number prediction results using this embodiment together with the results using the kernel density estimation method. In Fig. 7, the horizontal axis shows percentiles and the vertical axis shows hit rates. Fig. 7 shows 11 ROC curves for each type of crime.
[0054] 8 is a table showing the ROC curve of the crime number prediction results using this embodiment together with the results using the kernel density estimation method. This table shows the average hit rate of the top 20% for each month.
[0055] It can be seen from Figs. 7 and 8 that, according to this embodiment, prediction accuracy is significantly improved in cases of motorcycle theft, car theft, vending machine theft, and the like.
[0056] FIG. 9 is a table showing the results of identifying the effectiveness of the crime prediction model in this embodiment.
[0057] As shown in Figure 9, we can see that the estimation and classification are consistent with intuition. In particular, we can see that the classification between noise and other factors is essential for stable prediction.
[0058] FIG. 10 is a diagram showing an example of the effect of the prediction model for each location in this embodiment.
[0059] In Figure 10, the darker the color, the greater the impact. As can be seen from Figure 10, car thefts are repeated in similar suburban locations over time. Also, looking at the effect of population density, car thefts are particularly common in densely populated suburban areas.
[0060] We also see that pickpocketing and shoplifting are most prevalent in urban areas. We also see that pickpocketing and shoplifting are most prevalent in urban areas where there are no people. We also see that the effect of population density on the likelihood of shoplifting occurring varies greatly from district to district.
[0061] FIG. 11 is a table showing an example of the strength of co-occurrence between different crime types in the prediction model according to this embodiment.
[0062] As shown in Figure 11, the strength of co-occurrence between different crime types can be analyzed.
[0063] As described above, according to the present embodiment, sufficient accuracy is maintained compared to other methods, and even higher accuracy can be obtained depending on the type of crime.
[0064] Furthermore, in this embodiment, if the number of regions is N, L Moran bases are extracted from a distance matrix with N rows and N columns. Crime prediction requires calculation of the inner product between the number of crimes and the explanatory variables, but since inner products for times prior to time t have already been calculated during past crime predictions, there is no need to recalculate them. Therefore, the amount of calculation and memory required for prediction is constant regardless of the time point of the past data. In other words, crime can be predicted at high speed even if past data is accumulated.
[0065] It is also possible to analyze the effect of each explanatory variable on the dependent variable. For example, it is possible to analyze the effect of population density on pickpocketing. For example, it is possible to analyze factors such as pickpocketing being more likely in sparsely populated areas in city centers, but more likely in densely populated areas in the suburbs. [Explanation of symbols]
[0066] 10... prediction formula construction unit, 12... Moran basis generation unit, 14... distance matrix storage unit, 16... calculation unit, 18... explanatory variable storage unit, 20... predicted crime count storage unit, 22... inner product storage unit, 24... variance parameter storage unit, 26... factor analysis unit, 30... prediction unit, 40... display unit
Claims
1. An event occurrence prediction device that predicts the number of occurrences of a specific event in a specific period in a plurality of discretized domains by using a plurality of explanatory variables as an explained variable, a prediction model construction unit that constructs a prediction model that expresses the effect of the explanatory variables on the explained variables in each of the regions by a linear sum of Moran bases obtained as eigenvectors by eigenvalue decomposition of a matrix MCM obtained using a proximity matrix C indicating the proximity between each of the regions and a matrix M where M=I-11T / N; a prediction unit that uses the prediction model to calculate a future occurrence number of the specific event; An event occurrence prediction device having the above configuration.
2. In an event occurrence prediction method for predicting the number of occurrences of a specific event in a specific period in a plurality of discretized domains by using a plurality of explanatory variables as an explained variable, the method comprising: a prediction model construction step of constructing a prediction model that expresses the effect of the explanatory variables on the dependent variables in each of the regions by a linear sum of Moran bases obtained as eigenvectors by eigenvalue decomposition of a matrix MCM obtained using a proximity matrix C indicating the proximity between each of the regions and a matrix M where M=I-11T / N; a prediction step of determining a future occurrence number of the specific event using the prediction model; The event occurrence prediction method includes the steps of:
Citation Information
Patent Citations
Risk monitoring apparatus, risk monitoring system, risk monitoring method
JP2008107930A
Crime Prediction System
JP2018505474A
Case occurrence suppression effect prediction system
JP2020038488A
Event forecasting system
US8949164B1
Crime risk forecasting
US9129219B1
