A real-time method for recognizing abnormal behavior of personnel in a video based on space-time analysis

By employing spatiotemporal analysis and deep learning methods, combined with fault-tolerant mechanisms, real-time identification and alarm functions for sitting still and loitering behaviors were achieved. This addresses the shortcomings of robustness and real-time performance in existing technologies, thereby improving the accuracy and stability of the monitoring system.

CN117746321BActive Publication Date: 2026-11-20THE 54TH RESEARCH INSTITUTE OF CHINA ELECTRONICS TECHNOLOGY GROUP CORPORATION +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311724465.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-14
Publication Date
2026-11-20
Estimated Expiration
2043-12-14

AI Technical Summary

Technical Problem

Existing intelligent video surveillance systems lack algorithmic robustness when detecting sitting still and loitering behavior, and cannot guarantee real-time performance and stability, leading to misjudgments and omissions.

Method used

A spatiotemporal analysis-based approach is adopted, combined with a deep learning network model, for pedestrian detection, pose recognition, and tracking. Abnormal behavior is judged by spatiotemporal information, and a fault-tolerant mechanism is introduced to improve the stability and accuracy of recognition.

Benefits of technology

It enables real-time identification and alarm of sitting still and loitering behavior, improves the robustness and accuracy of the monitoring system, reduces misjudgments and omissions, ensures the security of the monitored area, and saves human resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117746321B_ABST
    Figure CN117746321B_ABST
Patent Text Reader

Abstract

The application provides a real-time identification method for abnormal behavior of personnel in a video based on space-time analysis, and belongs to the technical fields of video monitoring analysis and behavior analysis. The application comprises the following steps: acquiring real-time video streams of a region covered by a monitoring device; performing pedestrian detection, tracking and posture recognition based on images of the video streams to form space-time information; performing analysis based on the space-time information, combining a fault-tolerant mechanism to determine whether a target has abnormal behavior, and combining the fault-tolerant mechanism to obtain a robust real-time identification result; and pushing a video stream in which the real-time identification result of abnormal behavior is drawn, and if abnormal behavior exists, an alarm is given. The application performs space-time analysis based on real-time video streams, performs real-time detection and identification of abnormal behavior and gives an alarm, can continuously and stably detect all day long, guarantees the safety of a monitoring region, and saves manpower.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the fields of video surveillance analysis technology and behavior analysis technology, specifically relating to a real-time identification method for abnormal human behavior in videos based on spatiotemporal analysis. Background Technology

[0002] In everyday scenarios, shopping malls, airports, train stations, and other places are covered by a large number of surveillance cameras, requiring a lot of manpower to monitor them. Screening for unsafe factors and abnormal behaviors among numerous surveillance images and dense crowds brings great difficulties to the monitoring work.

[0003] In recent years, with the rapid development of internet and artificial intelligence technologies, intelligent video surveillance has emerged in the market, and its market size has grown significantly year by year. Traditional surveillance requires dedicated personnel to be on duty 24 hours a day, requiring a large investment of human and financial resources, and inevitably resulting in omissions or misjudgments. In contrast, intelligent surveillance can be continuously online around the clock, analyzing video surveillance to detect and identify specific or abnormal behaviors and issue real-time alarms. This involves technologies such as pedestrian detection, pedestrian tracking, behavior recognition, and spatiotemporal analysis.

[0004] Currently, abnormal behavior recognition in intelligent video surveillance is one of the important research directions in the field of computer vision. Existing abnormal behavior recognition methods in intelligent video surveillance have limited detection capabilities for sitting still and loitering behaviors, and lack algorithmic robustness. Furthermore, most methods for loitering behaviors are not comprehensive enough and cannot guarantee real-time performance, which in turn leads to stability issues. Summary of the Invention

[0005] To address the aforementioned problems, this invention proposes a real-time method for identifying abnormal human behavior in video based on spatiotemporal analysis. This invention can acquire and analyze spatiotemporal information from surveillance video to perform real-time abnormal behavior identification and alarm, helping to save manpower and improve security early warning capabilities.

