A dynamic gesture recognition method for vehicle-mounted monitoring system

By using a lightweight hand target detection network and an end-to-end dynamic gesture timing classification network in a vehicle-mounted monitoring system, combined with deep learning and neural networks, the problems of high computing resources and poor real-time performance of gesture recognition in the existing technology are solved and achieved It achieves dynamic gesture recognition with high accuracy and robustness and is suitable for real-time applications in vehicle monitoring systems.

CN118334754BActive Publication Date: 2024-10-01AUTOLINK INFORMATION TECHNOLOGY CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410758804.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-10-01
Estimated Expiration
2044-06-13

AI Technical Summary

Technical Problem

Dynamic gesture recognition methods in existing vehicle monitoring systems require high computing resources and poor real-time performance, making it difficult to effectively recognize complex gestures in practical applications.

Method used

A lightweight hand target detection network and an end-to-end dynamic gesture timing classification network are used, combined with deep learning and neural networks, to build a dynamic gesture recognition model. Gesture feature extraction and classification are performed through YOLO-MS and RepViT networks, and filtering modules are used. Optimize prediction results, reduce computing resource usage and improve real-time performance.

Benefits of technology

It achieves high-accuracy and robust gesture recognition in vehicle monitoring systems, and can detect the driver's hands and gestures in real time. It is suitable for a wide range of application scenarios, and the model parameters are low, supporting expanded recognition of more gestures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118334754B_ABST
    Figure CN118334754B_ABST
Patent Text Reader

Abstract

The present application provides a dynamic gesture recognition method for a vehicle-mounted monitoring system, which uses deep learning and neural networks to build a dynamic gesture recognition model. The dynamic gesture recognition model includes a lightweight hand target detection network and an end-to-end dynamic gesture timing classification network. It is trained based on a custom collected gesture data set and can accurately recognize a variety of custom static gestures and dynamic gestures, thereby improving the accuracy of complex gesture recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of intelligent vehicle-mounted systems, and in particular to a dynamic gesture recognition method for a vehicle-mounted monitoring system. Background Art

[0002] In-vehicle monitoring systems have been widely used in smart vehicles. In-vehicle monitoring systems usually have some gesture recognition algorithms, which capture and analyze the driver's gesture data based on machine learning and image processing technology to achieve gesture recognition.

[0003] In the prior art, some technicians have built gesture recognition algorithms based on traditional computer vision methods. These methods use sensors (such as cameras) to capture images or videos of the driver's gestures, extract features through image processing technology, and then use predefined rules for gesture recognition. The disadvantage of this method is that it requires manual design and optimization of feature extraction and classification rules, and has low accuracy for complex gestures.

[0004] In order to improve the recognition accuracy of complex gestures, some technicians have introduced machine learning algorithms into gesture recognition methods. These methods use machine learning algorithms, such as support vector machines (SVM), random forests, and convolutional neural networks (CNN), to learn the features and patterns of gestures from a large amount of gesture training data, and then classify them. This method has higher accuracy and adaptability than traditional computer vision methods, but it still has the problem of poor robustness of gesture recognition under conditions such as lighting changes, background interference, and motion blur.

[0005] With the promotion of deep learning algorithms, some technicians have also introduced deep learning algorithms into gesture recognition. These methods use deep neural network models (such as convolutional neural networks and recurrent neural networks) to learn and express gesture features, and realize gesture recognition through large amounts of data training. This method is more robust than traditional computer vision and machine learning methods, but it has the problems of high computing resource requirements and poor real-time performance, which limits its practical application in vehicle monitoring systems. Summary of the invention

[0006] In order to solve the problem that the dynamic gesture recognition method in the prior art is difficult to be applied in a vehicle-mounted system due to high computing resource requirements and poor real-time performance, the present invention provides a dynamic gesture recognition method for a vehicle-mounted monitoring system, which has stronger robustness and can perform gesture recognition more reliably. At the same time, it can run in real time in the vehicle-mounted monitoring system and occupies less computing resources, and is suitable for a wider range of application scenarios.

