Video anti-tailing method based on abnormal event detection

Through the self-encoding spatiotemporal feature extraction network and sparse combination anomaly detection, the problem of blind spots and data imbalance in the video anti-tailing method is solved, accurate detection and precise alarm of special tailing situations are achieved, and detection accuracy and adaptability are improved.

CN118314530BActive Publication Date: 2024-08-27SHENZHEN MAXVISION TECH
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410735440.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-08-27
Estimated Expiration
2044-06-07

AI Technical Summary

Technical Problem

Existing video anti-tailing methods have the problem of blind spots in viewing angles, making it difficult to detect special tailing situations, such as blocked children or infants. Moreover, depth sensors require large calculations, insufficient accuracy, and high costs. Supervised video anomaly detection faces data imbalance and sample differences. Sexual issues.

Method used

Using a method based on abnormal event detection, through the self-encoding spatiotemporal feature extraction network and sparse combination anomaly detection, the spatiotemporal features in the video image frame are extracted, the reconstruction loss function is used for self-supervised model training, and the motion foreground block and convolutional automatic encoding are combined The device can avoid blind spots in the viewing angle and realize the detection of a variety of special trailing situations.

Benefits of technology

It achieves accurate detection of a variety of special trailing situations, avoids missed detection problems, improves the accuracy and real-time performance of the algorithm, and continuously improves detection accuracy through the self-updating sparse combination algorithm to adapt to a wide variety of positive sample events.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118314530B
    Figure CN118314530B
Patent Text Reader

Abstract

The invention discloses a video anti-tailing method based on abnormal event detection, comprising: step A: extracting a to-be-detected area in an anti-tailing monitoring video image frame, setting an area in a channel of an application scenario as the to-be-detected area, and removing a background area; step B: taking feature learning as the core of abnormal event detection, constructing a self-encoding spatiotemporal feature extraction network, inputting a foreground image sequence, inputting three consecutive frames of images to the self-encoding spatiotemporal feature extraction network, and performing self-supervisory model training through a reconstruction loss function; step C: sparse combination anomaly detection is to learn a sparse combination #imgabs0# from training data, given test data y, extract spatiotemporal feature x, calculate a weighted reconstruction error between the spatiotemporal feature x and each sparse combination, if there is a weighted reconstruction error less than an event threshold T, the spatiotemporal feature x is normal, if there is a weighted reconstruction error greater than or equal to the event threshold T, the spatiotemporal feature x is abnormal.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of video image analysis, and in particular to a video anti-tailing method based on abnormal event detection. Background Art

[0002] Most of the existing video anti-tailgating methods are based on target detection. Through deep learning, the image frames captured by the camera are used to detect pedestrians or heads, and the number of heads or pedestrians is used to determine whether there is a tailgating situation in the monitoring area. However, cameras usually have blind spots and cannot cope with some special tailgating situations, such as children whose bodies are blocked by adults, babies in arms, etc. The use of depth cameras can accurately locate pedestrians using depth information, reducing missed detections caused by close contact, squatting, luggage blocking, etc. However, the depth sensor has a huge amount of calculation and high requirements for hardware equipment. At present, most depth sensors on the market do not calculate depth information accurately enough, and have high requirements for recognition distance. The technology of sensor chips with higher accuracy is immature and costly, making it difficult to achieve mass production.

[0003] The anti-tailgating monitoring area includes three situations: no one, normal traffic, and tailgating. Among them, detecting no one and normal traffic are normal events, and detecting tailgating is an abnormal event. There are two problems with supervised video anomaly detection: one is the data imbalance between positive and negative samples (that is, the number of abnormal events as positive samples is far less than that of regular events); the other is that there is a great difference within the positive samples (abnormal events may include many different situations, but the training data is relatively limited). Summary of the invention

[0004] One object of the present invention is to provide a video anti-tailing method based on abnormal event detection. Different from the target detection method, it does not need to perform target detection under a fixed viewing angle or multiple viewing angles, thus avoiding the missed detection problem caused by the blind spot of the viewing angle and being able to solve a variety of special tailing situations.

