Video behavior recognition method and system based on machine learning

By using machine learning's dual-channel parallel feature extraction and behavior analysis method in video behavior recognition, the problems of low recognition accuracy and high computational complexity in the existing technology are solved, and efficient and accurate video behavior recognition is achieved, which is suitable for a variety of applications. scene.

CN118298364BActive Publication Date: 2024-08-27BRINGSPRING SCIENCE & TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing video behavior recognition methods have problems such as low recognition accuracy and high computational complexity, making it difficult to achieve efficient and accurate video behavior recognition.

Method used

A dual-channel parallel feature extraction method based on machine learning is used to convert video information through pre-processing. The dual-channel extraction algorithm is used for feature screening and associated frame positioning. The behavior recognition module is trained for trajectory and posture analysis to achieve behavior classification recognition and travel trajectory tracking. .

Benefits of technology

It improves the accuracy and efficiency of video behavior recognition, is suitable for video behavior recognition tasks in different scenarios, and achieves efficient and accurate behavior recognition.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118298364B
    Figure CN118298364B
Patent Text Reader

Abstract

The present invention discloses a video behavior recognition method and system based on machine learning, which relates to the field of behavior recognition technology. The method includes: using a dual-channel extraction algorithm to perform feature extraction and screening on target available video information, obtaining target detection results as indexes, performing associated frame positioning on the target available video information, and obtaining associated frame sequence information; using a behavior recognition module to perform dual-item analysis on the associated frame sequence information to obtain behavior dual-item analysis results; based on the behavior dual-item analysis results, the target detection results are subjected to behavior classification and recognition and movement trajectory tracking to obtain target behavior patterns and target movement trajectories, thereby determining target behavior recognition information. The method achieves the technical effect of achieving efficient and accurate video behavior recognition by performing target feature extraction in parallel through dual channels, being applicable to video behavior recognition tasks in different scenarios, and thereby improving behavior recognition accuracy and recognition efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of behavior recognition technology, and in particular to a video behavior recognition method and system based on machine learning. Background Art

[0002] With the widespread application of video surveillance and the development of computer vision technology, video behavior recognition has become a research hotspot. The main goal of video behavior recognition is to automatically extract meaningful behavior information from video sequences. However, due to the large amount of video data and the complex and changeable behavior patterns, existing video behavior recognition methods often have problems such as low recognition accuracy and high computational complexity. Therefore, how to use machine learning technology to achieve efficient and accurate video behavior recognition has become a problem that needs to be solved urgently. Summary of the invention

[0003] This application solves the technical problems of low video behavior recognition accuracy and high computational complexity in the prior art by providing a video behavior recognition method and system based on machine learning, and achieves efficient and accurate video behavior recognition through dual-channel parallel target feature extraction. It is suitable for video behavior recognition tasks in different scenarios, thereby improving the technical effect of behavior recognition accuracy and recognition efficiency.

[0004] In view of the above problems, the present invention provides a video behavior recognition method and system based on machine learning.

[0005] In a first aspect, the present application provides a video behavior recognition method based on machine learning, the method comprising: S1: acquiring target video information, preprocessing and converting the target video information to obtain target usable video information, and using a dual-channel extraction algorithm to perform feature extraction and screening on the target usable video information to obtain a target detection result; S2: using the target detection result as an index, performing associated frame positioning on the target usable video information to obtain associated frame sequence information, wherein the associated frame sequence information includes behavior feature information of the target detection result; S3: training and constructing a behavior recognition module, the behavior recognition module including a trajectory analysis channel and a posture analysis channel, and using the behavior recognition module to perform a dual analysis on the associated frame sequence information to obtain a behavior dual analysis result; S4: performing behavior classification and recognition and movement trajectory tracking on the target detection result based on the behavior dual analysis result to obtain a target behavior pattern and a target movement trajectory, and determining the target behavior recognition information according to the target behavior pattern and the target movement trajectory.

[0006] On the other hand, the present application also provides a video behavior recognition system based on machine learning, the system comprising: a feature extraction and screening module, used to obtain target video information, pre-process and convert the target video information to obtain target available video information, and use a dual-channel extraction algorithm to perform feature extraction and screening on the target available video information to obtain a target detection result; an associated frame positioning module, used to use the target detection result as an index to perform associated frame positioning on the target available video information to obtain associated frame sequence information, wherein the associated frame sequence information includes the behavior feature information of the target detection result; a dual-item analysis result acquisition module, used to train and construct a behavior recognition module, the behavior recognition module includes a trajectory analysis channel and a posture analysis channel, and the behavior recognition module is used to perform a dual-item analysis on the associated frame sequence information to obtain a behavior dual-item analysis result; a behavior recognition information determination module, used to perform behavior classification and recognition and movement trajectory tracking on the target detection result based on the behavior dual-item analysis result to obtain a target behavior pattern and a target movement trajectory, and determine the target behavior recognition information according to the target behavior pattern and the target movement trajectory.

[0007] In a third aspect, the present application provides an electronic device, comprising a bus, a transceiver, a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the transceiver, the memory, and the processor are connected via the bus, and the computer program, when executed by the processor, implements the steps of any one of the above methods.

[0008] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps in any one of the above-mentioned methods when executed by a processor.

[0009] One or more technical solutions provided in this application have at least the following technical effects or advantages:

