Specific target abnormal trajectory early warning method based on deep learning
Through dynamic trajectory calibration and self-attention neural network based on deep learning, abnormal trajectories of specific targets are identified and warned, which solves the problems of real-time perception and accurate identification in the existing technology, reduces the false alarm rate of early warning, and improves social security prevention and control. ability.
Patent Information
- Application Number
- CN202410696456.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-09-27
AI Technical Summary
It is difficult for existing technology to perceive and accurately identify abnormal trajectories of specific targets in real time, and the early warning false alarm rate is high.
Using deep learning-based methods, through dynamic trajectory calibration and serialization modeling, we build an abnormal trajectory analysis model and a self-attention neural network, calculate the abnormal trajectory risk value, and achieve abnormal behavior identification and early warning for specific target trajectories.
It improves the accuracy of real-time perception of abnormal trajectories of specific targets, reduces the false alarm rate of early warning, and enhances social security prevention and control capabilities.
Smart Images

Figure CN118708992A
Abstract
Description
Technical Field
[0001] The present invention relates to the fields of computer vision and big data mining, and in particular to a method for early warning of abnormal trajectories of specific targets based on deep learning. Background Art
[0002] With the rapid development of mobile Internet technology, spatial positioning technology, and communication technology, especially the development of "3S" (remote sensing satellite (RS), global positioning system (GPS), geographic information system (GIS)) technology, fruitful results have been achieved in collecting and storing massive amounts of human movement trajectory data. In addition, the rapid development of artificial intelligence and deep learning in recent years has laid a solid technical foundation for the research of these massive data.
[0003] Therefore, it is an urgent problem for technical personnel in this field to propose a specific target abnormal trajectory warning method based on deep learning to realize the discovery of abnormal behavior of specific targets and timely warning through the study of spatiotemporal trajectory data, thereby improving the society's public security prevention and control capabilities. Summary of the invention
[0004] In view of this, the present invention provides a specific target abnormal trajectory early warning method based on deep learning, which can solve the problems that the specific target abnormal trajectory is difficult to perceive in real time, accurately identify, and has a high false alarm rate.
[0005] A method for early warning of abnormal trajectory of a specific target based on deep learning, comprising the following steps:
[0006] S1, collect the positioning data of the specific target to be tracked and obtain continuous trajectory data;
[0007] S2, dynamically calibrate the trajectory data in S1 to obtain calibrated trajectory data;
[0008] S3, fusing the calibrated trajectory data obtained in S2 to obtain a unified and serialized behavior chain;
[0009] S4. According to the behavior chain in S3, select or extract important information to form static information and dynamic information, select abnormal trajectory features, define risk weights and standardize them, and obtain the weights of each influencing factor;
[0010] S5. Establish an abnormal trajectory analysis model according to the weights of each influencing factor in S4 and calculate the abnormal trajectory risk value;
[0011] S6, using the influencing factors in S4 as feature variables and the risk values in S5 as training data, training the self-attention neural network to obtain a trained self-attention neural network;
[0012] S7. Input the trajectory features of the specific target to be tracked into the trained self-attention neural network to obtain the abnormal trajectory risk value.
[0013] In the above method, optionally, the positioning data in S1 includes personnel identification, longitude, latitude, altitude, encoding method and UTC-time stamp.
[0014] In the above method, optionally, the trajectory data in S2 includes active trajectory data and passive trajectory data, and dynamic trajectory calibration is performed on the active trajectory data and the passive trajectory data respectively.
[0015] The above method optionally performs dynamic trajectory calibration on the active trajectory data, including the following contents:
[0016] The trajectory spatiotemporal clustering method is adopted to reduce the dimension of active trajectory data with space and time as parameters and the spatiotemporal density of the long-term residence points of specific targets as clustering conditions to obtain the residence points of specific targets.
[0017] The above method optionally performs dynamic trajectory calibration on the passive trajectory data, including the following contents:
[0018] When a specific target enters the observed area, trajectory data in that area is formed; when entering the next observation area, the collection points along the way are collected through the road network, and observation points are set up at important traffic intersections to capture the dynamic trajectory data of the specific target.
[0019] In the above method, optionally, S3 fuses the calibrated trajectory data obtained in S2, and defines each trajectory as a complete trajectory cycle according to the calibration result. Each cycle is divided into several sub-behavior chains, and each sub-behavior chain is connected in series in time to obtain a dynamic behavior chain.
[0020] In the above method, optionally, the static information in S4 includes gender, age and identity attributes, and the dynamic information includes duration, visit frequency, location type, relationship with the location and behavior type.
[0021] It can be seen from the above technical solutions that, compared with the prior art, the present invention provides a method for warning abnormal trajectories of specific targets based on deep learning, which has the following beneficial effects: the present invention adopts dynamic trajectory calibration and serialization modeling, which can extract personnel stationing points from vehicle checkpoints, monitoring face recognition, and WIFI electronic fences, and construct a dynamic behavior chain. The present invention calculates the abnormal risk value of personnel trajectories by establishing an abnormal trajectory analysis model and SA neural network, and warns of high-risk and above trajectories. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0023] Figure 1 A flowchart of a method for early warning of abnormal trajectory of a specific target based on deep learning disclosed in the present invention;
[0024] Figure 2 A specific flow chart of a method for early warning of abnormal trajectory of a specific target based on deep learning disclosed in an embodiment of the present invention;
[0025] Figure 3 This is a structural diagram of the SA neural network model disclosed in an embodiment of the present invention. DETAILED DESCRIPTION
[0026] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0027] In this application, relational terms such as first and second, etc. are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. The terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of more restrictions, the elements defined by the sentence "comprise one..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0028] Reference Figure 1 As shown, the present invention discloses a specific target abnormal trajectory early warning method based on deep learning, comprising the following steps:
[0029] S1, collect the positioning data of the specific target to be tracked and obtain continuous trajectory data;
[0030] S2, dynamically calibrate the trajectory data in S1 to obtain calibrated trajectory data;
[0031] S3, fusing the calibrated trajectory data obtained in S2 to obtain a unified and serialized behavior chain;
[0032] S4. According to the behavior chain in S3, select or extract important information to form static information and dynamic information, select abnormal trajectory features, define risk weights and standardize them, and obtain the weights of each influencing factor;
[0033] S5. Establish an abnormal trajectory analysis model according to the weights of each influencing factor in S4 and calculate the abnormal trajectory risk value;
[0034] S6, using the influencing factors in S4 as feature variables and the risk values in S5 as training data, training the self-attention neural network to obtain a trained self-attention neural network;
[0035] S7. Input the trajectory features of the specific target to be tracked into the trained self-attention neural network to obtain the abnormal trajectory risk value.
[0036] Furthermore, the positioning data in S1 includes personnel identification, longitude, latitude, altitude, encoding method and UTC-time stamp.
[0037] Furthermore, the trajectory data in S2 includes active trajectory data and passive trajectory data, and dynamic trajectory calibration is performed on active trajectory data and passive trajectory data respectively. Among them, active trajectory data refers to the positioning data actively uploaded by a specific target, which is generally collected by a positioning device worn on the specific target; passive trajectory data refers to the trajectory data obtained by IoT terminals such as vehicle checkpoints, surveillance face recognition, and WIFI electronic fences. Such specific targets cannot be forced to wear positioning devices.
[0038] Furthermore, the active trajectory data is dynamically calibrated, including the following contents:
[0039] The trajectory spatiotemporal clustering method is adopted to reduce the dimension of active trajectory data with space and time as parameters and the spatiotemporal density of the long-term residence points of specific targets as clustering conditions to obtain the residence points of specific targets.
[0040] Specifically, the acquisition frequency of the positioning device is high, and the spatial and temporal information between adjacent data is highly similar. Therefore, the spatial temporal-density based spatial clustering of application with noise (ST-DBSCAN) is used to reduce the dimension of the data. The residence points of specific targets are obtained by this method. ST-DBSCAN uses space and time as parameters and the spatiotemporal density of the long-term residence points of specific targets as the clustering condition. Suppose there are currently N acquisition points {x1, x2, …, xN}, the initialization space cluster radius is S-EPS, the time cluster radius is T-EPS, and the minimum number of collection points in each cluster is Min-PTS. The specific process is shown in Table 1.
[0041] Table 1 Calculation process of ST-DBSCAN algorithm
[0042]
[0043]
[0044] Furthermore, the passive trajectory data is dynamically calibrated, including the following:
[0045] When a specific target enters the observed area, trajectory data in that area is formed; when entering the next observation area, the collection points along the way are collected through the road network, and observation points are set up at important traffic intersections to capture the dynamic trajectory data of the specific target.
[0046] Specifically, the trajectory data of most specific targets needs to be obtained passively. Passive trajectory data is divided into regional type and traffic intersection type. Regional type is the data type collected by IoT sensors such as face recognition points and WIFI electronic fences. Its boundaries can be determined by several collection points, or by the center of the collection point and the collection coverage radius. Traffic intersection type is the data type collected by vehicles passing through checkpoints.
[0047] Furthermore, S3 fuses the calibrated trajectory data obtained in S2. According to the calibration result, each trajectory is defined as a complete trajectory cycle. Each cycle is divided into several sub-behavior chains. Each sub-behavior chain is connected in series in time to obtain a dynamic behavior chain.
[0048] Specifically, the definition of the dynamic behavior chain is as follows:
[0049] behavior i =(time start ,time end ,time hold ,placeName,placeType,action)
[0050] behavior chain =Pname,gender,age,identity,[behavior1,behavior2,…,behavior n}
[0051] Among them, behavior i Indicates a sub-behavior chain for a specific goal, timestart Indicates the start time of the current behavior chain, time end Indicates the end time of the current behavior chain, time hold Indicates the duration of the current behavior chain, placeName indicates the location name of the current behavior chain, placeType indicates the location type of the current behavior chain, action indicates the behavior type of the current behavior chain, behavior chain Represents a behavior chain of a specific target. name, gender, age, and identity represent the name, gender, age, and identity attributes of the specific target, respectively. [behavior1, behavior2, …, behavior n ] represents a set of sub-behavior chains for a specific target. The properties of dynamic behavior chains are defined in Table 2.
[0052] Table 2 Attribute definitions of dynamic behavior chains
[0053]
[0054] Furthermore, the static information in S4 includes gender, age and identity attributes, and the dynamic information includes duration, visit frequency, location type, relationship with the location and behavior type.
[0055] Specifically, referring to Table 3, an abnormal trajectory analysis feature variable table is established through dynamic and static information:
[0056] Table 3 Abnormal trajectory analysis feature variable table
[0057]
[0058]
[0059] Among them, the variable of the relationship with the location indicates the visit relationship between the specific target and the current location, belonging indicates that the specific target lives or works in the current location, and non-belonging indicates that the specific target visits the current area. The visit frequency indicates the statistical number of times the specific target visits the current location.
[0060] Specifically, the gender, age, identity attribute, location type, location relationship, and visit frequency of a specific target are represented by 1×2, 1×4, 1×7, 1×9, 1×2, and 1×4 dimensional One-Hot Encoding (OHE), respectively. A day is divided into 48 time periods, each of which represents a 30-minute time span. Staying in the time period is marked as "1", otherwise it is marked as "0", so the duration is represented by 1×48 dimensional OHE.
[0061] Specifically, the setting of risk weights is mainly divided into three categories.
[0062] 1) The attractiveness of a location type to a specific target
[0063] Expert systems and fuzzy comprehensive evaluation methods are used to determine the attractiveness of different types of locations for specific targets. By collecting and organizing expert knowledge in related fields, including the attractiveness factors of different types of locations for specific targets, a knowledge base is constructed, and these expert knowledge are stored in the system in the form of rules, data or other forms. Each attractiveness factor is then fuzzified and converted into a fuzzy set. For example, the "attractiveness" of a location is divided into fuzzy concepts such as "very attractive", "relatively attractive", and "not attractive". The problem is then formalized into a problem that can be handled by the expert system, and the structure of questions and answers is designed so that users can interactively provide or obtain information. Using the reasoning engine in the expert system, the attractiveness of different types of locations for specific targets is evaluated based on the information provided by the user and the expert knowledge in the system. The weight of each factor is evaluated and calculated using the fuzzy comprehensive evaluation method, considering the relative importance of different factors to various specific targets.
[0064] 2) Historical experience determines the duration risk weight
[0065] Divide a day into 48 evenly spaced time periods, and the risk weight of each time period duration can be determined based on the distribution of cases. Collect the time data of specific target social endangerment events in a city from 2012 to 2022, including the specific time and location of the case. By analyzing the distribution of cases in each time period, find out which time periods have frequent cases and which time periods are relatively safe. Use expert experience to determine the weights, and give higher weights to time periods with high case frequency, and vice versa.
[0066] 3) Other risk weights
[0067] By analyzing the data of specific target events in a certain city, it was found that males accounted for 72.57% of the specific targets, and the age distribution was: ≤16 years old, 17-30 years old, 31-50 years old, and >50 years old accounted for 1%, 57%, 32%, and 10%, respectively. By analyzing the location of the incident, it was found that only 18% of the cases occurred near the residence or workplace of the specific target, and 82% of the cases tended to occur in the place of visit.
[0068] Therefore, referring to Table 4, according to the above description of risk weight setting, the setting of feature weights of the abnormal trajectory analysis model is obtained.
[0069] Table 4. Feature weights of abnormal trajectory analysis model
[0070]
[0071] Specifically, in S5, an abnormal trajectory analysis model is established according to the feature weights, as shown in the following formula:
[0072] attraction = w1×(placeType T ·identity)
[0073] Y = attraction (w2 × time hold )·(w2×frequency)·(w4×age+w5×gender+w6×insider+ξ)
[0074] Among them, · represents matrix multiplication, × represents arithmetic multiplication, attraction represents the attraction of the place to a specific target, Y represents the risk value of the current specific target, and placeType T Represents the transpose of the location type matrix. identity, time hold , frequency, age, gender, and insider represent the identity attributes of specific targets, duration, visit frequency, specific target age, specific target gender, and relationship with location, respectively. w1, w2, w3, w4, w5, and w6 represent the attractiveness weight of location type to specific targets, duration risk weight matrix, visit frequency weight matrix, age risk weight matrix, gender risk weight matrix, and location relationship weight matrix, respectively. ξ represents the residual term.
[0075] Normalize Y to Y':
[0076]
[0077] Among them, Y' represents the normalized abnormal risk value, Y represents the original abnormal risk value, and Y MIN represents the minimum abnormal risk, Y MAX Indicates the maximum abnormal risk.
[0078] Specifically, in S6, the abnormal trajectory analysis feature variable is used as input, and the normalized abnormal risk value is used as the target value, and is sent to the SA neural network for training. The SA neural network consists of a single-layer LSTM and an Attention layer. The SA neural network scans the feature variable vector, obtains the focus that needs attention, and then invests more weight in it, while obtaining detailed information and suppressing unimportant information. The feature variable vector is mapped to obtain a new vector, and then the risk value predicted by the SA neural network is obtained through the Attention layer and the fully connected layer. The cross entropy is defined as the loss function of the abnormal risk value. The SA neural network model structure diagram is shown in Figure 3 The calculation formula for predicting the risk value of abnormal trajectories based on the SA neural network is as follows:
[0079]
[0080] R(c v )=tanh(W v c v +b v )
[0081]
[0082] Among them, q is the feature vector c extracted by the encoder v and weight α v The weighted sum of , d represents the number of neurons in the neural network, R(c v ) represents a fully connected layer, the parameters of which are W v and b v , realizing c v The nonlinear mapping of α v represents the normalized weight calculated by the Softmax function, h T is a hyperparameter. During the training process, W v , b v and h T Its value is continuously updated during training.
[0083] In S7, based on the trained SA neural network, the trajectory feature variable of a specific target is input to obtain the abnormal trajectory risk value.
[0084] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiment. The system and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without creative work.
[0085] In order to clearly illustrate the interchangeability of hardware and software, the above description has generally described the components and steps of each example according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present invention.
[0086] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A specific target abnormal trajectory early warning method based on deep learning, characterized in that: The following steps are involved: S1, collect the positioning data of the specific target to be tracked and obtain continuous trajectory data; S2, dynamically calibrate the trajectory data in S1 to obtain calibrated trajectory data; S3, fusing the calibrated trajectory data obtained in S2 to obtain a unified and serialized behavior chain; S4. According to the behavior chain in S3, select or extract important information to form static information and dynamic information, select abnormal trajectory features, define risk weights and standardize them, and obtain the weights of each influencing factor; S5. Establish an abnormal trajectory analysis model according to the weights of each influencing factor in S4 and calculate the abnormal trajectory risk value; S6, using the influencing factors in S4 as feature variables and the risk values in S5 as training data, training the self-attention neural network to obtain a trained self-attention neural network; S7. Input the trajectory features of the specific target to be tracked into the trained self-attention neural network to obtain the abnormal trajectory risk value.
2. According to claim 1, a specific target abnormal trajectory early warning method based on deep learning is characterized in that: The positioning data in S1 includes person identification, longitude, latitude, altitude, encoding method and UTC-time stamp.
3. According to the method of claim 1, the method is characterized in that: The trajectory data in S2 includes active trajectory data and passive trajectory data, and dynamic trajectory calibration is performed on the active trajectory data and the passive trajectory data respectively.
4. The method for early warning of abnormal trajectory of a specific target based on deep learning according to claim 3 is characterized in that: Dynamic trajectory calibration is performed on active trajectory data, including the following: The trajectory spatiotemporal clustering method is adopted to reduce the dimension of active trajectory data with space and time as parameters and the spatiotemporal density of the long-term residence points of specific targets as clustering conditions to obtain the residence points of specific targets.
5. The method for early warning of abnormal trajectory of a specific target based on deep learning according to claim 3 is characterized in that: Dynamic trajectory calibration is performed on passive trajectory data, including the following: When a specific target enters the observed area, trajectory data in that area is formed; when entering the next observation area, the collection points along the way are collected through the road network, and observation points are set up at important traffic intersections to capture the dynamic trajectory data of the specific target.
6. The method for early warning of abnormal trajectory of a specific target based on deep learning according to claim 1 is characterized in that: In S3, the calibrated trajectory data obtained in S2 are fused. According to the calibration results, each trajectory is defined as a complete trajectory cycle. Each cycle is divided into several sub-behavior chains. Each sub-behavior chain is connected in series in time to obtain a dynamic behavior chain.
7. The method for early warning of abnormal trajectory of a specific target based on deep learning according to claim 1 is characterized in that: The static information in S4 includes gender, age and identity attributes, and the dynamic information includes duration, visit frequency, location type, relationship with the location and behavior type.
Citation Information
Cited By
Intelligent traffic lane changing supervision system based on big data and VR
CN120236406A