[0005] Other advantages and features of the present invention will become more apparent from the following detailed description and may be realized by means of the instrumentalities and combinations particularly pointed out in the appended claims.

[0006] According to one aspect of the present invention, a video anti-tailing method based on abnormal event detection of the present invention, which can achieve the aforementioned objectives and other objectives and advantages, includes:

[0007] Step A: extract the area to be detected in the anti-tailing surveillance video image frame, set the area in the channel of the application scenario as the area to be detected, and then remove the background area;

[0008] Step B: Taking feature learning as the core of abnormal event detection, a self-encoding spatiotemporal feature extraction network is constructed, and a foreground image sequence is input. The foreground image sequence is obtained by the motion foreground extraction module through the anti-tailing monitoring video image frame. Three consecutive frames of images are input to the self-encoding spatiotemporal feature extraction network, and the self-supervisory model training is performed through the reconstruction loss function;

[0009] Step C: Self-updating sparse combination anomaly detection is to learn sparse combinations from training data ,in, are k basis vectors of sparse combination. Given test data y, the spatiotemporal feature x is extracted, and the weighted reconstruction error between the spatiotemporal feature x and each sparse combination is calculated. If there is a reconstruction error less than the event threshold T, the spatiotemporal feature x is normal. If there is a weighted reconstruction error greater than or equal to the event threshold T, the spatiotemporal feature x is abnormal. The video anti-tailing method based on abnormal event detection performs a tailing alarm and informs the user.

[0010] According to one embodiment of the present invention, step C includes sub-steps: the weighted reconstruction error formula is: ,in, is the i-th basis vector in the sparse combination, for The weighted reconstruction error is is the updated weight, yes A sparse representation of x, where , if exists If the event threshold value T is less than the event threshold value T, the spatiotemporal feature x is normal. is greater than or equal to the event threshold T, the spatiotemporal feature x is abnormal, the video anti-tailing method based on abnormal event detection performs a tailing alarm and informs the user. ,in, is the preset update threshold, the weight is updated, wherein the event threshold T is the preset threshold for triggering a tailgating alarm, wherein the value interval of T is any value in (0,1).

[0011] According to one embodiment of the present invention, step C includes the following sub-steps: after pre-training the sparse combination, for the i-th basis vector in the sparse combination Set an initial activity level , For all spatiotemporal features statistics The total number of To express Whether to use sparse representation, where , the i-th basis vector The weight of The higher the value, the greater the importance of the basis vector. The weights are initialized, and the initialization formula is ,in, is the initialization weight, n represents the number of spatiotemporal features in the training set, For statistics The total number of initializations.

[0012] According to one embodiment of the present invention, step C includes sub-steps: treating the process of a single passenger passing through the detection area as a normal event, and the process of two or more people following into the detection area as an abnormal event; when a single person passes, it is treated as a normal event and the allowed state is maintained; when two or more people pass, it is treated as an abnormal event and an alarm action is performed.

[0013] According to one embodiment of the present invention, step A includes the sub-steps of: using the foreground target extraction method background subtraction method to differentiate the current video image frame from the background model; if the pixel of the subtraction result is greater than a preset threshold, the pixel area at a preset position in the current video image frame is determined to be the foreground area.

[0014] According to one embodiment of the present invention, step A includes sub-steps: the coordinates of the preset position are , if the pixel of the subtraction result is less than or equal to the preset threshold, the pixel area at the preset position in the current video image frame is determined to be the background area, and the difference formula is ,in, The image coordinates of the current frame The pixel value at Background image coordinates The pixel value at is the difference image coordinate The pixel value at , T is the preset threshold, is the foreground image coordinate The pixel value at , 255 represents the foreground area and 0 represents the background area.

[0015] According to one embodiment of the present invention, step A includes sub-steps: receiving anti-tailing surveillance video information, and performing anti-tailing detection using a convolutional autoencoder centered on a motion foreground block and a self-updating sparse combination learning algorithm.