[0006] To achieve the above objectives, the technical solution adopted by the present invention is as follows:

[0007] A real-time method for identifying abnormal human behavior in videos based on spatiotemporal analysis includes the following steps:

[0008] S1: Retrieve real-time video streams from the area covered by the monitoring equipment via the network to obtain a sequence of video frames arranged in chronological order;

[0009] S2: Pedestrian detection, pose recognition and pedestrian tracking are performed based on frame image sequences. Spatiotemporal information is formed by combining the position of the detection box in pedestrian detection, the identity information of pedestrian tracking and the pose recognition results.

[0010] S3: Based on spatiotemporal analysis and combined with a fault-tolerant mechanism, the method determines whether the target exhibits abnormal behaviors such as sitting still or wandering based on spatiotemporal information, and obtains the identification results.

[0011] S4: The results of abnormal behavior identification are plotted in the video frame image and the video stream is pushed. If abnormal behavior is found, an alarm is triggered.

[0012] Furthermore, the methods for identifying sedentary behavior are as follows:

[0013] Based on a deep learning network model, pedestrian detection and single-frame pose detection are performed on each frame in the frame image sequence. The pose of sitting behavior is divided into four cases: sitting, lying down, squatting, and standing.

[0014] Based on pedestrian detection results, a deep learning model is used for target tracking;

[0015] Based on the target tracking identity information and the real-time pose of each frame in the time dimension, temporal information analysis is performed. If the time of the sitting pose exceeds the time threshold THRE under the fault tolerance mechanism, s If so, it is judged as a sitting meditation behavior.

[0016] Furthermore, the specific fault-tolerance mechanism in the sedentary behavior recognition method is as follows:

[0017] Set the number of consecutive non-occurrences T. sn and the number of consecutive occurrences T s Set a time threshold THRE sn_tole and THRE s T sn and T s The initial values ​​are all zero;

[0018] If the sitting posture does not appear in the current frame, then the number of consecutive times it does not appear will be T. sn Add 1; when the number of consecutive absences exceeds the threshold, the consecutive occurrence count T will be incremented. s Reset to zero;

[0019] If the current frame shows a sitting posture, and T sn Less than THRE sn_tole Then update the parameters:

[0020] T sn =0

[0021] T s =T s +1

[0022] T s =T s +T sn

[0023] Use T sand time threshold THRE s For comparison, if T s Exceeding the time threshold THRE s If so, it is judged as a sitting meditation behavior.

[0024] Furthermore, the methods for identifying loitering behavior are as follows:

[0025] Based on a deep learning network model, pedestrian detection and single-frame pose detection are performed on each frame in the frame image sequence. The pose of the wandering behavior is a standing pose.

[0026] Based on pedestrian detection results, a deep learning model is used for target tracking;

[0027] Based on the identity information of the target tracking and the real-time posture of each frame in the time dimension, the temporal information analysis is performed to determine the loitering behavior from two perspectives: time basis and trajectory basis.

[0028] The time criterion refers to whether the time elapsed during the wandering posture exceeds the time threshold THRE under the fault tolerance mechanism. w If the difference between the displacement and the total distance is greater than the distance threshold under the fault tolerance mechanism, it is judged as loitering behavior. The trajectory basis refers to the number of times the difference between the displacement and the total distance is greater than the distance threshold. If the number exceeds the warning number threshold, it is judged as loitering behavior. Among them, displacement refers to the straight-line distance between the position of the target when it first appears in the monitoring area and the position of the target in the current frame. The total distance refers to the total distance that the target moves within the monitoring area from the first time it appears in the monitoring area to the current frame.

[0029] Furthermore, the specific methods of the fault tolerance mechanism in the loitering behavior recognition method are as follows:

[0030] Set the number of consecutive times T does not appear wn Number of consecutive occurrences T w Number of times the warning is issued (T) ww Number of consecutive times without a warning T wnw Set a time threshold THRE wn_tole THRE w1 and THRE w2 T wn T w T ww T wnw The initial values ​​are all zero;

[0031] If the lingering posture does not appear in the current frame, then the number of consecutive times it does not appear will be T. wn Add 1 when the number of consecutive occurrences T is not recorded. wn After exceeding the threshold, it will occur consecutively for a number T times. w Reset to zero;

[0032] If the current frame shows a wandering posture, and Twn Less than THRE wn_tole Then update the parameters:

[0033] T wn =0

[0034] T w =T w +1

[0035] T w =T w +T wn

[0036] Use T w and time threshold THRE w1 For comparison, if T w Exceeding the time threshold THRE w1 If so, it is judged as loitering behavior;

[0037] If the difference between the displacement of the current frame and the total distance traveled is greater than the distance threshold, then the number of lingering warnings T will be increased. ww Add 1, the number of consecutive times no hovering warning has occurred (T). wnw Clear to zero; otherwise T wnw =T wnw +1;

[0038] If T wnw Greater than the time threshold THRE w2 Then T ww =0;

[0039] Use T ww Compare with the threshold for the number of warnings, if T ww If the number of warnings exceeds the threshold, it is judged as loitering behavior.

[0040] Compared with the prior art, the present invention has the following advantages:

[0041] (1) Based on spatiotemporal information analysis, this invention can provide real-time early warning for sitting still and wandering behaviors.

[0042] (2) This invention proposes a fault-tolerant mechanism, which fully considers the robustness of the algorithm, making the real-time results obtained by the algorithm more stable and accurate.

[0043] (3) This invention fully considers various situations of loitering behavior and formulates multi-dimensional rules for judging loitering behavior, making the judgment results more comprehensive and reliable. Attached Figure Description

[0044] Figure 1 This is a flowchart of a real-time identification method for abnormal human behavior in videos based on spatiotemporal analysis.

[0045] Figure 2This is a schematic diagram illustrating how the present invention acquires spatiotemporal information.

[0046] Figure 3 This is a schematic diagram of spatiotemporal information analysis and processing under the fault-tolerant mechanism of the present invention. Detailed Implementation

[0047] The invention will now be further described with reference to the accompanying drawings.

[0048] A real-time method for identifying abnormal human behavior in videos based on spatiotemporal analysis, such as... Figure 1 As shown, it includes the following steps:

[0049] S1: Retrieve real-time video streams from the area covered by the monitoring equipment via the network to obtain a sequence of video frames arranged in chronological order;

[0050] First, real-time video stream data is obtained via the network and the IP address of the monitoring equipment. The video stream is pulled to the local machine, and real-time video frame images are obtained in chronological order for preprocessing. Preprocessing steps include adjusting the image size to 640*640, normalization, channel conversion, etc., ultimately resulting in a sequence of processed frame images to provide data support for subsequent steps.

[0051] S2: Based on the frame image sequence of the video stream arranged in chronological order, perform pedestrian detection, pedestrian tracking and pose recognition, and combine the position of the detection box in the pedestrian detection, the identity information of the pedestrian tracking and the pose recognition results in the frame image sequence to form spatiotemporal information;

[0052] like Figure 2 As shown, the sequence of frame images from the video stream obtained in step S1, arranged in chronological order, is input into the YOLOv5s network model. Each frame is input into the YOLOv5s model, and pedestrian detection and pose recognition (static pose classification into four categories: "sitting," "squatting," "lying down," and "standing") are performed on the current frame image. The output is pedestrian detection bounding box information and static pose category. The pedestrian detection bounding box provides the location information of pedestrians in the image, and the static pose category provides the pose information of pedestrians. Using the pedestrian detection results as input, pedestrian tracking is performed based on DeepSort to obtain the identity ID information of the detected pedestrian targets. The identity ID information of a single frame image, the position of the pedestrian in the image, and the pedestrian pose are combined to form spatial information. The spatial information of multiple frames images is arranged in chronological order to form spatiotemporal information. Spatiotemporal information is the main content of subsequent steps.

