Abnormal event detection method for surveillance video based on temporal action detection
By extracting video image features and building an anomaly detection model based on a method based on time-series action detection, combined with the UCF-Crime data set and Gaussian filtering technology, the problem of low recall rate and insufficient precision in the detection of abnormal events in surveillance videos is solved, achieving a more efficient abnormal event detection.
Patent Information
- Application Number
- CN202111185834.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-12
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2041-10-12
AI Technical Summary
Existing surveillance video abnormal event detection technology has low recall rate, insufficient positioning accuracy of action start and end time, poor detection accuracy, especially for long-lasting abnormal events, and the algorithm lacks real-time updates and scene applicability.
Using a method based on time-series action detection, by extracting the three-dimensional gradient features of the video image, using Gaussian filtering for image preprocessing, an anomaly detection model is constructed, combined with the UCF-Crime data set for training, and using unit analysis of motion, size and texture features. Establish an event trigger word generator and type classifier to perform feature representation and abnormal event judgment, and optimize detection results through non-maximum suppression methods.
It improves the detection accuracy and recall rate of abnormal events in surveillance videos, enhances the ability to detect events of different durations, reduces false detections and missed detections, and achieves more efficient abnormal event detection.
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of video detection, and in particular to a monitoring video abnormal event detection method based on time-series action detection. Background Art
[0002] With the development of my country's social economy and the decline in the price of hardware facilities, video surveillance systems are widely used in places such as shopping malls, banks, prisons and traffic intersections, playing a role that cannot be underestimated in maintaining social security. The current video surveillance system still belongs to traditional manual monitoring. Usually, cameras are installed at key locations, and data is transmitted to the monitoring center through transmission equipment and displayed on the monitoring screen in real time. The monitoring personnel judge and respond to abnormal events by watching the monitoring screen. The system has the following limitations: First, it consumes manpower. Usually, monitoring personnel need to take turns to ensure that monitoring can be carried out around the clock; second, there are a large number of warnings that are missed. Facing multiple screens on the monitoring screen for a long time, monitoring personnel are easily fatigued and miss important information; finally, it has no predictive effect on abnormal events, and more often can only serve as a post-event query tool. With the rapid development of computer technology, technologies such as image processing, machine vision and pattern recognition have matured accordingly, providing the possibility of breaking through the limitations of traditional video surveillance systems and making it possible to actively monitor abnormal events in surveillance videos.
[0003] Although researchers at home and abroad have achieved some results in abnormal event detection, they still face huge challenges. In addition to the challenges brought by the diversity of camera angles, the change in the scale of moving objects and the existence of occlusion, there are also the following difficulties: there is a lack of a unified view on the definition of basic events. Researchers have tried to represent basic events from different sub-fields. The current representation methods of basic events include extracting low-level features, tracking trajectories and building social force models; most algorithms cannot detect in real time. Due to the complexity of the algorithm model and the uninterrupted nature of video data, it is difficult for most algorithms to do this; existing detection algorithms lack scene applicability. For example, a detection algorithm that performs well in pedestrian scenes may not necessarily achieve the same good detection effect in vehicle scenes. Fourth, most algorithms cannot update themselves in real time. At present, most algorithms are still at the stage of training models using only fixed samples, and cannot update their own models during the detection process.
[0004] The existing surveillance video abnormal event detection technology has the following problems:
[0005] (1) The recall rate of human temporal action detection is low, and the accuracy of positioning the start and end time of the action needs to be improved;
[0006] (2) The current detection methods have different detection accuracy for different types of abnormal events, especially for abnormal events with a long duration, the detection accuracy is low. Summary of the invention
[0007] The purpose of the present invention is to provide a monitoring video abnormal event detection method based on time-series motion detection to solve the problems raised in the above background technology.
[0008] The technical solution of the present invention is: a monitoring video abnormal event detection method based on time sequence action detection, comprising the following steps:
[0009] S1: Feature extraction: Based on the video image, extract the three-dimensional gradient features of each frame in the surveillance video;
[0010] S2: Training sample selection: Based on the ubuntu16 operating system configured with NVIDIA Titan GPU, the UCF-Crime dataset is extracted;
[0011] S3: Image preprocessing: Use Gaussian filtering to reduce the noise of the image and reduce the interference of the original surveillance video noise;
[0012] S4: Basic event representation: Use the object tracking method to select appropriate feature descriptors to represent basic events;
[0013] S5: Anomaly detection model construction: Modeling basic events;
[0014] S6: Abnormal event judgment: Based on the training samples, judge whether the event is abnormal;
[0015] S7: Post-processing: Based on the occurrence duration of different abnormal events, scoring is performed in combination with training samples to obtain detection results without overlapping.
[0016] Preferably, the feature extraction comprises the following steps:
[0017] S11: Screen capture: Take a screenshot of each frame in the video and save it into the database in chronological order;
[0018] S12: Zooming the picture: zooming in and out each frame captured in the database by 5 times and 5 times respectively, and saving them in the corresponding database category;
[0019] S13: Display and extract classified information: Display each initial frame in the database as original information, extract each frame in the database that is magnified 5 times as key information, and extract each frame in the database that is reduced 5 times as overall information.
[0020] Preferably, the training sample extraction comprises the following steps:
[0021] S21: Training sample extraction: Use the Ubuntu 16 operating system equipped with NVIDIA Titan GPU to extract the content from the UCF-Crime dataset;
[0022] S22: Classification of training samples: Based on the temporal actions, the extracted content in the UCF-Crime dataset is classified and entered into the database, and the same classified content is put into the same folder;
[0023] S23: Naming of training samples: Name the classified folders in the database as follows: normal events, explosions, fights, abuse, shootings, robberies, sabotage, raids, arrests, and arson.
[0024] Preferably, the image preprocessing comprises the following steps:
[0025] S31: Use the distance from other pixels in the neighborhood to the neighborhood center, bring it into a two-dimensional Gaussian function, and calculate a Gaussian template. Common Gaussian templates are 3×3 or 5×5 in size.
[0026] S32: If the template is in decimal form, normalize it and normalize the value of the upper left corner of the template to 1;
[0027] S33: aligning the center of the Gaussian template with the image matrix to be processed, then multiplying and adding the corresponding elements, and filling zeros where there are no elements;
[0028] S34: The above calculation is performed on each element respectively, and the obtained output matrix is the result of Gaussian filtering.
[0029] Preferably, the basic event representation comprises the following steps:
[0030] S41: Classify the representation of events according to whether they have real physical meaning: one class has no physical meaning and uses low-level visual features to represent basic events; the other class has physical meaning and uses high-level semantic features to represent basic events.
[0031] S42: Event representation based on low-level visual features: Video blocks are collected in an overlapping manner, and the video blocks are regarded as basic events. Low-level visual features are extracted from the UCF-Crime dataset to represent basic events.
[0032] S43: Event representation based on high-level visual features: Video blocks are collected in a non-overlapping manner, and the video blocks are regarded as abnormal events. High-level visual features are extracted from the UCF-Crime dataset to represent abnormal events.
[0033] Preferably, the anomaly detection model construction comprises the following steps:
[0034] S51: Feature representation: first calculate the feature vector of the abnormal event, and then fuse the feature vectors of the normal event and the abnormal event;
[0035] S52: Event detection module: includes an event trigger word generator and an event type classifier. The former identifies event trigger words from text, and the latter classifies events.
[0036] Preferably, the abnormal event judgment includes the following steps:
[0037] S61: Determine the surveillance video that meets the normal event feature vector as a normal event;
[0038] S62: Determine the surveillance video that meets the abnormal event feature vector as an abnormal event.
[0039] Preferably, the post-processing comprises the following steps:
[0040] S71: based on the occurrence duration of various abnormal events in the training samples, selecting a window length close to the occurrence duration of various abnormal events in the training samples;
[0041] S72: Calculate the occurrence frequency of the window length to obtain a weight;
[0042] S73: relocate the action score in the surveillance video according to the weight;
[0043] S74: Use the non-maximum suppression (NMS) method to remove redundant video clips and obtain a detection result with a high confidence score.
[0044] The present invention provides a monitoring video abnormal event detection method based on time sequence action detection through improvement, which has the following improvements and advantages compared with the prior art:
[0045] First, the present invention generates a series of abnormal event clips of surveillance videos containing complete semantic information through an efficient abnormal event detection algorithm, which retains useful information while reducing the video database, facilitating the research of subsequent retrieval methods;
[0046] Second, the present invention selects a window length similar to the duration of occurrence of various abnormal events in the training samples, and finally uses the non-maximum suppression (NMS) method to remove redundant video clips, thereby obtaining a detection result with a high confidence score, thereby improving the detection accuracy of surveillance videos of different durations;
[0047] Third: The present invention studies the anomaly detection method based on unit analysis using motion, size and texture features. This method uses three low-level visual features of motion, size and texture to independently model and establish two classifiers to judge abnormal events. It specifically proposes an improvement method for the problem of false detection and missed detection of abnormal events caused by rough descriptors. DETAILED DESCRIPTION
[0048] The present invention is described in detail below, and the technical solutions in the embodiments of the present invention are clearly and completely described. 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.
[0049] The present invention provides a monitoring video abnormal event detection method based on time sequence action detection through improvement. The technical solution of the present invention is:
[0050] Embodiment 1:
[0051] The method for detecting abnormal events in surveillance videos based on time-series motion detection comprises the following steps:
[0052] S1: Feature extraction: Based on the video image, extract the three-dimensional gradient features of each frame in the surveillance video;
[0053] S2: Training sample selection: Based on the ubuntu16 operating system configured with NVIDIA Titan GPU, the UCF-Crime dataset is extracted;
[0054] S3: Image preprocessing: Use Gaussian filtering to reduce the noise of the image and reduce the interference of the original surveillance video noise;
[0055] S4: Basic event representation: Use the object tracking method to select appropriate feature descriptors to represent basic events;
[0056] S5: Anomaly detection model construction: Modeling basic events;
[0057] S6: Abnormal event judgment: Based on the training samples, judge whether the event is abnormal;
[0058] S7: Post-processing: Based on the occurrence duration of different abnormal events, scoring is performed in combination with training samples to obtain detection results without overlapping.
[0059] Specifically, the feature extraction includes the following steps:
[0060] S11: Screen capture: Take a screenshot of each frame in the video and save it into the database in chronological order;
[0061] S12: Zooming the picture: zooming in and out each frame captured in the database by 5 times and 5 times respectively, and saving them in the corresponding database category;
[0062] S13: Display and extract classified information: Display each initial frame in the database as original information, extract each frame in the database that is magnified 5 times as key information, and extract each frame in the database that is reduced 5 times as overall information.
[0063] Specifically, the training sample extraction includes the following steps:
[0064] S21: Training sample extraction: Use the Ubuntu 16 operating system equipped with NVIDIA Titan GPU to extract the content from the UCF-Crime dataset;
[0065] S22: Classification of training samples: Based on the temporal actions, the extracted content in the UCF-Crime dataset is classified and entered into the database, and the same classified content is put into the same folder;
[0066] S23: Naming of training samples: Name the classified folders in the database as follows: normal events, explosions, fights, abuse, shootings, robberies, sabotage, raids, arrests, and arson.
[0067] Specifically, the image preprocessing includes the following steps:
[0068] S31: Use the distance from other pixels in the neighborhood to the neighborhood center, bring it into a two-dimensional Gaussian function, and calculate a Gaussian template. Common Gaussian templates are 3×3 or 5×5 in size.
[0069] S32: If the template is in decimal form, normalize it and normalize the value of the upper left corner of the template to 1;
[0070] S33: aligning the center of the Gaussian template with the image matrix to be processed, then multiplying and adding the corresponding elements, and filling zeros where there are no elements (for example, for a 3×3 Gaussian template, a circle of zeros needs to be filled in the outermost layer of the image to be processed);
[0071] S34: The above calculation is performed for each element, and the output matrix obtained is the result of Gaussian filtering. Gaussian filtering is a linear smoothing filter, which is suitable for eliminating Gaussian noise and is widely used in the noise reduction process of image processing. Gaussian filtering is a process of weighted averaging of the entire image. The value of each pixel is obtained by weighted averaging the value of itself and other pixels in the neighborhood. The specific operation of Gaussian filtering is: use a template (or convolution, mask) to scan each pixel in the image, and replace the value of the central pixel of the template with the weighted average gray value of the pixels in the neighborhood determined by the template.
[0072] Specifically, the basic event representation includes the following steps:
[0073] S41: Classify the representation of events according to whether they have real physical meaning: one class has no physical meaning and uses low-level visual features to represent basic events; the other class has physical meaning and uses high-level semantic features to represent basic events.
[0074] S42: Event representation based on low-level visual features: Video blocks are collected in an overlapping manner, and the video blocks are regarded as basic events. Low-level visual features are extracted from the UCF-Crime dataset to represent basic events.
[0075] S43: Event representation based on high-level visual features: Video blocks are collected in a non-overlapping manner, and video blocks are regarded as abnormal events. High-level visual features are extracted from the UCF-Crime dataset to represent abnormal events. A unit analysis-based anomaly detection method using motion, size and texture features is studied. This method uses three low-level visual features of motion, size and texture to independently model and establish two classifiers to judge abnormal events. It specifically proposes an improved method for the problem of misdetection and missed detection of abnormal events caused by rough descriptors. How to represent basic events is a key issue in the anomaly detection process. From the perspective of whether to track, the existing methods can be divided into two categories: tracking methods and non-tracking methods. In the tracking method, the trajectory of the moving object is always recorded, which is more applicable in scenes with fewer target objects and less occlusion; in the non-tracking method, features such as motion and texture are applied to a given scene. The present invention changes the idea and classifies the representation of events according to whether they have real physical meaning: the one without physical meaning uses low-level visual features to represent basic events; the one with physical meaning uses high-level semantic features to represent basic events.
[0076] Specifically, the anomaly detection model construction includes the following steps:
[0077] S51: Feature representation: first calculate the feature vector of the abnormal event, and then fuse the feature vectors of the normal event and the abnormal event;
[0078] S52: Event detection module: including event trigger word generator and event type classifier, the former identifies event trigger words from text, and the latter classifies events. Through an efficient abnormal event detection algorithm, a series of abnormal event clips of surveillance videos containing complete semantic information are generated, which retains useful information while reducing the video database, facilitating the study of subsequent retrieval methods. The present invention studies the unit analysis anomaly detection technology based on the motion, size and texture features of foreground objects. On the original basis, corresponding improvements are made to the problem of coarse feature descriptors: first, in response to the problem that the motion feature descriptor is relatively coarse, the present invention proposes HOG3D features under polar coordinates as motion features, where only the positions of foreground pixels in the unit are sampled and voted; second, in response to the problem that the texture feature descriptor is relatively coarse, the present invention proposes to use LBP features of equivalent patterns to describe textures.
[0079] Specifically, the abnormal event judgment includes the following steps:
[0080] S61: Determine the surveillance video that meets the normal event feature vector as a normal event;
[0081] S62: Determine the surveillance video that meets the abnormal event feature vector as an abnormal event.
[0082] Specifically, the post-processing comprises the following steps:
[0083] S71: based on the occurrence duration of various abnormal events in the training samples, selecting a window length close to the occurrence duration of various abnormal events in the training samples;
[0084] S72: Calculate the occurrence frequency of the window length to obtain a weight;
[0085] S73: relocate the action score in the surveillance video according to the weight;
[0086] S74: Use the non-maximum suppression (NMS) method to remove redundant video clips and obtain detection results with high confidence scores. Since only one corresponding video clip should be detected for an abnormal event, the non-maximum suppression (NMS) method is used to remove redundant video clips and obtain detection results with high confidence scores. Based on the occurrence duration of various abnormal events in the training samples, a window length similar to that is selected, and finally the non-maximum suppression (NMS) method is used to remove redundant video clips to obtain detection results with high confidence scores, thereby improving the detection accuracy of surveillance videos of different durations, and based on time-series action detection, it has better detection performance than other algorithms.
[0087] The above description enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined in the present invention 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 in the present invention, but will conform to the widest range consistent with the principles and novel features disclosed in the present invention.
Claims
1. A monitoring video abnormal event detection method based on time-series motion detection, characterized in that: The following steps are involved: S1: Feature extraction: Based on the video image, extract the three-dimensional gradient features of each frame in the surveillance video; S2: Training sample selection: Based on the ubuntu16 operating system configured with NVIDIA Titan GPU, the UCF-Crime dataset is extracted; S3: Image preprocessing: Use Gaussian filtering to reduce the noise of the image and reduce the interference of the original surveillance video noise; S4: Basic event representation: Use the object tracking method to select appropriate feature descriptors to represent basic events; S5: Anomaly detection model construction: Modeling basic events; S6: Abnormal event judgment: Based on the training samples, judge whether the event is abnormal; S7: Post-processing: Based on the duration of occurrence of different abnormal events, scoring is performed in combination with training samples to obtain detection results without overlap; The feature extraction comprises the following steps: S11: Screen capture: Take a screenshot of each frame in the video and save it into the database in chronological order; S12: Zooming the picture: zooming in and out each frame captured in the database by 5 times and 5 times respectively, and saving them in the corresponding database category; S13: display and extract classified information: display each initial frame in the database as original information, extract each frame in the database magnified 5 times as key information, and extract each frame in the database reduced 5 times as overall information; The post-processing comprises the following steps: S71: based on the occurrence duration of various abnormal events in the training samples, selecting a window length close to the occurrence duration of various abnormal events in the training samples; S72: Calculate the occurrence frequency of the window length to obtain a weight; S73: relocate the action score in the surveillance video according to the weight; S74: Use the non-maximum suppression (NMS) method to remove redundant video clips and obtain a detection result with a high confidence score.
2. The monitoring video abnormal event detection method based on time sequence motion detection according to claim 1 is characterized in that: The training sample extraction comprises the following steps: S21: Training sample extraction: Use the Ubuntu 16 operating system equipped with NVIDIA Titan GPU to extract the content from the UCF-Crime dataset; S22: Classification of training samples: Based on the temporal actions, the extracted content in the UCF-Crime dataset is classified and entered into the database, and the same classified content is put into the same folder; S23: Naming of training samples: Name the classified folders in the database as follows: normal events, explosions, fights, abuse, shootings, robberies, sabotage, raids, arrests, and arson.
3. The monitoring video abnormal event detection method based on time sequence motion detection according to claim 1 is characterized in that: The image preprocessing comprises the following steps: S31: Use the distance from other pixels in the neighborhood to the neighborhood center, bring it into a two-dimensional Gaussian function, and calculate a Gaussian template. Common Gaussian templates are 3×3 or 5×5 in size. S32: If the template is in decimal form, normalize it and normalize the value of the upper left corner of the template to 1; S33: aligning the center of the Gaussian template with the image matrix to be processed, then multiplying and adding the corresponding elements, and filling zeros where there are no elements; S34: The above calculation is performed on each element respectively, and the obtained output matrix is the result of Gaussian filtering.
4. The monitoring video abnormal event detection method based on time sequence motion detection according to claim 1 is characterized in that: The basic event representation includes the following steps: S41: Classify the representation of events according to whether they have real physical meaning: the one without physical meaning uses low-level visual features to represent basic events; the one with physical meaning uses high-level semantic features to represent basic events; S42: Event representation based on low-level visual features: Video blocks are collected in an overlapping manner, and the video blocks are regarded as basic events. Low-level visual features are extracted from the UCF-Crime dataset to represent basic events. S43: Event representation based on high-level visual features: Video blocks are collected in a non-overlapping manner, and the video blocks are regarded as abnormal events. High-level visual features are extracted from the UCF-Crime dataset to represent abnormal events.
5. The monitoring video abnormal event detection method based on time sequence motion detection according to claim 1 is characterized in that: The anomaly detection model construction includes the following steps: S51: Feature representation: first calculate the feature vector of the abnormal event, and then fuse the feature vectors of the normal event and the abnormal event; S52: Event detection module: includes an event trigger word generator and an event type classifier. The former identifies event trigger words from text, and the latter classifies events.
6. The monitoring video abnormal event detection method based on time sequence motion detection according to claim 1 is characterized in that: The abnormal event judgment comprises the following steps: S61: Determine the surveillance video that meets the normal event feature vector as a normal event; S62: Determine the surveillance video that meets the abnormal event feature vector as an abnormal event.
Citation Information
Patent Citations
Crowd abnormity detection and positioning system and method based on time recurrent neural network
CN104636751A
Method of detecting abnormal event in monitoring video
CN107133654A
Monitoring video abnormal event detection method based on improved unit analysis
CN108460320A
Surveillance video exceptional event detection method based on deep learning and dynamic clustering
CN108805002A
Abnormal video cleaning method based on feature expectation subgraph correction classification
CN111008596A
