A method and system for identifying dangerous driving actions of drivers based on deep learning

Through the improved time transfer model and CNN network framework, combined with high-definition camera video data collection, high-accuracy and low-latency driver dangerous driving action recognition is achieved, which solves the problem of insufficient real-time and credibility of the recognition system in the existing technology. problem and improve traffic safety.

CN113128343BActive Publication Date: 2024-09-27HANGZHOU DIANZI UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110297410.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-03-19
Publication Date
2024-09-27
Estimated Expiration
2041-03-19

AI Technical Summary

Technical Problem

Existing technology is difficult to achieve high accuracy and low latency in identifying drivers' dangerous driving actions, resulting in insufficient real-time and credibility of the identification system and inability to effectively prevent traffic accidents.

Method used

An improved time transfer model (TSM) is used combined with the CNN network framework to build a recognition model through Resnet residual blocks to collect and online process driver action data in real time. High-definition cameras are used to collect video data and process time and space information of video features. , to achieve fast and accurate identification of dangerous driving actions.

Benefits of technology

It achieves high-accuracy and low-latency identification of dangerous driving actions of drivers, reduces the possibility of traffic accidents, and improves driving safety and passenger safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113128343B
    Figure CN113128343B
Patent Text Reader

Abstract

The present invention provides a method and system for identifying dangerous driving actions of drivers based on deep learning; first, the action data of the driver is collected; then a data processing cloud center is built; the TSM model is improved; then a recognition model is built, and the recognition model is trained, and finally the driver violation detection result is obtained by data processing through the built recognition system and the trained recognition model. The present invention uses an improved TSM model algorithm as the basic algorithm. The model has a very large temporal receptive field to perform highly complex temporal modeling, and converts 2DCNN into a pseudo-3D convolution, which can process time and space information, but does not increase the amount of additional calculations and does not require a higher configuration. The present invention uses a self-made data set to fine-tune the model parameters, effectively improve the generalization ability of the model, and enhance the recognition ability of specific actions. It can be widely used in the field of driving supervision, standardize the driving actions of drivers, and effectively improve national traffic safety.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the fields of computer vision and traffic safety, and uses deep learning, especially a method based on a CNN neural network, to perform safety assessment on a driver's driving actions, issue real-time warnings or upload to the cloud, thereby improving traffic safety. Background Art

[0002] As early as 2011, statistics showed that the total number of cars in use around the world has exceeded 1 billion. Looking back at historical data, the total number of cars in the world has doubled almost every 15 years since 1970. At this growth rate, it is expected that by 2050, this number will exceed 2.5 billion. By 2020, there will be 360 ​​million cars in China alone. Due to the surge in the number of cars, traffic accidents have occurred frequently, posing a great threat to the lives and safety of our people.

[0003] According to the statistical analysis report of traffic accident data, death caused by other behaviors that hinder safe driving while driving has always been the main cause of traffic accidents. Dangerous driving behavior is a time bomb in car driving. Once it explodes, the consequences are disastrous. Most traffic accidents are not accidental, but inevitable due to the accumulation of risks in normal times. Improper driving behavior but still holding a fluke mentality because no accident has occurred will continue to increase the possibility of traffic accidents. Therefore, judging and warning the driver's dangerous driving actions in advance is beneficial to traffic safety and can kill risks in advance. Therefore, it is urgent to seek a reasonable and efficient identification method.

[0004] Recognizing human actions in video streams is a challenging task that has received extensive attention from computer vision researchers. Analyzing a person's actions is not only about modeling the movements of different parts of the body, but may also require considering the person's intentions, emotions, and thoughts. Therefore, action recognition has become an important component of human behavior analysis and understanding, and is essential in various fields such as surveillance, robotics, healthcare, video search, and human-computer interaction. Unlike the task of classifying static images, video data contains both temporal and spatial information, among which temporal information plays an important role in action recognition.

[0005] In recent years, computer vision researchers have done a lot of work in different areas, including video classification, resolution, and segmentation. Action recognition based on video streams can be described as automatically identifying human actions using pattern recognition systems with minimal human-computer interaction. Typically, action recognition systems analyze video sequences or frames during training to learn the patterns of specific human actions, and then use the learned model to classify video actions during the testing phase.