[0007] The technical solution of the present invention is as follows: a dynamic gesture recognition method for a vehicle-mounted monitoring system, characterized in that it comprises the following steps:

[0008] S1: define the target gesture;

[0009] The target gestures are various gestures that need to be recognized in the vehicle-mounted system, including: dynamic gestures and static gestures;

[0010] S2: Collect gesture video data and build a training dataset;

[0011] S3: Building a dynamic gesture recognition model;

[0012] The dynamic gesture recognition model includes: a lightweight hand target detection network and an end-to-end dynamic gesture temporal classification network which are arranged in sequence in the process;

[0013] The lightweight hand object detection network is built based on the YOLO-MS architecture;

[0014] The lightweight hand target detection network inputs the gesture video data and outputs a hand target detection frame;

[0015] The end-to-end dynamic gesture timing classification network includes: a backbone network, a timing network and a prediction network connected in sequence;

[0016] The backbone network is constructed based on the RepViT network, and the timing network is constructed based on a two-layer bidirectional GRU network;

[0017] Using the output of the lightweight hand object detection network as the input of the end-to-end dynamic gesture temporal classification network;

[0018] The output of the end-to-end dynamic gesture temporal classification network is a gesture prediction result;

[0019] S4: training the dynamic gesture recognition model based on the training data set to obtain the trained dynamic gesture recognition model;

[0020] S5: Based on the image acquisition device, the video data to be recognized is acquired in real time, the video data to be recognized is input into the dynamic gesture recognition model, and the gesture prediction result corresponding to the video data to be recognized is output.

[0021] It is further characterized by:

[0022] The hand target detection frame output by the lightweight hand target detection network needs to be processed as follows before being sent to the end-to-end dynamic gesture temporal classification network:

[0023] a1: confirming the number n of the hand target detection frames output by the lightweight hand target detection network;

[0024] If n=0, execute step a2;

[0025] If n=1, the hand target detection frame is recorded as the detection frame to be processed, and step a4 is executed;

[0026] Otherwise, execute step a3;

[0027] a2: record the zero matrix as the detection frame to be processed, and execute step a4;

[0028] a3: among all the hand target detection frames, calculate the hand target detection frame with the largest area, record it as the detection frame to be processed, and execute step a4;

[0029] a4: the detection frame to be processed is preprocessed in real time to obtain classification network input data, and is sent to the end-to-end dynamic gesture timing classification network;

[0030] The input preprocessing operation includes the following steps:

[0031] b1: confirm whether the detection frame to be processed is a zero matrix;

[0032] If yes, mark the center coordinates of the detection box to be processed as (0,0);

[0033] Otherwise, execute step b2;

[0034] b2: read the coordinates of the detection frame to be processed, recorded as: (x1, y1, x2, y2);

[0035] Among them, (x1, y1) is the coordinate of the upper left corner of the detection box to be processed, and (x2, y2) is the coordinate of the lower right corner of the detection box to be processed;

[0036] b3: Calculate the coordinates of the center point of the detection frame to be processed: ((x1+x2) / 2, (y1+y2) / 2);

[0037] b4: resizing the detection frame to be processed to a preset size to obtain a processed detection frame, where the processed detection frame identifies the cropped hand target;

[0038] b5: normalizing the processed detection frame and the center point coordinates to obtain the classification network input data;

[0039] The dynamic gesture recognition model also includes: an output result filtering module;

[0040] The output result filtering module is arranged behind the end-to-end dynamic gesture timing classification network, receives the gesture prediction result output by the end-to-end dynamic gesture timing classification network, and performs filtering optimization processing on the gesture prediction result to obtain an optimized gesture prediction result;

[0041] The filtering optimization process includes: performing a filtering operation on the gesture prediction result based on a custom sliding window;

[0042] The custom sliding window includes: a time window size parameter, a time window sliding step parameter and a frame extraction parameter;