[0053] S3: Based on spatiotemporal analysis and combined with a fault-tolerant mechanism, the method uses spatiotemporal information to determine whether the target exhibits abnormal behaviors such as sitting still or wandering, and obtains stable real-time identification results.

[0054] Step S2 yields the spatial information of the results arranged in chronological order: each pedestrian target has its identity ID, its position in the image, and its pose, allowing for further analysis of the spatiotemporal information. Due to accuracy and stability issues with the detection and recognition algorithm, real-time results may fluctuate or become unstable. This method proposes a fault-tolerance mechanism, which, combined with the fault-tolerance mechanism, yields stable real-time recognition results for abnormal behavior.

[0055] This method considers sitting still and loitering as two opposing postures that cannot occur simultaneously. Among them, "sitting," "squatting," and "lying down" are the basic postures for sitting still. If the number of times the same pedestrian exhibits any of these three postures exceeds the time threshold THRE for determining sitting still, the method will determine the sitting still status. st If the same pedestrian is observed to be sitting still, then the pedestrian is considered to be exhibiting a loitering behavior. "Standing" is the basic posture for loitering; if the same pedestrian exhibits a loitering posture for more than the time threshold THRE for loitering determination, then the loitering behavior is considered to be loitering. w If the pedestrian is found to be exhibiting loitering behavior, this criterion can identify loitering behavior in two special cases: prolonged stillness or slow movement. If the difference between the total distance traveled and the displacement of the same pedestrian after entering the monitored area exceeds the distance threshold THRE... wd Warnings will be issued, with T being the number of warnings. ww greater than the threshold for the number of times a lingering warning will be issued. ww If the pedestrian is observed to be loitering, this criterion can identify loitering behavior in most cases.

[0056] Among them, THRE s It is set based on the video frame rate and the tolerance for sitting still duration; THRE w It is set based on the video frame rate and tolerance for hovering duration. It is used to judge special situations such as standing still and slow movement, which have a longer duration and are usually represented by a larger value; THRE wd It is set based on the size of the video image and the size of the area covered by the monitoring equipment; THRE ww It is set based on the performance of the detection algorithm and the sensitivity level of loitering behavior.

[0057] The above abnormal behavior determination is performed under a fault-tolerance mechanism, which is as follows: Figure 3 As shown. After outputting the spatial information of the current frame, it is determined whether the posture is a sitting or wandering posture. The processing flow of one frame is explained below as an example:

[0058] Decision branch 1: If it is a sitting posture, count the number of consecutive occurrences T of the sitting posture for the pedestrian with the corresponding ID. s ++, Number of consecutive times the seated posture did not occur (T) sn=0. Considering the errors in pose recognition and human detection, individual frames may be misidentified, resulting in some frames of a sitting posture being identified as a wandering posture. To reduce errors and intermittent results, in T... Sn The tolerance threshold for the sit-in judgment has not been exceeded. sn_tole T also needs to be performed s =T s +T sn The operation. Also, since sitting still and wandering are opposite behaviors, the number of consecutive times the wandering posture does not occur is T. wn ++.