[0010] The target video information is pre-processed and converted to obtain the target usable video information, and then the dual-channel extraction algorithm is used to extract and screen the target usable video information, and the target detection result is obtained as an index, and the associated frame positioning is performed on the target usable video information to obtain the associated frame sequence information, and the behavior recognition module is trained and constructed, and the behavior recognition module is used to perform a dual analysis on the associated frame sequence information to obtain the behavior dual analysis result, and the target detection result is subjected to behavior classification and recognition and trajectory tracking based on the behavior dual analysis result to obtain the target behavior pattern and target trajectory, and then the target behavior recognition information is determined according to the target behavior pattern and target trajectory. The technical solution achieves the technical effect of achieving efficient and accurate video behavior recognition by extracting target features in parallel through dual channels, which is suitable for video behavior recognition tasks in different scenarios, thereby improving the accuracy and efficiency of behavior recognition.

[0011] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] Figure 1 This is a flowchart of the video behavior recognition method based on machine learning in this application;

[0013] Figure 2 A schematic diagram of the process of obtaining target detection results in the video behavior recognition method based on machine learning in this application;

[0014] Figure 3 This is a schematic diagram of the structure of the video behavior recognition system based on machine learning in this application;

[0015] Figure 4 This is a schematic diagram of the structure of an exemplary electronic device of the present application.

[0016] Explanation of the accompanying drawings: 11 is a feature extraction and screening module, 12 is an associated frame positioning module, 13 is a dual-item analysis result acquisition module, 14 is a behavior recognition information determination module, 1110 is a bus, 1120 is a processor, 1130 is a transceiver, 1140 is a bus interface, 1150 is a memory, 1151 is an operating system, 1152 is an application, and 1160 is a user interface. DETAILED DESCRIPTION

[0017] In the description of this application, those skilled in the art should know that this application can be implemented as a method, an apparatus, an electronic device, and a computer-readable storage medium. Therefore, this application can be specifically implemented in the following forms: complete hardware, complete software (including firmware, resident software, microcode, etc.), a combination of hardware and software. In addition, in some embodiments, this application can also be implemented in the form of a computer program product in one or more computer-readable storage media, and the computer-readable storage medium contains computer program code.

[0018] The above-mentioned computer-readable storage medium may adopt any combination of one or more computer-readable storage media. Computer-readable storage media include: electrical, magnetic, optical, electromagnetic, infrared or semiconductor systems, devices or devices, or any combination of the above. More specific examples of computer-readable storage media include: portable computer disks, hard disks, random access memories, read-only memories, erasable programmable read-only memories, flash memories, optical fibers, optical disc read-only memories, optical storage devices, magnetic storage devices, or any combination of the above. In the present application, computer-readable storage media can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device, or device.

[0019] The present application describes the provided methods, devices, and electronic devices through flowcharts and / or block diagrams.

[0020] It should be understood that each box in the flowchart and / or block diagram and the combination of boxes in the flowchart and / or block diagram can be implemented by computer-readable program instructions. These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer or other programmable data processing device to produce a machine, and these computer-readable program instructions are executed by a computer or other programmable data processing device to produce a device that implements the functions / operations specified by the boxes in the flowchart and / or block diagram.

[0021] These computer-readable program instructions may also be stored in a computer-readable storage medium that enables a computer or other programmable data processing device to work in a specific manner. In this way, the instructions stored in the computer-readable storage medium produce an instruction device product including functions / operations specified in the blocks in the flowchart and / or block diagram.

[0022] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device, so that a series of operational steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby enabling the instructions executed on the computer or other programmable data processing apparatus to provide a process for implementing the functions / operations specified in the blocks in the flowchart and / or block diagram.

[0023] The present application is described below in conjunction with the drawings in the present application.

[0024] Embodiment 1

[0025] like Figure 1 As shown, the present application provides a video behavior recognition method based on machine learning, the method comprising:

[0026] Step S1: acquiring target video information, performing preprocessing conversion on the target video information to obtain target usable video information, performing feature extraction and screening on the target usable video information using a dual-channel extraction algorithm to obtain a target detection result;

[0027] like Figure 2 As shown, further, the target detection result is obtained in S1, and the steps of this application also include:

[0028] S11: determining a dual-channel feature extraction according to a dual-channel extraction algorithm, wherein the dual-channel feature extraction includes an appearance feature extraction channel and a spatiotemporal feature extraction channel;

[0029] S12: acquiring preset target screening rules by focusing on target attribute information, training the preset target screening rules based on a convolutional neural network, and constructing an appearance semantic segmentation network and a spatiotemporal feature network recognition network;

[0030] S13: The appearance semantic segmentation network and the spatiotemporal feature network recognition network respectively perform algorithm configuration on the appearance feature extraction channel and the spatiotemporal feature extraction channel to obtain a target feature extraction dual channel;

[0031] S14: Feature capture and screening of the target available video information is performed through the target feature extraction dual channels to obtain the target detection result.

[0032] Furthermore, the application steps also include:

[0033] Obtaining a video preprocessing conversion program, wherein the video preprocessing conversion program includes video format conversion, color space conversion, resolution adjustment, and frame rate adjustment;

[0034] Performing standardization processing on the target video information based on the video preprocessing conversion program to obtain standard video information;

[0035] Performing noise identification on the standard video information, obtaining video noise characteristic information, and determining a filter type according to the video noise characteristic information;

[0036] The filter parameters are set based on the filter type and the video noise characteristic information, and the standard video information is filtered according to the filter parameters to obtain the target available video information.