[0043] The time window size parameter is used to adjust the window size for processing the predicted output sequence;

[0044] The time window sliding step parameter is equal to the time window size parameter by default, indicating non-overlapping sliding, and is used to adjust the sliding step of the above time window;

[0045] The frame extraction parameters are used to adjust the frame extraction process of the input video sequence;

[0046] In step S4, during training, an online enhancement algorithm is used, and a dynamic learning rate strategy of Adam optimizer and cosine annealing is used to perform fast iterative convergence through a back-propagation algorithm;

[0047] The online enhancement algorithm includes: random translation, rotation, chroma, brightness, contrast, saturation, affine transformation and equalization;

[0048] The prediction network in the end-to-end dynamic gesture timing classification network includes: a combination of two Dropout layers and a linear layer, and a normalization layer LN and an activation function are set between the two combinations;

[0049] The combination includes: a Dropout layer and a linear layer connected in sequence;

[0050] The training data set includes: a positive sample set and a negative sample set;

[0051] The positive sample set includes training sample data of the target gesture;

[0052] The negative sample set includes training sample data of interference gestures other than the target gesture;

[0053] In step S4, the loss function used in training adopts the designed combined loss:

[0054] ;

[0055] Among them, w1 and w2 are weights to balance the two loss terms, N is the number of samples in the training data, M is the number of defined gesture categories, i is the sample number in the training data set, j is the gesture category number, target is the smoothed target vector, logprobs is the predicted log probability, weights is the weight of the sample, predict is the output of the model, σ(.) represents the sigmoid function, α is the weight to balance the positive and negative samples, and γ is the parameter to adjust the weight of the difficult and easy samples.

[0056] The present application provides a method for dynamic gesture recognition of an in-vehicle monitoring system, which uses deep learning and neural networks to build a dynamic gesture recognition model. The dynamic gesture recognition model includes a lightweight hand target detection network and an end-to-end dynamic gesture timing classification network. It is trained based on a custom collected gesture data set, and can accurately recognize a variety of custom static gestures and dynamic gestures, thereby improving the accuracy of complex gesture recognition. The overall network framework in the present application is very lightweight, with only about 11.5M parameters, and the video prediction speed can reach more than 30 frames, ensuring that the driver's hands and gestures can be detected in real time, which is particularly suitable for use in in-vehicle systems. In the application scenario of the in-vehicle monitoring system, in order to be able to capture a complete image in a smaller space inside the vehicle, FIG. Most image acquisition devices use wide-angle cameras, which results in a very small image size of the gesture part in the picture. This application improves the recognition accuracy of smaller and blurred hand targets by preprocessing the hand target detection frame output by the lightweight hand target detection network and training the model using an online enhancement algorithm for the scene, thereby ensuring that the method has better robustness; this method not only has high recognition accuracy for static gestures and dynamic gestures, but also has a low model parameter volume, especially the end-to-end dynamic gesture timing classification network parameter volume is only 7.023M, and the lightweight hand target detection network is only 4.5M, so the model training efficiency is relatively high, so it also supports customized extended recognition of more gestures, ensuring that the method has good scalability. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] Figure 1 It is a schematic diagram of the overall process of the dynamic gesture recognition method of the vehicle monitoring system;

[0058] Figure 2 Schematic diagram of the structure of the dynamic gesture recognition model in this application. DETAILED DESCRIPTION

[0059] like Figure 1 As shown, the present invention includes a dynamic gesture recognition method for a vehicle-mounted monitoring system, which includes the following steps.

[0060] S1: define the target gesture;

[0061] The target gestures are various gestures that need to be recognized in the vehicle system, including dynamic gestures and static gestures.

[0062] In order to ensure the accuracy of gesture recognition, this method customizes the gestures used in the vehicle system. In this embodiment, static gestures include fist gestures and OK gestures; dynamic gestures include smooth gestures and book flipping gestures. When defining, for static gestures, you can specify image gestures as the target gesture; for dynamic gestures, you can follow the following steps:

