User behavior monitoring method and device based on video image
Through deep neural network combined with video image monitoring, real-time monitoring and abnormal behavior detection in ATM scenarios are realized, which solves the problems of poor real-time performance and insufficient accuracy of monitoring systems in the existing technology, and improves the real-time performance and automation of ATM user behavior detection. .
Patent Information
- Application Number
- CN202410778334.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-09-06
AI Technical Summary
The existing ATM monitoring system has poor real-time performance and cannot provide timely warnings. Subsequent verification requires a lot of manpower and material resources, and the accuracy of intelligent security detection is poor. Mainly due to complex algorithm parameters and insufficient computing power of hardware chips, it cannot meet real-time efficiency requirements.
A video image monitoring method based on deep neural networks is used to integrate human body area detection and posture estimation. Through target detection, key point detection and spatio-temporal graph convolution network algorithms, user behavior types are generated to improve the real-time performance and automation of monitoring.
It achieves real-time monitoring and abnormal behavior detection accuracy in ATM scenarios, reduces manual intervention, and improves user property security and the bank's image.
Smart Images

Figure CN118609027A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, in particular to the field of artificial intelligence technology, and more particularly to a method and device for monitoring user behavior based on video images. Background Art
[0002] Automated teller machines (ATMs) are the most common touchpoints for users to conduct financial activities such as deposits, withdrawals, and transfers. However, unlike branches, ATMs lack staff monitoring and users have relatively strong autonomy in operation. While convenient, they also pose many hidden dangers to property safety. At present, the bank's ATM monitoring system has poor real-time performance, cannot provide timely warnings, and requires a lot of manpower, material resources, and time for subsequent verification. In related technologies, the algorithm parameters for achieving real-time monitoring are relatively large and the calculations are complex. The hardware chip computing power of intelligent security monitoring is low, and the algorithm model with more parameters cannot achieve real-time efficiency. At the same time, ordinary human posture classification cannot meet the requirements of intelligent security detection, and more customized danger classification warnings are required. Excessive reliance on manual work leads to poor accuracy in abnormal behavior detection. Summary of the invention
[0003] One object of the present invention is to provide a user behavior monitoring method based on video images, which monitors video images in real time based on a deep neural network, integrates human region detection and human posture estimation, and can use time series information to better identify human movements, improve the real-time and automation of monitoring, and thus improve the accuracy of abnormal behavior detection. Another object of the present invention is to provide a user behavior monitoring device based on video images. Another object of the present invention is to provide a computer-readable medium. Another object of the present invention is to provide a computer device.
[0004] In order to achieve the above objectives, the present invention discloses a method for monitoring user behavior based on video images, comprising:
[0005] Acquire multiple frames of video images;
[0006] Through the target detection algorithm, target detection is performed on multiple frames of video images to generate human body areas;
[0007] Through the key point detection algorithm, the key point information of the human body is generated according to the human body area;
[0008] Through the spatiotemporal graph convolutional network algorithm, human posture recognition is performed on the key point information of the human body corresponding to multiple frames of video images to generate user behavior types.
[0009] Preferably, target detection is performed on multiple frames of video images by a target detection algorithm to generate a human body region, including:
[0010] Performing image scaling on each frame of the video image to generate a scaled video image;
[0011] Perform adaptive anchor frame calculation based on each frame of video image to generate the best anchor frame value;
[0012] Through the target detection algorithm, according to the optimal anchor frame value, the scaled video image is subjected to target detection to generate the human body area.
[0013] Preferably, before generating the human body key point information according to the human body region by using the key point detection algorithm, the method further comprises:
[0014] Through the target tracking algorithm, according to the human body area of the current frame video image, the human body area of the target user indicated by the human body area in the next frame video image is predicted.
[0015] Preferably, the target tracking algorithm is used to predict the human body region of the target user in the next frame of the video image according to the human body region of the current frame of the video image, including:
[0016] Through the Kalman filter, the position of the target user in the next frame of the video image is predicted based on the human body area in the current frame of the video image, and the candidate position area of the target user in the next frame of the video image is obtained;
[0017] Through cascade matching, the human body region of the target user is matched with the candidate position region to generate the human body region of the target user in the next frame of the video image.
[0018] Preferably, the key point detection algorithm is used to generate the key point information of the human body according to the human body area, including:
[0019] Extract features from human body regions and generate feature maps;
[0020] Through the joint convolutional neural network and the limb convolutional neural network, convolution calculation is performed according to the feature map to generate the key point information of the human body.
[0021] Preferably, the human body key point information corresponding to multiple frames of video images is subjected to human body posture recognition by using a spatiotemporal graph convolutional network algorithm to generate user behavior types, including:
[0022] Construct a target spatiotemporal graph based on the human body key point information corresponding to multiple frames of video images;
[0023] Extract features from the target spatiotemporal graph to generate a target feature graph;
[0024] Through the classifier, human posture recognition is performed according to the target feature map to generate the user behavior type.
[0025] Preferably, after performing human posture recognition on human key point information corresponding to multiple frames of video images by using a spatiotemporal graph convolutional network algorithm and generating user behavior types, the method further includes:
[0026] Determine whether the preset abnormal behavior type includes the user behavior type;
[0027] If so, send an abnormal behavior warning message.
[0028] The present invention also discloses a user behavior monitoring device based on video images, comprising:
[0029] An acquisition unit, used for acquiring multiple frames of video images;
[0030] The target detection unit is used to perform target detection on multiple frames of video images through a target detection algorithm to generate a human body area;
[0031] A key point detection unit, used to generate key point information of a human body according to a human body region through a key point detection algorithm;
[0032] The posture recognition unit is used to perform human posture recognition on the human key point information corresponding to multiple frames of video images through the spatiotemporal graph convolutional network algorithm to generate user behavior types.
[0033] The present invention also discloses a computer-readable medium on which a computer program is stored. When the program is executed by a processor, the method described above is implemented.
[0034] The present invention also discloses a computer device, including a memory and a processor, wherein the memory is used to store information including program instructions, the processor is used to control the execution of program instructions, and the processor implements the above method when executing the program.
[0035] The present invention also discloses a computer program product, including a computer program / instruction, and the method described above is implemented when the computer program / instruction is executed by a processor.
[0036] The present invention acquires multiple frames of video images; performs target detection on the multiple frames of video images through a target detection algorithm to generate human body regions; generates human body key point information according to the human body regions through a key point detection algorithm; performs human body posture recognition on the human body key point information corresponding to the multiple frames of video images through a spatiotemporal graph convolutional network algorithm to generate user behavior types, performs real-time monitoring of video images based on a deep neural network, integrates human body region detection and human body posture estimation, can utilize time series information to better identify human body movements, improve the real-time and automation level of monitoring, and thus enhance the accuracy of abnormal behavior detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0038] Figure 1 A flowchart of a method for monitoring user behavior based on video images provided by an embodiment of the present invention;
[0039] Figure 2 A flowchart of another method for monitoring user behavior based on video images provided by an embodiment of the present invention;
[0040] Figure 3 A schematic diagram of the structure of a user behavior monitoring device based on video images provided by an embodiment of the present invention;
[0041] Figure 4 A schematic diagram of the structure of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0042] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0043] It should be noted that the user behavior monitoring method and device based on video images disclosed in the present application can be used in the field of artificial intelligence technology, and can also be used in any field outside the field of artificial intelligence technology. The application field of the user behavior monitoring method and device based on video images disclosed in the present application is not limited.
[0044] In order to facilitate the understanding of the technical solution provided by the present application, the relevant contents of the technical solution of the present application are first explained below. Remote real-time monitoring based on video is generally divided into two steps: human body area detection and human body posture estimation. Among them, human body area detection occupies more computing resources, because human body area detection is the first step of the entire monitoring system. It first inputs the image captured by the camera into the detection algorithm, analyzes the original image in real time, and divides the human body area. With the development of deep learning technology, the computing performance of the algorithm model of target detection continues to improve, and the target detection algorithm is introduced into the field of video surveillance for real-time calculation. Similarly, with the continuous breakthroughs in deep learning and related research on machine vision technology, the effect of human body posture estimation is also gradually improving, which makes its recognition accuracy against complex environments and when dealing with overlapping situations of multiple people continue to improve.
[0045] The present application can provide a real-time monitoring and early warning method for bank automated teller machines (ATMs), which can conduct real-time analysis and early warning, and quickly locate and investigate afterwards, thereby improving the security of users when performing financial activities such as deposits and withdrawals at ATMs, protecting users' property safety, and enhancing the image of banks.
[0046] Since human posture involves user privacy information, the user's human posture collected by the ATM monitoring system needs to be analyzed on the basis of the user signing a relevant agreement. When a user enters the monitoring range, the bank branch needs to have a clear text prompt to make it clear that the user has entered the monitoring range, and the relevant behavior will be used for subsequent monitoring analysis.
[0047] The following takes a user behavior monitoring device based on video images as an example of an implementation subject to illustrate the implementation process of the user behavior monitoring method based on video images provided by an embodiment of the present invention. It is understandable that the implementation subject of the user behavior monitoring method based on video images provided by an embodiment of the present invention includes but is not limited to a user behavior monitoring device based on video images.
[0048] Figure 1 A flowchart of a method for monitoring user behavior based on video images provided by an embodiment of the present invention is shown in FIG. Figure 1 As shown, the method includes:
[0049] Step 101: Acquire multiple frames of video images.
[0050] Step 102: Perform target detection on multiple video frames through a target detection algorithm to generate a human body region.
[0051] Step 103: Generate human body key point information according to the human body area through a key point detection algorithm.
[0052] In the embodiment of the present invention, the key point detection algorithm is the Openpose key point detection algorithm, which is a method for human posture estimation based on detection using a convolutional neural network, and uses a probability distribution graph to represent the possible positions of key points of the human body. Figure 1 It is generally called a heat map. Specifically, a probability estimate is performed on each pixel point in the human body area to estimate the probability that each pixel point may be a key point of the human body. The more likely the pixel point is to be a real key point of the human body, the greater its probability, and vice versa.
[0053] Step 104: Use the spatiotemporal graph convolutional network algorithm to perform human posture recognition on the human key point information corresponding to the multi-frame video images to generate the user behavior type.
[0054] In the technical solution provided by the embodiment of the present invention, multiple frames of video images are obtained; target detection is performed on the multiple frames of video images through a target detection algorithm to generate human body regions; human body key point information is generated according to the human body regions through a key point detection algorithm; human body posture recognition is performed on the human body key point information corresponding to the multiple frames of video images through a spatiotemporal graph convolutional network algorithm to generate user behavior types, and video images are monitored in real time based on a deep neural network, human body region detection and human body posture estimation are integrated, and time series information can be used to better identify human body movements, improve the real-time and automation level of monitoring, and thus improve the accuracy of abnormal behavior detection.
[0055] Figure 2 A flowchart of another method for monitoring user behavior based on video images provided by an embodiment of the present invention is shown in FIG. Figure 2 As shown, the method includes:
[0056] Step 201: Acquire multiple frames of video images.
[0057] In the embodiment of the present invention, each step is performed by a user behavior monitoring device based on video images.
[0058] In the embodiment of the present invention, the video image is a video image collected by a monitoring system in an ATM scene. Specifically, the acquired video image is input frame by frame into a subsequent algorithm model for processing.
[0059] Step 202: Perform image scaling on each frame of the video image to generate a scaled video image.
[0060] In the embodiment of the present invention, the target detection algorithm used for human region detection is the Yolov5 algorithm, and the input end of Yolov5 includes an image size scaling method. Specifically, through the image size scaling technology, each frame of video image is scaled to a preset size to provide a training speed for the algorithm model.
[0061] It is worth noting that the preset size can be set according to actual needs, and the embodiment of the present invention does not limit this.
[0062] Step 203: perform adaptive anchor frame calculation based on each frame of video image to generate an optimal anchor frame value.
[0063] In the embodiment of the present invention, the target detection algorithm used for human region detection is the Yolov5 algorithm, and the input end of Yolov5 includes an adaptive anchor frame calculation method. Specifically, through the adaptive anchor frame calculation method, adaptive anchor frame calculation is performed on each frame of video image to generate the optimal anchor frame value, which enhances the robustness and stability of the algorithm, makes YOLOv5 more flexible and efficient in the selection of anchor frames, and allows the network to automatically learn and adjust the size and shape of the anchor frame during the training process to better adapt to specific data sets and tasks.
[0064] Step 204: Perform target detection on the scaled video image using a target detection algorithm according to the optimal anchor frame value to generate a human body region.
[0065] In an embodiment of the present invention, the target detection algorithm is the Yolov5 algorithm, which directly observes the entire image during the whole process. The main idea is to treat target detection as a regression prediction problem that can directly obtain bounding boxes and categories from image features. After the image features are extracted by the convolutional neural network, feature fusion is performed, and the prediction layer performs classification and regression according to the image features to obtain the target bounding box and confidence. The main feature extraction network of Yolov5 uses the CSPNet network structure, specifically the CSP1_X network and the CSP2_X network. In the CSP1_X structure in the main feature extraction network, the Resnet residual structure is feature-fused with the shallow features, which not only deepens the network structure, but also has good optimization for the gradient information of the deep network. In the feature processing layer Neck, the CSP2_X structure does not use the residual structure, and the ordinary CBL convolution layer replaces the Resnet layer.
[0066] Specifically, the scaled video image is input into the Yolov5 algorithm, target detection is performed on the scaled video image according to the optimal anchor frame value, and the detected human body area is output.
[0067] Step 205 : using a target tracking algorithm, based on the human body region of the current frame video image, predict the human body region of the target user indicated by the human body region in the next frame video image.
[0068] In the embodiment of the present invention, the target tracking algorithm is a Deepsort algorithm, which predicts the current target based on the human body area already detected by the target detection algorithm. It has a certain filtering effect, can improve the accuracy of human body detection, and has the function of locating and tracking mutually occluded and overlapping human bodies.
[0069] In the embodiment of the present invention, step 205 specifically includes:
[0070] Step 2051: Use a Kalman filter to perform position prediction based on the human body area in the current frame video image to obtain a candidate position area of the target user in the next frame video image.
[0071] In the embodiment of the present invention, in the tracking trajectory processing, for each tracking target k, the Deepsort algorithm calculates the number of frames from the last successful match to the current frame as a k , when the Kalman filter predicts the target, a k It will keep counting until the target is successfully matched through the matching algorithm. k will be reset to 0; the maximum value A is preset at the same time max When the count exceeds the preset maximum value, it means that the tracking target has been lost and the corresponding parameter a is deleted. k If the target predicted by the Kalman filter cannot match the currently detected target, the Kalman filter prediction will be initialized, and the new track obtained by the preset first 3 frames will be marked as "temporary". If the continuous matching is successful, it is considered that a new track has been generated and marked as "confirmed"; if it is unsuccessful, it will be marked as "deleted".
[0072] In the DeepSort algorithm, the Kalman filter is used to predict and update the state of the target. When the target is detected, the observation value will be input into the Kalman filter for state update; when the target is temporarily lost or not detected, the Kalman filter will predict the candidate location area of the target at the current moment based on the previous state estimation and model prediction. In this way, the DeepSort algorithm can achieve continuous tracking of multiple targets and maintain good tracking performance in complex situations such as occlusion and intersection of targets.
[0073] Step 2052: Match the human body region of the target user with the candidate position region through cascade matching to generate the human body region of the target user in the next frame of the video image.
[0074] In the embodiment of the present invention, the Deepsort algorithm integrates motion features and target appearance features in the allocation problem. In merging motion information, the square formula of the Mahalanobis distance is used, and the specific formula is as follows:
[0075]
[0076] Among them, d (1) (i,j) is the Mahalanobis distance between the i-th track and the j-th detected human body region, (y i ,S i ) is the projection of the ith trajectory distribution to the measurement space, d j is the jth detected human body region, y j is the distribution of the ith trajectory.
[0077] In principle, the Mahalanobis distance evaluates the uncertainty of the state estimate by detecting how many standard deviations are away from the average track position. In order to further enable this formula to exclude irrelevant associated targets, the Deepsort algorithm uses a thresholding process, thresholding the Mahalanobis distance within a 95% confidence interval, and using the inverse x 2 The distribution is calculated and the specific formula is as follows:
[0078]
[0079] in, is the correlation between the i-th track and the j-th detected human region, d (1) (i,j) is the Mahalanobis distance between the i-th track and the j-th detected human body region, t (1) is to set the threshold. As an alternative, t (1) is 9.4877. Specifically, when the i-th track is associated with the j-th detected human region, The value of is 1.
[0080] When the uncertainty of motion is very low, the Mahalanobis distance is a suitable measure of association. However, the predicted state distribution formulated in the image space is only a rough estimate of the target position provided by the Kalman filter. Especially in an environment where the camera moves rapidly in the horizontal direction of the image, the association of the target will decrease rapidly or even disappear for a long time. The Mahalanobis distance measurement is inaccurate. When this happens, the Deepsort algorithm uses a second association measure. For each detected human region target box d j Find its eigenvector r i , where ||r i ||=1. At the same time, a feature set is also established for each tracking trajectory k, which is associated with the last 100 times. Among them, L k is 100, and then the minimum cosine distance between the i-th tracking trajectory and the j-th detection target in the feature space is calculated. The specific formula is as follows:
[0081]
[0082] Among them, d (2) (i, j) is the minimum cosine distance between the i-th tracking trajectory and the j-th detection target in the feature space, is the transpose of the feature vector of the jth detected target, is the feature vector of the tracking trajectory k, R k is the feature set.
[0083] The same operation introduces binary threshold processing when Kalman prediction is associated with the detection target. The specific formula is as follows:
[0084]
[0085] in, is the correlation between the i-th candidate location area and the j-th detection target, d (2) (i, j) is the minimum cosine distance between the i-th tracking trajectory and the j-th detection target in the feature space, t (2) is to set the threshold. It is worth noting that t (2) The Deepsort algorithm uses a convolutional neural network to generate appearance features and selects appropriate values on the pre-training set. Specifically, when the i-th candidate location area is associated with the j-th detection target, then The value of is 1.
[0086] In general, the two different metrics solve different problems. In the Mahalanobis distance metric, it has a better effect on short-term prediction and matching based on motion information, while the cosine distance focuses on the target appearance features and solves the matching problem under long-term occlusion. The final correlation problem is the linear weighting of the two metrics as the final metric. The Deepsort algorithm determines whether the correlation depends on whether the metric value is in both t (1) and t (2) The specific formula is:
[0087] c i,j =γd (1) (i,j)+(1-γ)d (2) (i,j)
[0088] Among them, d (1) (i,j) is the Mahalanobis distance between the i-th track and the j-th detected human body region, d (2) (i, j) is the minimum cosine distance between the ith tracking trajectory and the jth detection target in the feature space, c i,j is the final target correlation, and γ is the setting parameter.
[0089] In the matching stage, Deepsort introduces a cascade matching method, mainly to ensure that the most recently appeared target is given priority in matching. When the target is occluded for a long time, the trajectory predicted by the Kalman filter will be less accurate in its relevance to the target. If two trajectories match a target at the same time, and one of the trajectories has not updated its position information for a long time due to occlusion, the uncertainty of the predicted position will increase greatly, resulting in an increase in covariance, which will cause the Mahalanobis distance to decrease, and the target will be mistakenly associated with the trajectory with a longer occlusion time. Therefore, in order to associate the result with the trajectory with a shorter occlusion time, that is, the most recently appeared target is given priority, ensuring that the most recently unmatched target is associated first. Finally, in the matching stage, the "unconfirmed" set is associated with the unmatched trajectory when the traversal stage a=1 is added as in the SORT algorithm, so that it has a certain robustness when the image target features suddenly change.
[0090] Step 206: extract features from the human body region and generate a feature map.
[0091] In an embodiment of the present invention, the input human body area is initialized and fine-tuned on the first ten layers of the deep convolutional neural network model (VGG19), and better image features can be learned with deeper convolution layers, and then a set of feature maps F are generated.
[0092] Step 207: Perform convolution calculations based on feature maps through the joint convolution neural network and the limb convolution neural network to generate human body key point information.
[0093] In the embodiment of the present invention, the entire network model is divided into two branches: the upper branch predicts the confidence map of the human joint points, and the lower branch predicts the partial affinity field of the limbs. In the actual operation process, the upper and lower branches make predictions at the same time, and each branch must perform multiple stages of iteration to continuously improve the prediction accuracy. The first stage of the network generates a set of confidence maps S'=p'(F) of human joint points and a set of partial affinity fields L'=φ'(F) of limbs. These two outputs will be input to the next stage of the network, where F is a feature map, p' is a joint point convolutional neural network used to detect joint points in the first stage, and φ' is a limb convolutional neural network used to detect limbs in the first stage. With the continuous advancement of each stage, in each stage after the first stage, the network will connect the prediction results output by the upper and lower branches of the previous stage with the original image feature map F, and input them to the next stage, generating more accurate predictions than the previous stage in each stage.
[0094] In an embodiment of the present invention, through greedy reasoning, the joint point convolutional neural network and the limb convolutional neural network will parse the output results of the upper and lower parts, and output the human body key point information through a series of relaxation strategies. The human body key point information includes all human body key points detected in the image and the correct limb connection combination.
[0095] Step 208: construct a target spatiotemporal graph based on the human body key point information corresponding to the multiple frames of video images.
[0096] In an embodiment of the present invention, human posture recognition is performed through a spatiotemporal graph convolutional neural network (ST-GCN). The ST-GCN algorithm can automatically label key points of the human body, and at the same time use the key point information obtained by deep learning using human feature information. It can utilize the relationship between skeletal connections in space and the changes in key points of the human body in a time series, and has a better recognition rate in the human posture recognition stage.
[0097] The spatiotemporal graph convolution is based on the idea of image convolutional neural network (CNN), which transfers low-level feature information to high-level feature maps step by step. In image convolutional neural networks, feature information is transmitted through convolution kernels, which divide the pixel set adjacent to the central pixel in the image in spatial order. Taking the 3X3 convolution operation as an example, the central pixel of the original image and the 8 neighborhoods near the center are divided into 9 subsets. In the image, the subsets are just pixel values, and the number of parameters of the convolution kernel is also 9, and each parameter has the same length as the feature vector of the feature map. From this perspective, if a partitioning strategy is formulated for spatiotemporal graph convolution to divide reasonable subsets, feature information can also be propagated like image convolutional neural networks.
[0098] In the embodiment of the present invention, the human key points in the human key point information are set as the graph nodes N in the target space-time graph; the human key points in each frame image are connected to each other in the natural skeleton state of the human body, and then the same key points are connected in the continuous frames, and the connection edges E between the graph nodes in the target space-time graph are determined based on the limb connection combination and time sequence of the skeleton relationship in space, that is: an undirected target space-time graph G = (V, E) is constructed in a skeleton sequence with N human key points and T frames. The space-time graph G can connect the spatial skeleton inside the body with the features in the continuous frames.
[0099] It is worth noting that the spatiotemporal graph is automatically constructed by the network without human intervention, which makes the algorithm universal. For example, the number of key point types in the open source coco dataset is 18, while the number of key point types in the open source MPII dataset is 15. Datasets with different types or different numbers of key points can be directly applied in the ST-GCN algorithm.
[0100] Step 209: extract features from the target spatiotemporal graph to generate a target feature graph.
[0101] In the embodiment of the present invention, in the target spatiotemporal graph, all node sets V are set to {v ti |t=1…T,i=1…N} contains all the key points of the human body in this skeleton sequence. The target spatiotemporal graph is feature extracted to generate a target feature graph, where the node F(v ti ) contains the coordinate vector of the i-th human key point in the t-th frame and the confidence of the human key point.
[0102] Step 210: Using a classifier, human body posture recognition is performed based on the target feature graph to generate a user behavior type.
[0103] In the embodiment of the present invention, the ST-GCN algorithm inputs the high-level target feature map generated by the data in the multi-layer spatiotemporal graph convolution, and the final classification stage uses a standard softmax classifier to identify the user behavior type of the human body posture.
[0104] Furthermore, the identified user behavior type is synchronously saved to the network for subsequent verification.
[0105] In the embodiment of the present invention, the ST-GCN algorithm is an end-to-end network in the overall training process and has high timeliness.
[0106] Step 211, determine whether the preset abnormal behavior type includes the user behavior type, if so, execute step 212; if not, execute step 201.
[0107] In the embodiment of the present invention, the abnormal behavior type may be the abnormal behavior type indicated by the key point in the imported open source data set. If the abnormal behavior type includes the user behavior type, it indicates that the abnormal behavior is identified, and step 212 is continued; if the abnormal behavior type does not include the user behavior type, it indicates that the abnormal behavior is not identified, and step 201 is continued for real-time monitoring.
[0108] Step 212: Send an abnormal behavior warning message.
[0109] In the embodiment of the present invention, if abnormal behavior is identified, an abnormal behavior warning message is sent to remind relevant staff to pay special attention. During subsequent verification, they can also conduct focused investigation based on these abnormal warning information to improve the investigation efficiency.
[0110] As an optional solution, the scenarios for abnormal behavior warning include but are not limited to the following:
[0111] 1. Line crossing warning: When it is detected that the user in the queue behind has crossed the yellow line, the staff will be reminded to pay attention. At this time, further analysis is required to determine whether there is any password peeping, or whether the user is threatened by a criminal suspect to withdraw money.
[0112] 2. Fighting warning: When fighting or other abnormal behaviors occur within the monitoring range, the system will remind the staff to stop it in time.
[0113] 3. Timeout warning: When the same user operates in front of the ATM for too long (for example, more than 10 minutes), the system will remind the staff to pay attention. At this time, it is necessary to further determine whether the user has abnormal behavior or whether there is any difficulty in operation that requires help.
[0114] In the embodiment of the present invention, the ST-GCN spatiotemporal convolutional neural network is introduced to perform human posture recognition, and the current action is classified according to the key point information of the previous N frames, so that the time series information can be used to better recognize human actions. As an optional solution, the value of N is 30.
[0115] The user behavior monitoring method based on video images designed by the present invention improves the accuracy of the algorithm, reduces the operating resources required for the model, makes better use of the spatiotemporal information of video monitoring, can be run on detection equipment with low resolution and less computing resources, and the time-series video frame-assisted detection has high robustness. It can classify and warn of abnormal human behavior within the monitoring range of bank self-service ATM machines, improve the safety of users in financial activities such as deposits and withdrawals at ATM machines, protect the property safety of users, and enhance the image of banks.
[0116] It is worth noting that the acquisition, storage, use, and processing of data in the technical solution of this application are in compliance with the relevant provisions of laws and regulations. The user information in the embodiments of this application is obtained through legal and compliant channels, and the acquisition, storage, use, and processing of user information are authorized and agreed by the user.
[0117] It is worth noting that the information collected in this application is information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of relevant data comply with the relevant laws, regulations and standards of relevant countries and regions, take necessary confidentiality measures, do not violate public order and good customs, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0118] It is worth noting that the technical solution provided in this application provides users with corresponding operation entrances for them to choose to agree or reject the automated decision-making results; if the user chooses to reject, the expert decision-making process will be entered.
[0119] In the technical solution of the user behavior monitoring method based on video images provided by the embodiment of the present invention, multiple frames of video images are obtained; target detection is performed on the multiple frames of video images through a target detection algorithm to generate human body regions; human body key point information is generated according to the human body regions through a key point detection algorithm; human body posture recognition is performed on the human body key point information corresponding to the multiple frames of video images through a spatiotemporal graph convolutional network algorithm to generate user behavior types, and video images are monitored in real time based on a deep neural network, human body region detection and human body posture estimation are integrated, and time series information can be used to better identify human movements, improve the real-time and automation level of monitoring, and thus improve the accuracy of abnormal behavior detection.
[0120] Figure 3 Schematic diagram of the structure of a video image-based user behavior monitoring device provided by an embodiment of the present invention, the device is used to execute the above-mentioned video image-based user behavior monitoring method, such as Figure 3 As shown, the device includes: an acquisition unit 11, a target detection unit 12, a key point detection unit 13 and a posture recognition unit 14.
[0121] The acquisition unit 11 is used to acquire multiple frames of video images.
[0122] The target detection unit 12 is used to perform target detection on multiple frames of video images through a target detection algorithm to generate a human body region.
[0123] The key point detection unit 13 is used to generate human body key point information according to the human body region through a key point detection algorithm.
[0124] The posture recognition unit 14 is used to perform human posture recognition on human key point information corresponding to multiple frames of video images through a spatiotemporal graph convolutional network algorithm to generate a user behavior type.
[0125] In an embodiment of the present invention, the target detection unit 12 is specifically used to perform image scaling on each frame of video image to generate a scaled video image; perform adaptive anchor frame calculation based on each frame of video image to generate an optimal anchor frame value; and perform target detection on the scaled video image according to the optimal anchor frame value through a target detection algorithm to generate a human body area.
[0126] In the embodiment of the present invention, the device further includes: a target tracking unit 15.
[0127] The target tracking unit 15 is used to predict the human body region of the target user indicated by the human body region in the next frame of the video image according to the human body region of the current frame of the video image through a target tracking algorithm.
[0128] In an embodiment of the present invention, the target tracking unit 15 is specifically used to perform position prediction based on the human body area of the current frame video image through a Kalman filter to obtain a candidate position area of the target user in the video image of the next frame; through cascade matching, the human body area of the target user is matched with the candidate position area to generate the human body area of the target user in the video image of the next frame.
[0129] In the embodiment of the present invention, the key point detection unit 13 is specifically used to extract features of the human body area and generate a feature map; through the joint point convolution neural network and the limb convolution neural network, convolution calculation is performed according to the feature map to generate human body key point information.
[0130] In the embodiment of the present invention, the posture recognition unit 14 is specifically used to construct a target space-time graph based on the human body key point information corresponding to multiple frames of video images; perform feature extraction on the target space-time graph to generate a target feature graph; and perform human body posture recognition based on the target feature graph through a classifier to generate a user behavior type.
[0131] In the embodiment of the present invention, the device further includes: a judgment unit 16 and an early warning unit 17 .
[0132] The judging unit 16 is used to judge whether the preset abnormal behavior type includes the user behavior type.
[0133] The warning unit 17 is used to send an abnormal behavior warning message if yes.
[0134] In the scheme of the embodiment of the present invention, multiple frames of video images are acquired; target detection is performed on the multiple frames of video images through a target detection algorithm to generate human body regions; human body key point information is generated based on the human body regions through a key point detection algorithm; human body posture recognition is performed on the human body key point information corresponding to the multiple frames of video images through a spatiotemporal graph convolutional network algorithm to generate user behavior types, and video images are monitored in real time based on a deep neural network, human body region detection and human body posture estimation are integrated, and time series information can be used to better identify human body movements, improve the real-time and automation level of monitoring, and thus improve the accuracy of abnormal behavior detection.
[0135] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer device, and specifically, the computer device may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.
[0136] An embodiment of the present invention provides a computer device, including a memory and a processor, the memory is used to store information including program instructions, the processor is used to control the execution of the program instructions, and when the program instructions are loaded and executed by the processor, the steps of the embodiment of the above-mentioned user behavior monitoring method based on video images are implemented. For a specific description, please refer to the embodiment of the above-mentioned user behavior monitoring method based on video images.
[0137] Reference below Figure 4 , which shows a schematic diagram of the structure of a computer device 600 suitable for implementing an embodiment of the present application.
[0138] like Figure 4 As shown, the computer device 600 includes a central processing unit (CPU) 601, which can perform various appropriate operations and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage part 608 into a random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation of the computer device 600 are also stored. The CPU 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0139] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal feedback device (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed as needed as the storage section 608.
[0140] In particular, according to an embodiment of the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present invention includes a computer program product, which includes a computer program tangibly contained on a machine-readable medium, and the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 609, and / or installed from the removable medium 611.
[0141] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0142] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.
[0143] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0144] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0145] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0146] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0147] The acquisition, storage, use, and processing of data in the technical solution of this application comply with the relevant provisions of national laws and regulations.
[0148] It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.
[0149] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.
[0150] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present application may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.
[0151] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0152] The above is only an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.
Claims
1. A user behavior monitoring method based on video images, characterized in that: The method comprises: Acquire multiple frames of video images; Performing target detection on the multiple frames of video images by using a target detection algorithm to generate a human body region; Generate key point information of the human body according to the human body region by using a key point detection algorithm; Through the spatiotemporal graph convolutional network algorithm, human posture recognition is performed on the human key point information corresponding to multiple frames of video images to generate user behavior types.
2. The method for monitoring user behavior based on video images according to claim 1, characterized in that: The method of performing target detection on the multiple frames of video images by using a target detection algorithm to generate a human body region includes: Performing image scaling on each frame of the video image to generate a scaled video image; Perform adaptive anchor frame calculation based on each frame of video image to generate the best anchor frame value; By using the target detection algorithm and according to the optimal anchor frame value, target detection is performed on the scaled video image to generate a human body region.
3. The method for monitoring user behavior based on video images according to claim 1, characterized in that: Before generating the human body key point information according to the human body region by using the key point detection algorithm, the method further includes: By using a target tracking algorithm, based on the human body region of a current frame of video image, the human body region of a target user indicated by the human body region in the next frame of video image is predicted.
4. The method for monitoring user behavior based on video images according to claim 3, characterized in that: The method of predicting the human body region of the target user indicated by the human body region in the next frame of the video image according to the human body region of the current frame of the video image by using the target tracking algorithm includes: Using a Kalman filter, a position prediction is performed based on the human body region in the current frame video image to obtain a candidate position region of the target user in the next frame video image; Through cascade matching, the human body region of the target user is matched with the candidate position region to generate the human body region of the target user in the next frame of the video image.
5. The method for monitoring user behavior based on video images according to claim 1, characterized in that: The key point detection algorithm is used to generate the key point information of the human body according to the human body region, including: Extracting features from the human body region to generate a feature map; Through the joint point convolution neural network and the limb convolution neural network, convolution calculation is performed according to the feature map to generate the human body key point information.
6. The method for monitoring user behavior based on video images according to claim 1, characterized in that: The method of performing human posture recognition on the human key point information corresponding to multiple frames of video images by using a spatiotemporal graph convolutional network algorithm to generate a user behavior type includes: Constructing a target spatiotemporal graph according to the human body key point information corresponding to the multiple frames of video images; Extracting features from the target spatiotemporal graph to generate a target feature graph; The classifier is used to perform human posture recognition according to the target feature graph to generate the user behavior type.
7. The method for monitoring user behavior based on video images according to claim 1, characterized in that: After performing human posture recognition on the human key point information corresponding to the multiple frames of video images by the spatiotemporal graph convolutional network algorithm and generating the user behavior type, the method further includes: Determining whether the preset abnormal behavior type includes the user behavior type; If so, send an abnormal behavior warning message.
8. A user behavior monitoring device based on video images, characterized in that: The device comprises: An acquisition unit, used for acquiring multiple frames of video images; A target detection unit, configured to perform target detection on the multiple frames of video images by using a target detection algorithm to generate a human body region; A key point detection unit, used to generate human body key point information according to the human body region by using a key point detection algorithm; The posture recognition unit is used to perform human posture recognition on the human key point information corresponding to multiple frames of video images through a spatiotemporal graph convolutional network algorithm to generate a user behavior type.
9. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the user behavior monitoring method based on video images described in any one of claims 1 to 7 is implemented.
10. A computer device comprising a memory and a processor, wherein the memory is used to store information including program instructions, and the processor is used to control the execution of the program instructions, characterized in that: When the program instructions are loaded and executed by the processor, the user behavior monitoring method based on video images described in any one of claims 1 to 7 is implemented.
11. A computer program product comprising a computer program / instructions, characterized in that When the computer program / instructions are executed by a processor, the user behavior monitoring method based on video images as described in any one of claims 1 to 7 is implemented.
Citation Information
Cited By
Intelligent bad behavior auditing method based on attitude estimation and time sequence prediction
CN119942651A
Dynamic energy-saving optimization method based on machine vision and behavior habit prediction
CN121069792A
Video-based method for supervising behaviors of people in bank
CN121214556A
A method for supervising behavior of personnel in a bank based on video
CN121214556B
Bank security risk monitoring system and method based on abnormal behavior detection
CN121459417A
