Disclosure of Invention
In order to be able to conduct abnormal prediction on behaviors of personnel in a park in some specific parks and reduce special event occurrence, the invention provides a personnel abnormal behavior early warning method, a system and computer equipment based on video data machine learning, wherein the method comprises the following steps:
s1, acquiring video image data, and cleaning the video image data;
s2, preprocessing video image data, namely removing privacy-related information in the data, and improving video definition of a blurred video by adopting a frame quality enhancement method;
s3, recognizing human body movement modes, setting a classification label for each type, and performing multi-mode feature coding;
s4, performing feature engineering processing on the multi-mode codes, namely removing redundant features of the data center and selecting features through information gain;
s5, constructing a tensor neural network to track people appearing in the video, detecting gait based on a gait energy diagram according to the tracked task outline, detecting skin exposure of the task in the video, taking the exposure as an appearance clothing index of the people, calculating correlation of images among video frames according to the indexes, and judging abnormal behaviors of the people according to the correlation calculation result;
s6, constructing early warning decision support, namely if the dynamic information of the similarity and the difference between the acquired frame images shows that the behavior of the photographed person is abnormal, informing relevant persons to carry out the treatment.
Further, after the feature engineering processing is performed in the step S3, the data is detected, and if the non-random missing data exists and the data is made, the data is inferred by adopting a statistical machine learning method and double robustness, so that the complete data of the data is obtained.
Further, the multi-modal feature encoding specifically includes the following processes: using a 5-dimensional tensor structure for the acquired image, encoding video data by (samples, frames, height, width, channels) to represent 5-dimensional tensor data of samples, frames, height, width, and channel of the video data, respectively; the acquired video image is encoded with 4-dimensional tensor structure by (samples, height, width, channels) video data, and 4-dimensional tensor data representing samples, height, width, and channel of the video data, respectively.
Further, tracking the person appearing in the video includes:
taking the multi-mode coded image as input of a tensor neural network;
the tensor neural network comprises human body gesture recognition, pedestrian detection and separation of foreground and background;
acquiring a human body gesture key sequence point in an image through human body gesture recognition;
detecting a person through pedestrian detection, dividing a task from an image, and acquiring a gesture outline sequence of the person by combining separation of a foreground and a background;
and tracking and identifying the person through the acquired gesture key sequence points and gesture outline sequences.
Further, the process of detecting the skin exposure of the task in the video takes the exposure as an appearance clothing index of the person, namely, the skin area of the person in the image is obtained based on the elliptic skin model, and the proportion of the exposed skin area to the outline of the person is taken as the appearance clothing index.
Further, after the gait detection and appearance clothing indexes are carried out, a sliding window with the length of N frames and the step length of t is set, the gait detection and appearance clothing indexes are valued through the sliding window, and the average value of the data of each window is taken as the data of correlation calculation.
Further, in the case of performing the difference determination, the correlation between the two images is calculated by the euclidean distance.
Further, when the behavior abnormality of the person is judged, if the similarity of the two images extracted in the S frame is lower than a certain threshold value, the task abnormality is judged.
The invention also provides a personnel abnormal behavior early warning system, which comprises a front terminal system, a transmission network and a monitoring center, wherein the front terminal system comprises various monitoring devices, a front terminal subsystem transmits information acquired by the monitoring devices to the monitoring center through the transmission network, the monitoring center comprises an abnormal behavior prediction device, the device predicts whether a shot person is abnormal or not through the collected information, if so, the monitoring center gives an alarm and projects the monitoring device capable of shooting the person to a monitor center display for real-time monitoring.
The invention also provides personnel abnormal behavior early-warning computer equipment, which comprises a memory and a processor, wherein the memory is used for storing any of the personnel abnormal behavior early-warning methods, and the processor is used for running the method stored in the memory to predict whether the personnel in the monitor has abnormal behaviors.
The invention also provides a personnel abnormal behavior early warning system, which comprises a front terminal system, a transmission network and a monitoring center, wherein the front terminal system comprises various monitoring devices, the front terminal system transmits information acquired by the monitoring devices to the monitoring center through the transmission network, the monitoring center comprises an abnormal behavior prediction device, the device predicts whether a shot personnel has abnormality or not through the collected information, if the shot personnel has abnormality, the monitoring center gives an alarm and the monitoring device capable of shooting the personnel is projected onto a monitor center display for real-time monitoring.
The invention also provides personnel abnormal behavior early-warning computer equipment, which comprises a memory and a processor, wherein the memory is used for storing any one of the personnel abnormal behavior early-warning methods, and the processor is used for running the method stored in the memory to predict whether the personnel in the monitor has abnormal behaviors.
The invention constructs an abnormal behavior pattern classification model set based on machine learning, and a method for identifying abnormal behaviors according to different granularities of human behavior features, covers main requirements on a face data matching model, walking gait identification and mental state assessment, improves the intelligent level of an early warning decision support system, and plays an important role in monitoring video image data utilization and multiplexing; through processes such as video image sampling, preprocessing, encoding, feature extraction, data association and the like, an early warning database based on video images is constructed, technical support is provided for knowledge reasoning and data management of high-dimensional abnormal behavior identification data, on-site management and control working efficiency can be improved, workload is reduced, early warning error control is enhanced, service modes of an intelligent park information sharing platform are enriched, and application value of an early warning control panel is improved.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The invention provides a personnel abnormal behavior early warning method based on video data machine learning, which specifically comprises the following steps:
s1, acquiring video image data, and cleaning the video image data;
s2, preprocessing video image data, namely removing privacy-related information in the data, and improving video definition of a blurred video by adopting a frame quality enhancement method;
s3, recognizing human body movement modes, setting a classification label for each type, and performing multi-mode feature coding;
s4, performing feature engineering processing on the multi-mode codes, namely removing redundant features of the data center and selecting features through information gain;
s5, constructing a tensor neural network to perform correlation calculation on the inter-frame key semantic region by using the mental state evaluation model, the walking gait recognition model and the face data matching model;
s6, building early warning decision support, namely informing relevant personnel to carry out treatment if the behavior of the shot object is abnormal.
Example 1
The embodiment provides a personnel abnormal behavior early warning system based on video data machine learning, which comprises a front terminal system, a transmission network and a monitoring center, wherein the front terminal system comprises various monitoring equipment, the front terminal system transmits information collected by the monitoring equipment to the monitoring center through the transmission network, the monitoring center comprises an abnormal behavior prediction device, the device predicts whether a shot personnel is abnormal or not through the collected information, if so, the monitoring center gives an alarm and projects the monitoring equipment capable of shooting the personnel onto a monitor center display for real-time monitoring.
In the embodiment, the front terminal system is mainly responsible for field image acquisition, video storage, alarm receiving and sending, other sensor data acquisition and network transmission; the transmission network mainly realizes data uploading between the operation site and the monitoring center through a special line and the Internet; the monitoring center is a place for executing daily monitoring, system management and emergency early warning command. The functions of remote video monitoring on an operation site, remote cloud control of the rotation of the dome camera, remote receiving of site alarm, remote voice dialogue command with the site and the like are realized through the site monitoring system; the manager can know the early warning and emergency management and control process of the site in real time. And managing the real-time monitoring camera, and supporting the functions of backing up, inquiring and replaying the monitoring images according to the information such as the camera numbers, time, events and the like through the hard disk video recorder. Multiple pictures are supported for simultaneous playback on the same display, up to 25 pictures being simultaneously played back in synchronization. And remote real-time control of the camera holder and the lens is supported. The system and the device integrate a plurality of functions such as 5G wireless communication, equipment identification, data acquisition, personnel activity state detection and the like, and adopt an IEEE802.15.4 communication protocol, so that the technology is mature and stable. The method has the technical advantages of lower transmitting power, higher positioning precision (2-5 m), wider wireless coverage range (500 m), better communication confidentiality and the like.
In this embodiment, the on-site video monitoring network architecture for early warning of abnormal behaviors of personnel is shown in fig. 1, and on one side of a monitoring center, a ground central station host 102 is powered by an uninterruptible power supply UPS101, a machine learning and early warning management and control 103 is performed by a rack-mounted video server, the machine learning and early warning management and control 103 is connected to a bus by a switch 106, a matrix 104 is connected with a hard disk video recorder 105, and video image archive data of high-risk personnel is recorded; on the front subsystem side, a video/audio optical transceiver 109, a signal transmission device, a camera gun 110, a camera 111 and an audio speaker 12 are connected through a switch 108, and early warning information is controlled by an early warning network 113 and the result is transmitted to a sharing network. The user terminal may include a cell phone, a laptop, a palmtop, a smart stereo, a wearable device (e.g., a smart watch, a smart bracelet, etc.), etc.
Example 2
The embodiment provides a personnel abnormal behavior early warning method based on video data machine learning, as shown in fig. 2, specifically comprising the following steps:
201. personnel pattern recognition in surveillance video images
Feature extraction is carried out on the monitoring video image, and feature information of abnormal behaviors of a human body, including information of appearance clothes, body posture, gait, pace, facial expression, mental state and the like, is effectively captured. The system understands the behaviors and analyzes and identifies the motion modes of the human body, and describes the behaviors.
202. Ghost data collection and reasoning
Through the experimental design process, whether ghost data in the forms of non-random missing data, working data and the like exist is checked from the data. If so, verification is performed using a construction model and reasoning is performed using statistical machine learning methods and dual robustness.
The above reasoning process for the data can be performed by using an existing model, and will not be described here again.
203. Abnormal behavior reasoning based on machine learning
A method for analyzing and extracting key semantic regions from an image. And (3) analyzing and extracting key semantic information in the video image by using the design tensor neural network, and decomposing the complete image into a plurality of image groups according to different semantic information. Each image group expresses a semantic information, so that the human behavior space information can be expressed more finely and pertinently. Inter-frame critical semantic granule multi-frame joint enhancement is performed by using tensor convolution neural network.
204. Determination of whether behavior is abnormal
Through continuous optimization of machine learning, through modeling, system development and the like, whether the personnel behaviors are abnormal or not is judged. And the monitoring and early warning support system for the abnormal behaviors of the personnel of the video image data is realized through the judgment of the abnormal behaviors of the negative and abnormal swelling.
205. Early warning decision support control panel
If the abnormal behaviors of the personnel exist, information reminding is pushed, and abnormal behaviors of the personnel are monitored, early warning support and visualization are achieved.
Example 3
The embodiment proposes a more specific implementation manner based on embodiment 2, as shown in fig. 3, and the early warning method in the embodiment includes the following steps:
starting 301; the system will use the video image data intelligent collection flow 302 to upload the surveillance video as metadata 303 into the system;
the input data is subjected to data cleaning 304 such as extraction-Transform-Load (ETL), and this process mainly cleans low-quality video images in the source data to eliminate data which does not meet the specification. The method comprises the steps of realizing missing data processing, similar repeated object detection, abnormal data processing, logic error detection, inconsistent data processing and the like;
preprocessing 306 is performed on the video image data after cleaning, which includes two aspects:
the information 305 related to privacy in the data is removed, so that the data quality is improved;
for the blurred video image 307, the system pre-adopts a frame quality enhancement method to improve the video definition;
analyzing and identifying 308 the motion pattern of the human body by using an algorithm;
classifying the data after preprocessing, and assigning a classification label 309 to each type;
the multi-mode feature code 311 performs space-time desensitization data association 312 through personnel identification of the system; in combination with face recognition, using semi-structural data, such as video recorded by a sensor, corresponding marks, other life bodies, physiological activities and 3D behavior mark data, a plurality of abnormal behavior case libraries 310 of cascading personnel monitoring video images, three-dimensional posture human body moving images and the like, searching corresponding behavior specifications and monitoring information, realizing an early warning function module, and providing timely high-quality abnormal behavior risk management recommendation information;
these codes are subjected to feature engineering 314 to remove redundant features from the data, and the features are selected as inputs for use by models and algorithms by information gain. Mainly comprises two tasks: automatically selecting an algorithm; the expert participates in selecting a common feature set; the system understands behaviors, analyzes and identifies the motion modes of the human body, and describes the motion modes; simultaneously, feature extraction is carried out, so that feature information of abnormal behaviors of a human body, including information of appearance clothes, body states, gait, pace, facial expressions, mental states and the like, is effectively captured; dividing the data into three types of normal, depression and emotion rising, taking the characteristic data extracted from the video image as a conditional attribute, marking the category as a decision attribute, and storing the marked category into a medium to serve as a training case set;
the ghost data acquisition 313 is carried out through experimental design, and ghost data reasoning is carried out through methods such as Fourier transformation, hadamard matrix, hidden variables and the like;
the characteristics are mainly characterized in three aspects: basic information such as mental appearance, movement state, face data and the like, thus constructing three corresponding models: a mental state assessment model 317, a walking gait recognition model 318 and a face data matching model 319. Through knowledge discovery, optimization prediction, data analysis and other processes; analyzing and responding to the video image through related principles and methods such as image identification, pattern identification, tensor neural network learning and the like; the training learning algorithm can provide feedback information, improve parameter learning and model adjustment processes, analyze and extract key semantic areas from images, construct a neural network to perform correlation calculation on the inter-frame key semantic areas, and connect the areas with consistent inter-frame semantic information in series to obtain an inter-frame key semantic area chain, so that consistency of semantic information is ensured, time domain change information of human behaviors is expressed more pertinently, and the whole network utilizes global and local residual structures to reduce training difficulty. The system is continuously optimized through machine learning, and through modeling, system development and the like, a personnel abnormal behavior monitoring and early warning support system of video image data of an intelligent park is realized, and an evaluation index is provided by using a subject working characteristic curve (receiver operating characteristic curve, ROC) and an area under the curve (Area Under ROC Curve, AUC), so that the comprehensive evaluation is carried out on the model performance, and a prediction model and an algorithm are further feedback controlled;
judging whether the human body behaviors are abnormal 320, if the human body behaviors are abnormal, adding the information into an early warning database by the system and providing prompt information for early warning grades, verifying a human body behavior recognition method by using a related data set by using the abnormal human body behavior judgment accuracy, calculating the average value of various human body behavior recognition accuracy as the result of human body behavior recognition, wherein the human body behavior recognition accuracy is the percentage of the number of video images which can be correctly recognized in a certain type of behaviors to the total number of video images of the certain type of behaviors, and the certain type of behaviors alpha i Accuracy H of (2) i The calculation is as follows:
in the formula, the condition alpha i Representing the behavior of class i in practice, condition beta i Representing behavior identified by the algorithm as class i; operator I represents calculating the number of video frames meeting the condition;
the face data is matched 321 with the face database of the high risk group of table 2, and if the high risk group belongs to a high risk individual, the system associates personal information 324. The individual is classified into early warning grades by combining other abnormal information through the stages of lookup table processing, file association and dynamic matching, common sense logic judgment, field common sense judgment, data correlation verification and the like, and the early warning database 322 is added;
the system can set early warning parameters, when the real-time data exceeds the early warning range, the system can autonomously judge and send out warning signals, and according to actual requirements, the system interface popup window prompt information 323 is connected with an audible and visual alarm to realize audible and visual early warning;
remote early warning and linkage control 325, detecting multipath early warning signals, when early warning occurs, automatically starting various corresponding linkage equipment, switching video to a corresponding camera, triggering automatic video recording, alarming to a monitoring center through a network, and popping up an alarm information prompt from a client until the end 326;
the obtained abnormal data information is stored in an abnormal behavior case library, the video image realizes data reuse and feedback control 316 is carried out on the individual behaviors, the monitoring data of each monitoring point on high-risk personnel are displayed in real time, the real-time data are continuously mined, analyzed and displayed in a rich on-line analysis graph, the information is assisted in a graphical display form, the history monitoring data of the high-risk personnel are displayed in a graph form and the like, and a history data report is output and can be printed.
Table 1 example of feature data portion extracted by video image data and associated data
The person skilled in the art scores each item of data in table 1 according to actual conditions and assigns weights, when the weighted total score exceeds a threshold value, the person is judged to be abnormal, in the detection process, the correlation between two images is calculated through Euclidean distance, if the person is normal but the emotion, gait and the like are changed severely, for example, the facial expression is excited to aversion, the pace speed is very slow to very fast and the like, the data acquisition equipment is required to be enhanced for tracking when the situation occurs, and if the extreme change occurs, the person is listed as an abnormal person and the relevant person is notified.
Example 4
The embodiment proposes an implementation manner of a personnel abnormal behavior early warning system based on video data machine learning based on embodiment 1, as shown in fig. 4, the front terminal system corresponds to a video monitoring device, the server corresponds to an abnormal behavior prediction device in a monitoring center, the control panel terminal corresponds to a display in the monitoring system, and the interaction manner of the video monitoring device, the server and the control panel terminal comprises the following steps:
transmitting a field monitoring video 401 through video monitoring equipment, and then processing the acquired video image data 402;
obtaining a multi-mode feature coding frame 403, performing feature engineering processing 404, and extracting features therein;
constructing ghost data 405 for the feature designs, and carrying out abnormal behavior reasoning on the data by combining a machine learning reinforcement learning model 406;
judging whether the behavior in the video image data belongs to abnormal behavior 407;
classifying 408 the resulting abnormal behavior;
transmitting 409 these abnormal behavior information to the control panel terminal;
the pre-warning information 410 is issued by the control panel terminal.
As shown in fig. 5, in the abnormal behavior prediction apparatus of this embodiment, the video monitoring device obtains an image through the obtaining unit 501 and gives the image to the calculating unit for analysis, after the calculating unit 602 receives a signal, the controlling unit 603 performs design construction and control reasoning process on the image operation, and after the calculating unit finishes working, the result is transmitted to the output unit 504.
Example 5
The embodiment provides a personnel abnormal behavior early warning computer device based on video data machine learning, which comprises a memory and a processor, wherein the memory is used for storing a personnel abnormal behavior early warning method, and the processor is used for running the method stored in the memory to predict whether a person in a monitor has abnormal behaviors.
As shown in fig. 6, the processor 601 analyzes the image and transmits effective information, the memory 602 is responsible for storing data such as the image, the communication interface 603 refers to an interface between the central processing unit and the standard communication subsystem and the bus 604, and the display screen 605 displays images.
The invention provides a method, a device, computer equipment and a medium for personnel abnormal behavior early warning based on monitoring video images in an intelligent park, provides a highly integrated information system function with an open architecture, meets the early warning requirements of different levels by flexibly configuring monitoring parameters, can positively promote the intelligent of the fields of intelligent security, abnormal behavior prediction and the like for the human behavior recognition technology in the video images, and can acquire human behavior expression characteristics by using tensor neural networks to recognize human behaviors in the prior art. The human body behavior expression characteristics are designed and constructed by utilizing the image visual information, human body behavior recognition is carried out, and the tensor neural network is combined with the manual construction characteristics to carry out human body behavior recognition and the like. The human body characteristic recognition algorithm is adopted to detect, analyze, recognize and pre-warn the pedestrian target characteristic, meanwhile, the machine vision image sensing technology is adopted, human body movement and facial characteristics are collected in the machine vision image scene, and the automatic recognition of the human body target and the pre-warn information prompt are completed through the machine learning algorithm.
Those skilled in the art will appreciate that implementing all or part of the methods or embodiments of the present invention, the early warning process may be performed by hardware associated with computer program instructions, where the program is stored on a computer readable storage medium, and when the program is executed, the method described above may be performed. The storage medium may be an optical disc, a usb disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), or the like.
Although embodiments of the present invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made therein without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.