[0063] According to the video data, frame data is collected. After obtaining a specified number of continuous frame data, the gesture and gesture direction on each frame data are identified, and all gestures are listed in chronological order, thus completing the pre-definition of dynamic gestures.

[0064] In specific applications, it can be defined according to the actual needs of each intelligent vehicle system to ensure that this method is more practical and universal.

[0065] S2: Collect gesture video data and build a training dataset.

[0066] The training data set includes: positive sample set and negative sample set;

[0067] The positive sample set includes training sample data of the target gesture;

[0068] The negative sample set includes training sample data of interference gestures other than the target gesture.

[0069] In specific applications, multiple groups of gesture video data of different subjects are collected using the rearview mirror camera in different cars at different times and locations. The videos contain various static and dynamic gestures of different subjects. When collecting negative sample sets, multiple groups of interfering gestures that are not in the defined gestures are collected. The training data set includes a picture set and a label set.

[0070] S3: Building a dynamic gesture recognition model;

[0071] like Figure 2 As shown, the dynamic gesture recognition model includes: a lightweight hand target detection network, an end-to-end dynamic gesture timing classification network and an output result filtering module which are arranged in sequence in the process.

[0072] Among them, the lightweight hand target detection network is built based on the YOLO-MS architecture;

[0073] The input of the lightweight hand object detection network is the gesture video data, and the output is the hand object detection box bbox. The hand object detection box bbox is output in the form of an RGB image.

[0074] In specific applications, the RGB video collected by the rearview mirror inside the car is resized and directly sent to the lightweight hand target detection network to ensure real-time monitoring.

[0075] In actual application, the inference speed of the model is mainly related to the number of parameters and the amount of calculation of the model. Generally, the smaller the number of parameters, the smaller the amount of calculation, and the faster the calculation speed. The overall framework parameter of this application is only about 11M, and the amount of calculation is only about 9GFLOPs. When the GPU on the x86 platform is running, it can reach more than 70fps. It can also meet the real-time requirements when deployed on the development board. According to the computing accuracy requirements of smart vehicles, usually 30fps can be regarded as real-time. Therefore, this method is based on the lightweight model YOLO-MS architecture to build a lightweight hand target detection network to ensure real-time monitoring, thereby ensuring that this method is suitable for application in vehicle systems.

[0076] The end-to-end dynamic gesture temporal classification network includes: a backbone network, a temporal network, and a prediction network connected in sequence;

[0077] The backbone network is built based on the RepViT network, and the sequential network is built based on a two-layer bidirectional GRU network; specifically, the sequential network includes two two-layer bidirectional GRU networks, each of which is followed by a layer normalization LN;

[0078] The prediction network in the end-to-end dynamic gesture timing classification network includes: a combination of two Dropout layers and a linear layer, and a normalization layer LN and an activation function are set between the two combinations; wherein the combination includes: a Dropout layer and a linear layer connected in sequence; and the activation function is implemented based on a ReLU function;

[0079] The output of the lightweight hand object detection network is used as the input of the end-to-end dynamic gesture temporal classification network;

[0080] The output of the end-to-end dynamic gesture temporal classification network is the gesture prediction result.

[0081] In the end-to-end dynamic gesture temporal classification network, the backbone network is built based on the RepViT network, and the temporal classification network is built based on the two-layer improved bidirectional GRU network; the prediction of the dynamic gesture network has a factor that greatly affects the accuracy, which is the motion information of the hand target. The core is to capture the temporal motion characteristics, which is what ordinary convolutional neural networks are not good at. In this application, by setting a bidirectional GRU network in the end-to-end dynamic gesture temporal classification network, the temporal motion characteristics can be captured very accurately. The bidirectional GRU network allows the end-to-end dynamic gesture temporal classification network to learn the characteristics of the hand target when it is in forward and reverse motion, thereby ensuring that the network model learns the characteristics of the movement direction of the hand target, and finally achieves a very high recognition accuracy; the existing SOTA work can basically only achieve an accuracy of more than 80, and the number of parameters is relatively large, while the technical solution of this application has achieved an accuracy of more than 95% on the test set.

