Vehicle-mounted DMS system based on edge calculation
By using edge computing and deep learning models in the vehicle-mounted DMS system and combining a variety of sensor data, high-precision identification and real-time warning of driver distraction and fatigue are achieved, solving the problem of identification accuracy and difficulty in existing systems in complex driving scenarios. It solves the problem of insufficient handling capacity and improves driving safety.
Patent Information
- Application Number
- CN202410503699.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-25
- Publication Date
- 2024-09-20
AI Technical Summary
Existing vehicle-mounted DMS systems have low accuracy and insufficient data processing capabilities when identifying driver distraction or fatigue, and cannot effectively support the safety and speed requirements of complex driving scenarios.
An in-vehicle DMS system based on edge computing is used, combined with a forward-looking camera device, radar sensor, in-car driver monitoring camera device and alarm device, to perform image recognition and multi-task learning through YOLOV5 and RESNET50 models to achieve real-time data processing and accurate monitoring.
It improves the recognition accuracy and reliability of driver distraction and fatigue, improves driving safety, reduces false alarms and false negatives, and ensures real-time warning and feedback capabilities in complex driving scenarios.
Abstract
Description
Technical Field
[0001] The present application belongs to the field of intelligent vehicle autonomous driving technology, and in particular, relates to a vehicle-mounted DMS system based on edge computing. Background Art
[0002] In daily driving scenarios, timely reminding distracted or fatigued drivers is an important measure to ensure personnel safety. Existing in-vehicle DMS systems mainly rely on traditional 2D visible light cameras. The information obtained by this device is relatively simple. Therefore, there are many problems: (1) low recognition accuracy, prone to false alarms or missed alarms; (2) weak data processing capabilities, with the risk of untimely warnings and feedback; (3) insufficient ability to improve alertness and attention. In recent years, with the development of technology, some in-vehicle DMS systems have begun to introduce higher-resolution cameras and detect together with heart rate sensors, radars and other devices, but these systems require powerful computing power for real-time data processing and analysis. However, the existing technical level cannot support complex driving scenarios in terms of speed and safety. Summary of the invention
[0003] The present application provides an in-vehicle DMS system based on edge computing and its implementation method, which solves the problem in the prior art that the recognition accuracy of driver distraction and fatigue is low and that it cannot support complex driving scenarios in terms of speed and safety.
[0004] An embodiment of the present application provides an in-vehicle DMS system based on edge computing, including an edge computing smart box, which is respectively connected to a forward-looking camera device, a radar system, an in-vehicle driver monitoring camera device and an intelligent alarm module.
[0005] Optionally, the edge computing smart box is used to process and analyze the received natural images;
[0006] The forward-looking camera device is used to identify the target, including a visible light camera and a thermal imaging camera;
[0007] The radar system is used to monitor the road conditions ahead in real time, including a radar sensor;
[0008] The in-vehicle driver monitoring camera device is used to detect the driver's facial information and perform monitoring and data analysis; it includes an infrared fill light and an anti-glare filter;
[0009] The alarm device is used to warn that the vehicle is in a dangerous situation or the driver is engaging in dangerous behavior.
[0010] Optionally, it also includes a control system, which includes a DMS module; the DMS module is used to control the edge computing smart box, the forward-looking camera device, the radar, the in-vehicle driver monitoring camera device and the alarm device.
[0011] Optionally, the DMS module is connected to an edge computing module, a front camera module, a radar module, an in-vehicle driver monitoring camera module and an alarm module;
[0012] Among them, the edge computing module is used to control the edge computing smart box, the front camera module is used to control the front-view camera device, the radar module is used to control the radar, the in-vehicle driver monitoring camera device module is used to control the in-vehicle driver monitoring camera device, and the alarm module is used to control the alarm device.
[0013] The present application also provides a method for implementing a vehicle-mounted DMS system based on edge computing, comprising the following steps:
[0014] Step 1, capturing natural images such as driver's facial expressions and behaviors and performing noise processing;
[0015] Step 2: Transmit the natural image captured by the forward-looking camera device to the edge computing smart box, which performs image recognition processing.
[0016] Optionally, in step 2, the natural image captured by the forward-looking camera device is transmitted to the edge computing module in the edge computing smart box via the front camera module, and the edge computing module uses the YOLOV5 model and the RESNET50 model for image recognition.
[0017] Optionally, the RESNET50 model and the YOLOV5 model progressively process the image and optimize it using a multi-task learning framework. The implementation process is: first use the RESNET50 model to extract features from the image, and then input the image features extracted by the RESNET50 model into the YOLOv5 model for target detection.
[0018] Optionally, the steps for extracting features from images using the RESNET50 model are:
[0019] Step 211, input the natural image into the RESNET50 model, and the input natural image passes through a convolution layer to perform the first convolution operation;
[0020] Step 212, the natural image after the first convolution enters the residual block for residual learning;
[0021] Step 213, repeating step 212 multiple times to form multiple residual blocks;
[0022] Step 214, after all the residual blocks, the natural image passes through a global average pooling layer to reduce the dimension of the high-dimensional feature vector to obtain a one-dimensional feature vector;
[0023] Step 215, setting two parallel output branches after the most global average pooling layer for facial expression analysis and micro-expression recognition, focusing on learning fatigue-related features;
[0024] Step 216: output the classification result.
[0025] Optionally, add a custom layer after the last layer of the RESNET50 model, which is used to adjust the number of channels and spatial dimensions, and adjust the width and height of the feature map by upsampling or downsampling, so that the feature map output by the RESNET50 model has the same resolution in the spatial dimension as the input received by the YOLOv5 model.
[0026] Optionally, the steps for object detection by the YOLOv5 model are as follows:
[0027] Step 221, the image features extracted by the RESNET50 model are input into the backbone network of the YOLOv5 model;
[0028] Step 222, transferring the image features to the detection head part, performing prediction, and outputting the results;
[0029] Step 223, post-processing the output result of the YOLOv5 model, and outputting the post-processed target detection result.
[0030] This application achieves more accurate and sensitive warnings and feedback for the vehicle-mounted DMS system through the coordination of an edge computing smart box, a forward-looking camera device, a radar sensor, an in-vehicle driver monitoring camera device and an alarm device, and their implementation method, and can identify driver distraction and fatigue with high accuracy and reliability; further improve driving safety and effectively prevent safety accidents caused by driver distraction and fatigue. DETAILED DESCRIPTION
[0031] In order to make the technical problems, technical solutions and beneficial effects to be solved by the present application more clearly understood, the present application is further described in detail below in conjunction with the embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0032] An in-vehicle DMS system based on edge computing provided in an embodiment of the present application is now described. An in-vehicle DMS system based on edge computing includes an edge computing smart box, and a forward-looking camera device, a radar sensor, an in-vehicle driver monitoring camera device, and an alarm device respectively connected to the edge computing smart box.
[0033] Edge computing smart box: It is used to collect natural images of driving behavior and environmental data generated by various sensors (such as in-vehicle driver monitoring cameras, radar sensors, etc.) in real time, and use local powerful computing power to pre-process and intelligently analyze these data in real time to quickly identify driver fatigue, distraction or other unsafe driving behaviors. When potential risks are detected, the smart box will immediately activate the alarm device to provide early warning prompts in various forms such as sound and light. At the same time, it will optimize and process important data and selectively upload it to the cloud to support remote analysis, fault diagnosis, and regulatory compliance storage. It is a Jetson series edge computing device with a built-in NVIDIA graphics processor. It is not only small, but also can run multiple modern neural networks in parallel. It has powerful image processing and deep learning capabilities. Compared with existing edge computing devices, this edge computing smart box can combine visual data and artificial intelligence, and can process large amounts of image data in real time with low power consumption. By integrating high-performance, low-power GPUs, specialized deep learning acceleration hardware (such as Tensor Core), and power management technology, i.e. dynamically adjusting voltage frequency to adapt to load changes, optimizing power distribution of each component and enabling low-power mode; using a heat dissipation structure optimized by an intelligent temperature-controlled fan, and using thermal conductive materials with high heat dissipation efficiency, the device can maintain a suitable temperature to prevent overheating and effectively save electricity during high-intensity image processing and deep learning tasks, and use algorithm optimization and model simplification to achieve efficient image processing at low power consumption. At the same time, with the help of hardware units designed specifically for deep learning tasks, the image recognition processing efficiency is greatly improved, ensuring that when processing large amounts of real-time visual data, it can maintain excellent artificial intelligence performance and effectively control and reduce overall power consumption. It solves the problem of traditional cloud computing occupying the limited bandwidth of the vehicle due to excessive data transmission operations, and provides strong computing support for the vehicle-mounted DMS system.
[0034] Forward-looking camera device: used to identify targets, mainly including vehicle targets, pedestrian targets, and animals walking on all fours (hereinafter referred to as animals), etc. It includes visible light cameras and thermal imaging cameras, which work together.
[0035] Radar sensor: used to monitor the road conditions ahead in real time. The radar sensor is installed at the front of the vehicle. When the radar sensor detects that an object is approaching in front of the vehicle and the distance is too close, the edge computing smart box in the vehicle-mounted DMS system determines that there may be a risk of collision and transmits the distance information measured by the radar sensor to the DMS through the CAN bus or other communication interface. After receiving the signal, the DMS links other vehicle-mounted systems to issue warnings (such as sound prompts, visual warnings, etc.), and can also trigger the emergency brake assist function.
[0036] In-car driver monitoring camera: used to detect the driver's facial information, monitor and analyze data, and provide local prompts and warnings to the driver in real time. The driver's facial information includes head movement, eyelid movement, eye closure frequency, gaze direction, yawning frequency and other facial information.
[0037] The in-car driver monitoring camera device includes an infrared fill light and an anti-glare filter. The infrared light source LED is used to monitor the video at night or in a low-light environment, and the PWM (pulse width modulation) technology is used to control the brightness of the infrared fill light, and the output intensity can be automatically adjusted according to the ambient light. The anti-glare filter can scatter the direct light source, reduce reflections and flares, and thus improve the imaging effect in a strong light environment. Through the setting of the infrared fill light and the anti-glare filter, the in-car driver monitoring camera device can still obtain good visual signals in strong light and weak light conditions. The in-car driver monitoring camera device is a camera, and an infrared light source (IR LED) is set on the camera to realize video monitoring at night or in a low-light environment, and the PWM (pulse width modulation) technology is used to control the brightness of the infrared fill light, and the output intensity can be automatically adjusted according to the ambient light. In addition, an anti-glare filter is added to the camera, and this type of filter can scatter the direct light source, reduce reflections and flares, and thus improve the imaging effect in a strong light environment. Through the improvement of the camera hardware level, the present invention still has good visual signals in strong light and weak light conditions.
[0038] Alarm device: used to warn the vehicle of dangerous situations and dangerous behaviors of the driver, and to plan the best operation to avoid danger. The edge computing smart box calculates the incoming radar signals and the data collected by the camera to determine whether the driver's behavior is abnormal and whether the vehicle is in a dangerous situation. Specifically, the alarm device receives instructions and information from the edge computing smart box through an efficient and stable communication interface and protocol, and mainly communicates with the edge computing smart box through the vehicle network.
[0039] The DMS module is used to control the edge computing smart box, forward-looking camera, radar, in-vehicle driver monitoring camera and alarm device.
[0040] The DMS module is connected to the edge computing module, the front camera module, the radar module, the in-vehicle driver monitoring camera module and the alarm module.
[0041] Among them, the edge computing module is used to control the edge computing smart box, the front camera module is used to control the front-view camera device, the radar module is used to control the radar, the in-vehicle driver monitoring camera device module is used to control the in-vehicle driver monitoring camera device, and the alarm module is used to control the alarm device.
[0042] The edge computing-based vehicle DMS system of this application can directly display some of the driver's violations, and the driver can adjust the system to be more suitable for himself based on this record. According to the individual differences and real-time status of the driver, the edge computing module can be used to update and adjust the built-in model online, and provide customized early warning prompts and comfort optimization services.
[0043] The present application also provides a method for implementing a vehicle-mounted DMS system based on edge computing, comprising the following steps:
[0044] Step 1: Capture natural images such as driver's facial expressions and behaviors and perform noise processing.
[0045] Specifically, the front camera device captures natural images such as the driver's facial expressions and behaviors, and eliminates noise in the natural images through the image preprocessing technology of the front camera module, while minimizing the loss of original features and extracting effective information. Compared with existing image acquisition, this application can restore the real scene to the greatest extent and improve the recognition accuracy of the system.
[0046] Step 2: Transmit the natural image captured by the forward-looking camera device to the edge computing smart box, which performs image recognition processing.
[0047] Specifically, the natural image captured by the forward-looking camera device is transmitted to the edge computing module in the edge computing smart box via the front camera module. The edge computing module uses the YOLOV5 model and the RESNET50 model for image recognition.
[0048] The RESNET50 model can effectively solve the degradation problem of deep learning models and effectively improve the accuracy of the model. On the original basis, the RESNET50 model compresses the model and accelerates calculations through training such as pruning and quantization, thereby further improving the training and reasoning speed of the RESNET50 model.
[0049] The training process of the RESNET50 model is as follows:
[0050] (1) Reduce model size: A progressive hybrid pruning strategy is used to reduce model size. Sparse constraints are introduced during the training process to naturally generate sparse weights in the RESNET50 model. Fine-grained pruning is performed on the absolute value of weights and dynamic thresholds. At the same time, channel clustering analysis is performed on the convolutional layer, and structured pruning is performed in combination with inter-channel dependency information to effectively reduce the model size.
[0051] (2) Model fine-tuning: Fine-tune the pruned model. Adjust the remaining weights through back-propagation to ensure that the model performance is restored after pruning. During the fine-tuning process, closely monitor the performance on the validation set and adjust the pruning degree and strategy as needed until the model achieves the ideal compression ratio without significantly sacrificing accuracy.
[0052] (3) Weight quantization: Turn to joint optimization of weight quantization. Based on the pruning model, a multivariate weight quantization strategy is adopted to allocate different levels of quantization accuracy according to the importance of weights to make full use of limited computing resources. At the same time, through quantization-aware training, the actual quantization environment is simulated, and the quantization parameters are dynamically adjusted during the training process. The Hessian matrix is used to analyze the changes in weight distribution to ensure that the model can still maintain excellent performance after quantization.
[0053] (4) Model adjustment: After completing the weight quantization training, the quantization model is fully verified and tuned, and the quantization strategy is adjusted for the layers with poor quantization effect until the model achieves a satisfactory accuracy level while maintaining the compression rate. By improving the loss function, the convergence speed and model performance of the model during the training process are improved.
[0054] The YOLOV5 model is based on a deep convolutional neural network. Compared with traditional image recognition algorithms, deep convolutional neural networks extract more robust features through training, without the need for manually designed feature extractors, and can achieve real-time detection and classification of multiple objects in an image. The YOLOV5 model uses a single detection method to identify objects in an image. The single detection method only requires one forward pass to obtain the location and category of all objects. Therefore, the YOLOV5 model can not only improve the detection speed, but also greatly improve the accuracy of recognition, and can accurately distinguish drivers from other people.
[0055] This application progressively processes images using the RESNET50 model and the YOLOV5 model, and uses multi-task learning (MTL) to complete driver fatigue monitoring. MLT is an existing technology. MLT uses additional information sources to improve the learning performance of the current task, including improving the generalization accuracy, learning speed, and comprehensibility of the learned model; providing a stronger inductive bias, which can produce better generalization ability on a fixed training set, or reduce the number of training samples required to achieve the same performance level to further improve the accuracy of model recognition.
[0056] The RESNET50 model and the YOLOV5 model process images progressively and optimize them using a multi-task learning framework. The implementation process is as follows: first, the RESNET50 model is used to extract features from the image, and then the image features extracted by the RESNET50 model are input into the YOLOv5 model for target detection.
[0057] Specifically, the steps for extracting features from images using the RESNET50 model are as follows:
[0058] Step 211, input the natural image into the RESNET50 model, and the input natural image passes through a convolution layer to perform the first convolution operation;
[0059] In step 212, the natural image after the first convolution enters the residual block for residual learning.
[0060] In the RESNET50 model, each residual block contains two convolutional layers. The first convolutional layer performs a convolution operation on the image, as shown in step 211; then a nonlinear transformation is performed through batch normalization and an activation function (such as ReLU). The second convolutional layer performs a convolution operation on the output of the first convolutional layer, and then adds the natural image after the second convolution to the initial input image (through a jump connection) to achieve residual learning.
[0061] Step 213, repeat step 212 multiple times to form multiple residual blocks. Each time through the residual block, the feature representation of the natural image will be richer.
[0062] Step 214, after all the residual blocks, the natural image passes through a global average pooling layer to reduce the dimension of the high-dimensional feature vector to obtain a one-dimensional feature vector;
[0063] Step 215, two parallel output branches are set after the most global average pooling layer for facial expression analysis and micro-expression recognition, focusing on the learning of fatigue-related features.
[0064] Each branch contains several fully connected layers (FC Layers) and other necessary neural network structures.
[0065] The first branch is used for facial expression analysis and micro-expression recognition: the extracted features are processed through a fully connected layer and then connected to a softmax or other classification activation function to output the probability distribution of multiple emotional states, such as awake, happy, surprised, angry, sad, tired, etc.
[0066] The second branch is used to focus on learning fatigue-related features: this branch also passes through a series of fully connected layers and may be connected to a regression layer or a logistic regression layer to predict fatigue-related indicators, such as eye activity parameters (blinking frequency, eyelid opening and closing degree), yawning action detection results, etc.
[0067] Step 216: output the classification result.
[0068] The image features extracted by the RESNET50 model are input into the YOLOv5 model for object detection. To ensure that the dimension and format of the features extracted by the RESNET50 model match the input requirements of the YOLOv5 model, a custom layer is added after the last layer of the RESNET50 model.
[0069] The custom layer design process is as follows: At the end of the RESNET50 model, first add a 1x1 convolutional layer to adjust the number of channels of the output feature map to the number required by YOLOv5. Then, if the spatial size of the feature map needs to be increased, use an upsampling layer to increase the resolution of the feature map to the level required by YOLOv5. If YOLOv5 requires multi-scale features, the RESNET50 outputs of different scales can also be merged through a channel fusion layer. Finally, the features are normalized through a normalization layer to ensure that they have better properties when input to the YOLOv5 model. This custom layer is used to adjust the number of channels and spatial dimensions. The width and height of the feature map can be adjusted by upsampling or downsampling, which ensures that the feature map output by the RESNET50 model has the same resolution in the spatial dimension as the input received by the YOLOv5 model.
[0070] The steps for target detection by the YOLOv5 model are as follows:
[0071] In step 221, the image features extracted by the RESNET50 model are input into the backbone network of the YOLOv5 model.
[0072] The backbone network consists of a series of convolutional layers, which are used to extract low-level features such as edges, textures, etc. from the original image. These image features are further abstracted and integrated to form higher-level feature representations.
[0073] Step 222, transfer the image features to the detection head part, perform prediction, and output the results.
[0074] The detection head contains a series of fully connected layers for classifying and locating the extracted features. These fully connected layers make predictions for each grid cell, generating a series of bounding boxes and corresponding category labels and confidences.
[0075] During the prediction process, the YOLOv5 model calculates the position and size of the prediction box based on the image features passed from the RESNET50 model and the preset anchor boxes. Each prediction box corresponds to one or more anchor boxes and is matched based on the similarity between them. By calculating the difference between the prediction box and the real box, the model can adjust the position and size of the prediction box to make it closer to the real target object;
[0076] The YOLOv5 model calculates the confidence of each predicted box, indicating the confidence level of whether the predicted box contains the target object. The confidence calculation is based on the degree of match between the predicted box and the true box and the prior knowledge learned by the model during training.
[0077] Step 223, post-processing the output result of the YOLOv5 model, and outputting the post-processed target detection result.
[0078] Post-processing aims to optimize the detection results and improve the accuracy and robustness of detection, including border adjustment, threshold screening, etc.
[0079] In addition, the subsequent emotion recognition branch of the RESNET50 model is defined and optimized using a joint loss function. For example, the cross entropy loss function can be used for emotion classification problems. For the target detection branch of the YOLOv5 model, according to its output format (such as bounding box coordinates, category probability, etc.), the loss function corresponding to the multi-scale prediction and anchor matching strategy commonly used by the YOLO series model is used, such as YOLOLoss in the YOLOv5 model. Here, the joint loss function is mainly used in the training phase of the model, in order to simultaneously optimize the performance of the two models on their respective tasks. It is defined as: Let the loss of the RESNET50 branch be LResNet and the loss of the YOLOV5 branch be LYOLO, then the joint loss function is expressed as JointLoss = α·LResNet+β·LYOLO, where α and β are weight factors assigned to the two tasks, respectively, which are used to balance the relative contributions of the two tasks in the optimization process and are adjusted according to actual conditions.
[0080] In the present application, the forward-looking visible light camera and the thermal imaging camera in the forward-looking camera device work together and have the function of target recognition. Target recognition mainly includes vehicle targets, pedestrian targets, and animals walking on four limbs (hereinafter referred to as animals). The recognition accuracy is not less than 99%. The YOLOv5 deep learning model is selected. The YOLOv5 model mainly uses DBL components and resn residual networks for feature extraction in the feature extraction network, where DBL is a combination of convolutional layer, BN (BatchNormalization), and activation function Leakyrelu. The three together constitute the smallest component of the feature extraction network. Resn represents a residual network composed of n res units, each of which is a combination of DBL. The algorithm uses upsampling to splice to expand the dimension of the tensor, and uses the idea of multi-scale feature map detection to improve the recognition accuracy of small targets, which can better detect and identify vehicles, people and animals;
[0081] The radar sensor transmits one or more electromagnetic wave pulses or continuous frequency modulated waves through the antenna. The emitted electromagnetic waves propagate at the speed of light in the air. When encountering a target object, part of the energy will be reflected back to form an echo signal. The receiving antenna of the radar sensor captures the reflected echo signal and converts it into a processable electrical signal. Using the known speed of light c (about 3x10^8 meters / second), the distance d of the target is calculated based on the time difference Δt. The formula is: d = c*Δt / 2;
[0082] According to the distance information measured by the radar sensor multiple times and the data obtained by the forward-looking camera device, the target object can be identified and the movement trajectory can be tracked; the edge computing smart box efficiently analyzes the incoming data, and the data does not need to be uploaded to the remote data center, but is pre-processed and preliminarily analyzed locally in real time. This greatly reduces network latency and ensures the real-time response capability of intelligent decision-making. The storage and computing capabilities of the edge computing node can efficiently process massive amounts of raw data, including target detection, behavior analysis, and environmental perception. Based on the extracted features, the system uses an intelligent decision-making algorithm to evaluate the safety level of the current driving scenario. This involves a comprehensive evaluation of multiple indicators, such as calculating the fatigue index based on the driver's status, and calculating the collision risk probability based on the vehicle distance and relative speed.
[0083] The multimodal fusion technology is used to integrate the data obtained from the forward-looking visible light camera, thermal imaging camera, radar, and in-vehicle camera. The general implementation process is as follows:
[0084] 1) According to the image processing method in the above steps, feature extraction is performed on visual and thermal imaging data to generate high-dimensional representation feature vectors. The radar ranging results are directly input into the fusion process as three-dimensional spatial positioning information. Different types of features from different sensors are formatted and spliced to form a multi-modal input vector that is sent to a specially designed multi-modal fusion neural network for joint reasoning;
[0085] 2) Stack the data from different modalities directly in the feature dimension to form a new unified feature vector containing all information. For example, concatenate visible light image features, thermal imaging features, and radar ranging information on the same channel;
[0086] 3) Different weights are assigned to the feature vectors extracted from each modality to reflect their relative importance in the task, and then they are fused using methods such as dot product, concatenation or attention mechanism;
[0087] 4) Make the feature representations of different modalities interdependent during training, using adversarial training, autoencoders, or common embedding spaces;
[0088] 5) Decision-level Fusion: Integrate the preliminary decisions or classification results made independently by each modality to form a final comprehensive decision. Use Bayesian networks, Kalman filters or other probabilistic reasoning methods to integrate information from different modalities to obtain a more accurate probability distribution estimate. Dynamically assign different weights to different modalities based on different environmental conditions, time changes or task characteristics, and then combine the decisions of each modality for fusion.
[0089] Deploy the above fusion algorithm on the vehicle-mounted edge computing platform to ensure real-time processing and response of multi-source heterogeneous sensor data streams under limited resources. Quickly issue warnings based on the fused output information, and remind the driver to take corresponding actions through voice prompts, interface displays, etc., such as taking a break, adjusting driving status, etc. Even make driving assistance decisions in emergency situations, such as automatic braking warning, vehicle distance maintenance and other safety measures.
[0090] In the entire system, the edge computing smart box is the core part, responsible for coordinating the work of the radar module, camera module and image algorithm, and has the characteristics of real-time, low latency, privacy protection, localized computing, large-scale distributed computing and flexibility, ensuring the efficient operation of the vehicle-mounted DMS system. The radar module and camera module detect the driving status of the driver from different angles and provide rich data support. The image algorithm is responsible for processing this data and can accurately identify the driver's distraction and fatigue status. Through this multi-modal recognition method, the accuracy and reliability of the warning can be greatly improved, effectively preventing vehicle accidents.
[0091] This application can also use other artificial intelligence algorithms to improve the accuracy of driver distraction and fatigue warnings, such as using deep learning algorithms to identify the driver's state, thereby achieving more accurate warnings, etc. In addition, vehicle state parameters (vehicle speed, engine speed, yaw rate, lateral acceleration, steering wheel angular velocity and angular acceleration) can also be used to detect the driver's state to provide more data support, thereby further improving the accuracy and reliability of the system.
[0092] This application provides more precise and sensitive warnings and feedback, and can identify driver distraction and fatigue with high accuracy and reliability; further improve driving safety, and effectively prevent safety accidents caused by driver distraction and fatigue.
[0093] In the description of the present application, it should be understood that terms such as "length", "width", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating orientation or positional relationships, are only for the convenience of describing the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present application.
[0094] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of this application, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0095] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present application should be included in the protection scope of the present application.
Claims
1. The vehicle-mounted DMS system based on edge computing is characterized by: It includes an edge computing smart box, which is respectively connected to a forward-looking camera device, a radar system, an in-vehicle driver monitoring camera device and an intelligent alarm module.
2. The vehicle-mounted DMS system based on edge computing as claimed in claim 1, characterized in that: The edge computing smart box is used to process and analyze the received natural images; The forward-looking camera device is used to identify the target, including a visible light camera and a thermal imaging camera; The radar system is used to monitor the road conditions ahead in real time, including a radar sensor; The in-vehicle driver monitoring camera device is used to detect the driver's facial information and perform monitoring and data analysis; it includes an infrared fill light and an anti-glare filter; The alarm device is used to warn that the vehicle is in a dangerous situation or the driver is engaging in dangerous behavior.
3. The vehicle-mounted DMS system based on edge computing as claimed in claim 1 or 2, characterized in that: It also includes a control system, which includes a DMS module; the DMS module is used to control the edge computing smart box, the front-view camera device, the radar, the in-vehicle driver monitoring camera device and the alarm device.
4. The vehicle-mounted DMS system based on edge computing as claimed in claim 3, characterized in that: The DMS module is connected to an edge computing module, a front camera module, a radar module, an in-vehicle driver monitoring camera module and an alarm module; Among them, the edge computing module is used to control the edge computing smart box, the front camera module is used to control the front-view camera device, the radar module is used to control the radar, the in-vehicle driver monitoring camera device module is used to control the in-vehicle driver monitoring camera device, and the alarm module is used to control the alarm device.
5. The implementation method of the vehicle-mounted DMS system based on edge computing is characterized in that: The following steps are involved: Step 1, capturing natural images such as driver's facial expressions and behaviors and performing noise processing; Step 2: Transmit the natural image captured by the forward-looking camera device to the edge computing smart box, which performs image recognition processing.
6. The method for implementing the vehicle-mounted DMS system based on edge computing as claimed in claim 5, characterized in that: In step 2, the natural image captured by the forward-looking camera device is transmitted to the edge computing module in the edge computing smart box through the front camera module. The edge computing module uses the YOLOV5 model and the RESNET50 model for image recognition.
7. The method for implementing the vehicle-mounted DMS system based on edge computing as claimed in claim 6, characterized in that: The RESNET50 model and the YOLOV5 model process images progressively and optimize them using a multi-task learning framework. The implementation process is as follows: first, the RESNET50 model is used to extract features from the image, and then the image features extracted by the RESNET50 model are input into the YOLOv5 model for target detection.
8. The method for implementing the vehicle-mounted DMS system based on edge computing as claimed in claim 7, characterized in that: The steps for extracting features from images using the RESNET50 model are as follows: Step 211, input the natural image into the RESNET50 model, and the input natural image passes through a convolution layer to perform the first convolution operation; Step 212, the natural image after the first convolution enters the residual block for residual learning; Step 213, repeating step 212 multiple times to form multiple residual blocks; Step 214, after all the residual blocks, the natural image passes through a global average pooling layer to reduce the dimension of the high-dimensional feature vector to obtain a one-dimensional feature vector; Step 215, setting two parallel output branches after the most global average pooling layer for facial expression analysis and micro-expression recognition, focusing on learning fatigue-related features; Step 216, output the classification result.
9. The method for implementing the vehicle-mounted DMS system based on edge computing as claimed in claim 7, characterized in that: A custom layer is added after the last layer of the RESNET50 model. The custom layer is used to adjust the number of channels and spatial dimensions. The width and height of the feature map are adjusted by upsampling or downsampling so that the feature map output by the RESNET50 model has the same resolution in the spatial dimension as the input received by the YOLOv5 model.
10. The method for implementing the vehicle-mounted DMS system based on edge computing according to claim 7, characterized in that: The steps for target detection by the YOLOv5 model are as follows: Step 221, the image features extracted by the RESNET50 model are input into the backbone network of the YOLOv5 model; Step 222, transferring the image features to the detection head part, performing prediction, and outputting the results; Step 223, post-processing the output result of the YOLOv5 model, and outputting the post-processed target detection result.