[0016] According to one embodiment of the present invention, step B includes sub-steps: the decoder includes 3 upsampling layers, 3 convolutional layers and 1 output layer.

[0017] According to one embodiment of the present invention, step B includes sub-steps: the self-encoding spatiotemporal feature extraction network is to construct three convolutional autoencoders to extract spatiotemporal features, the three convolutional autoencoders adopt the same structure, each of the convolutional autoencoders is composed of three convolutional layers and three maximum pooling layers, the autoencoder in the middle takes the grayscale image as input to learn the apparent features, and the inputs of the other two autoencoders of the self-encoding spatiotemporal feature extraction network are both gradient maps, which respectively learn the front and back motion features, and the gradient map is the difference between the two frames of images before and after, and the formula of the gradient map is , where t is the current time, is the current frame image, is the previous frame of the current frame image, is the next frame after the current frame. is the gradient at time t-1, is the gradient at time t+1.

[0018] According to one embodiment of the present invention, step B includes sub-steps: the training data of the automatic encoder is a video of a preset normal event, and the spatiotemporal characteristics of a normal moving target are learned. In the anti-tailgating application scenario, a video of a single passenger or no passengers can be used as a training set. In the actual application scenario, a foreground image sequence is input, and the foreground image sequence is an anti-tailgating monitoring video image frame obtained through a motion foreground extraction module. Three consecutive frames of images are input to the self-encoding spatiotemporal feature extraction network, and self-supervised model training is performed by reconstructing a loss function. The loss function formula is: ,

[0019] Among them, I is the input motion foreground block, O is the reconstructed image of I output by the decoder, h and w are the height and width of the motion foreground block respectively, and the autoencoder feature extraction module uses the trained autoencoder network model, inputs the foreground extraction image sequence, and splices the network intermediate features output by the three autoencoders to obtain the spatiotemporal features.

[0020] The beneficial effects of the present invention are as follows: a video anti-tailing method based on abnormal event detection can avoid the camera blind spot problem caused by target detection, a feature extraction algorithm based on foreground extraction and autoencoder can extract the spatiotemporal characteristics of foreground targets, and meet the requirements of algorithm accuracy and real-time performance, and a self-updating sparse combination anomaly detection algorithm uses the detected normal samples to update weights, so that the algorithm accuracy is continuously improved with online updates, and can better adapt to a wide variety of positive sample events. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 The present invention is a flowchart of the algorithm steps of a video anti-tailing method based on abnormal event detection according to an embodiment of the present invention.

[0022] Figure 2 Schematic diagram of a self-encoding spatiotemporal feature extraction network of a video anti-tailing method based on abnormal event detection in the above embodiment of the present invention.

[0023] Figure 3 The figure is a flow chart of the self-updating sparse combination anomaly detection of the video anti-tailing method based on abnormal event detection in the above embodiment of the present invention. DETAILED DESCRIPTION

[0024] The following description is used to disclose the present invention so that those skilled in the art can implement the present invention. The preferred embodiments described below are only examples, and those skilled in the art can think of other obvious variations. The basic principles of the present invention defined in the following description can be applied to other embodiments, variations, improvements, equivalents, and other technical solutions that do not deviate from the spirit and scope of the present invention.

[0025] Those skilled in the art should understand that, in the disclosure of the present invention, the terms "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicating the orientation or position relationship are based on the orientation or position relationship shown in the drawings, which are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation. Therefore, the above terms should not be understood as limiting the present invention.

[0026] It is understood that the term "one" should be understood as "at least one" or "one or more", that is, in one embodiment, the number of an element can be one, while in another embodiment, the number of the element can be multiple, and the term "one" cannot be understood as a limitation on the number. In addition, in the description of the present invention, unless otherwise specified, the meaning of "multiple" is two or more than two.