[0006] In the past few years, deep learning-based methods have become very popular in the field of video processing because they can learn features from multiple levels and automatically build high-level representations of the original input. Moreover, unlike traditional methods, deep learning can fully automatically extract features, such as local perception, weight sharing, multiple convolution kernels, downsampling, etc. Local features are learned from a part of the image instead of the entire image, and the final recognition result is determined by the results of multiple convolutional layers. A popular deep learning method for processing images / frames is convolutional neural network (CNN). 3D CNN structure has been applied to generate multiple information channels and perform convolution and downsampling in adjacent video frames. Compared with traditional methods, the main advantage of deep learning methods is the ability to recognize high-level activities with complex structures. Therefore, researchers prefer to use deep learning methods to represent the features of videos. The good performance, robustness of feature extraction and generalization ability of deep learning methods are the main reasons for their increasing popularity.

[0007] In order to hierarchically identify high-level activities, multi-layer hidden Markov models were introduced in the early research stage of human behavior recognition. With the upgrading and development of hardware equipment in recent years, deep learning methods have become mainstream. Different types of deep learning techniques are applied to the field of action recognition. Because CNNs can learn visual patterns directly from image pixels without preprocessing, they have become a popular deep learning technology in the field of action recognition. Almost all recognition methods are based on CNNs for innovation. Baccouche et al. introduced a deep learning model based on a two-step neural network. The first step is to use CNNs to automatically learn the spatiotemporal features of the video, and then the second step is to use a recurrent neural network (RNN) to classify the sequence. Similarly, Ji et al. proposed a 3D CNN method for action recognition. In the 3D CNN structure, they applied multiple convolution operations at the same position of the input, which can extract multiple types of features. Then, multiple channels are generated, and convolution and subsampling can be performed on each channel in adjacent video frames. The final feature representation can be obtained by combining information from all channels. In the past two years, many action recognition networks have paid more attention to temporal modeling capabilities because actions are the product of time. The temporal transfer model (TSM) proposed by Ji Lin et al. transfers the channels of feature maps back and forth in the temporal dimension, thereby obtaining temporal modeling capabilities through 2D convolution, achieving effective results and greatly reducing the amount of calculation. Bin Kang et al. proposed the temporal activation and fusion (TEA) method to obtain temporal modeling capabilities for long videos.

[0008] At present, deep learning methods for action recognition are increasingly focusing on the model's temporal modeling capabilities to make complex action judgments. Summary of the invention

[0009] In view of the shortcomings of the prior art, the present invention proposes a method and system for identifying dangerous driving actions of drivers based on deep learning. The method can effectively identify dangerous driving actions of drivers. The method disclosed by the present invention can be widely used in driving scenarios such as taxis and buses to determine whether the driver's actions comply with driving regulations, thereby protecting the lives of passengers.

[0010] The explosive growth of video streams has brought challenges to the field of video understanding, which requires high accuracy and low computational effort. The 2DCNN method has a relatively low computational cost, but it cannot obtain the temporal relationship between video frames; the 3D CNN-based method can achieve good performance, but it requires a lot of computation, which greatly increases the cost of deploying hardware. Although many previous methods have achieved excellent recognition performance, they require sufficient computing power, have large delays, and are not real-time.

[0011] For the identification of dangerous driving actions of drivers, we detect the driver's actions and behaviors. The identification model should have the following two characteristics:

[0012] 1. High accuracy.

[0013] 2. Low latency.

[0014] For various specific behaviors of the driver, the action recognition model should make accurate and rapid judgments to prevent the driver's improper behavior from threatening the safety of passengers and himself. It is important to improve the accuracy of the action recognition model. If it is misidentified, the credibility of the recognition system will decrease, and it will have a negative impact on the driver; low latency of recognition is equally important, and timely alarms will effectively reduce the possibility of various man-made traffic accidents. Therefore, based on the above requirements, we combined the existing action recognition technology, comprehensively considered the two key indicators of accuracy and low latency, and chose to use the improved model based on the TSM (time transfer model) algorithm as the recognition model, and improved and optimized it according to the driver's driving scenario. Below, this patent will be explained in detail in combination with the steps.

[0015] A method for identifying dangerous driving actions of drivers based on deep learning, the steps are as follows:

[0016] Step 1: Collect driver’s motion data:

[0017] Collect the driver's action data in real time through the data acquisition module;

[0018] Step 2: Build a data processing cloud center;

[0019] The data processing system adopts online data processing and builds a data processing cloud center. The driver's action data collected by the data acquisition module is transmitted to the data processing cloud center through the data transmission module for centralized processing.

[0020] Step 3: Improvement of TSM model (time transfer model);

[0021] The feature map of the video model is represented as A∈R N×C×T×H×W , where N represents the numerical size of the batch, C is the number of channels, T is the time dimension, and H and W represent the spatial resolution. The TSM model transfers channels in the time dimension, including forward and backward. The information of adjacent frames will be fused with the current frame after the transfer. The improved TSM model is obtained by performing a ±2 transfer in the time dimension; for online data processing, the improved TSM model processes video information from the time dimension to the channel dimension, and transfers 1 / 4 of all channels each time, that is, 1 / 4 is transferred backward, which is used for online processing of driver video data.

[0022] Step 4: Identification model building;

[0023] The recognition model is based on the CNN network framework and uses Resnet as the backbone network of the model. The improved TSM model is integrated into a computing module and inserted into the Resnet residual block to become a variable residual block. Then, the Resnet neural network model is built with the variable residual block as the basic block to obtain the recognition model.

[0024] Step 5: Recognition model training;

[0025] The data collection module collects the required driver action data: different drivers are required to make phone calls, yawn, blink frequently, smoke, and lower their heads. The collected driver video data is decoupled into images as a data set, and the data set is divided into a training set and a test set. The built recognition model is trained with the training set to obtain the optimal model parameters, and the effect is verified with the test set.

[0026] Step 6: Data processing;

[0027] The driver's action data is collected through the data collection module, and the collected driver's action data is transmitted to the data processing cloud center through the data transmission module. The data processing cloud center pre-processes the collected driver's action video data and decouples it into images, and then transmits it to the data processing unit. The data processing unit randomly samples the obtained image data, processes the data through the trained recognition model, outputs whether the driver has violated the rules and the category of the violation, and then feeds the results back to the driver or the company's management department through the data transmission module.

[0028] A driver dangerous driving action recognition system based on deep learning includes a data acquisition module, a data processing cloud center, a data processing unit and a data transmission module;

[0029] The data acquisition module is used to collect the driver's action data in real time;

[0030] The data processing cloud center is used to pre-process the collected driver action video data and decouple it into images;

[0031] The data processing unit is arranged on the data processing cloud center, and is used to randomly sample the obtained image data, and process the data through the trained recognition model, and output whether the driver has any illegal actions and the category of the illegal actions;

[0032] The data transmission module is used to transmit the driver's action data collected by the data collection module to the data processing cloud center, and to transmit the output result of the recognition model to the driver or the company's management department.

[0033] Furthermore, the data acquisition module uses a high-definition camera, which is installed on the left front or right front of the driving seat of the vehicle.

[0034] Furthermore, the recognition model is based on the CNN network framework, using Resnet as the backbone network of the model, integrating the improved TSM model into a computing module, inserting it into the Resnet residual block to become a variable residual block, and then building the Resnet neural network model with the variable residual block as the base block to obtain the recognition model.

[0035] The beneficial effects of the present invention are as follows:

[0036] 1. Using the improved TSM model algorithm as the basic algorithm, each frame still works independently during the inference process of the convolution layer. The model has a very large temporal receptive field for highly complex temporal modeling. This method transforms 2D CNN into a pseudo-3D convolution, which can process temporal and spatial information without adding additional computational complexity. Therefore, it is very hardware-friendly and does not require high configuration.

[0037] 2. Use self-made data sets to fine-tune the model parameters, effectively improve the generalization ability of the model, and enhance the ability to recognize specific actions of this patent.

[0038] 3. It can be widely used in the field of driving supervision, standardize the driver's driving actions, and effectively improve national traffic safety. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 A schematic diagram of an improved TSM model according to an embodiment of the present invention;

[0040] Figure 2 The residual block diagram of the embodiment of the present invention is changed;

[0041] Figure 3The figure is a flow chart of an embodiment of the present invention. DETAILED DESCRIPTION

[0042] The specific implementation of the invention patent is described in detail below in conjunction with the drawings of this patent.

[0043] Step 1: Collect driver's motion data.

