Deep learning system for security video portrait capture processing and behavior analysis
Using deep learning technology to identify and analyze portraits in videos solves the problem that existing systems cannot conduct accurate behavioral analysis of unspecific targets, realizes automated security in public places, and improves the accuracy and timeliness of abnormal behavior detection.
Patent Information
- Application Number
- CN202410730467.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2024-08-30
AI Technical Summary
Existing video analysis systems cannot conduct accurate behavioral analysis of unspecific targets and are difficult to apply to the security field of public places, resulting in the inability to detect abnormal or dangerous behaviors in a timely manner.
A deep learning system for security video portrait capture processing and behavior analysis is designed, including a video collection module, a portrait capture module, a behavior analysis module and an alarm processing module. Deep learning technology is used to identify and analyze portraits in the video. Analyze and analyze feature information in portrait images, detect abnormal behaviors, and take corresponding response measures.
It realizes automated security in public places, can accurately capture unspecific targets in videos, analyze their behaviors, detect and deal with abnormal behaviors in a timely manner, and improve the security effect.
Smart Images

Figure CN118570840A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electronic digital data processing, and in particular to a deep learning system for security video portrait capture processing and behavior analysis. Background Art
[0002] In some special public places, a large number of network cameras will be installed for security, and staff will be required to view the surveillance images in real time. However, this method requires staff to concentrate for a long time and may fail to detect some abnormal or dangerous behaviors in time. Therefore, an analysis system that can automatically analyze behavior is needed to improve security effects.
[0003] The foregoing discussion of the background art is intended only to facilitate an understanding of the present invention. This discussion does not acknowledge or admit that any of the material referred to is part of the common general knowledge.
[0004] Many video analysis systems have been developed. After a lot of searching and reference, it is found that the existing video analysis systems are such as the system disclosed in the publication number CN112613361B. These system methods generally include: using the data acquisition module to collect the behavior information of the monitored object in the monitoring area, and the behavior information includes the movement trajectory data, movement speed data and action data of the monitored object; using the information analysis module to receive and process the behavior information to obtain the behavior analysis information, using the information recognition module to identify the behavior of the monitored object in the monitoring area according to the behavior analysis information, and obtain the behavior recognition information; using the early warning prompt module to generate an early warning signal according to the marking information, and send the early warning signal to the nearest administrator for prompting. However, this system analyzes the behavior of a specific target and cannot accurately analyze the behavior of an unspecified target, so it is not suitable for the security field in public places. Summary of the invention
[0005] The purpose of the present invention is to propose a deep learning system for security video portrait capture and behavior analysis in response to the existing deficiencies.
[0006] The present invention adopts the following technical solution:
[0007] A deep learning system for security video portrait capture processing and behavior analysis, including a video acquisition module, a portrait capture module, a behavior analysis module and an alarm processing module;
[0008] The video acquisition module is used to receive real-time video information from a network camera, the portrait capture module is used to extract portrait information from the video, the behavior analysis module is used to analyze the behavior in the portrait information to obtain an alarm segment, and the alarm processing module is used to manage and process the alarm segment;
[0009] The video acquisition module includes a device management unit, a video stream transmission unit and a video cache unit. The device management unit is used to control and manage the network camera device connected to the system. The video stream transmission unit is used to establish a communication path with the network camera and receive real-time video data from the network camera. The video cache unit is used to temporarily store the received real-time video data.
[0010] The portrait capture module includes a portrait detection unit, a portrait positioning unit and a feature extraction unit. The portrait detection unit recognizes the portrait in the detection video based on deep learning technology. The portrait positioning unit is used to locate and crop the detected portrait area. The feature extraction unit is used to extract key feature information in the portrait.
[0011] The behavior analysis module includes an action analysis unit, an anomaly detection unit, and a segment cutting unit. The action analysis unit is used to perform action analysis on continuous key feature information. The anomaly detection unit is used to compare the analysis result with preset information to detect abnormal actions. The segment cutting unit is used to cut and obtain an alarm segment containing abnormal actions.
[0012] The alarm processing module includes a segment storage unit and an alarm response unit, wherein the segment storage unit is used to store alarm segments and abnormality types, and the alarm response unit takes corresponding response measures based on the abnormality type;
[0013] Further, the feature extraction unit includes a segmentation processor, a center of gravity calculation processor and a coordinate conversion processor, the segmentation processor divides the portrait image into five regions based on the base point, the center of gravity calculation processor calculates the center of gravity coordinates of each region, and the coordinate conversion processor is used to convert the center of gravity coordinates into absolute coordinates;
[0014] Further, the motion analysis unit includes a feature receiving processor, a feature change processor and a motion output processor, wherein the feature receiving processor is used to receive and sort the absolute coordinate information, the feature change processor is used to calculate the change information of the absolute coordinates between adjacent frames, and the motion output processor outputs the motion data based on the change information of the absolute coordinates;
[0015] Furthermore, the process of the action output processor outputting action data includes the following steps:
[0016] S1. Calculate the homology index P of two adjacent comprehensive change vectors:
[0017]
[0018] Among them, v i ″ represents the value of the ith element of the next comprehensive change vector, v i′ represents the value of the i-th element of the previous comprehensive change vector;
[0019] S2, setting a dividing line between two comprehensive change vectors whose homology index is greater than a threshold, and also setting a dividing line at the start position and the end position of the comprehensive change vector sequence;
[0020] S3, adding the comprehensive change vectors between adjacent dividing lines, and using the added number of comprehensive change vectors as the sixth element value of the new vector to form an action vector;
[0021] S4, sending the action vectors to the anomaly detection unit in sequence;
[0022] Further, the anomaly detection unit includes an anomaly database and a detection comparison processor, the anomaly database is used to store the anomaly type and the corresponding vector information, and the detection comparison processor is used to compare the action vector with the vector information of the anomaly type;
[0023] Each abnormal type includes a set of standard vector information. The process of the detection and comparison processor comparing the action vector with the standard vector includes the following steps:
[0024] S21, obtaining standard vector information of an abnormal type, and obtaining the vector number of the standard vector information, which is recorded as m;
[0025] S22, obtaining m continuous action vectors, referred to as vectors to be measured;
[0026] S23. Calculate the abnormal index Q of the vector to be measured according to the following formula:
[0027]
[0028] Among them, v2 i (j) represents the value of the i-th element in the j-th standard vector, v1 i (j) represents the value of the i-th element in the j-th vector to be tested, k i Represents the weight coefficient of the i-th element;
[0029] S24, when the abnormality index is less than the abnormality threshold, sending the time information of the vector to be measured to the segment cutting unit, and sending the abnormality type to the alarm response unit;
[0030] S25. Switch to another exception type and return to step S21.
[0031] The beneficial effects achieved by the present invention are:
[0032] This system uses deep learning technology to accurately capture unspecified targets in videos, then divides the captured images into multiple areas, analyzes the changes in features in multiple areas to obtain behavioral information, and then accurately detects abnormal behavior by comparing it with abnormal behavior data, thereby achieving automated security effects in public places.
[0033] To further understand the features and technical contents of the present invention, please refer to the following detailed description and drawings of the present invention. However, the drawings provided are only for reference and description and are not intended to limit the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] Figure 1 It is a schematic diagram of the overall structural framework of the present invention;
[0035] Figure 2 This is a schematic diagram of the video acquisition module of the present invention;
[0036] Figure 3 This is a schematic diagram of the portrait capture module of the present invention;
[0037] Figure 4 This is a schematic diagram of the behavior analysis module of the present invention;
[0038] Figure 5 It is a schematic diagram of the feature extraction unit of the present invention. DETAILED DESCRIPTION
[0039] The following is an explanation of the embodiments of the present invention through specific embodiments. Those skilled in the art can understand the advantages and effects of the present invention from the contents disclosed in this specification. The present invention can be implemented or applied through other different specific embodiments, and the details in this specification can also be modified and changed in various ways based on different viewpoints and applications without departing from the spirit of the present invention. In addition, the drawings of the present invention are only simple schematic illustrations and are not depicted according to actual sizes. It is stated in advance. The following embodiments will further explain the relevant technical contents of the present invention in detail, but the disclosed contents are not intended to limit the scope of protection of the present invention.
[0040] Embodiment 1.
[0041] This embodiment provides a deep learning system for security video portrait capture and behavior analysis, combined with Figure 1 , including video acquisition module, portrait capture module, behavior analysis module and alarm processing module;
[0042] The video acquisition module is used to receive real-time video information from a network camera, the portrait capture module is used to extract portrait information from the video, the behavior analysis module is used to analyze the behavior in the portrait information to obtain an alarm segment, and the alarm processing module is used to manage and process the alarm segment;
[0043] The video acquisition module includes a device management unit, a video stream transmission unit and a video cache unit. The device management unit is used to control and manage the network camera device connected to the system. The video stream transmission unit is used to establish a communication path with the network camera and receive real-time video data from the network camera. The video cache unit is used to temporarily store the received real-time video data.
[0044] The portrait capture module includes a portrait detection unit, a portrait positioning unit and a feature extraction unit. The portrait detection unit recognizes the portrait in the detection video based on deep learning technology. The portrait positioning unit is used to locate and crop the detected portrait area. The feature extraction unit is used to extract key feature information in the portrait.
[0045] The behavior analysis module includes an action analysis unit, an anomaly detection unit, and a segment cutting unit. The action analysis unit is used to perform action analysis on continuous key feature information. The anomaly detection unit is used to compare the analysis result with preset information to detect abnormal actions. The segment cutting unit is used to cut and obtain an alarm segment containing abnormal actions.
[0046] The alarm processing module includes a segment storage unit and an alarm response unit, wherein the segment storage unit is used to store alarm segments and abnormality types, and the alarm response unit takes corresponding response measures based on the abnormality type;
[0047] The feature extraction unit includes a segmentation processor, a gravity center calculation processor and a coordinate conversion processor, wherein the segmentation processor divides the portrait image into five regions based on the base point, the gravity center calculation processor calculates the gravity center coordinates of each region, and the coordinate conversion processor is used to convert the gravity center coordinates into absolute coordinates;
[0048] The motion analysis unit includes a feature receiving processor, a feature change processor and a motion output processor, wherein the feature receiving processor is used to receive and sort the absolute coordinate information, the feature change processor is used to calculate the change information of the absolute coordinates between adjacent frames, and the motion output processor outputs the motion data based on the change information of the absolute coordinates;
[0049] The process of the action output processor outputting action data comprises the following steps:
[0050] S1. Calculate the homology index P of two adjacent comprehensive change vectors:
[0051]
[0052] Among them, v i ″ represents the value of the ith element of the next comprehensive change vector, vi ′ represents the value of the i-th element of the previous comprehensive change vector;
[0053] S2, setting a dividing line between two comprehensive change vectors whose homology index is greater than a threshold, and also setting a dividing line at the start position and the end position of the comprehensive change vector sequence;
[0054] S3, adding the comprehensive change vectors between adjacent dividing lines, and using the added number of comprehensive change vectors as the sixth element value of the new vector to form an action vector;
[0055] S4, sending the action vectors to the anomaly detection unit in sequence;
[0056] The anomaly detection unit includes an anomaly database and a detection comparison processor, wherein the anomaly database is used to store anomaly types and corresponding vector information, and the detection comparison processor is used to compare the action vector with the vector information of the anomaly type;
[0057] Each abnormal type includes a set of standard vector information. The process of the detection and comparison processor comparing the action vector with the standard vector includes the following steps:
[0058] S21, obtaining standard vector information of an abnormal type, and obtaining the vector number of the standard vector information, which is recorded as m;
[0059] S22, obtaining m continuous action vectors, referred to as vectors to be measured;
[0060] S23. Calculate the abnormal index Q of the vector to be measured according to the following formula:
[0061]
[0062] Among them, v2 i (j) represents the value of the i-th element in the j-th standard vector, v1 i (j) represents the value of the i-th element in the j-th vector to be tested, k i Represents the weight coefficient of the i-th element;
[0063] S24, when the abnormality index is less than the abnormality threshold, sending the time information of the vector to be measured to the segment cutting unit, and sending the abnormality type to the alarm response unit;
[0064] S25. Switch to another exception type and return to step S21.
[0065] Embodiment 2.
[0066] This embodiment includes all the contents of the first embodiment, and provides a deep learning system for security video portrait capture processing and behavior analysis, including a video acquisition module, a portrait capture module, a behavior analysis module and an alarm processing module;
[0067] The video acquisition module is used to receive real-time video information from a network camera, the portrait capture module is used to extract portrait information from the video, the behavior analysis module is used to analyze the behavior in the portrait information to obtain an alarm segment, and the alarm processing module is used to manage and process the alarm segment;
[0068] Combination Figure 2 The video acquisition module includes a device management unit, a video stream transmission unit and a video cache unit. The device management unit is used to control and manage the network camera device connected to the system. The video stream transmission unit is used to establish a communication path with the network camera and receive real-time video data from the network camera. The video cache unit is used to temporarily store the received real-time video data;
[0069] Combination Figure 3 The portrait capture module includes a portrait detection unit, a portrait positioning unit and a feature extraction unit. The portrait detection unit identifies the portrait in the detection video based on deep learning technology. The portrait positioning unit is used to locate and crop the detected portrait area. The feature extraction unit is used to extract key feature information in the portrait.
[0070] Combination Figure 4 The behavior analysis module includes an action parsing unit, an anomaly detection unit and a segment clipping unit. The action parsing unit is used to perform action parsing on continuous key feature information. The anomaly detection unit is used to compare the parsing result with preset information to detect abnormal actions. The segment clipping unit is used to clip and obtain an alarm segment containing abnormal actions.
[0071] The alarm processing module includes a segment storage unit and an alarm response unit, wherein the segment storage unit is used to store alarm segments and abnormality types, and the alarm response unit takes corresponding response measures based on the abnormality type;
[0072] The device management unit includes a device information recording processor, a device change processor and a connection test processor. The device information recording processor is used to save the identity information and network information of the device. The device change processor is used to provide an interactive interface to add or delete device information in the device information recording processor. The connection test processor performs a communication test on the added device based on the network information.
[0073] The video stream transmission unit includes a path construction processor and a transmission monitoring processor, wherein the path construction processor is used to obtain network information from the device information recording processor and establish a communication path with the corresponding network camera, and the transmission monitoring processor is used to monitor the transmission status of the video stream information in the communication path;
[0074] When the transmission monitoring processor detects a transmission anomaly, it sends an abnormality information to the alarm processing module;
[0075] The video cache unit includes a partition control processor, an interface control processor and an output control processor, wherein the partition control processor is used to obtain the identity information of the network camera and create a dedicated storage area for each device, the interface control processor is used to store the received video stream information in the corresponding storage area, and the output control processor is used to control the retention of the video information in the storage area;
[0076] The portrait detection unit includes a deep learning processor and a model detection processor, the deep learning processor is used to process the training image to optimize the model parameters, and the model detection processor performs portrait detection on the image sent by the output control processor based on the optimized model parameters;
[0077] When the model detection processor detects a human portrait, outputting a rectangular area containing the human portrait;
[0078] The portrait positioning unit includes an edge detection processor, an image cropping processor and a coordinate positioning processor, wherein the edge detection processor is used to detect the edge of the portrait in the rectangular area, the image cropping processor crops the rectangular area based on the edge of the portrait to obtain the portrait image, and the coordinate positioning processor is used to set the base point of the portrait image and the coordinates of the base point in the complete image;
[0079] Combination Figure 5 The feature extraction unit includes a segmentation processor, a center of gravity calculation processor and a coordinate conversion processor, wherein the segmentation processor divides the portrait image into five regions based on the base point, the center of gravity calculation processor calculates the center of gravity coordinates of each region, and the coordinate conversion processor is used to convert the center of gravity coordinates into absolute coordinates;
[0080] The segmentation processor segments the portrait image by setting five rays starting from the base point, and the angle between two adjacent rays is 72°;
[0081] The center of gravity calculation processor calculates the center of gravity coordinates (x c ,y c ):
[0082]
[0083] Among them, P i represents the i-th point in the region, Rz represents the set of points in the region, (x i ,y i ) represents the coordinates of the i-th point, n i Indicates the number of points in the region;
[0084] The coordinates of the points in the area are obtained by taking the base point as the origin;
[0085] The coordinate conversion processor converts the centroid coordinates into absolute coordinates (x a ,y a ):
[0086] x a =x c +x b ;
[0087] y a =y c +y b ;
[0088] Among them, (x b ,y b ) are the coordinates of the base point in the complete image;
[0089] The motion analysis unit includes a feature receiving processor, a feature change processor and a motion output processor, wherein the feature receiving processor is used to receive and sort the absolute coordinate information, the feature change processor is used to calculate the change information of the absolute coordinates between adjacent frames, and the motion output processor outputs the motion data based on the change information of the absolute coordinates;
[0090] The feature receiving processor organizes the absolute coordinate information into five sets, the coordinates in each set correspond to the center of gravity of the same area, and two adjacent absolute coordinates in the set correspond to adjacent frames;
[0091] The feature change processor calculates a single change vector (Δx, Δy) of adjacent frames in the same set according to the following formula:
[0092] Δx=x′ a ′-x′ a ;
[0093] Δy=y′ a ′-y′ a ;
[0094] Among them, (x′ a ′,y′ a ′) is the absolute coordinate of the next frame, (x′ a , y′ a) is the absolute coordinate of the previous frame;
[0095] The feature change processor calculates the comprehensive change vector CC according to the following formula:
[0096]
[0097] Among them, v1, v2, v3, v4 and v5 are the five element values in the vector CC, (Δx i , Δy i ) represents a single change vector in the i-th set;
[0098] The feature change processor calculates a comprehensive change vector based on a single change vector of the same adjacent frames, and finally obtains a sequence of comprehensive change vectors;
[0099] The process of the action output processor outputting action data comprises the following steps:
[0100] S1. Calculate the homology index P of two adjacent comprehensive change vectors:
[0101]
[0102] Among them, v i ″ represents the value of the ith element of the next comprehensive change vector, v i ′ represents the value of the i-th element of the previous comprehensive change vector;
[0103] S2, setting a dividing line between two comprehensive change vectors whose homology index is greater than a threshold, and also setting a dividing line at the start position and the end position of the comprehensive change vector sequence;
[0104] S3, adding the comprehensive change vectors between adjacent dividing lines, and using the added number of comprehensive change vectors as the sixth element value of the new vector to form an action vector;
[0105] S4, sending the action vectors to the anomaly detection unit in sequence;
[0106] The anomaly detection unit includes an anomaly database and a detection comparison processor, wherein the anomaly database is used to store anomaly types and corresponding vector information, and the detection comparison processor is used to compare the action vector with the vector information of the anomaly type;
[0107] Each abnormal type includes a set of standard vector information. The process of the detection and comparison processor comparing the action vector with the standard vector includes the following steps:
[0108] S21, obtaining standard vector information of an abnormal type, and obtaining the vector number of the standard vector information, which is recorded as m;
[0109] S22, obtaining m continuous action vectors, referred to as vectors to be measured;
[0110] S23. Calculate the abnormal index Q of the vector to be measured according to the following formula:
[0111]
[0112] Among them, v2 i (j) represents the value of the i-th element in the j-th standard vector, v1 i (j) represents the value of the i-th element in the j-th vector to be tested, k i Represents the weight coefficient of the i-th element;
[0113] S24, when the abnormality index is less than the abnormality threshold, sending the time information of the vector to be measured to the segment cutting unit, and sending the abnormality type to the alarm response unit;
[0114] S25, switch to another exception type and return to step S21;
[0115] The clip cropping unit includes a cropping information receiving processor and a video cropping processor, wherein the cropping information receiving processor is used to receive time information, and the video cropping processor crops the corresponding video clip based on the received time information;
[0116] The i and j appearing in the above text are both ordinal numbers used to indicate serial numbers.
[0117] The contents disclosed above are only preferred feasible embodiments of the present invention, and do not limit the protection scope of the present invention. Therefore, all equivalent technical changes made using the contents of the present invention specification and drawings are included in the protection scope of the present invention. In addition, the elements therein can be updated as technology develops.
Claims
1. A deep learning system for security video portrait capture and behavior analysis, characterized in that: It includes video acquisition module, portrait capture module, behavior analysis module and alarm processing module; The video acquisition module is used to receive real-time video information from a network camera, the portrait capture module is used to extract portrait information from the video, the behavior analysis module is used to analyze the behavior in the portrait information to obtain an alarm segment, and the alarm processing module is used to manage and process the alarm segment; The video acquisition module includes a device management unit, a video stream transmission unit and a video cache unit. The device management unit is used to control and manage the network camera device connected to the system. The video stream transmission unit is used to establish a communication path with the network camera and receive real-time video data from the network camera. The video cache unit is used to temporarily store the received real-time video data. The portrait capture module includes a portrait detection unit, a portrait positioning unit and a feature extraction unit. The portrait detection unit recognizes the portrait in the detection video based on deep learning technology. The portrait positioning unit is used to locate and crop the detected portrait area. The feature extraction unit is used to extract key feature information in the portrait. The behavior analysis module includes an action analysis unit, an anomaly detection unit, and a segment cutting unit. The action analysis unit is used to perform action analysis on continuous key feature information. The anomaly detection unit is used to compare the analysis result with preset information to detect abnormal actions. The segment cutting unit is used to cut and obtain an alarm segment containing abnormal actions. The alarm processing module includes a segment storage unit and an alarm response unit. The segment storage unit is used to store alarm segments and abnormality types. The alarm response unit takes corresponding response measures based on the abnormality type.
2. A deep learning system for security video portrait capture and behavior analysis as claimed in claim 1, characterized in that: The feature extraction unit includes a segmentation processor, a center of gravity calculation processor and a coordinate conversion processor. The segmentation processor divides the portrait image into five areas based on a base point, the center of gravity calculation processor calculates the center of gravity coordinates of each area, and the coordinate conversion processor is used to convert the center of gravity coordinates into absolute coordinates.
3. A deep learning system for security video portrait capture and behavior analysis as described in claim 2, characterized in that: The motion analysis unit includes a feature receiving processor, a feature change processor and a motion output processor. The feature receiving processor is used to receive and organize absolute coordinate information, the feature change processor is used to calculate the change information of absolute coordinates between adjacent frames, and the motion output processor outputs motion data based on the change information of absolute coordinates.
4. A deep learning system for security video portrait capture and behavior analysis as described in claim 3, characterized in that: The process of the action output processor outputting action data comprises the following steps: S1. Calculate the homology index P of two adjacent comprehensive change vectors: Among them, v i ″ represents the value of the ith element of the next comprehensive change vector, v i ′ represents the value of the i-th element of the previous comprehensive change vector; S2, setting a dividing line between two comprehensive change vectors whose homology index is greater than a threshold, and also setting a dividing line at the start position and the end position of the comprehensive change vector sequence; S3, adding the comprehensive change vectors between adjacent dividing lines, and using the added number of comprehensive change vectors as the sixth element value of the new vector to form an action vector; S4. Send the action vectors to the abnormality detection unit in sequence.
5. A deep learning system for security video portrait capture and behavior analysis as described in claim 4, characterized in that: The anomaly detection unit includes an anomaly database and a detection comparison processor, wherein the anomaly database is used to store anomaly types and corresponding vector information, and the detection comparison processor is used to compare the action vector with the vector information of the anomaly type; Each abnormal type includes a set of standard vector information. The process of the detection and comparison processor comparing the action vector with the standard vector includes the following steps: S21, obtaining standard vector information of an abnormal type, and obtaining the vector number of the standard vector information, which is recorded as m; S22, obtaining m continuous action vectors, referred to as vectors to be measured; S23. Calculate the abnormal index Q of the vector to be measured according to the following formula: Among them, v2 i (j) represents the value of the i-th element in the j-th standard vector, v1 i (j) represents the value of the i-th element in the j-th vector to be tested, k i Represents the weight coefficient of the i-th element; S24, when the abnormality index is less than the abnormality threshold, sending the time information of the vector to be measured to the segment cutting unit, and sending the abnormality type to the alarm response unit; S25. Switch to another exception type and return to step S21.
Citation Information
Patent Citations
Abnormal behavior monitoring processing method and device, computer device and storage medium
CN110443109A
Video intelligent monitoring algorithm architecture method and system based on deep learning
CN114743163A
Extraction method based on digital video monitoring system
CN117197713A
Intelligent patrol control system and method
CN117478843A
Video monitoring system, video processing device, video processing method, and video processing program
WO2014208575A1