[0027] In the description of the present invention, it should be understood that "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying relative importance. In the description of the present invention, it should be noted that, unless otherwise clearly specified and limited, "connected" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through a medium. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0028] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0029] like Figures 1 to 3 As shown, a video anti-tailing method based on abnormal event detection of an embodiment of the present invention is disclosed. The video anti-tailing method based on abnormal event detection can be applied to various scenarios to detect tailing situations and perform alarm actions, such as treating the process of a single passenger passing through the detection area as a normal event, and the process of two or more people following into the detection area as an abnormal event. When a single person passes, it is treated as a normal event and remains in a permitted state. When two or more people pass, it is treated as an abnormal event and an alarm action is performed. The video anti-tailing method based on abnormal event detection can realize anti-tailing warnings in multiple application scenarios through the surveillance video of the detection area, and has good adaptability.

[0030] In this embodiment, the video anti-tailing method based on abnormal event detection receives anti-tailing monitoring video information, and uses a convolutional autoencoder centered on a motion foreground block and a self-updating sparse combination learning algorithm to perform anti-tailing detection. The video anti-tailing method based on abnormal event detection includes a motion foreground extraction module, an automatic encoder feature extraction module, and a self-updating sparse combination abnormality detection module, such as Figure 1 The figure shows a flowchart of the algorithm steps of the video anti-tailing method based on abnormal event detection.

[0031] Furthermore, the motion foreground extraction module performs the following operations: first, the area to be detected in the anti-tailgating monitoring video image frame is extracted. Specifically, the area within the channel of the application scenario is set as the area to be detected, and then the background area is removed. The area within the channel of the application scenario refers to: a closed area where passengers in places such as airports, ports, and railway stations walk through before identity verification. This closed area requires a single person to enter, and can be but not limited to a gate channel. It is worth noting that the background area and the area to be detected together constitute a panoramic area of ​​the application scenario. Since the anti-tailgating monitoring camera device is fixed and the application scenario environment is stable, the possibility of a dynamic background can be excluded, and the video image frame of the static background has a high accuracy, so that the foreground target extraction method background subtraction method can be used, which has a low degree of calculation and saves computing power costs. Among them, the background subtraction method of the foreground target extraction method is to establish a background model, and to make a difference between the current video image frame and the background model. If the pixel of the subtraction result is greater than the preset threshold, the pixel area at the preset position in the current video image frame is determined to be the foreground area, wherein the coordinates of the preset position are , if the pixel of the subtraction result is less than or equal to the preset threshold, the pixel area at the preset position in the current video image frame is determined to be the background area, and the difference formula is ,in, The image coordinates of the current frame The pixel value at Background image coordinates The pixel value at is the difference image coordinate The pixel value at, G is the preset threshold, is the foreground image coordinate The pixel value at 255 represents the foreground area and 0 represents the background area. The effect of background modeling affects the moving target detection rate. Preferably, a mixed Gaussian model is used for background modeling. Since the anti-tailgating surveillance camera device is fixed, the video image frame is a static background with high precision. Only one background needs to be extracted, thereby reducing the time required for background modeling and ensuring the efficiency of subsequent algorithm operation.