[0044] Install a Hikvision HD camera (you can choose a rotating dome camera to track the driver's movement) on the left or right front of the driver's seat of a vehicle (such as a bus, taxi, etc.) to collect the driver's motion data in real time;

[0045] Step 2: Build a data processing cloud center.

[0046] There are two ways to build a data processing system. The first is to place a data processing unit (microprocessor, including CPU and GPU) directly on each vehicle to process the video data offline. This can effectively reduce data transmission delays and enable better real-time processing, but it is more expensive. The second is to build a data processing cloud center to transmit the driver's video data to the data center for centralized processing. The processed results are directly returned to the driver as a reminder or to the relevant company.

[0047] Therefore, the data processing system of the present invention adopts online data processing, builds a data processing cloud center, and transmits the driver's action data collected by the data collection module to the data processing cloud center through the data transmission module for centralized processing.

[0048] Step 3: Improvement of TSM model (time transfer model);

[0049] First, consider a normal convolution operation. For simplicity, use a one-dimensional convolution with a convolution kernel of 3 as an example. Assume that the weight of the convolution kernel is W = (w1, w2, w3), and the input X is a one-dimensional vector of finite length. The convolution operation Y = Conv (W, X) can be written as Y i =w1X i-1 +w2X i +w3X i+1 We can decouple the convolution operation into two steps: transfer and multiplication accumulation: we transfer the input X by -2, 0, 2, and the transferred X is multiplied by w1, w2, and w3 respectively, and the final sum is Y.

[0050] The transfer operations are:

[0051]

[0052] The multiply-accumulate operation is:

[0053] Y=w1X-1 +w2X 0 +w3X 1

[0054] The first step of transfer can be performed without any multiplication. Although the second step requires computation, the convolution kernel of TSM is 2D, and compared with other 2D-based methods, there is no additional computational cost.

[0055] In general, the feature map of the video model can be represented as A∈R N×C×T×H×W , where N represents the numerical size of the batch, C is the number of channels, T is the time dimension, and H and W represent the spatial resolution. Traditional 2D CNN operates independently in the time dimension without temporal modeling. In contrast, the TSM model (Figure 1) transfers channels in the time dimension, including forward and backward, and the information of adjacent frames will be fused with the current frame after the transfer. The idea of ​​this method is that the convolution operation includes transfer and multiplication and accumulation. We perform ±2 transfers in the time dimension (the original algorithm is 1, for this, because the driver's action amplitude is not too large, the adjacent frames are directly too similar, so the number of transfer steps is increased to better fit the 3D features), which is equivalent to changing from the time dimension to the channel dimension. Each time we transfer 1 / 4 of all channels, that is, 1 / 8 forward transfer and 1 / 8 backward transfer. The TSM model can operate offline and online, corresponding to our offline and online data processing centers. However, online video cannot obtain future video frames, so only the channel is transferred backward, with a transfer ratio of 1 / 4, that is, 1 / 4 backward transfer, for online processing of driver video data.

[0056] Figure 1 A schematic diagram of an improved TSM model according to an embodiment of the present invention;

[0057] Step 4: Identification model building;

[0058] The recognition model is based on the CNN network framework. In order to better increase the depth of the network, this patent uses Resnet as the backbone network of the model, integrates the improved TSM model into a computing module, inserts it into the Resnet residual block, and becomes a variable residual block (Figure 2). Then, the Resnet neural network model is built with the variable residual block as the base block to obtain the recognition model.

[0059] Step 5: Recognition model training;

[0060] The data collection module collects the required driver action data: different drivers are required to make phone calls, yawn, blink frequently, smoke, and lower their heads. The collected driver video data is decoupled into images as a data set, and the data set is divided into a training set and a test set. The built recognition model is trained with the training set to obtain the optimal model parameters, and the effect is verified with the test set.

[0061] Step 6: Data processing;

[0062] The driver's action data is collected through the data acquisition module, and the collected driver's action data is transmitted to the data processing cloud center through the data transmission module. The data processing cloud center pre-processes the collected driver action video data and decouples it into images, and then transmits it to the data processing unit. The data processing unit randomly samples the obtained image data (randomly selects one image every eight consecutive images), and processes the data through the trained recognition model, outputs whether the driver has violated the rules and the category of the violation, and then feeds the results back to the driver or the company's management department through the data transmission module.

[0063] Figure 3 The figure is a flow chart of an embodiment of the present invention.

[0064] A driver dangerous driving action recognition system based on deep learning, including a hardware system (data acquisition module, data processing cloud center) and a software system (data processing unit, data transmission module);

[0065] The data acquisition module is used to collect the driver's action data in real time;

[0066] The data processing cloud center is used to pre-process the collected driver action video data and decouple it into images;

[0067] The data processing unit is arranged on the data processing cloud center, and is used to randomly sample the obtained image data, and process the data through the trained recognition model, and output whether the driver has any illegal actions and the category of the illegal actions;

[0068] The data transmission module is used to transmit the driver's action data collected by the data collection module to the data processing cloud center, and to transmit the output result of the recognition model to the driver or the company's management department.

[0069] Furthermore, the data acquisition module uses a high-definition camera, which is installed on the left front or right front of the driving seat of the vehicle.

[0070] Furthermore, the recognition model is based on the CNN network framework, uses Resnet as the backbone network of the model, integrates the improved TSM model into a computing module, inserts it into the Resnet residual block to become a variable residual block, and then builds the Resnet neural network model, i.e., the recognition model, with the variable residual block as the base block.

Claims

1. A method for identifying dangerous driving actions of drivers based on deep learning. It is characterized in that Here are the steps: Step 1: Collect driver’s motion data: Collect the driver's action data in real time through the data acquisition module; Step 2: Build a data processing cloud center; The data processing system adopts online data processing and builds a data processing cloud center. The driver's action data collected by the data collection module is transmitted to the data processing cloud center through the data transmission module for centralized processing; Step 3: Improvement of TSM model; The feature map of the video model is represented as A∈R N×C×T×H×W , where N represents the numerical size of the batch, C is the number of channels, T is the time dimension, and H and W represent the spatial resolution; the TSM model transfers channels in the time dimension, including forward and backward, and the information of adjacent frames will be fused with the current frame after the transfer; the improved TSM model is obtained by performing a ±2 transfer in the time dimension; for online data processing, the improved TSM model processes video information from the time dimension to the channel dimension, and transfers 1 / 4 of all channels each time, that is, 1 / 4 is transferred backward, which is used for online processing of driver video data; Step 4: Identification model building; The recognition model is based on the CNN network framework, using Resnet as the backbone network of the model. The improved TSM model is integrated into a computing module and inserted into the Resnet residual block to become a variable residual block. Then, the Resnet neural network model is built with the variable residual block as the base block to obtain the recognition model. Step 5: Recognition model training; The data collection module collects the required driver action data: different drivers are required to make phone calls, yawn, blink frequently, smoke, and lower their heads; the collected driver video data is decoupled into images as a data set, and the data set is divided into a training set and a test set. The built recognition model is trained with the training set to obtain the optimal model parameters, and the effect is verified with the test set; Step 6: Data processing; The driver's motion data is collected through the data acquisition module, and the collected driver's motion data is transmitted to the data processing cloud center through the data transmission module. The data processing cloud center pre-processes the collected driver's motion video data and decouples it into images, and then transmits it to the data processing unit; the data processing unit randomly samples the obtained image data, and processes the data through the trained recognition model, outputs whether the driver has any illegal actions and the category of the illegal actions, and then feeds back the results to the driver or the company's management department through the data transmission module.

2. A system for identifying dangerous driving actions of a driver based on deep learning according to claim 1, It is characterized in that It includes data acquisition module, data processing cloud center, data processing unit and data transmission module; The data acquisition module is used to collect the driver's action data in real time; The data processing cloud center is used to pre-process the collected driver action video data and decouple it into images; The data processing unit is arranged on the data processing cloud center, and is used to randomly sample the obtained image data, and process the data through the trained recognition model, and output whether the driver has any illegal actions and the category of the illegal actions; The data transmission module is used to transmit the driver's action data collected by the data collection module to the data processing cloud center, and to transmit the output result of the recognition model to the driver or the company's management department.

3. A driver dangerous driving action recognition system based on deep learning according to claim 2, It is characterized in that Furthermore, the data acquisition module uses a high-definition camera, which is installed on the left front or right front of the driving seat of the vehicle.