A method and system for identifying lingering and wandering behavior based on target trajectory analysis
Through real-time monitoring and analysis of the trajectory information of behavioral targets, combined with time and coordinate information, the lingering and wandering behaviors are accurately identified, which solves the problem of lingering and wandering behavior recognition errors in the existing technology, and achieves accurate judgment and recognition of lingering or wandering behaviors. Call the police.
Patent Information
- Application Number
- CN202011527695.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-22
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2040-12-22
AI Technical Summary
There are large errors in the recognition of lingering behavior in the existing technology, mainly due to the single judgment based on only time information and the lack of comprehensive analysis of the trajectory of the behavioral target.
By monitoring the trajectory information of behavioral targets in real time and combining coordinate information and time information, we can determine the residence time and cumulative movement distance of behavioral targets in the monitoring area, set the predetermined residence time and wandering distance, and determine the lingering or wandering behavior. Use multi-task learning algorithms to track targets, assign unique identification information, record center point coordinates in real time, calculate predetermined residence time and wandering distance, and determine behavior types.
By comprehensively analyzing trajectory information, we can accurately identify stranded and loitering behaviors, reduce errors, improve the accuracy of behavioral judgments, and issue an alarm when stranded or loitering behaviors are identified.
Smart Images

Figure CN112633150B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of video analysis, and in particular to a method and system for identifying lingering and wandering behaviors based on target trajectory analysis. Background Art
[0002] Public safety is the prerequisite for social stability. In the field of public safety, "artificial intelligence + public safety" is the current development trend of public safety. In "artificial intelligence + public safety", the first thing to do is to obtain the source of public safety data.
[0003] Video surveillance signals are the largest source of public safety data in the current market. They contain a large amount of key information. Video analysis technology can quickly and timely obtain key information required by different businesses. Behavior analysis is a major direction in video analysis. By analyzing and judging video data, the target's behavior information, such as lingering behavior, can be obtained. Usually, because the judgment and definition of behavior information are subjective, different people's judgments on target behavior will have certain deviations. In addition, in different scenarios and different periods, the judgment rules for behavior information may also change, which further affects the accuracy of behavior information judgment.
[0004] At present, the identification of the target's lingering behavior is mostly based on a single judgment based on the time information of the detected target in the monitoring area. Since it is only based on time information and the fused information is single, there is a large error in the identification of this lingering behavior. Summary of the invention
[0005] The present invention provides a method and system for identifying lingering behavior based on target trajectory analysis, aiming to solve the problem of large errors in the identification of lingering behavior in the prior art.
[0006] To solve the above problems, the present invention provides a method for identifying lingering and wandering behaviors based on target trajectory analysis, comprising:
[0007] Real-time monitoring of the trajectory information of the behavioral target, wherein the trajectory information includes coordinate information and time information;
[0008] According to the time information, determining whether the behavior target's stay time in the monitoring area is greater than or equal to a predetermined stay time; and,
[0009] According to the coordinate information, determine whether the cumulative moving distance of the behavior target in the monitoring area is greater than or equal to the predetermined wandering distance;
[0010] If it is determined that the behavior target's stay time is greater than or equal to the predetermined stay time, and the cumulative moving distance is less than the predetermined wandering distance, then it is determined that the behavior target has a wandering behavior; or,
[0011] If it is determined that the stay time of the behavior target is greater than or equal to the predetermined retention time, and the cumulative moving distance is greater than or equal to the predetermined wandering distance, it is determined that the behavior target has wandering behavior.
[0012] Preferably, the step of real-time monitoring of the trajectory information of the behavior target includes:
[0013] Use a multi-task learning algorithm to track each behavioral target in the monitoring area;
[0014] Assign unique identification information to each behavioral target;
[0015] According to the unique identification information, the time information of the behavior target in the monitoring area is counted from the time the behavior target enters the monitoring area;
[0016] Based on the unique identification information, the coordinate information of the center point coordinates of the behavior target in the monitoring area is recorded in real time.
[0017] Preferably, the step of judging whether the cumulative moving distance of the behavior target in the monitoring area is greater than or equal to the predetermined wandering distance according to the coordinate information includes:
[0018] According to the length and width of the monitoring area, a first predetermined wandering distance in the length direction of the monitoring area and a second predetermined wandering distance in the width direction of the monitoring area are set;
[0019] According to the coordinate information of the center point coordinates recorded in real time, the cumulative moving distance of the behavioral target in the length direction and the width direction of the monitoring area are respectively obtained by statistics;
[0020] It is determined whether the cumulative moving distance of the behavior target in the length direction of the monitoring area is greater than or equal to the first predetermined wandering distance, or whether the cumulative moving distance of the behavior target in the width direction of the monitoring area is greater than or equal to the second predetermined wandering distance.
[0021] Preferably, the step of judging whether the residence time of the behavior target in the monitoring area is greater than or equal to the predetermined residence time according to the time information comprises:
[0022] According to the scene information of the monitoring area and the normal walking time through the monitoring area, the walking time threshold is set;
[0023] The product of the travel time threshold and the retention time coefficient is calculated to obtain the predetermined retention time.
[0024] Preferably, the above-mentioned lingering behavior identification method further includes:
[0025] When it is determined that the behavior target is lingering or wandering, an alarm is issued to the behavior target.
[0026] According to a second aspect of the present invention, the present invention further provides a system for identifying lingering and wandering behaviors based on target trajectory analysis, comprising:
[0027] A trajectory information monitoring module is used to monitor the trajectory information of the behavior target in real time, wherein the trajectory information includes coordinate information and time information;
[0028] A retention time judgment module is used to judge whether the retention time of the behavior target in the monitoring area is greater than or equal to the predetermined retention time according to the time information; and
[0029] A wandering distance judgment module is used to judge whether the cumulative moving distance of the behavior target in the monitoring area is greater than or equal to the predetermined wandering distance according to the coordinate information;
[0030] A detention behavior determination module is used to determine that the behavior target has a detention behavior if the detention time determination module determines that the behavior target's stay time is greater than or equal to the predetermined detention time and the cumulative moving distance is less than the predetermined wandering distance; or
[0031] The wandering behavior determination module is used to determine that the behavior target has wandering behavior if the wandering distance judgment module determines that the behavior target's stay time is greater than or equal to the predetermined retention time and the cumulative moving distance is greater than or equal to the predetermined wandering distance.
[0032] Preferably, the trajectory information monitoring module includes:
[0033] The target tracking submodule is used to track each behavioral target in the monitoring area using a multi-task learning algorithm;
[0034] The identification assignment submodule is used to assign unique identification information to each behavior target;
[0035] The time statistics submodule is used to count the time information of the behavior target in the monitoring area from the time the behavior target enters the monitoring area according to the unique identification information;
[0036] The coordinate recording submodule is used to record the coordinate information of the center point coordinates of the behavior target in the monitoring area in real time according to the unique identification information.
[0037] Preferably, the above-mentioned wandering distance judgment module includes:
[0038] A wandering distance setting submodule, used to set a first predetermined wandering distance in the length direction of the monitoring area and a second predetermined wandering distance in the width direction of the monitoring area according to the length and width of the monitoring area;
[0039] The moving distance statistics submodule is used to obtain the cumulative moving distance of the behavioral target in the length direction and the width direction of the monitoring area according to the coordinate information of the center point coordinates recorded in real time;
[0040] The moving distance judgment submodule is used to judge whether the cumulative moving distance of the behavior target in the length direction of the monitoring area is greater than or equal to the first predetermined wandering distance, or whether the cumulative moving distance of the behavior target in the width direction of the monitoring area is greater than or equal to the second predetermined wandering distance.
[0041] Preferably, the above-mentioned residence time judgment module includes:
[0042] A walking time threshold setting submodule is used to set the walking time threshold according to the scene information of the monitoring area and the normal walking time through the monitoring area;
[0043] The retention time calculation submodule is used to calculate the product between the travel time threshold and the retention time coefficient to obtain the predetermined retention time.
[0044] Preferably, the above-mentioned lingering and wandering behavior identification system further includes: an alarm module, which is used to alarm the behavior target when the behavior target has lingering behavior or wandering behavior.
[0045] The technical solution of the present invention provides a solution for identifying lingering and wandering behaviors based on target trajectory analysis, which monitors the trajectory information of the behavior target in real time, and then judges whether the behavior target's residence time in the monitoring area is greater than or equal to the predetermined residence time based on the time information in the trajectory information, and judges whether the cumulative moving distance of the behavior target in the monitoring area is greater than or equal to the predetermined wandering distance based on the coordinate information in the trajectory information; when the residence time is greater than or equal to the predetermined residence time and the cumulative moving distance is less than the predetermined wandering distance, it can be determined that the behavior target has lingered; when the residence time is greater than or equal to the predetermined residence time and the cumulative moving distance is greater than or equal to the predetermined wandering distance, it can be determined that the behavior target has wandered. Because the present invention comprehensively judges the lingering and wandering behaviors of the behavior target through the trajectory information of the behavior target, that is, the coordinate information and the time information, the technical solution of the present invention can solve the problem of large errors in the identification of lingering and wandering behaviors in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] 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 some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the structures shown in these drawings without paying creative work.
[0047] Figure 1 It is a flow chart of a method for identifying lingering and wandering behaviors based on target trajectory analysis provided by an embodiment of the present invention;
[0048] Figure 2 yes Figure 1 A schematic diagram of a flow chart of a method for real-time monitoring of trajectory information provided by the illustrated embodiment;
[0049] Figure 3 It is a flow chart of a method for real-time monitoring of trajectory information provided by an embodiment of the present invention;
[0050] Figure 4 yes Figure 1 A schematic flow chart of a method for determining a dwell time provided in the illustrated embodiment;
[0051] Figure 5 yes Figure 1 A schematic flow chart of a method for determining a cumulative moving distance provided by the illustrated embodiment;
[0052] Figure 6 It is a structural schematic diagram of a first system for identifying lingering and wandering behaviors based on target trajectory analysis provided by an embodiment of the present invention;
[0053] Figure 7 yes Figure 6 A schematic diagram of the structure of a trajectory information monitoring module provided by the illustrated embodiment;
[0054] Figure 8 yes Figure 6 A schematic diagram of the structure of a wandering distance determination module provided by the illustrated embodiment;
[0055] Fig. 9 yes Figure 6 A schematic diagram of the structure of a residence time determination module provided in the illustrated embodiment;
[0056] Fig.10 It is a structural schematic diagram of a second system for identifying lingering and wandering behavior based on target trajectory analysis provided by an embodiment of the present invention.
[0057] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0058] 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.
[0059] It should be noted that all directional indications in the embodiments of the present invention (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indication will also change accordingly.
[0060] In addition, in the present invention, descriptions such as "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.
[0061] In the present invention, unless otherwise clearly specified and limited, the terms "connection", "fixation", etc. should be understood in a broad sense. For example, "fixation" can be a fixed connection, a detachable connection, or an integral connection; "connection" can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, and it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0062] In addition, the technical solutions between the various embodiments of the present invention can be combined with each other, but it must be based on the fact that ordinary technicians in the field can implement it. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0063] The following embodiments of the present application provide a solution for identifying lingering and wandering behaviors based on target trajectory analysis, and the technical problems to be solved are as follows:
[0064] At present, the method of identifying the lingering and wandering behavior of the behavioral target is mostly to make a single judgment based on the time the target is in the monitoring area. Because the single judgment is only based on time, the fused information is too single, so there is a large error between the identification of this lingering and wandering behavior and the actual behavior of the behavioral target.
[0065] To solve the above problems, see Figure 1 , Figure 1 The present invention provides a flowchart of a method for identifying lingering behavior based on target trajectory analysis. Figure 1 As shown, the method for identifying the lingering behavior based on target trajectory analysis includes the following steps:
[0066] S110: Real-time monitoring of the trajectory information of the behavior target, wherein the trajectory information includes coordinate information and time information. The trajectory information of the behavior target can be obtained through a video data source, and the video data in the video data source can be provided in the form of video files and video streams, thereby realizing real-time video monitoring and processing of historical video data.
[0067] In addition, since there may be multiple behavioral targets in the monitoring area, all behavioral targets in the monitoring area can be tracked and detected by a multi-task learning model. Figure 2 As shown, the step of real-time monitoring of the trajectory information of the behavior target includes:
[0068] S111: Use a multi-task learning algorithm to track each behavioral target in the monitoring area. First, a multi-task learning model is established according to the multi-task learning algorithm. The multi-task learning model includes a target detection sub-model. The target detection sub-model and target feature embedding are used to detect and track behavioral targets in real time. In addition, for scenarios with high real-time requirements, the tracking of multiple targets needs to ensure the tracking speed.
[0069] S112: Assign unique identification information to each behavioral target. Unique identification information, such as target ID, can ensure accurate distinction and identification of each behavioral target. Target ID is a unique identifier that records and distinguishes different targets. The same target ID is used for tracking the same target. After target tracking is lost, the target ID information will still be retained and stored in the database. New behavioral targets that appear in the monitoring area will be identified according to the ID number. In addition, when the same behavioral target reappears, the ID will be matched from the database to re-monitor the trajectory information.
[0070] S113: Based on the unique identification information, the time information of the behavior target in the monitoring area is counted from the time when the behavior target enters the monitoring area. Time information is the information of the target in the time dimension. In order to count the time information, it is necessary to first record the initial time when the newly added tracking ID enters the monitoring area. When the tracking is lost, if the target ID is re-detected and tracked, the time information will continue to be recorded; if the target exits the monitoring area or the target ID tracking is lost, the time when the target ID enters the monitoring area will be re-recorded when the detection and tracking are performed again.
[0071] S114: Record the coordinate information of the center point of the target in the monitoring area in real time according to the unique identification information. In the video data source, the coordinate information of the center point pixel of the target tracked and monitored in each frame of the image needs to be associated with the corresponding unique identification information and time information for recording and storage.
[0072] See Figure 3 ,like Figure 3As shown, as a preferred embodiment, the step of real-time monitoring of the trajectory information of the behavior target specifically includes:
[0073] S1111: Obtain the ID, time information and center point coordinate information of the target behavior in the current frame image.
[0074] S1112: Determine whether the ID of the behavior target in the frame image is the same as the ID in the previous two frames of images; if so, execute step S1116; if not, execute step S1113.
[0075] S1113: Determine whether it is the ID of a newly added behavior target; if so, execute step S1116; if not, execute step S1114.
[0076] S1114: Determine whether the lost ID is re-tracked; if so, execute step S1116; if not, execute step S1115.
[0077] S1115: The behavior target corresponding to the ID is confirmed to be lost.
[0078] S1116: Record the time information corresponding to the ID and the coordinate information of the center point.
[0079] After real-time monitoring of the target's trajectory information, Figure 1 The illustrated embodiment also includes the following steps:
[0080] S120: Based on the time information, determine whether the target's stay time in the monitoring area is greater than or equal to the predetermined stay time; if so, execute step S130; if not, analyze and determine the trajectory information of the next target or end.
[0081] As a preferred embodiment, Figure 4 As shown, the above step of judging whether the residence time of the behavior target in the monitoring area is greater than or equal to the predetermined residence time according to the time information specifically includes:
[0082] S121: Set a walking time threshold according to the scene information of the monitoring area and the normal walking time through the monitoring area. The walking time threshold can be defined according to different scenes of the monitoring area. The scene here refers to the time threshold for pedestrians to normally pass through the warning area when deploying the actual monitoring area (or warning area) according to the deployment position angle and the set warning area size, and is recorded as t thr .
[0083] S122: Calculate the product of the walking time threshold and the retention time coefficient to obtain the predetermined retention time.
[0084] When the tracked behavior target enters the warning area, if the time it stays in the warning area is if Then it can be judged that the target i has a detention behavior, where k1 is the detention time coefficient, which can be 2, 3 or 4, set according to different scenarios; otherwise, it is necessary to accumulate the next recorded data for analysis.
[0085] S130: According to the coordinate information, determine whether the cumulative moving distance of the behavior target in the monitoring area is greater than or equal to the predetermined wandering distance; if so, execute step S150; if not, execute step S140.
[0086] Usually, the monitoring area is a rectangle with length and width, so it is necessary to calculate the cumulative moving distance in the length direction of the monitoring area and the cumulative moving distance in the width direction of the monitoring area respectively.
[0087] As a preferred embodiment, Figure 5 As shown, the step of judging whether the cumulative moving distance of the behavior target in the monitoring area is greater than or equal to the predetermined wandering distance according to the coordinate information includes:
[0088] S131: According to the length and width of the monitoring area, a first predetermined wandering distance in the length direction of the monitoring area and a second predetermined wandering distance in the width direction of the monitoring area are set; the first predetermined wandering distance is set according to the length of the monitoring area, specifically the product of the length h of the monitoring area and the distance coefficient K; the second predetermined wandering distance is set according to the width of the monitoring area, specifically the product of the width h of the monitoring area and the distance coefficient K.
[0089] S132: According to the coordinate information of the center point coordinates recorded in real time, the cumulative moving distance of the behavior target in the length direction and the width direction of the monitoring area are respectively obtained by counting the coordinate information of the center point coordinates of the behavior target in real time, and then according to the cumulative moving distance, the cumulative moving distance is decomposed along the length direction and the width direction of the monitoring area, and the cumulative moving distance of the behavior target in the length direction and the width direction of the monitoring area can be respectively obtained.
[0090] S133: Determine whether the cumulative moving distance of the behavior target in the longitudinal direction of the monitoring area is greater than or equal to the first predetermined wandering distance, or,
[0091] S134: Whether the cumulative moving distance of the behavior target in the width direction of the monitoring area is greater than or equal to the second predetermined wandering distance.
[0092] If the cumulative moving distance of the target in the length direction of the monitoring area is greater than or equal to the first predetermined wandering distance, the target has crossed the boundary in the length direction of the monitoring area; if the cumulative moving distance of the target in the width direction of the monitoring area is greater than or equal to the second predetermined wandering distance, the target has crossed the boundary in the width direction of the monitoring area. i ,y i ) is the cumulative moving distance in the warning area R. Assuming that the length of the warning area R is h and the width is w, the warning area is recorded as R(w,h). If the cumulative change of the center point of the behavior target i in the x direction within Δt time is recorded as The cumulative change in the y direction is recorded as Then set: If or And Δt ≥ 3*t thr , then it is judged that the target is wandering; otherwise, the next recorded data is accumulated, that is, the moving distance is accumulated, and then the analysis and judgment are performed again.
[0093] S140: When it is determined that the stay time of the behavior target is greater than or equal to the predetermined stay time, and the accumulated moving distance is less than the predetermined wandering distance, it is determined that the behavior target has a wandering behavior;
[0094] S150: When it is determined that the stay time of the behavior target is greater than or equal to the predetermined stay time, and the accumulated moving distance is less than the predetermined wandering distance, it is determined that the behavior target has a stay behavior or a wandering behavior.
[0095] The method for identifying lingering and wandering behaviors based on target trajectory analysis provided by the embodiment of the present invention monitors the trajectory information of the behavior target in real time, and then judges whether the residence time of the behavior target in the monitoring area is greater than or equal to the predetermined residence time according to the time information in the trajectory information, and judges whether the cumulative moving distance of the behavior target in the monitoring area is greater than or equal to the predetermined wandering distance according to the coordinate information in the trajectory information; when the residence time is greater than or equal to the predetermined residence time and the cumulative moving distance is less than the predetermined wandering distance, it can be determined that the behavior target has lingered; when the residence time is greater than or equal to the predetermined residence time and the cumulative moving distance is greater than or equal to the predetermined wandering distance, it can be determined that the behavior target has wandered. Because the present invention comprehensively judges the lingering and wandering behaviors of the behavior target through the trajectory information of the behavior target, that is, the coordinate information and the time information, the technical solution of the present invention can solve the problem of large errors in the identification of lingering and wandering behaviors in the prior art.
[0096] In addition, as a preferred embodiment, the method for identifying lingering and wandering behavior provided in the embodiment of the present application further includes, after the above step S140 or step S150:
[0097] When it is determined that the behavior target has lingered or wandered, an alarm is issued to the behavior target. By issuing an alarm to the behavior target, relevant operators can be prompted to observe and be vigilant to the wandering behavior in time. Specifically, when wandering or lingering occurs, the color of the target frame on the real-time data stream screen can change from green to red, and the lingering time can be displayed. In addition, the alarm information is linked to trigger a sound alarm device or a mobile phone text message prompt, etc.
[0098] In addition, based on the same concept of the above-mentioned method embodiment, the embodiment of the present invention also provides a lingering and wandering behavior identification system based on target trajectory analysis, which is used to implement the above-mentioned method of the present invention. Since the principle of solving the problem by the system embodiment is similar to the above-mentioned method, it at least has all the beneficial effects brought by the technical solution of the above-mentioned embodiment, which will not be repeated here one by one.
[0099] See also Figure 6 , Figure 6 The present invention provides a schematic diagram of a system for identifying lingering and wandering behaviors based on target trajectory analysis. Figure 6 As shown, the retention and wandering behavior recognition system based on target trajectory analysis includes:
[0100] A trajectory information monitoring module 110 is used to monitor the trajectory information of the behavior target in real time, wherein the trajectory information includes coordinate information and time information;
[0101] The retention time determination module 120 is used to determine whether the retention time of the behavior target in the monitoring area is greater than or equal to the predetermined retention time according to the time information; and
[0102] The wandering distance determination module 130 is used to determine whether the cumulative moving distance of the behavior target in the monitoring area is greater than or equal to the predetermined wandering distance according to the coordinate information;
[0103] The retention behavior determination module 140 is used to determine that the behavior target has a retention behavior if the retention time determination module determines that the behavior target's residence time is greater than or equal to the predetermined retention time and the accumulated moving distance is less than the predetermined wandering distance;
[0104] or,
[0105] The wandering behavior determination module 150 is used to determine that the behavior target has wandering behavior if the wandering distance determination module determines that the behavior target's stay time is greater than or equal to the predetermined retention time and the cumulative moving distance is greater than or equal to the predetermined wandering distance.
[0106] The retention and wandering behavior identification system based on target trajectory analysis provided by the embodiment of the present invention monitors the trajectory information of the behavior target in real time through the trajectory information monitoring module 110, and then the retention time judgment module 120 judges whether the retention time of the behavior target in the monitoring area is greater than or equal to the predetermined retention time according to the time information in the trajectory information, and the wandering distance judgment module 130 judges whether the cumulative moving distance of the behavior target in the monitoring area is greater than or equal to the predetermined wandering distance according to the coordinate information in the trajectory information; when the retention time is greater than or equal to the predetermined retention time and the cumulative moving distance is less than the predetermined wandering distance, the retention behavior determination module 140 can determine that the behavior target has a retention behavior; when the retention time is greater than or equal to the predetermined retention time and the cumulative moving distance is greater than or equal to the predetermined wandering distance, the wandering behavior determination module 150 can determine that the behavior target has a wandering behavior. Because the present invention comprehensively judges the retention and wandering behavior of the behavior target through the trajectory information of the behavior target, that is, the coordinate information and the time information, the technical solution of the present invention can solve the problem of large errors in the identification of retention and wandering behavior in the prior art.
[0107] As a preferred embodiment, Figure 7 As shown, in the technical solution provided in the embodiment of the present application, the above-mentioned trajectory information monitoring module 110 includes:
[0108] The target tracking submodule 111 is used to track each behavioral target in the monitoring area using a multi-task learning algorithm;
[0109] The identification assignment submodule 112 is used to assign unique identification information to each behavior target;
[0110] The time statistics submodule 113 is used to count the time information of the behavior target in the monitoring area from the time the behavior target enters the monitoring area according to the unique identification information;
[0111] The coordinate recording submodule 114 is used to record the coordinate information of the center point coordinates of the behavior target in the monitoring area in real time according to the unique identification information.
[0112] As a preferred embodiment, Figure 8 As shown, the above-mentioned wandering distance determination module 130 includes:
[0113] The wandering distance setting submodule 131 is used to set a first predetermined wandering distance in the length direction of the monitoring area and a second predetermined wandering distance in the width direction of the monitoring area according to the length and width of the monitoring area;
[0114] The moving distance statistics submodule 132 is used to obtain the cumulative moving distance of the behavior target in the length direction and the width direction of the monitoring area according to the coordinate information of the center point coordinate recorded in real time;
[0115] The moving distance judgment submodule 133 is used to judge whether the cumulative moving distance of the behavior target in the length direction of the monitoring area is greater than or equal to the first predetermined wandering distance, or whether the cumulative moving distance of the behavior target in the width direction of the monitoring area is greater than or equal to the second predetermined wandering distance.
[0116] As a preferred embodiment, Fig. 9 As shown, the above-mentioned residence time determination module 120 includes:
[0117] The walking time threshold setting submodule 121 is used to set the walking time threshold according to the scene information of the monitoring area and the normal walking time through the monitoring area;
[0118] The retention time calculation submodule 122 is used to calculate the product between the walking time threshold and the retention time coefficient to obtain the predetermined retention time.
[0119] As a preferred embodiment, Fig.10 As shown, the lingering and wandering behavior identification system provided in the embodiment of the present application further includes: an alarm module 160, which is used to alarm the behavior target when the behavior target has lingering behavior or wandering behavior.
[0120] The above description is only a preferred embodiment of the present invention, and does not limit the patent scope of the present invention. All equivalent structural changes made by using the contents of the present invention specification and drawings under the inventive concept of the present invention, or directly / indirectly applied in other related technical fields are included in the patent protection scope of the present invention.
Claims
1. A method for identifying lingering and wandering behavior based on target trajectory analysis, characterized in that: include: Real-time monitoring of the trajectory information of the behavior target, wherein the trajectory information includes coordinate information and time information; According to the time information, determining whether the behavior target's stay time in the monitoring area is greater than or equal to a predetermined stay time; and According to the coordinate information, determining whether the cumulative moving distance of the behavior target in the monitoring area is greater than or equal to a predetermined wandering distance; If it is determined that the stay time of the behavior target is greater than or equal to the predetermined stay time, and the accumulated moving distance is less than the predetermined wandering distance, it is determined that the behavior target has a wandering behavior; or, If it is determined that the stay time of the behavior target is greater than or equal to the predetermined retention time, and the accumulated moving distance is greater than or equal to the predetermined wandering distance, it is determined that the behavior target has wandering behavior; The step of real-time monitoring of the trajectory information of the behavior target includes: S110: real-time monitoring of trajectory information of the behavior target, wherein the trajectory information includes coordinate information and time information; wherein the trajectory information of the behavior target is obtained through a video data source, and the video data in the video data source is provided in the form of a video file and a video stream, thereby realizing real-time video monitoring and processing of historical video data; When there are multiple behavioral targets in the monitoring area, a multi-task learning model is used to track and detect all behavioral targets in the monitoring area. The specific steps include: S111: Use a multi-task learning algorithm to track each behavioral target in the monitoring area; first, a multi-task learning model is established according to the multi-task learning algorithm, and the multi-task learning model includes a target detection sub-model, and the target detection sub-model and target feature embedding are used to perform real-time detection and tracking of behavioral targets; S112: Assign unique identification information to each behavioral target; unique identification information, target ID, which can ensure accurate distinction and identification of each behavioral target; target ID is a unique identifier for recording and distinguishing different targets, and the same target tracked has the same target ID; after target tracking is lost, the target ID information will still be retained and stored in the database; new behavioral targets appearing in the monitoring area will be identified according to the ID number, and when the same behavioral target reappears, the ID will be matched from the database to re-monitor the trajectory information; S113: according to the unique identification information, the time information of the behavior target in the monitoring area is counted from the time when the behavior target enters the monitoring area; the time information is the information of the target in the time dimension. In order to count the time information, it is necessary to first record the initial time when the newly added tracking ID enters the monitoring area. When the tracking is lost, if the target ID is re-detected and tracked, the time information will continue to be recorded; if the target exits the monitoring area or the target ID tracking is lost, the time when the target ID enters the monitoring area will be re-recorded when the detection and tracking are performed again; S114: Based on the unique identification information, the coordinate information of the center point coordinates of the behavior target in the monitoring area is recorded in real time; in the video data source, the coordinate information of the center point pixel of the behavior target tracked and monitored in each frame image needs to be associated with the corresponding unique identification information and time information for recording and storage.
2. The method for identifying lingering and wandering behavior according to claim 1, characterized in that: The step of judging whether the cumulative moving distance of the behavior target in the monitoring area is greater than or equal to the predetermined wandering distance according to the coordinate information includes: According to the length and width of the monitoring area, a first predetermined wandering distance in the length direction of the monitoring area and a second predetermined wandering distance in the width direction of the monitoring area are set; According to the coordinate information of the center point coordinates recorded in real time, the cumulative moving distance of the behavior target in the length direction and the width direction of the monitoring area are respectively obtained by statistics; It is determined whether the cumulative moving distance of the behavior target in the length direction of the monitoring area is greater than or equal to the first predetermined wandering distance, or whether the cumulative moving distance of the behavior target in the width direction of the monitoring area is greater than or equal to the second predetermined wandering distance.
3. The method for identifying lingering and wandering behavior according to claim 1, characterized in that: The step of judging whether the residence time of the behavior target in the monitoring area is greater than or equal to the predetermined residence time according to the time information comprises: Setting a walking time threshold according to scene information of the monitoring area and a normal walking time through the monitoring area; The product of the walking time threshold and the retention time coefficient is calculated to obtain the predetermined retention time.
4. The method for identifying lingering and wandering behavior according to claim 1, characterized in that: Also includes: When it is determined that the behavior target has a lingering behavior or a wandering behavior, an alarm is issued to the behavior target.
5. A system for identifying lingering and wandering behaviors based on target trajectory analysis, characterized in that: include: A trajectory information monitoring module, used to monitor the trajectory information of the behavior target in real time, wherein the trajectory information includes coordinate information and time information; A retention time judgment module, used to judge whether the retention time of the behavior target in the monitoring area is greater than or equal to the predetermined retention time according to the time information; and A wandering distance judgment module, used to judge whether the cumulative moving distance of the behavior target in the monitoring area is greater than or equal to a predetermined wandering distance according to the coordinate information; A detention behavior determination module, used to determine that the behavior target has a detention behavior if the detention time judgment module determines that the residence time of the behavior target is greater than or equal to the predetermined detention time and the accumulated moving distance is less than the predetermined wandering distance; or a wandering behavior determination module, configured to determine that the behavior target has wandering behavior if the wandering distance determination module determines that the stay time of the behavior target is greater than or equal to the predetermined stay time and the accumulated moving distance is greater than or equal to the predetermined wandering distance; The step of real-time monitoring of the trajectory information of the behavior target includes: S110: real-time monitoring of trajectory information of the behavior target, wherein the trajectory information includes coordinate information and time information; wherein the trajectory information of the behavior target is obtained through a video data source, and the video data in the video data source is provided in the form of a video file and a video stream, thereby realizing real-time video monitoring and processing of historical video data; When there are multiple behavioral targets in the monitoring area, a multi-task learning model is used to track and detect all behavioral targets in the monitoring area. The specific steps include: S111: Use a multi-task learning algorithm to track each behavioral target in the monitoring area; first, a multi-task learning model is established according to the multi-task learning algorithm, and the multi-task learning model includes a target detection sub-model, and the target detection sub-model and target feature embedding are used to perform real-time detection and tracking of behavioral targets; S112: Assign unique identification information to each behavioral target; unique identification information, target ID, which can ensure accurate distinction and identification of each behavioral target; target ID is a unique identifier for recording and distinguishing different targets, and the same target tracked has the same target ID; after target tracking is lost, the target ID information will still be retained and stored in the database; new behavioral targets appearing in the monitoring area will be identified according to the ID number, and when the same behavioral target reappears, the ID will be matched from the database to re-monitor the trajectory information; S113: according to the unique identification information, the time information of the behavior target in the monitoring area is counted from the time when the behavior target enters the monitoring area; the time information is the information of the target in the time dimension. In order to count the time information, it is necessary to first record the initial time when the newly added tracking ID enters the monitoring area. When the tracking is lost, if the target ID is re-detected and tracked, the time information will continue to be recorded; if the target exits the monitoring area or the target ID tracking is lost, the time when the target ID enters the monitoring area will be re-recorded when the detection and tracking are performed again; S114: Based on the unique identification information, the coordinate information of the center point coordinates of the behavior target in the monitoring area is recorded in real time; in the video data source, the coordinate information of the center point pixel of the behavior target tracked and monitored in each frame image needs to be associated with the corresponding unique identification information and time information for recording and storage.
6. The lingering and wandering behavior recognition system according to claim 5, characterized in that: The wandering distance judgment module includes: A wandering distance setting submodule, used to set a first predetermined wandering distance in the length direction of the monitoring area and a second predetermined wandering distance in the width direction of the monitoring area according to the length and width of the monitoring area; A moving distance statistics submodule is used to obtain the cumulative moving distance of the behavior target in the length direction and the width direction of the monitoring area according to the coordinate information of the center point coordinates recorded in real time; The moving distance judgment submodule is used to judge whether the cumulative moving distance of the behavior target in the length direction of the monitoring area is greater than or equal to the first predetermined wandering distance, or whether the cumulative moving distance of the behavior target in the width direction of the monitoring area is greater than or equal to the second predetermined wandering distance.
7. The lingering and wandering behavior recognition system according to claim 5, characterized in that: The residence time determination module comprises: A walking time threshold setting submodule, used to set a walking time threshold according to scene information of the monitoring area and a normal walking time through the monitoring area; The retention time calculation submodule is used to calculate the product between the walking time threshold and the retention time coefficient to obtain the predetermined retention time.
8. The lingering and wandering behavior recognition system according to claim 5, characterized in that: Also includes: The alarm module is used to alarm the behavior target when the behavior target has a lingering behavior or a wandering behavior.
Citation Information
Patent Citations
Alarm method and device for recognizing lingering person through smart gold eye
CN106128053A
Monitoring video evaluation behavior analysis processing method based on sound source positioning
CN110135359A
Construction site pedestrian wandering detection method, device and equipment and storage medium
CN111860318A