[0059] Judgment Branch 2: If it is a loitering posture, judge from two dimensions. In most cases, there is a significant difference between the total distance traveled and the displacement of the loitering behavior. The difference between the total distance and the displacement can be used for judgment. Take the center point of the bottom edge of the pedestrian target detection box as the pedestrian's position point in the video image. The total distance is the cumulative value of the distance the target pedestrian moves into the monitored area. The displacement is the straight-line distance between the target pedestrian's first entry point into the monitored area and the target pedestrian's position point in the current frame. If the difference D between the target pedestrian's total distance and displacement in the current frame is... diff Exceeding the distance threshold THRE wd A loitering warning is issued, with T being the number of loitering warnings. ww ++, Number of consecutive times the lingering warning has not appeared (T) wnw =0; otherwise T wnw ++. In a few special cases, such as prolonged standing still or slow movement, using the difference between total distance and displacement as the criterion for judging hesitancy may be ineffective. In such cases, the number of times the hesitant posture occurs can be used as the criterion. When a hesitant posture occurs, the number of consecutive occurrences of the hesitant posture is T. w ++, the number of times the wandering posture did not appear consecutively (T) wn =0. Considering the errors in pose recognition and human detection, individual frames may be misidentified, resulting in some frames of wandering behavior being identified as sitting postures. To reduce errors and the generation of intermittent and unstable results, in T... wn The fault tolerance threshold THRE for the lingering judgment has not been exceeded. wn_tole T also needs to be performed w =T w +T wn The operation. Simultaneously, due to the opposing behaviors of sitting still and wandering, the number of consecutive times the sitting posture did not occur (T) is... sn ++.

[0060] Among them, THRE wn_tole THRE sn_tole It is set based on the stability of the detection, recognition, and tracking algorithms, as well as the video frame rate.

[0061] After the branching process is completed, real-time timing information is obtained by combining the analysis of the current frame information, which is then further judged and processed. If the number of consecutive occurrences of the sitting posture is greater than or equal to the time threshold for judging sitting posture, i.e., T... s >=THRE s If the number of loitering warnings is greater than or equal to the loitering warning threshold, then it is determined that the pedestrian has exhibited sitting behavior; if the number of loitering warnings is greater than or equal to the number of loitering warnings threshold, i.e., T... ww >=THRE ww If the number of consecutive occurrences of the loitering posture is greater than or equal to the time threshold for loitering determination, i.e., T... w >=THRE w If the sitting posture is not observed for more than one consecutive time, then it is determined that wandering behavior has occurred; if the number of consecutive times the sitting posture is not observed is greater than or equal to the fault tolerance threshold for sitting posture determination, i.e., T sn >=THRE sn_tole Then T S =0; if the number of consecutive times a lingering warning has not occurred is greater than or equal to the threshold for the number of consecutive lingering warnings, i.e., T wnw >=THRE wnw Then T ww =0; if the number of consecutive times the hesitant posture does not occur is greater than or equal to the fault tolerance threshold for hesitant judgment, i.e., T wn >=THRE wn_tole Then T w =0.

[0062] At this point, the temporal information analysis and processing of the current frame is complete, and the real-time abnormal behavior identification results are obtained.

[0063] S4: The results of abnormal behavior recognition are plotted in the video frame image and the video stream is pushed. If abnormal behavior is detected, an alarm is triggered.

[0064] In step S3, the real-time identification results of abnormal behavior are obtained. The corresponding results are drawn above the pedestrian detection box, and the behavior category is displayed in text form. If there is no abnormal behavior, nothing is displayed. The drawn frame image is pushed in real time. If abnormal behavior occurs, an alarm is triggered in real time.

[0065] In summary, this invention performs spatiotemporal analysis based on real-time video streams to detect, identify, and alarm abnormal behaviors in real time. It can continuously and stably detect online 24 / 7, ensuring the safety of the monitored area and saving manpower.

Claims