[0082] The hand object detection box bbox output by the lightweight hand object detection network needs to be processed as follows before being sent to the end-to-end dynamic gesture timing classification network:

[0083] a1: confirm the number n of hand target detection boxes bbox output by the lightweight hand target detection network;

[0084] If n=0, execute step a2;

[0085] If n=1, the hand target detection box bbox is recorded as the detection box to be processed, and step a4 is executed;

[0086] Otherwise, execute step a3;

[0087] a2: record the zero matrix as the detection frame to be processed and execute step a4;

[0088] a3: Among all the hand target detection frames, calculate the hand target detection frame with the largest area, record it as the detection frame to be processed, and execute step a4;

[0089] a4: After the real-time input preprocessing operation of the detection frame to be processed, the classification network input data is obtained and sent to the end-to-end dynamic gesture timing classification network.

[0090] The input preprocessing operation includes the following steps:

[0091] b1: confirm whether the detection box to be processed is a zero matrix;

[0092] If yes, mark the center coordinate of the detection box to be processed as (0,0);

[0093] Otherwise, execute step b2;

[0094] b2: Read the coordinates of the detection box to be processed, recorded as: (x1, y1, x2, y2);

[0095] Among them, (x1, y1) is the coordinate of the upper left corner of the detection box to be processed, and (x2, y2) is the coordinate of the lower right corner of the detection box to be processed;

[0096] b3: Calculate the coordinates of the center point of the detection frame to be processed: ((x1+x2) / 2, (y1+y2) / 2);

[0097] b4: resize the detection frame to be processed to a preset size to obtain the processed detection frame, i.e., the cropped hand target;

[0098] In this embodiment, the processed detection frame is obtained by expanding the detection frame to be processed by 20% and then cropping the RGB image to a size of 256x256; if the detection frame to be processed is a zero matrix, a zero matrix of size (3, 256, 256) is input as the processed detection frame;

[0099] b5: After normalizing the processed detection box and center point coordinates, the classification network input data is obtained.

[0100] The images collected by the vehicle-mounted system are different from those collected by ordinary surveillance cameras. In the application scenario of the vehicle-mounted surveillance system, in order to collect a complete image in a small space inside the vehicle, the image acquisition equipment mostly uses a wide-angle camera installed on the rearview mirror. The image has a wide angle range, but it will result in a small image size of the gesture part in the picture.

[0101] Therefore, in this method, if there are multiple hand target detection box bboxes output by the lightweight hand target detection network, the largest one is used to prevent other bboxes that are misjudged due to small and unclear images from being input into the subsequent model; the position of each hand target detection box bbox is marked by the center point coordinates, which is especially suitable for vehicle-mounted monitoring application scenarios with more small-size bboxes; at the same time, the hand target detection box input to the end-to-end dynamic gesture timing classification network needs to be resized to enlarge it to ensure the accuracy of subsequent detection results.

[0102] In this method, the in-vehicle video acquisition device collects RGB video data without complex processing. It is simply resized and sent to a lightweight hand target detection network, ensuring the real-time performance of the method. The detection box and the center point coordinates of the detection box output by the lightweight hand target detection network are used as input data of the end-to-end dynamic gesture timing classification network, improving the recognition accuracy of the end-to-end dynamic gesture timing classification network.

[0103] The dynamic gesture recognition model also includes: an output result filtering module is arranged behind the end-to-end dynamic gesture timing classification network, receives the gesture prediction result output by the end-to-end dynamic gesture timing classification network, and performs filtering optimization processing on the gesture prediction result to obtain an optimized gesture prediction result;

[0104] The filtering optimization process includes: filtering the gesture prediction results based on a custom sliding window;