[0032] Furthermore, feature learning is the core of abnormal event detection. Anomaly detection based on video abnormal events needs to consider the temporal and spatial information of time series images, that is, spatiotemporal features. 3D convolution is a common method for extracting spatiotemporal features of time series images. However, the computational complexity of 3D convolution is high and it is easy to overfit. Therefore, this scheme proposes an improved 2D spatiotemporal feature extraction network, which learns the temporal motion features of time series images through frame difference gradient images and learns the spatial features of time series images through single-frame grayscale images. Furthermore, the feature learning network based on autoencoder adopts an unsupervised training method to avoid training problems caused by unbalanced scene samples. In detail, the autoencoder spatiotemporal feature extraction network is constructed as follows: Preferably, three convolutional autoencoders are constructed to extract spatiotemporal features. The three convolutional autoencoders adopt the same structure. Each of the convolutional autoencoders is composed of three convolutional layers and three maximum pooling layers. Preferably, the decoder is composed of three upsampling layers, three convolutional layers and one output layer, such as Figure 2 As shown, it is a schematic diagram of the self-encoding spatiotemporal feature extraction network of the video anti-tailing method based on abnormal event detection in the above embodiment of the present invention, wherein the autoencoder in the middle of the self-encoding spatiotemporal feature extraction network takes the grayscale image as input to learn the apparent features, and the inputs of the other two autoencoders of the self-encoding spatiotemporal feature extraction network are both gradient images, which respectively learn the front and back motion features, and the gradient image is the difference between the front and back two frames of images, and the formula of the gradient image is , where t is the current time, is the current frame image, is the previous frame of the current frame image, is the next frame after the current frame. is the gradient at time t-1, is the gradient at time t+1. Preferably, the training data of the autoencoder is a video of a preset normal event to learn the spatiotemporal characteristics of a normal moving target. In the anti-tailgating application scenario, a video of a single passenger or no passengers can be used as a training set. In the actual application scenario, a foreground image sequence is input. The foreground image sequence is an anti-tailgating monitoring video image frame obtained through a motion foreground extraction module. Three consecutive frames of images are input into the autoencoder spatiotemporal feature extraction network. The self-supervised model training is performed by reconstructing the loss function. The loss function formula is: , where I is the input motion foreground block, O is the reconstructed image of I output by the decoder, h and w are the height and width of the motion foreground block respectively, and the autoencoder feature extraction module utilizes the trained autoencoder network model, inputs the foreground extraction image sequence, and splices the network intermediate features output by the three autoencoders to obtain the spatiotemporal features. The spatiotemporal features of the present invention contain the time and space information of the time series image.

[0033] The video image sequence is expressed with both temporal and spatial information through the above-mentioned self-encoding spatiotemporal feature extraction network. This feature expression is a high-dimensional feature vector with a dimension of usually 1024 or 2048. There are a large number of zero attribute values ​​in high-dimensional sparse data. These attributes with zero attribute values ​​are redundant attributes. Sparse coding is a representation learning method that aims to represent the input data as few non-zero coefficients as possible through linear combination, that is, each input sample can be composed of a small number of basic elements. Linear combination makes it possible to achieve efficient representation of data, while convolutional neural networks have a strong ability to extract local features and can capture spatial correlation and hierarchical features in images. Therefore, combining sparse coding with convolutional neural networks can make full use of their respective advantages to achieve better feature learning effects. In detail, the steps of sparse combination learning include: using the trained self-encoding spatiotemporal feature extraction network to extract spatiotemporal features from a normal video training set. The spatiotemporal features are represented as , n represents the number of spatiotemporal features in the training set, p represents the dimension of a single feature, represents a p×n-dimensional real vector set, is the nth spatiotemporal feature of the training set. The ultimate goal of training is to find a set of sparse combinations ,in is a sparse combination of k basis vectors, where 1≤i≤k, k is the number of basis vectors, the sparse combination S is unique and each spatiotemporal feature can be formed by linear combination of several basis vectors in sparse combination. The process of sparse combination learning is to find k sparse combinations under reconstruction error t. The sum of reconstruction errors of all training data is t. The formula is ,in, , , express Whether to use For sparse representation, yes right sparse representation of , t is the reconstruction error, is the i-th basis vector in the sparse combination. Furthermore, sparse combination anomaly detection is to learn sparse combinations from training data. , given the test data y, extract the spatiotemporal feature x, and calculate the weighted reconstruction error between the spatiotemporal feature x and each sparse combination. The calculation formula is ,in, is the i-th basis vector in the sparse combination, for The weighted reconstruction error is is the updated weight, yes A sparse representation of x, where , if exists If the event threshold value T is less than the event threshold value T, the spatiotemporal feature x is normal. is greater than or equal to the event threshold T, the spatiotemporal feature x is abnormal, the video anti-tailing method based on abnormal event detection performs a tailing alarm and informs the user. ,in, is the preset update threshold, the weight is updated, wherein the event threshold T is the preset threshold for triggering a tailgating alarm, wherein the value interval of T is any value in (0,1).