[0037] Specifically, in order to achieve efficient and accurate video behavior recognition, the target video information is first obtained through the monitoring communication equipment, and the target video information is the monitoring video information including the target of interest. In order to improve the efficiency of video processing, the target video information is preprocessed and converted, and a video preprocessing conversion program is set. The video preprocessing conversion program is a video preprocessing step, including video format conversion. The video may be stored in multiple formats, such as MP4, AVI, FLV, etc. In order to ensure the compatibility of subsequent processing, the video is converted to a standard format, such as MP4; color space conversion, converting the video from RGB color space to other color spaces (such as HSV or grayscale) is helpful for target detection; resolution adjustment, high video resolution will cause the subsequent target detection algorithm to process too long, so in order to reduce the computational burden while maintaining sufficient image quality, the video resolution can be adjusted; and frame rate adjustment, if the frame rate of the video is too high, a large amount of redundant information will be generated, which will increase the processing time. By adjusting and reducing the frame rate, the video calculation amount can be reduced while maintaining key information.

[0038] Based on the video preprocessing conversion program, the target video information is standardized in sequence to obtain the preprocessed standard video information. Further, in order to improve the accuracy of target detection, the standard video information is subjected to noise identification. The video may contain various noises, such as random pixel noise, motion blur, etc. The video noise is extracted by signal spectrum analysis to obtain the corresponding video noise characteristic information, and the video noise characteristic information includes noise type (such as expansion noise, salt and pepper noise, shot noise, etc.), intensity, frequency distribution, etc. The filter type is determined according to the video noise characteristic information, and different types of noise require different types of filters for processing. For example, for high-frequency noise, a low-pass filter can be selected; for impulse noise, a median filter can be selected. Then, based on the filter type and the video noise characteristic information, the filter parameters are set by experience of filtering effect, and the filter parameters include cutoff frequency, order, etc. The standard video information is filtered according to the filter parameters to obtain the processed target available video information. Video noise is removed, video quality is improved, and the accuracy of target detection is improved.

[0039] A dual-channel extraction algorithm is used to perform feature extraction and screening on the available video information of the target. First, a dual-channel feature extraction is determined according to the dual-channel extraction algorithm. The dual-channel feature extraction is used to extract the features of the target video. Specifically, it includes an appearance feature extraction channel for extracting the appearance features of the target; and a spatiotemporal feature extraction channel for extracting the spatiotemporal features of the target. First, the attribute information of the target is obtained. The attribute information of the target includes the size, shape, and motion speed threshold of the target. The preset target screening rules are obtained through the attribute information of the target. The preset target screening rules are used to extract target features from the video information according to the preset attribute information of the target. The preset target screening rules are trained based on a convolutional neural network. The preset appearance features of the target are recognized and trained using a convolutional neural network. An appearance semantic segmentation network is constructed. The appearance semantic segmentation network is used to extract and screen targets that meet the preset appearance features. At the same time, a dual-stream convolutional neural network structure is used to perform recognition training on the preset spatiotemporal features of the target of interest. The convolutional network structure contains two data streams, namely the spatial information stream and the temporal information stream of the target of interest. The spatial and temporal features of the video target can be extracted simultaneously, and the spatiotemporal feature network recognition network is obtained by training. The spatiotemporal feature network recognition network is used to extract and screen targets that meet the preset spatiotemporal features.

[0040] The appearance semantic segmentation network is used to perform algorithm configuration on the appearance feature extraction channel, and the spatiotemporal feature network recognition network is used to perform algorithm configuration on the spatiotemporal feature extraction channel, so as to obtain a dual-channel target feature extraction channel with a dual-channel extraction algorithm function. The target feature extraction dual channel is then used to perform feature capture and screening on the available video information of the target, and the appearance features and spatiotemporal dynamic features of the target of interest are captured in parallel, so as to obtain a target detection result that meets both the preset appearance features and the preset spatiotemporal features. Video misdetection and interference are eliminated, and the accuracy of target detection is improved, thereby improving the efficiency of subsequent behavior recognition.

[0041] Step S2: using the target detection result as an index, performing associated frame positioning on the available video information of the target to obtain associated frame sequence information, wherein the associated frame sequence information includes behavior feature information of the target detection result;

[0042] Specifically, the target detection result is used as an index to locate the associated frame of the available video information of the target, determine the appearance position and time of the target in the video, and obtain the corresponding associated frame sequence information, which is a continuous frame sequence related to the target, including the behavior feature information of the target detection result, for subsequent target behavior recognition. By extracting the associated frames, the amount of video data processing is reduced, targeted video behavior recognition is achieved, and the efficiency of behavior recognition is improved.

[0043] Step S3: training and constructing a behavior recognition module, wherein the behavior recognition module includes a trajectory analysis channel and a posture analysis channel, and utilizing the behavior recognition module to perform a dual-item analysis on the associated frame sequence information to obtain a behavior dual-item analysis result;

[0044] Furthermore, the training and construction of the behavior recognition module in S3 also includes the following steps:

[0045] S31: acquiring a target behavior data set, selecting a target trajectory data set from the target behavior data set according to the trajectory step length, and downsampling the target trajectory data set to obtain a sampled trajectory data set;

[0046] S32: selecting data from the target behavior data set according to the posture step length to obtain a target posture data set, wherein the trajectory step length is smaller than the posture step length;

[0047] S33: Based on the SlowFast neural network, the sampled trajectory data set and the target posture data set are respectively used as training data for feature analysis training until a preset convergence condition is reached, thereby obtaining a trajectory analysis channel and a posture analysis channel;

[0048] S34: Constructing the behavior recognition module based on the parallel connection of the trajectory analysis channel and the posture analysis channel.