[0105] The custom sliding window includes: time window size parameter, time window sliding step parameter and frame extraction parameter;

[0106] The time window size parameter is set to 5 by default and is used to adjust the window size for processing the predicted output sequence;

[0107] The time window sliding step parameter is equal to the time window size parameter by default, indicating non-overlapping sliding, and is used to adjust the sliding step of the above time window;

[0108] The frame extraction parameter is used to adjust the frame extraction process of the input video sequence; in this embodiment, the default value is 1. If the video is 15 frames, it means no frame extraction. If it is 30 frames, it is set to 2.

[0109] For example, assuming the input video is 30fps, setting the time window size parameter to 5, the time window sliding step parameter to 5, and the frame extraction parameter to 2 means that the video will have 15 frames per second as the input of the model at an interval of 2, and then the model will output 3 gesture prediction results per second (15÷5). Filtering can effectively remove prediction jitter (assuming the prediction result in the 5-time window is [1, 1, 0, 1, 1], then the output of the window after filtering is 1). At the same time, jitter is very rare after the model is trained. The purpose of filtering is more to customize the compromise between accuracy and efficiency according to the application scenario.

[0110] This method uses a trained dynamic gesture recognition model to perform visual detection on multiple sets of videos collected in real scenes, and evaluates indicators such as accuracy and inference speed. The RGB video in the real scene can be directly input into this framework frame by frame as input, and the framework will give the gesture classification output result for each frame. In practical applications, the data collected by the acquisition device may lose the detection target due to hardware reasons of the acquisition device or unexpected interference, so that video frames without gestures may occasionally appear, corresponding to the phenomenon that the number of hand target detection boxes n output by the lightweight hand target detection network is 0. At this time, in the output of the end-to-end dynamic gesture timing classification network, the result will jitter; for example, one or two frames without gestures will jump out in the middle of a series of left-flipping book sliding gestures.

[0111] In order to improve the stability of the entire system and eliminate the jitter of the results, this method designs a sliding window filtering method to post-process the output results of the framework. The filtering method includes custom time window size parameters, time window sliding step parameters, and frame extraction parameters. Adjusting these parameters can not only effectively filter and remove the jitter of the classification result output, but also adjust the step parameters and frame extraction parameters according to the application scenario to achieve a balance between accuracy and prediction efficiency. Ensure that this method is more suitable for the driver's gesture recognition detection in the in-vehicle monitoring screen.

[0112] S4: Train a dynamic gesture recognition model based on the training data set to obtain a trained dynamic gesture recognition model.

[0113] During training, an online enhancement algorithm is used, and through the back-propagation algorithm, the Adam optimizer and the dynamic learning rate strategy of cosine annealing are used for fast iterative convergence; the online enhancement algorithm includes: random translation, rotation, chroma, brightness, contrast, saturation, affine transformation and equalization.

[0114] The loss function used in training adopts the designed combined loss function:

[0115] ,

[0116] Among them, w1 and w2 are weights to balance the two loss terms, N is the number of samples in the training data, M is the number of defined gesture categories, i is the sample number in the training data set, j is the gesture category number, target is the smoothed target vector, logprobs is the predicted log probability, weights is the weight of the sample, predict is the output of the model, σ(.) represents the sigmoid function, α is the weight to balance the positive and negative samples, and γ is the parameter to adjust the weight of the difficult and easy samples.

[0117] The combined loss function designed in this application is a function designed for classification loss, which includes two parts. The first part is:

[0118] ,

[0119] The first part is designed for sample labels. In a dynamic gesture, a dynamic gesture usually includes multiple video frames. Because the naked eye cannot judge the start of a dynamic gesture, it can only be distinguished after a series of actions. Therefore, the weight of a dynamic gesture video frame is higher as it goes on. In this method, the weights are the weights of the samples to adjust the weight of the video frame to ensure that the training results are more suitable for actual scene requirements.