[0034] Furthermore, the self-updating sparse combination anomaly detection module performs the following operations. Considering that there are many types of normal events in the anti-tailing surveillance video, the offline training combination does not express the type of the current event well. Therefore, the sparse combination anomaly detection is improved by introducing a self-updating weight strategy, such as Figure 3 As shown, it is a flow chart of the self-updating sparse combination anomaly detection of the video anti-tailing method based on abnormal event detection of the above embodiment of the present invention. First, a weight w is preset for each sparse combination basis vector to form a weight matrix, wherein each weight w represents the activity of the corresponding sparse combination basis vector, and the weight matrix is ​​updated in real time during continuous detection, so that the current sparse combination can better express the normal event currently occurring. In detail, after the sparse combination is pre-trained, the i-th basis vector in the sparse combination is Set an initial activity level , For all spatiotemporal features statistics The total number of To express Whether to use sparse representation, where , the i-th basis vector The weight of The higher the value, the greater the importance of the basis vector. The weights are initialized, and the initialization formula is ,in, is the initialization weight, n represents the number of spatiotemporal features in the training set, For statistics The total number of initializations.

[0035] In the inference phase, the reconstruction error is selected to be less than the update threshold The weights are updated by samples, given the spatiotemporal features , calculate the weighted reconstruction error of sparse combination, the formula is ,in, is the i-th basis vector in the sparse combination, for The weighted reconstruction error is is the updated weight, yes A sparse representation of x, where , if exists If the event threshold value T is less than the event threshold value T, the spatiotemporal feature x is normal. If x is greater than or equal to the event threshold T, the spatiotemporal feature x is abnormal. ,in, is the preset update threshold, the weight is updated, and the weight update formula is: ,in, is the weighted reconstruction error of the spatiotemporal feature x and the ith basis vector of the sparse combination, represents the minimum value of the weighted reconstruction error between the spatiotemporal feature x and the k basis vectors in the sparse combination, Represents basis vectors Initial activity The value after t updates, express The value after t+1 updates, Represents basis vectors Weight The weight after t+1 updates is: is the sum of the activities of k basis vectors after t+1 updates.

Claims