[0049] Specifically, in order to improve the efficiency of video behavior recognition, a behavior recognition module is trained and constructed. The constructed behavior recognition module is a SlowFast neural network structure, which can simultaneously perform feature parallel analysis on the target trajectory and target posture. The specific construction process is: first, the target behavior data set is acquired through big data technology, and the target behavior data set includes image data information of the historical video focus target and corresponding target trajectory feature data such as speed and direction change after convolution feature analysis, and target posture feature data such as contour and angle. Then, the target trajectory data set is selected from the target behavior data set according to the trajectory step length, wherein the trajectory step length is the frequency of data collection, and the smaller the step length, the more data is collected, and the target trajectory data set is downsampled so that the image data conforms to the size of the display area, and a thumbnail of the corresponding image data is generated to obtain a sampled trajectory data set with a smaller resolution, thereby reducing the amount of image data calculation.

[0050] At the same time, the target behavior data set is selected according to the posture step length to obtain an unprocessed target posture data set, wherein the trajectory step length is smaller than the posture step length, indicating that the amount of data collected by the posture data set is smaller than the trajectory data set. Further, in order to realize the parallel processing of video trajectory analysis and posture analysis, based on the SlowFast neural network, the sampled trajectory data set and the target posture data set are respectively used as training data for feature analysis training. The SlowFast network is a deep learning model for video analysis, which can simultaneously capture slow and fast motion information in the video. Through dual-channel model training until a preset convergence condition is reached, wherein the preset convergence condition can be a preset number of iterations or a preset analysis accuracy, a trajectory analysis channel is obtained through the sampling trajectory data set training for target trajectory feature analysis, and a posture analysis channel is obtained through the target posture data set for target posture feature analysis. Based on the parallel connection of the trajectory analysis channel and the posture analysis channel, the behavior recognition module is constructed, and the behavior recognition module is used to perform a dual analysis on the associated frame sequence information to obtain a behavior dual analysis result, and the behavior dual analysis result includes the trajectory feature analysis information and the posture feature analysis information of the target of interest. Realize dual-channel parallel processing of target behavior recognition to improve behavior recognition efficiency and accuracy.

[0051] Step S4: Based on the behavior dual analysis result, the target detection result is subjected to behavior classification and recognition and trajectory tracking to obtain a target behavior pattern and a target trajectory, and target behavior recognition information is determined according to the target behavior pattern and the target trajectory.

[0052] Furthermore, in S4, the target behavior pattern is obtained, and the steps of this application also include:

[0053] S41: collecting a behavior image data set of the target detection result, performing multi-dimensional feature extraction on the behavior image data set based on the posture analysis channel, and obtaining behavior feature dimension information;

[0054] S42: performing feature classification and labeling on the behavior image dataset according to the behavior feature dimension information to obtain a behavior multi-dimensional feature dataset;

[0055] S43: labeling the behavior multi-dimensional feature data set into behavior patterns to obtain a behavior instance labeled pattern data set;

[0056] S44: A behavior pattern classifier is obtained by training based on the behavior instance labeled pattern data set, and the behavior pattern classifier is used to perform behavior classification and recognition on the behavior binary analysis result to determine the target behavior pattern.

[0057] Furthermore, to obtain the target moving track in S4, the steps of the present application further include:

[0058] S45: performing feature collection on the target detection result to obtain a target feature data set;

[0059] S46: Building a feature twin network based on the target feature data set, wherein the feature twin network includes a target feature sub-twin network and a tracking feature sub-twin network, and the target feature sub-twin network and the tracking feature sub-twin network are shared weight networks;

[0060] S47: Input the behavior dual analysis results into the target feature sub-twin network and the tracking feature sub-twin network in time sequence for positioning, tracking and marking, and output the target moving trajectory.

[0061] Furthermore, the application steps also include:

[0062] Determine the behavior standard rules of the target detection results according to the target application scenario;

[0063] Based on the behavior standard rule, the behavior image dataset is anomaly labeled to obtain a behavior anomaly label dataset;

[0064] Perform support vector machine classification training based on the abnormal behavior label data set to build an abnormal behavior recognition model;

[0065] The abnormal behavior recognition model is used to perform abnormal behavior recognition and abnormal behavior warning on the target behavior recognition information.

[0066] Specifically, based on the behavior binary analysis result, the target detection result is subjected to behavior classification and recognition. First, a behavior image data set of the target detection result is collected. The behavior image data set is the historical scene behavior image data of the target of interest. Based on the posture analysis channel, multi-dimensional feature extraction is performed on each image data in the behavior image data set to obtain behavior feature dimension information. The behavior feature dimension information is the target posture behavior feature type, including contour, angle and other features. Then, multi-dimensional feature classification and labeling are performed on each image data in the behavior image data set according to the behavior feature dimension information to obtain a behavior multi-dimensional feature data set. The behavior multi-dimensional feature data set is the behavior image data set after multi-dimensional feature labeling.

[0067] The behavior multidimensional feature data set is labeled as a behavior pattern, and a behavior pattern label library is determined according to the behavior scenario of the target of interest, for example, behavior pattern labels such as traffic vehicles pulling over, driving in a lane, and turning. Then, each feature data in the behavior multidimensional feature data set is labeled by label matching through the behavior pattern label library to obtain a labeled behavior instance labeled pattern data set. The behavior instance labeled pattern data set is trained for pattern classification using a deep learning model to obtain a corresponding behavior pattern classifier, which is used to quickly classify behavior patterns according to target posture features. The behavior pattern classifier is used to perform behavior classification and recognition on the behavior binary analysis results to determine the corresponding target behavior pattern after automatic classification. Automated classification and recognition of target behavior patterns is achieved to improve the recognition accuracy and efficiency of behavior patterns.