1. A method for real-time identification of abnormal human behavior in video based on spatiotemporal analysis, characterized in that, Includes the following steps: S1: Retrieve real-time video streams from the area covered by the monitoring equipment via the network to obtain a sequence of video frames arranged in chronological order; S2: Pedestrian detection, pose recognition and pedestrian tracking are performed based on frame image sequences. Spatiotemporal information is formed by combining the position of the detection box in pedestrian detection, the identity information of pedestrian tracking and the pose recognition results. S3: Based on spatiotemporal analysis and combined with a fault-tolerant mechanism, the method determines whether the target exhibits abnormal behaviors such as sitting still or wandering based on spatiotemporal information, and obtains the identification results. The methods for identifying loitering behavior are as follows: Based on a deep learning network model, pedestrian detection and single-frame pose detection are performed on each frame in the frame image sequence. The pose of the wandering behavior is a standing pose. Based on pedestrian detection results, a deep learning model is used for target tracking; Based on the identity information and real-time posture of each frame in the target tracking, temporal information analysis is performed to determine the loitering behavior from two perspectives: time and trajectory. The time criterion refers to whether the time elapsed during the hesitant posture exceeds a time threshold under the fault tolerance mechanism. If the difference between the displacement and the total distance is greater than the distance threshold under the fault tolerance mechanism, it is judged as loitering behavior; the trajectory basis refers to the number of times the difference between the displacement and the total distance is greater than the distance threshold. If the number exceeds the warning number threshold, it is judged as loitering behavior; where displacement refers to the straight-line distance between the position of the target when it first appears in the monitoring area and the position of the target in the current frame, and total distance refers to the total distance the target moves within the monitoring area from the first time it appears in the monitoring area to the current frame. The specific fault tolerance mechanism in the loitering behavior recognition method is as follows: Set the number of consecutive times it does not appear Number of consecutive occurrences Number of times of loitering warning Number of consecutive periods without a warning Set time threshold , and , , , , The initial values ​​are all zero; If the lingering posture does not appear in the current frame, then the number of consecutive times that it does not appear will be counted. Add 1 when there are no consecutive occurrences. The number of consecutive occurrences will exceed the threshold. Reset to zero; If the current frame shows a wandering posture, and Less than Then update the parameters: =0 = + use and time threshold In comparison, if Exceeding the time threshold If so, it is judged as loitering behavior; If the difference between the displacement of the current frame and the total distance traveled is greater than the distance threshold, the number of hovering warnings will be increased. Add 1 to the number of consecutive times there has been no lingering warning. Clear to zero; otherwise = +1; like Greater than the time threshold ,but =0; use Compared with the threshold for the number of warnings, if If the number of warnings exceeds the threshold, it is judged as loitering behavior; S4: The results of abnormal behavior identification are plotted in the video frame image and the video stream is pushed. If abnormal behavior is found, an alarm is triggered.

2. The method for real-time identification of abnormal human behavior in video based on spatiotemporal analysis as described in claim 1, characterized in that, The methods for identifying sedentary behavior are as follows: Based on a deep learning network model, pedestrian detection and single-frame pose detection are performed on each frame in the frame image sequence. The pose of sitting behavior is divided into four cases: sitting, lying down, squatting, and standing. Based on pedestrian detection results, a deep learning model is used for target tracking; Based on the target tracking identity information and the real-time pose of each frame in the time dimension, temporal information analysis is performed. If the time of the sitting pose exceeds the time threshold under the fault tolerance mechanism, If so, it is judged as a sitting meditation behavior.

3. The real-time identification method for abnormal human behavior in video based on spatiotemporal analysis as described in claim 2, characterized in that, The specific fault tolerance mechanism in the sedentary behavior recognition method is as follows: Set the number of consecutive times it does not appear. and the number of consecutive occurrences Set time threshold and , and The initial values ​​are all zero; If the sitting posture does not appear in the current frame, the number of consecutive times it does not appear will be counted. Increment by 1; once the number of consecutive absences exceeds the threshold, the consecutive occurrence count will be incremented. Reset to zero; If the current frame shows a sitting posture, and Less than Then update the parameters: =0 = + use and time threshold In comparison, if Exceeding the time threshold If so, it is judged as a sitting meditation behavior.

Citation Information

Patent Citations

  • Detention wandering behavior recognition method and system based on target trajectory analysis

    CN112633150A

  • Personnel abnormal behavior detection method and device based on video monitoring

    CN115527158A