1. A video anti-tailing method based on abnormal event detection, It is characterized in that include: Step A: extract the area to be detected in the anti-tailing surveillance video image frame, set the area in the channel of the application scenario as the area to be detected, and then remove the background area; Step B: Taking feature learning as the core of abnormal event detection, a self-encoding spatiotemporal feature extraction network is constructed, and a foreground image sequence is input. The foreground image sequence is obtained by the motion foreground extraction module of the anti-tailing monitoring video image frame. Three consecutive frames of images are input to the self-encoding spatiotemporal feature extraction network, and the self-supervised model training is performed by reconstructing the loss function. The self-encoding spatiotemporal feature extraction network is to construct three convolutional autoencoders to extract spatiotemporal features. The three convolutional autoencoders adopt the same structure. Each of the convolutional autoencoders is composed of three convolutional layers and three maximum pooling layers. The autoencoder in the middle uses the grayscale image as input to learn the apparent features. The inputs of the other two autoencoders of the self-encoding spatiotemporal feature extraction network are both gradient maps, which respectively learn the front and back motion features. The gradient map is the difference between the two frames of images before and after. The formula of the gradient map is , where t is the current time, is the current frame image, is the previous frame of the current frame image, is the next frame after the current frame. is the gradient at time t-1, is the gradient at time t+1. The training data of the autoencoder is the video of preset normal events. The spatiotemporal characteristics of normal moving targets are learned. In the anti-tailgating application scenario, a video of a single passenger or no passengers can be used as a training set. In the actual application scenario, a foreground image sequence is input. The foreground image sequence is the anti-tailgating monitoring video image frame obtained by the motion foreground extraction module. Three consecutive frames of images are input to the autoencoder spatiotemporal feature extraction network. The self-supervised model training is performed by reconstructing the loss function. The loss function formula is: , Wherein, I is the input motion foreground block, O is the reconstructed image of I output by the decoder, h and w are the height and width of the motion foreground block respectively, and the autoencoder feature extraction module uses the trained autoencoder network model to input the foreground image sequence, and splices the network intermediate features output by the three autoencoders to obtain the spatiotemporal features; Step C: Self-updating sparse combination anomaly detection is to learn sparse combinations from training data ,in, are k basis vectors of sparse combination. Given test data y, extract spatiotemporal feature x, calculate the weighted reconstruction error between spatiotemporal feature x and each sparse combination. If there is a reconstruction error less than the event threshold T, the spatiotemporal feature x is normal. If there is a weighted reconstruction error greater than or equal to the event threshold T, the spatiotemporal feature x is abnormal. The video anti-tailing method based on abnormal event detection performs a tailing alarm and informs the user. The weighted reconstruction error formula is: ,in, is the i-th basis vector in the sparse combination, for The weighted reconstruction error of is the updated weight, yes A sparse representation of x, where , if exists If the event threshold value T is less than the event threshold value T, the spatiotemporal feature x is normal. is greater than or equal to the event threshold T, the spatiotemporal feature x is abnormal, the video anti-tailing method based on abnormal event detection performs a tailing alarm and informs the user. ,in, is the preset update threshold, the weight is updated, where the event threshold T is the preset threshold for triggering the tailing alarm, where the value interval of T is any value in (0,1), and after the sparse combination is pre-trained, it is the i-th basis vector in the sparse combination Set an initial activity level , For all spatiotemporal features statistics The total number of To express Whether to use sparse representation, where , the i-th basis vector The weight of The higher the value, the greater the importance of the basis vector. The weights are initialized, and the initialization formula is ,in, is the initialization weight, n represents the number of spatiotemporal features in the training set, For statistics The total number of initializations.

2. The video anti-tailing method according to claim 1, It is characterized in that The step C includes sub-steps: treating the process of a single passenger passing through the detection area as a normal event, and treating the process of two or more people following into the detection area as an abnormal event; when a single person passes, it is treated as a normal event and the permission state is maintained; when two or more people pass, it is treated as an abnormal event and an alarm action is performed.

3. The video anti-tailing method according to claim 1, It is characterized in that The step A includes the sub-steps of: using the foreground target extraction method background subtraction method to differentiate the current video image frame from the background model; if the pixel of the subtraction result is greater than a preset threshold, the preset position pixel area in the current video image frame is determined to be the foreground area.

4. The video anti-tailing method according to claim 3, It is characterized in that The step A comprises the sub-steps of: the coordinates of the preset position are , if the pixel of the subtraction result is less than or equal to the preset threshold, the pixel area at the preset position in the current video image frame is determined to be the background area, and the difference formula is ,in, The image coordinates of the current frame The pixel value at Background image coordinates The pixel value at is the difference image coordinate The pixel value at , T is the preset threshold, is the foreground image coordinate The pixel value at , 255 represents the foreground area and 0 represents the background area.

5. The video anti-tailing method according to claim 4, It is characterized in that The step A comprises the sub-steps of: receiving anti-tailing monitoring video information, and performing anti-tailing detection using a convolutional autoencoder centered on a motion foreground block and a self-updating sparse combination learning algorithm.

6. The video anti-tailing method according to claim 1, It is characterized in that The step B includes sub-steps: the decoder is composed of 3 upsampling layers, 3 convolutional layers and 1 output layer.

Citation Information

Patent Citations

  • Detection method for abnormal behavior in video based on key region feature learning

    CN107766823A

  • Multi-region variable-scale 3D-HOF based surveillance video anomaly detection method

    CN107967440A

  • Video monitoring abnormal event detection method and system, equipment and storage medium

    CN112380915A

  • Anomaly detection using machine learning models and similarity regularization

    US20220398503A1