[0068] Based on the behavior dual analysis results, the target detection results are tracked in terms of their trajectory. First, the target detection results are feature-collected to obtain a target feature data set, which is the appearance feature information of the target of interest for subsequent target trajectory tracking. Then, based on the target feature data set, a feature twin network is built, wherein the feature twin network is used for target trajectory tracking and is composed of a target feature sub-twin network and a tracking feature sub-twin network. The target feature sub-twin network and the tracking feature sub-twin network are shared weight networks with the same data processing process, and both use convolutional neural networks to extract and mark target features that meet the target feature data set.

[0069] Input data into two sub-networks at the same time. By comparing the outputs of the two networks, the similarity between the input samples can be calculated to achieve target trajectory tracking. The behavior dual analysis results are input into the target feature sub-twin network and the tracking feature sub-twin network in time sequence. Through target similarity comparison and analysis, the target position of interest is located, tracked and marked, and then the marked position points are connected to output the target trajectory. Intelligent recognition and tracking of the target trajectory is achieved, and the analysis accuracy and tracking efficiency of the trajectory are improved. According to the target behavior pattern and target trajectory, the target behavior recognition information is determined to achieve efficient and accurate video behavior recognition, which is suitable for video behavior recognition tasks in different scenarios, thereby improving the behavior recognition accuracy and recognition efficiency.

[0070] In order to achieve timely warning of abnormal behaviors of the target of interest, the target behavior identification information is further analyzed. First, according to the target application scenario, the behavioral standard rules of the target detection results are determined. The behavioral standard rules are the normal behavior requirement standards of the target of interest in the application scenario. Then, based on the behavioral standard rules, the behavioral image dataset is abnormally labeled, the abnormal behaviors in the target application scenario are clarified, and a behavioral abnormality label library is formed according to the abnormal behavior type labels. The behavioral abnormality label library includes all abnormal behavior types in the target application scenario, such as parking on a zebra crossing, running a red light, etc. The behavioral image dataset is annotated with abnormal labels through the behavioral abnormality label library to obtain the corresponding behavioral abnormality label dataset.

[0071] Based on the abnormal behavior label data set, support vector machine classification training is performed. The abnormal behavior label data set is used as a training sample, and the support vector machine is used to perform abnormal behavior classification training according to the data label type until the preset convergence condition is reached, and a corresponding abnormal behavior recognition model is constructed. The abnormal behavior recognition model is used to quickly classify abnormal behaviors according to the target behavior recognition features. The target behavior recognition information is used to identify abnormal behaviors through the abnormal behavior recognition model. When the target of attention exhibits abnormal behavior, the alarm mechanism is triggered to warn of abnormal target behavior so that the abnormal behavior can be handled in a timely manner. Target abnormal behavior recognition in different scenarios is achieved, and the accuracy of abnormal behavior classification is improved, thereby ensuring the timeliness of warning of target abnormal behavior.

[0072] In summary, the video behavior recognition method based on machine learning provided by this application has the following technical effects:

[0073] The target video information is pre-processed and converted to obtain the target usable video information, and then the dual-channel extraction algorithm is used to extract and screen the target usable video information, and the target detection result is obtained as an index, and the associated frame positioning is performed on the target usable video information to obtain the associated frame sequence information, and the behavior recognition module is trained and constructed, and the behavior recognition module is used to perform a dual analysis on the associated frame sequence information to obtain the behavior dual analysis result, and the target detection result is subjected to behavior classification and recognition and trajectory tracking based on the behavior dual analysis result to obtain the target behavior pattern and target trajectory, and then the target behavior recognition information is determined according to the target behavior pattern and target trajectory. The technical solution achieves the technical effect of achieving efficient and accurate video behavior recognition by extracting target features in parallel through dual channels, which is suitable for video behavior recognition tasks in different scenarios, thereby improving the accuracy and efficiency of behavior recognition.

[0074] Embodiment 2

[0075] Based on the same inventive concept as the video behavior recognition method based on machine learning in the aforementioned embodiment, the present invention also provides a video behavior recognition system based on machine learning, such as Figure 3 As shown, the system comprises:

[0076] The feature extraction and screening module 11 is used to obtain target video information, perform preprocessing and conversion on the target video information to obtain target usable video information, perform feature extraction and screening on the target usable video information using a dual-channel extraction algorithm, and obtain target detection results;

[0077] An associated frame positioning module 12 is used to perform associated frame positioning on the target available video information using the target detection result as an index to obtain associated frame sequence information, wherein the associated frame sequence information includes behavioral feature information of the target detection result;

[0078] A dual-item analysis result obtaining module 13 is used to train and construct a behavior recognition module, wherein the behavior recognition module includes a trajectory analysis channel and a posture analysis channel, and uses the behavior recognition module to perform a dual-item analysis on the associated frame sequence information to obtain a behavior dual-item analysis result;

[0079] The behavior identification information determination module 14 is used to perform behavior classification and identification and track the movement trajectory of the target detection result based on the behavior dual analysis result, obtain the target behavior pattern and the target movement trajectory, and determine the target behavior identification information according to the target behavior pattern and the target movement trajectory.

[0080] Furthermore, the feature extraction and screening module 11 is also used for:

[0081] Determine a dual-channel feature extraction algorithm, wherein the dual-channel feature extraction includes an appearance feature extraction channel and a spatiotemporal feature extraction channel;