[0120] During the model training process, if the loss function is not designed and the label part is directly used for training, it is easy to overfit. In this method, the label part is smoothed based on the existing technology. In this embodiment, the cross entropy function is used for smoothing, and then training is performed. On the basis of better fitting the real label, it is more in line with the application scenario requirements of the vehicle monitoring system.

[0121] The second part is:

[0122] ,

[0123] The second part is about the loss function for classification.

[0124] Most of the existing technologies only use the loss function for classification in the second part to train the model. However, in the actual application of the vehicle monitoring system, it is found that although the training effect is close to the label, the prediction result in the actual application is not accurate. In this method, based on the weight parameters w1 and w2 of the two loss terms, the loss terms of the two parts of the training data are superimposed together to form a combined loss number, which effectively improves the recognition accuracy of the model.

[0125] S5: Based on the image acquisition device, the video data to be recognized is acquired in real time, the video data to be recognized is sent to the dynamic gesture recognition model, and the gesture prediction result corresponding to the video data to be recognized is output.

[0126] After using the technical solution of the present invention, the objective shortcomings of the above-mentioned prior art can be solved or improved. This method uses technologies such as deep learning and neural networks, combined with self-collected gesture data sets for training, so as to improve the accuracy of complex gestures. In addition, this method has stronger robustness for gesture recognition under conditions of lighting changes, background interference and occlusion, and can perform gesture recognition more reliably. This method uses a lightweight model for calculation, and is also optimized in terms of computational complexity. It can run in real time in the vehicle monitoring system and occupy less computing resources. Therefore, the dynamic gesture recognition algorithm provided by this patent has significant innovation and application value in the vehicle monitoring system. Based on the technical solution of this application, the gestures of people in the car can be responded to in real time; the technical solution of this method has the characteristics of high accuracy, high robustness and high efficiency, and provides strong technical support for subsequent driver monitoring and other downstream tasks.

Claims

1. A dynamic gesture recognition method for a vehicle monitoring system, It is characterized in that It includes the following steps: S1: define the target gesture; The target gestures are various gestures that need to be recognized in the vehicle-mounted system, including: dynamic gestures and static gestures; S2: Collect gesture video data and build a training dataset; S3: Building a dynamic gesture recognition model; The dynamic gesture recognition model includes: a lightweight hand target detection network and an end-to-end dynamic gesture temporal classification network which are arranged in sequence in the process; The lightweight hand object detection network is built based on the YOLO-MS architecture; The lightweight hand target detection network inputs the gesture video data and outputs a hand target detection frame; The end-to-end dynamic gesture timing classification network includes: a backbone network, a timing network and a prediction network connected in sequence; The backbone network is constructed based on the RepViT network, and the timing network is constructed based on a two-layer bidirectional GRU network; Using the output of the lightweight hand object detection network as the input of the end-to-end dynamic gesture temporal classification network; The output of the end-to-end dynamic gesture temporal classification network is a gesture prediction result; S4: training the dynamic gesture recognition model based on the training data set to obtain the trained dynamic gesture recognition model; S5: Based on the image acquisition device, the video data to be recognized is acquired in real time, the video data to be recognized is input into the dynamic gesture recognition model, and the gesture prediction result corresponding to the video data to be recognized is output.

2. According to claim 1, a dynamic gesture recognition method for a vehicle monitoring system, Features: The hand target detection frame output by the lightweight hand target detection network needs to be processed as follows before being sent to the end-to-end dynamic gesture temporal classification network: a1: confirming the number n of the hand target detection frames output by the lightweight hand target detection network; If n=0, execute step a2; If n=1, the hand target detection frame is recorded as the detection frame to be processed, and step a4 is executed; Otherwise, execute step a3; a2: record the zero matrix as the detection frame to be processed, and execute step a4; a3: among all the hand target detection frames, calculate the hand target detection frame with the largest area, record it as the detection frame to be processed, and execute step a4; a4: The detection frame to be processed is preprocessed in real time to obtain classification network input data, and is sent to the end-to-end dynamic gesture timing classification network.