[0082] By focusing on target attribute information, a preset target screening rule is obtained, the preset target screening rule is trained based on a convolutional neural network, and an appearance semantic segmentation network and a spatiotemporal feature network recognition network are constructed;

[0083] The appearance semantic segmentation network and the spatiotemporal feature network recognition network respectively perform algorithm configuration on the appearance feature extraction channel and the spatiotemporal feature extraction channel to obtain a target feature extraction dual channel;

[0084] The target feature extraction dual channels are used to perform feature capture and screening on the target available video information to obtain the target detection result.

[0085] Furthermore, the binary analysis result obtaining module 13 is also used for:

[0086] Acquire a target behavior data set, select a target trajectory data set from the target behavior data set according to the trajectory step length, and downsample the target trajectory data set to obtain a sampled trajectory data set;

[0087] Selecting data from the target behavior data set according to the posture step length to obtain a target posture data set, wherein the trajectory step length is smaller than the posture step length;

[0088] Based on the SlowFast neural network, the sampled trajectory data set and the target posture data set are respectively used as training data for feature analysis training until a preset convergence condition is reached, thereby obtaining a trajectory analysis channel and a posture analysis channel;

[0089] The behavior recognition module is constructed based on the parallel connection of the trajectory analysis channel and the posture analysis channel.

[0090] Furthermore, the feature extraction and screening module 11 is also used for:

[0091] Obtaining a video preprocessing conversion program, wherein the video preprocessing conversion program includes video format conversion, color space conversion, resolution adjustment, and frame rate adjustment;

[0092] Performing standardization processing on the target video information based on the video preprocessing conversion program to obtain standard video information;

[0093] Performing noise identification on the standard video information, obtaining video noise characteristic information, and determining a filter type according to the video noise characteristic information;

[0094] The filter parameters are set based on the filter type and the video noise characteristic information, and the standard video information is filtered according to the filter parameters to obtain the target available video information.

[0095] Furthermore, the behavior identification information determination module 14 is also used for:

[0096] Collecting a behavior image data set of the target detection result, performing multi-dimensional feature extraction on the behavior image data set based on the posture analysis channel, and obtaining behavior feature dimension information;

[0097] Performing feature classification and labeling on the behavior image dataset according to the behavior feature dimension information to obtain a behavior multi-dimensional feature dataset;

[0098] Labeling the behavior pattern of the behavior multidimensional feature data set to obtain a behavior instance labeled pattern data set;

[0099] A behavior pattern classifier is obtained by training based on the behavior instance labeled pattern data set, and the behavior pattern classifier is used to perform behavior classification and recognition on the behavior binary analysis result to determine the target behavior pattern.

[0100] Furthermore, the behavior identification information determination module 14 is also used for:

[0101] Performing feature collection on the target detection result to obtain a target feature data set;

[0102] Based on the target feature data set, a feature twin network is constructed, wherein the feature twin network includes a target feature sub-twin network and a tracking feature sub-twin network, and the target feature sub-twin network and the tracking feature sub-twin network are shared weight networks;

[0103] The behavior dual analysis results are input into the target feature sub-twin network and the tracking feature sub-twin network in time sequence for positioning, tracking and marking, and the target movement trajectory is output.

[0104] Furthermore, the behavior identification information determination module 14 is also used for:

[0105] Determine the behavior standard rules of the target detection results according to the target application scenario;

[0106] Based on the behavior standard rule, the behavior image dataset is anomaly labeled to obtain a behavior anomaly label dataset;

[0107] Perform support vector machine classification training based on the abnormal behavior label data set to build an abnormal behavior recognition model;

[0108] The abnormal behavior recognition model is used to perform abnormal behavior recognition and abnormal behavior warning on the target behavior recognition information.

[0109] The foregoing Figure 1 The various variations and specific examples of the video behavior recognition method based on machine learning in Example 1 are also applicable to the video behavior recognition system based on machine learning in this embodiment. Through the above detailed description of the video behavior recognition method based on machine learning, those skilled in the art can clearly understand the implementation method of the video behavior recognition system based on machine learning in this embodiment. Therefore, for the sake of brevity of the specification, it will not be described in detail here.

[0110] In addition, the present application also provides an electronic device, including a bus, a transceiver, a memory, a processor, and a computer program stored in the memory and run on the processor. The transceiver, the memory, and the processor are respectively connected via a bus. When the computer program is executed by the processor, each process of the above-mentioned method embodiment for controlling output data is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0111] Exemplary Electronic Devices

[0112] For details, see Figure 4 As shown, the present application also provides an electronic device, which includes a bus 1110 , a processor 1120 , a transceiver 1130 , a bus interface 1140 , a memory 1150 and a user interface 1160 .

[0113] In the present application, the electronic device further includes: a computer program stored in the memory 1150 and executable on the processor 1120, and when the computer program is executed by the processor 1120, each process of the above-mentioned method embodiment for controlling output data is implemented.

[0114] The transceiver 1130 is configured to receive and send data under the control of the processor 1120 .

[0115] In the present application, a bus architecture (represented by bus 1110 ) may include any number of interconnected buses and bridges. Bus 1110 connects various circuits including one or more processors represented by processor 1120 and a memory represented by memory 1150 .

[0116] Bus 1110 represents one or more of any of several types of bus structures, including a memory bus and memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. Such architectures include, by way of example and not limitation, an Industry Standard Architecture bus, a Micro Channel Architecture bus, an expansion bus, a Video Electronics Standards Association, a Peripheral Component Interconnect bus.