3. According to claim 2, a dynamic gesture recognition method for a vehicle monitoring system, Features: The input preprocessing operation includes the following steps: b1: confirm whether the detection frame to be processed is a zero matrix; If yes, mark the center coordinates of the detection box to be processed as (0,0); Otherwise, execute step b2; b2: read the coordinates of the detection frame to be processed, recorded as: (x1, y1, x2, y2); Among them, (x1, y1) is the coordinate of the upper left corner of the detection box to be processed, and (x2, y2) is the coordinate of the lower right corner of the detection box to be processed; b3: Calculate the coordinates of the center point of the detection frame to be processed: ((x1+x2) / 2, (y1+y2) / 2); b4: resizing the detection frame to be processed to a preset size to obtain a processed detection frame, where the processed detection frame identifies the cropped hand target; b5: After normalizing the processed detection box and the center point coordinates, the classification network input data is obtained.

4. According to claim 1, a dynamic gesture recognition method for a vehicle monitoring system, Features: The dynamic gesture recognition model also includes: an output result filtering module; The output result filtering module is arranged behind the end-to-end dynamic gesture timing classification network, receives the gesture prediction result output by the end-to-end dynamic gesture timing classification network, and performs filtering optimization processing on the gesture prediction result to obtain an optimized gesture prediction result; The filtering optimization process includes: performing a filtering operation on the gesture prediction result based on a custom sliding window; The custom sliding window includes: a time window size parameter, a time window sliding step parameter and a frame extraction parameter; The time window size parameter is used to adjust the window size for processing the predicted output sequence; The time window sliding step parameter is equal to the time window size parameter by default, indicating non-overlapping sliding, and is used to adjust the sliding step of the above time window; The frame extraction parameters are used to adjust the frame extraction process of the input video sequence.

5. According to claim 1, a dynamic gesture recognition method for a vehicle monitoring system, Features: In step S4, during training, an online enhancement algorithm is used, and a dynamic learning rate strategy of Adam optimizer and cosine annealing is used to perform fast iterative convergence through a back-propagation algorithm; The online enhancement algorithm includes: random translation, rotation, chroma, brightness, contrast, saturation, affine transformation and equalization.

6. According to claim 1, a dynamic gesture recognition method for a vehicle monitoring system, Features: The prediction network in the end-to-end dynamic gesture timing classification network includes: two combinations, a normalization layer LN and an activation function are set between the two combinations; Each of the combinations includes: a Dropout layer and a linear layer connected in sequence.

7. The dynamic gesture recognition method of a vehicle monitoring system according to claim 1, Features: The training data set includes: a positive sample set and a negative sample set; The positive sample set includes training sample data of the target gesture; The negative sample set includes training sample data of interference gestures other than the target gesture.

8. According to claim 1, a dynamic gesture recognition method for a vehicle monitoring system, Features: In step S4, the loss function used in training adopts a combined loss function: ; Among them, w 1 and w 2 is the weight to balance the two loss terms, N is the number of samples in the training data, M is the number of defined gesture categories, i is the sample number in the training data set, j is the gesture category number, target is the smoothed target vector, logprobs is the predicted log probability, weights is the weight of the sample, predict is the output of the model, σ(.) represents the sigmoid function, α is the weight to balance the positive and negative samples, and γ is the parameter to adjust the weight of the difficult and easy samples.

Citation Information

Patent Citations

  • Gesture recognition model training method, gesture recognition method and system

    CN108629288A

  • ASD child staring detection method and device and hand-eye coordination ability test equipment and method

    CN115631145A

  • Intelligent gesture recognition method and system based on deep learning

    CN116994291A

  • Action recognition method and apparatus, driving action analysis method and apparatus, and storage medium

    US20210012127A1

  • Data processing method, data training method, data identifying method and device, and storage medium

    WO2021057810A1