[0117] The processor 1120 may be an integrated circuit chip having signal processing capabilities. In the implementation process, each step of the above method embodiment may be completed by an integrated logic circuit of hardware in the processor or instructions in the form of software. The above processors include: a general-purpose processor, a central processing unit, a network processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array, a complex programmable logic device, a programmable logic array, a microcontroller unit or other programmable logic device, a discrete gate, a transistor logic device, and a discrete hardware component. The various methods, steps, and logic block diagrams disclosed in this application may be implemented or executed. For example, the processor may be a single-core processor or a multi-core processor, and the processor may be integrated into a single chip or located on multiple different chips.

[0118] Processor 1120 may be a microprocessor or any conventional processor. The method steps disclosed in the present application may be directly executed by a hardware decoding processor, or by a combination of hardware and software modules in the decoding processor. The software module may be located in a readable storage medium known in the art, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an erasable programmable read-only memory, a register, etc. The readable storage medium is located in the memory, and the processor reads the information in the memory and completes the steps of the above method in combination with its hardware.

[0119] The bus 1110 may also connect various other circuits such as peripheral devices, voltage regulators or power management circuits, and the bus interface 1140 provides an interface between the bus 1110 and the transceiver 1130, which are well known in the art. Therefore, this application will not further describe them.

[0120] The transceiver 1130 may be one element or multiple elements, such as multiple receivers and transmitters, and provides a unit for communicating with various other devices on a transmission medium. For example, the transceiver 1130 receives external data from other devices, and the transceiver 1130 is used to send data processed by the processor 1120 to other devices. Depending on the nature of the computer device, a user interface 1160 may also be provided, such as a touch screen, a physical keyboard, a display, a mouse, a speaker, a microphone, a trackball, a joystick, or a stylus.

[0121] It should be understood that in the present application, the memory 1150 may further include a memory remotely arranged relative to the processor 1120, and these remotely arranged memories may be connected to the server through a network. One or more parts of the above network may be a self-organizing network, an intranet, an extranet, a virtual private network, a local area network, a wireless local area network, a wide area network, a wireless wide area network, a metropolitan area network, the Internet, a public switched telephone network, a plain old telephone service network, a cellular telephone network, a wireless network, a wireless fidelity network, and a combination of two or more of the above networks. For example, the cellular telephone network and the wireless network may be a global mobile communication device, a code division multiple access device, a global microwave interconnection access device, a general packet radio service device, a wideband code division multiple access device, a long term evolution device, a LTE frequency division duplex device, a LTE time division duplex device, an advanced long term evolution device, a universal mobile communication device, an enhanced mobile broadband device, a massive machine type communication device, an ultra-reliable low latency communication device, and the like.

[0122] It should be understood that the memory 1150 in the present application may be a volatile memory or a non-volatile memory, or may include both a volatile memory and a non-volatile memory. Among them, the non-volatile memory includes: a read-only memory, a programmable read-only memory, an erasable programmable read-only memory, an electrically erasable programmable read-only memory, or a flash memory.

[0123] Volatile memory includes random access memory, which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory, dynamic random access memory, synchronous dynamic random access memory, double data rate synchronous dynamic random access memory, enhanced synchronous dynamic random access memory, synchronously linked dynamic random access memory, and direct memory bus random access memory. The memory 1150 of the electronic device described in the present application includes, but is not limited to, the above and any other suitable types of memory.

[0124] In the present application, the memory 1150 stores the following elements of the operating system 1151 and the application program 1152: executable modules, data structures, or subsets thereof, or extended sets thereof.

[0125] Specifically, the operating system 1151 includes various device programs, such as a framework layer, a core library layer, a driver layer, etc., which are used to implement various basic services and process hardware-based tasks. The application 1152 includes various application programs, such as a media player and a browser, which are used to implement various application services. The program implementing the method of the present application may be included in the application 1152. The application 1152 includes applets, objects, components, logic, data structures, and other computer device executable instructions that perform specific tasks or implement specific abstract data types.

[0126] In addition, the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the various processes of the above-mentioned method embodiment for controlling output data are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0127] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A video behavior recognition method based on machine learning, characterized in that: The method comprises: S1: Acquire target video information, perform preprocessing and conversion on the target video information to obtain target usable video information, perform feature extraction and screening on the target usable video information using a dual-channel extraction algorithm, and obtain target detection results; S2: using the target detection result as an index, performing associated frame positioning on the available video information of the target to obtain associated frame sequence information, wherein the associated frame sequence information includes behavioral feature information of the target detection result; S3: training and constructing a behavior recognition module, wherein the behavior recognition module includes a trajectory analysis channel and a posture analysis channel, and utilizing the behavior recognition module to perform a dual-item analysis on the associated frame sequence information to obtain a behavior dual-item analysis result; S4: performing behavior classification and identification and moving trajectory tracking on the target detection result based on the behavior dual analysis result to obtain a target behavior pattern and a target moving trajectory, and determining target behavior identification information according to the target behavior pattern and the target moving trajectory; The target detection result obtained in S1 includes: S11: determining a dual-channel feature extraction according to a dual-channel extraction algorithm, wherein the dual-channel feature extraction includes an appearance feature extraction channel and a spatiotemporal feature extraction channel; S12: acquiring preset target screening rules by focusing on target attribute information, training the preset target screening rules based on a convolutional neural network, and constructing an appearance semantic segmentation network and a spatiotemporal feature network recognition network; S13: The appearance semantic segmentation network and the spatiotemporal feature network recognition network respectively perform algorithm configuration on the appearance feature extraction channel and the spatiotemporal feature extraction channel to obtain a target feature extraction dual channel; S14: Feature capture and screening of the target available video information is performed through the target feature extraction dual channels to obtain the target detection result.

2. The method according to claim 1, characterized in that The training and construction of the behavior recognition module in S3 includes: S31: acquiring a target behavior data set, selecting a target trajectory data set from the target behavior data set according to the trajectory step length, and downsampling the target trajectory data set to obtain a sampled trajectory data set; S32: selecting data from the target behavior data set according to the posture step length to obtain a target posture data set, wherein the trajectory step length is smaller than the posture step length; S33: Based on the SlowFast neural network, the sampled trajectory data set and the target posture data set are respectively used as training data for feature analysis training until a preset convergence condition is reached, thereby obtaining a trajectory analysis channel and a posture analysis channel; S34: Constructing the behavior recognition module based on the parallel connection of the trajectory analysis channel and the posture analysis channel.

3. The method according to claim 1, characterized in that The obtaining of target available video information includes: Obtaining a video preprocessing conversion program, wherein the video preprocessing conversion program includes video format conversion, color space conversion, resolution adjustment, and frame rate adjustment; Performing standardization processing on the target video information based on the video preprocessing conversion program to obtain standard video information; Performing noise identification on the standard video information, obtaining video noise characteristic information, and determining a filter type according to the video noise characteristic information; The filter parameters are set based on the filter type and the video noise characteristic information, and the standard video information is filtered according to the filter parameters to obtain the target available video information.

4. The method according to claim 1, characterized in that The target behavior pattern is obtained in S4, including: S41: collecting a behavior image dataset of the target detection result, and performing multi-dimensional feature extraction on the behavior image dataset based on the posture analysis channel to obtain behavior feature dimension information; S42: performing feature classification and labeling on the behavior image dataset according to the behavior feature dimension information to obtain a behavior multi-dimensional feature dataset; S43: labeling the behavior multi-dimensional feature data set into behavior patterns to obtain a behavior instance labeled pattern data set; S44: A behavior pattern classifier is obtained by training based on the behavior instance labeled pattern data set, and the behavior pattern classifier is used to perform behavior classification and recognition on the behavior binary analysis result to determine the target behavior pattern.

5. The method according to claim 1, characterized in that Obtaining the target moving trajectory in S4 includes: S45: performing feature collection on the target detection result to obtain a target feature data set; S46: Building a feature twin network based on the target feature data set, wherein the feature twin network includes a target feature sub-twin network and a tracking feature sub-twin network, and the target feature sub-twin network and the tracking feature sub-twin network are shared weight networks; S47: Input the behavior dual analysis results into the target feature sub-twin network and the tracking feature sub-twin network in time sequence for positioning, tracking and marking, and output the target moving trajectory.

6. The method according to claim 4, characterized in that The method comprises: Determine the behavior standard rules of the target detection results according to the target application scenario; Based on the behavior standard rule, the behavior image dataset is anomaly labeled to obtain a behavior anomaly label dataset; Perform support vector machine classification training based on the abnormal behavior label data set to build an abnormal behavior recognition model; The abnormal behavior recognition model is used to perform abnormal behavior recognition and abnormal behavior warning on the target behavior recognition information.

7. The video behavior recognition system based on machine learning is characterized by: The system is used to implement the video behavior recognition method based on machine learning according to any one of claims 1 to 6, comprising: A feature extraction and screening module is used to obtain target video information, perform preprocessing and conversion on the target video information to obtain target usable video information, perform feature extraction and screening on the target usable video information using a dual-channel extraction algorithm, and obtain target detection results; An associated frame positioning module, used to perform associated frame positioning on the target available video information with the target detection result as an index, and obtain associated frame sequence information, wherein the associated frame sequence information includes behavioral feature information of the target detection result; A dual-item analysis result acquisition module is used to train and construct a behavior recognition module, wherein the behavior recognition module includes a trajectory analysis channel and a posture analysis channel, and the behavior recognition module is used to perform a dual-item analysis on the associated frame sequence information to obtain a behavior dual-item analysis result; A behavior identification information determination module, used to perform behavior classification and identification and travel trajectory tracking on the target detection result based on the behavior dual-item analysis result, obtain a target behavior pattern and a target travel trajectory, and determine the target behavior identification information according to the target behavior pattern and the target travel trajectory; Wherein, the feature extraction and screening module is also used for: Determine a feature extraction dual channel according to a dual channel extraction algorithm, wherein the feature extraction dual channel includes an appearance feature extraction channel and a spatiotemporal feature extraction channel; By focusing on target attribute information, a preset target screening rule is obtained, the preset target screening rule is trained based on a convolutional neural network, and an appearance semantic segmentation network and a spatiotemporal feature network recognition network are constructed; The appearance semantic segmentation network and the spatiotemporal feature network recognition network respectively perform algorithm configuration on the appearance feature extraction channel and the spatiotemporal feature extraction channel to obtain a target feature extraction dual channel; The target feature extraction dual channels are used to perform feature capture and screening on the available video information of the target to obtain the target detection result.

8. An electronic device, comprising a bus, a transceiver, a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the transceiver, the memory, and the processor are connected via the bus, wherein: When the computer program is executed by the processor, the steps in the video behavior recognition method based on machine learning are implemented as described in any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps in the video behavior recognition method based on machine learning are implemented as described in any one of claims 1 to 6.