All-weather distracted driving detection method based on multi-modal adaptive weight fusion

Through a multi-modal adaptive weight fusion method that combines near-infrared and visible light modes in an all-weather environment, it solves the problem of low accuracy of traditional detection methods in low-illumination environments and achieves more efficient distracted driving behavior detection. The richness of image information and the accuracy of detection are enhanced.

CN118587690AActive Publication Date: 2024-09-03DALIAN NATIONALITIES UNIVERSITY

Patent Information

Application Number
CN202410762225.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-09-03
Estimated Expiration
2044-06-13

AI Technical Summary

Technical Problem

In an all-weather environment, traditional distracted driving behavior detection methods are difficult to accurately extract and identify the driver's eye and hand features in low-illumination environments, resulting in poor detection results and failing to meet the detection needs of the traffic supervision department.

Method used

Using a method based on multi-modal adaptive weight fusion, the near-infrared and visible light modes are combined, and a well-trained all-weather distracted driving behavior detection model is generated by constructing an illumination weight adjustment network and a near-infrared and visible light image fusion network, using YoloV5 The dark light enhancement network performs image enhancement and feature extraction to improve the accuracy and reliability of detection.

Benefits of technology

It improves the accuracy and reliability of distracted driving behavior detection in all-weather environments, enhances image information entropy, improves the ability to extract driver image features, can more accurately judge the driver's hand status, and reduces traffic accidents. occurrence.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118587690A
    Figure CN118587690A
Patent Text Reader

Abstract

The invention discloses an all-weather distracted driving detection method based on multi-modal adaptive weight fusion. The method comprises the following steps: constructing a multi-modal adaptive weight fusion-based network comprising an illumination weight adjustment network and a near-infrared light and visible light image fusion network; the illumination likelihood feature value of the currently input visible light image can be extracted through the illumination weight adjustment network; according to a fusion weight generated by normalization of the output illumination likelihood characteristic value, inputting the visible light and near-infrared image into an image fusion network, and then outputting a fused image; inputting the fused image marked with the distraction driving label into a YoloV5-based dark light enhancement network model to obtain a driving behavior state corresponding to the distraction driving label; and obtaining whether the state is distraction driving according to a preset distraction driving condition. The advantages of the near-infrared light and the visible light are combined to enhance the information extraction capability of the driver image features, the distracted driving detection accuracy is improved, and all-weather distracted driving detection requirements are met.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of driving monitoring, and in particular to an all-weather distracted driving detection method based on multi-modal adaptive weight fusion. Background Art

[0002] Since truck logistics transport fleets need to drive in all-weather environments, they often face low-light environments. In low-light environments, traditional distracted driving behavior detection methods have difficulty accurately extracting and identifying features such as the driver's eyes and hands, resulting in poor detection of driver fatigue, mobile phone use, smoking and drinking behaviors, which seriously affects the accuracy of distracted driving behavior detection.

[0003] At present, in order to solve the problem of distracted driving behavior detection in all-weather environments, near-infrared camera acquisition methods are often used, but the image resolution is low, the details of the detection target cannot be well presented, and distortion will occur in places with rich textures; or the low-light image denoising and brightness enhancement method is used to improve the low-light environment image detection effect, but the brightness is too strong and the detection target information is lost under normal light conditions. These methods cannot meet the detection needs in all-weather environments well. Prior art application number CN202110702797.X discloses a distracted driving adaptive detection system and method, which uses seat position coordinates and collected driver's face image to determine the degree of facial feature deviation of the driver to determine whether distracted driving is involved. Prior art application number CN202010980521.3 discloses a distracted driving behavior risk assessment method, which determines the driving behavior type and driving task, designs driving plans and acquisition parameters, extracts the frequency of abnormal acceleration events, preliminarily evaluates the risk level of driving behavior, compares double driving performance, and cross-compares triple driving performance to obtain the risk level of distracted driving. The above methods are not limited to image processing methods and are not suitable for scenarios where traffic regulatory authorities directly use image processing. The prior art application number CN202110379880.8 discloses a cross-modal eye state recognition method from near-infrared light to visible light. By constructing a cross-modal eye state recognition framework from near-infrared light to visible light, the recognition of eye state is realized. It is also not suitable for distracted driving detection.

[0004] Therefore, in the field of distracted driving detection, it is necessary to combine the advantages of near-infrared light and visible light to conduct all-weather detection. Summary of the invention

[0005] 1. Technical problems to be solved:

[0006] In response to the above technical problems, the present invention provides an all-weather distracted driving detection method based on multi-modal adaptive weight fusion, which fuses the visible light modality and the near-infrared modality to improve the accuracy and reliability of distracted driving behavior detection in all-weather environments, so as to adapt to distracted driving behavior detection in all-weather environments.

[0007] 2. Technical solution:

[0008] The all-weather distracted driving detection method based on multi-modal adaptive weight fusion is characterized by comprising the following steps:

[0009] Step 1: Construct a near-infrared-visible light driver image dataset; use near-infrared and visible light binocular cameras to simultaneously collect near-infrared and visible light images of drivers in all-weather environments, where the near-infrared image and visible light image collected simultaneously are used as a sample in the dataset;

[0010] Step 2: construct a network based on multimodal adaptive weight fusion; the network based on multimodal adaptive weight fusion includes an illumination weight adjustment network and a near-infrared and visible light image fusion network; the illumination weight adjustment network includes a plurality of convolutional layers connected in sequence, a global average pooling GAP and two fully connected layers; the visible light image labeled as day or night is input into the illumination weight adjustment network to extract the current illumination likelihood feature value of the input image;

[0011] Step 3: The near-infrared and visible light image fusion network includes a visible light image feature extraction module, a near-infrared image feature extraction module, a feature weighted fusion module and an image reconstruction module; after the visible light image feature extraction module is connected in parallel with the near-infrared image feature extraction module, the features extracted from the input visible light image and the near-infrared image and the generated fusion weights are transferred to the feature weighted fusion module for weighted fusion; the fused feature information is used to obtain a fused image through the image reconstruction module;

[0012] Step 4: Use the data set generated in step 1 to generate a training set and a validation set to train the network based on multimodal adaptive weight fusion until the model converges;

[0013] Step 5: Construct a dark light enhancement network model based on YoloV5, which is a dark light enhancement network model that adds a PE-Net image enhancement network to the input end of the YoloV5 network; the PE-Net image enhancement network includes a feature extraction module FEM, an enhancement module EM and a fusion module FM that are connected in sequence;

[0014] Step 6: label the image fused in step 5 with a distracted driving label; the distracted driving label is a hand state label; the hand state includes normal, playing with mobile phone, smoking, and drinking water;

[0015] Step 7: Use the labeled images in step 6 as sample data sets of the YoloV5-based dark light enhancement network model, input them into the YoloV5-based dark light enhancement network model constructed in step 5 for training and verification, and obtain a trained all-weather distracted driving behavior detection model;

[0016] Step 8: Based on the preset time period for collecting images, the near-infrared and visible light images of the truck driver are continuously acquired, and the near-infrared and visible light images of the driver with the same time series information are simultaneously input into the trained network based on multimodal adaptive weight fusion, and the fused image is output; the fused image is passed to the trained all-weather distracted driving behavior detection model to obtain the driving behavior state corresponding to the distracted driving label of the driver, and the presence of distracted driving and the type of distracted driving are determined based on the obtained driving behavior state.

[0017] Furthermore, the step 2 extracts the current illumination likelihood feature value of the input image from the input illumination weight adjustment network of the visible light image labeled as day or night; specifically includes the following steps:

[0018] S21: Convert the visible light image in RGB format to YCbCr format using the following formula:

[0019] Y=0.299R+0.587G+0.114B

[0020] Cb=-0.1687R-0.3313G+0.5B+128

[0021] Cr=0.5R-0.4187G-0.0813B+128 (1)

[0022] In the above formula, Y is the brightness channel corresponding to the visible light image, which represents the brightness information of the image; Cb is the blue chromaticity difference component channel, which represents the information of blue color information compared to brightness; Cr is the red chromaticity difference component channel, which represents the information of red color information compared to brightness; R, G, and B represent the red, green, and blue channel values ​​of the visible light image, respectively; wherein the Y channel of the visible light image is input into the illumination weight adjustment network to obtain the near-infrared fusion weight and the visible light fusion weight; specifically, the following steps are included:

[0023] S22: compress the Y channel information of the visible light image through five convolutional layers connected in sequence and extract the brightness features of the Y channel in the image.

[0024] S23: Integrate the brightness features through global average pooling GAP; the global average pooling formula is:

[0025]

[0026] Where y is the output value of global average pooling, H, W are the height and width of the image, and x ij is the value of the image at (i, j) of the Y channel;

[0027] S24: After the brightness information value after global average pooling is input into two fully connected layers, the negative values ​​are filtered using the ReLU activation function to calculate the illumination likelihood feature value P of the current visible light image. d and P n , that is, the current input visible light image belongs to the daytime illumination likelihood eigenvalue P d and the illumination likelihood eigenvalue P belonging to the night n ; The formula for generating the illumination likelihood eigenvalue is as follows;

[0028] {P d ,P n}=N LIW (I vis ) (3)

[0029] In the above formula, P d and P n They represent the illumination likelihood eigenvalues ​​of the current input visible light image belonging to the daytime and the illumination likelihood eigenvalues ​​of the nighttime, respectively. LIW represents the illumination weight adjustment network, I vis Represents the current input visible light image;

[0030] S25: The illumination likelihood eigenvalue P d and P n , normalized to generate the near-infrared fusion weight W ir and visible light fusion weight W vis .

[0031] Furthermore, the visible light image feature extraction module and the near infrared image feature extraction module in step 3 are both 7*7 convolutional layers and 3*3 convolutional layers connected in sequence; this step specifically includes:

[0032] S31: The visible light image and the near infrared image collected at the same time are input into the corresponding visible light image feature extraction module and the near infrared image feature extraction module respectively; after the input visible light image is converted through YCbCr, the information of the three channels of YCbCr is input into the visible light image feature extraction module to obtain the corresponding three channel output feature values ​​of Y, Cb, and Cr; the gray channel information in the input near infrared image is passed through the near infrared image feature extraction module to obtain the feature value I of the gray channel ir; S32: The feature information of the extracted visible light and near infrared light images, the near infrared fusion weights and the visible light fusion weights generated in step S24 are weighted and fused through the feature weighted fusion module, that is, the values ​​of each channel are weighted and summed as follows:

[0033] Y'=W vis *Y+W ir *I ir

[0034] Cb'=W vis *Cb+W ir *I ir

[0035] Cr'=W vis *Cr+W ir *I ir (4)

[0036] In the above formula, Y', Cb' and Cr' are the three channel values ​​of Y, Cb and Cr after feature weighted fusion; Y, Cb and Cr are the values ​​of Y, Cb and Cr channels after the visible light image is converted to YCbCr format. ir is the grayscale channel value of the near-infrared image;

[0037] S33: Image reconstruction; the image reconstruction module first integrates and extracts the feature information fused in step S34 through a 3*3 convolution layer, and then passes through a 1*1 convolution layer; the 1*1 convolution layer has three convolution kernels to convert the feature information into a fused image with the same size and number of channels as the input image; finally, the reconstructed image is converted into RGB format, which is the fused image.

[0038] Furthermore, when training the model of the network based on multimodal adaptive weight fusion, the loss function used by the near infrared and visible light image fusion network is:

[0039]

[0040] In the above formula is the loss function value of the multimodal adaptive weight fusion network model, W ir and W vis Respectively represent the near infrared fusion weight and the visible light fusion weight, is the intensity loss value of the near infrared image, is the intensity loss value of the visible light image; and The formula is as follows:

[0041]

[0042] Where H and W are the height and width of the input image, respectively, ‖‖1 represents the L1 norm, and ‖I f -I ir ‖1 and ‖I f -I vis The formula ‖1 is as follows:

[0043]

[0044] Where i=1, 2, 3 represent the R channel, G channel, and B channel of the RGB format image respectively; the first formula in the above formula means that the element value of each channel of the fused image is subtracted from the element value of each channel of the corresponding near-infrared image to obtain the absolute value, and then all their absolute values ​​are added; the second formula in the above formula means that the element value of each channel of the fused image is subtracted from the element value of each channel of the corresponding visible light image to obtain the absolute value, and then all their absolute values ​​are added;

[0045] The loss function of the illumination weight adjustment network is shown in formula (8); LIW-Net is actually an image classifier to distinguish whether the image belongs to daytime or nighttime;

[0046]

[0047] in is the cross entropy loss function value of the illumination weight adjustment network LIW-Net, z is the label value of the input image; the night image is labeled as 0, and the day image is labeled as 1; y = [P d ,P n ] is the output value of LIW-Net, and σ is the Softmax function.

[0048] Furthermore, in step five, the feature extraction module FEM of the PE-Net image enhancement network is a single-branch network with 5 convolutional layers, and the convolution kernel of each convolutional layer is 3*3, the step size is 1, and the activation function is the ReLU nonlinear function; and each layer output of FEM is both the input of the next layer and the input of the corresponding subnet of EM; the enhancement module EM contains 5 subnets, each of which includes three convolutional layers and three deconvolutional layers, and the convolution kernel of its convolutional layer and deconvolution layer is 3*3. Each subnet corresponds to a layer output of FEM, which is used to extract deep features in the image and achieve image enhancement; the fusion module FM uses a 1*1 convolution kernel to receive the output of all EM layers and weightedly merge them, so as to combine the deep feature information of the image for image enhancement.

[0049] Furthermore, step eight specifically includes the following steps:

[0050] S81: calling visible light and near infrared binocular cameras to collect images of the driver in real time, and obtaining near infrared images and visible light images with the same time sequence information;

[0051] S82: Load the trained network model based on multimodal adaptive weight fusion, input the driver's near-infrared image and visible light image with the same time series information into the network model based on multimodal adaptive weight fusion, and output the fused driver image;

[0052] S83: Load the trained all-weather distracted driving behavior detection model; input the fused driver image into the YoloV5-based dark light enhancement network model, and output the driving behavior status of the image;

[0053] S84: Based on steps S81 to S83, the driving behavior status of the driver at other times is obtained, and whether the current driver is in distracted driving behavior is determined according to preset judgment conditions.

[0054] Furthermore, in step S84, it is determined whether the current driver is in a distracted driving behavior according to preset determination conditions, and the preset determination conditions are: at least one of the preset conditions is met, that is, the driver is determined to be in a distracted driving behavior: the preset conditions include one or more states of the driver's hands playing with a mobile phone, smoking, and drinking water.

[0055] 3. Beneficial effects:

[0056] (1) The method disclosed herein is an all-weather distracted driving detection method based on multimodal adaptive weight fusion, wherein the network based on multimodal adaptive weight fusion includes an illumination weight adjustment network and a near-infrared and visible light image fusion network; wherein the illumination weight adjustment network is used to identify the light environment (day or night) in which the visible light image is located, and then output the most appropriate image fusion weight under the current light environment, thereby improving the accuracy of image fusion. The near-infrared and visible light image fusion network not only fuses the visible light image features and infrared light image features collected simultaneously, but also can improve the information entropy contained in the fused image, which is greater than the information entropy contained in the visible light image and the near-infrared image, and can enhance the extraction of driver image features and improve the accuracy of distracted driving detection.

[0057] (2) In this method, the visible light image in RGB format needs to be converted into YCbCr format before the image is input into the model. In the process of extracting features from the visible light image, features are extracted from the three channels of Y, Cb, and Cr respectively. Due to the characteristics of the Y channel in reflecting the image brightness information, we can determine the lighting environment of the current image by extracting and analyzing the features of the Y channel information of the visible light image, thereby generating the image fusion weight that best suits the current lighting environment.

[0058] (3) In this method, the collected visible light and near-infrared light images are first fused. The fused image can make full use of the information of the two modes for complementary fusion according to the current light environment, so that the information richness of the fused image is improved, and the quality of the fused image is improved compared with the single-modality image, which is convenient for the extraction and recognition of key features of the image; the fused image is used as a judgment sample, and the YoloV5-based dark light enhancement network model is used to identify the features of the driver's possible distracted driving in the image at that moment. According to the traffic accident data, most traffic accidents occur because the driver makes some hand movements that distract the driver, thus causing the accident. Therefore, it is more accurate to detect distracted driving by judging the driver's hand state. It is more reliable to judge by the distracted driving possibility features of the hand state. BRIEF DESCRIPTION OF THE DRAWINGS

[0059] Figure 1 A schematic diagram of the training and detection process of the all-weather distracted driving detection method based on multi-modal adaptive weight fusion using the present method;

[0060] Figure 2 This is the overall structure diagram of the network based on multi-modal adaptive weight fusion in this method;

[0061] Figure 3 Schematic diagram of the PE-Net image enhancement network structure in this method. DETAILED DESCRIPTION

[0062] The present invention will be described in detail below with reference to the accompanying drawings.

[0063] As attached Figure 1 As shown, it is a schematic diagram of the training and detection process of the all-weather distracted driving detection method based on multimodal adaptive weight fusion using the present method; in this embodiment, it is necessary to train a network model based on multimodal adaptive weight fusion and a dark light enhancement network model based on YoloV5 separately.

[0064] 1. Train a network model based on multimodal adaptive weight fusion;

[0065] 1. Construct an infrared-visible light driver image dataset; use near-infrared and visible light binocular cameras to simultaneously collect near-infrared and visible light images of drivers in all-weather environments, where the near-infrared image and visible light image collected simultaneously are used as a sample in the dataset;

[0066] 2. The collected visible light image data is labeled as follows: night images are labeled as 0 and daytime images are labeled as 1.

[0067] 3. Build as attached Figure 2 The network based on multimodal adaptive weight fusion shown in the figure; the network based on multimodal adaptive weight fusion includes an illumination weight adjustment network and a near infrared light and visible light image fusion network;

[0068] 4. The near-infrared image dataset and the annotated visible light image dataset are simultaneously input into the network model based on multimodal adaptive weight fusion to start training.

[0069] 5. After the data set enters the model, a preprocessing operation is performed, that is, the RGB format of the collected driver's visible light image is converted into the YCbCr format. The conversion formula is shown in formula (1).

[0070] 6. Input the Y channel of the visible light image into the illumination weight adjustment network LIW-Net to obtain the near-infrared fusion weight and the visible light fusion weight. Input the pre-processed visible light image data and near-infrared image data as well as the generated near-infrared fusion weight and visible light fusion weight into the near-infrared and visible light image fusion network to obtain the fused image data set. The operation process of LIW-Net and the near-infrared and visible light image fusion network is shown in the lower and upper boxes in Figure (1).

[0071] 7. The difference between the model prediction value and the true value is calculated through the loss function of equations (5), (6), (7), and (8) to obtain the network gradient, and the gradient is used to update the network parameters to finally obtain the trained multimodal adaptive weight fusion model.

[0072] 2. Training of dark light enhancement network model based on YoloV5;

[0073] The fused image is annotated and input into the improved YoloV5 model for training, and the trained YoloV5-based dark light enhancement network model is output. The training process of the YoloV5-based dark light enhancement network model is as follows:

[0074] 1. Annotate the fused image data set, where the annotation process is: annotate and determine distracted driving behavior in the fused image data set, where the determination data includes the driver's hand state data;

[0075] The hand states are: normal, playing with mobile phone, smoking, and drinking water.

[0076] When judging distracted driving behavior, the driver is judged to be distracted driving if the following conditions are met: the driver's hands are in one or more of the following states: playing with a mobile phone, smoking, drinking water

[0077] 2. Construct a dark light enhancement network model based on the improved YoloV5 architecture. By inputting the datasets with labeled distracted driving categories into the improved YoloV5 for training, we can obtain its all-weather distracted driving behavior detection model. The improved YoloV5 dark light enhancement network model introduces the PE-Net image enhancement network at the input stage of YoloV5 to enhance the brightness of the image and enhance the feature extraction of the image. Figure 3 As shown in the figure, it contains three core modules: feature extraction module (FEM), enhancement module (EM) and fusion module (FM). The image enhancement process is as follows: input the image into FEM for feature extraction, then enhance the extracted features through EM, and finally connect and fuse the enhanced features through FM to output the enhanced image.

[0078] 3. Testing stage;

[0079] Load the trained network model based on multimodal adaptive weight fusion and the dark light enhancement network model based on YoloV5 for detection. The detection phase steps are:

[0080] 1. Use visible light and near-infrared binocular cameras to collect images of the driver in real time.

[0081] 2. Load the trained network model based on multimodal adaptive weight fusion. Input the real-time collected driver near-infrared image and visible light image into the network model based on multimodal adaptive weight fusion, and output the fused driver image.

[0082] 3. Load the trained YoloV5-based dark light enhancement network model. Input the fused driver image into the YoloV5-based dark light enhancement network model and output its detection result.

[0083] 4. Determine whether the current driver is in distracted driving behavior based on the detection results.

[0084] Although the present invention has been disclosed as above in terms of preferred embodiments, they are not intended to limit the present invention. Anyone skilled in the art can make various changes or modifications without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the present invention should be based on the scope of protection defined by the claims of this application.

Claims

1. An all-weather distracted driving detection method based on multi-modal adaptive weight fusion, characterized by: The following steps are involved: Step 1: Construct a near-infrared-visible light driver image dataset; use near-infrared and visible light binocular cameras to simultaneously collect near-infrared and visible light images of drivers in all-weather environments, where the near-infrared image and visible light image collected simultaneously are used as a sample in the dataset; Step 2: construct a network based on multimodal adaptive weight fusion; the network based on multimodal adaptive weight fusion includes an illumination weight adjustment network and a near-infrared and visible light image fusion network; the illumination weight adjustment network includes a plurality of convolutional layers connected in sequence, a global average pooling GAP and two fully connected layers; the visible light image labeled as day or night is input into the illumination weight adjustment network to extract the current illumination likelihood feature value of the input image; Step 3: The near-infrared and visible light image fusion network includes a visible light image feature extraction module, a near-infrared image feature extraction module, a feature weighted fusion module and an image reconstruction module; after the visible light image feature extraction module is connected in parallel with the near-infrared image feature extraction module, the features extracted from the input visible light image and the near-infrared image and the generated fusion weights are transferred to the feature weighted fusion module for weighted fusion; the fused feature information is used to obtain a fused image through the image reconstruction module; Step 4: Use the data set generated in step 1 to generate a training set and a validation set to train the network based on multimodal adaptive weight fusion until the model converges; Step 5: Construct a dark light enhancement network model based on YoloV5, which is a dark light enhancement network model that adds a PE-Net image enhancement network to the input end of the YoloV5 network; the PE-Net image enhancement network includes a feature extraction module FEM, an enhancement module EM and a fusion module FM that are connected in sequence; Step 6: label the image fused in step 5 with a distracted driving label; the distracted driving label is a hand state label; the hand state includes normal, playing with mobile phone, smoking, and drinking water; Step 7: Use the labeled images in step 6 as sample data sets of the YoloV5-based dark light enhancement network model, input them into the YoloV5-based dark light enhancement network model constructed in step 5 for training and verification, and obtain a trained all-weather distracted driving behavior detection model; Step 8: Based on the preset time period of image acquisition, the near-infrared and visible light images of the truck driver are continuously acquired, and the driver's near-infrared and visible light images with the same time sequence information are simultaneously input into the trained multi-modal adaptive weight fusion network, and the fused image is output; By passing the fused image to the trained all-weather distracted driving behavior detection model, the driving behavior status corresponding to the driver's distracted driving label can be obtained. Based on the obtained driving behavior status, it is determined whether there is distracted driving and the type of distracted driving.

2. The all-weather distracted driving detection method based on multi-modal adaptive weight fusion according to claim 1, characterized in that: In step 2, the input illumination weight adjustment network of the visible light image labeled as daytime or nighttime extracts the current illumination likelihood feature value of the input image; The specific steps include: S21: Convert the visible light image in RGB format to YCbCr format using the following formula: Y=0.299R+0.587G+0.114B Cb=-0.1687R-0.3313G+0.5B+128 Cr=0.5R-0.4187G-0.0813B+128 (1) In the above formula, Y is the brightness channel corresponding to the visible light image, which represents the brightness information of the image; Cb is the blue chromaticity difference component channel, which represents the information of blue color information compared to brightness; Cr is the red chromaticity difference component channel, which represents the information of red color information compared to brightness; R, G, and B represent the red, green, and blue channel values ​​of the visible light image, respectively; wherein the Y channel of the visible light image is input into the illumination weight adjustment network to obtain the near-infrared fusion weight and the visible light fusion weight; specifically, the following steps are included: S22: compress the Y channel information of the visible light image through five convolutional layers connected in sequence and extract the brightness features of the Y channel in the image. S23: Integrate the brightness features through global average pooling GAP; the global average pooling formula is: Where y is the output value of global average pooling, H, W are the height and width of the image, and x ij is the value of the image at (i, j) of the Y channel; S24: After the brightness information value after global average pooling is input into two fully connected layers, the negative values ​​are filtered using the ReLU activation function to calculate the illumination likelihood feature value P of the current visible light image. d and P n , that is, the current input visible light image belongs to the daytime illumination likelihood eigenvalue P d and the illumination likelihood eigenvalue P belonging to the night n ; The formula for generating the illumination likelihood eigenvalue is as follows; {P d ,P n }=N LIW (I vis ) (3) In the above formula, P d and P n They represent the illumination likelihood eigenvalues ​​of the current input visible light image belonging to the daytime and the illumination likelihood eigenvalues ​​of the nighttime, respectively. LIW represents the illumination weight adjustment network, I vis Represents the current input visible light image; S25: The illumination likelihood eigenvalue P d and P n , normalized to generate the near-infrared fusion weight W ir and visible light fusion weight W vis .

3. The all-weather distracted driving detection method based on multi-modal adaptive weight fusion according to claim 2, characterized in that: The visible light image feature extraction module and the near infrared image feature extraction module in step 3 are both 7*7 convolutional layers and 3*3 convolutional layers connected in sequence; this step specifically includes: S31: The visible light image and the near infrared image collected at the same time are input into the corresponding visible light image feature extraction module and the near infrared image feature extraction module respectively; after the input visible light image is converted through YCbCr, the information of the three channels of YCbCr is input into the visible light image feature extraction module to obtain the corresponding three channel output feature values ​​of Y, Cb, and Cr; the gray channel information in the input near infrared image is passed through the near infrared image feature extraction module to obtain the feature value I of the gray channel ir ; S32: The feature information of the extracted visible light and near infrared light images, the near infrared fusion weights and the visible light fusion weights generated in step S24 are weighted and fused through a feature weighted fusion module, that is, the values ​​of each channel are weighted and summed as follows: Y‘=W vis *Y+W ir *I ir Cb'=W vis *Cb+W ir *AND ir Cr‘=W vis *Cr+W ir *I ir (4) In the above formula, Y', Cb' and Cr' are the three channel values ​​of Y, Cb and Cr after feature weighted fusion; Y, Cb and Cr are the values ​​of Y, Cb and Cr channels after the visible light image is converted to YCbCr format. ir is the grayscale channel value of the near-infrared image; S33: Image reconstruction; the image reconstruction module first integrates and extracts the feature information fused in step S34 through a 3*3 convolution layer, and then passes through a 1*1 convolution layer; the 1*1 convolution layer has three convolution kernels to convert the feature information into a fused image with the same size and number of channels as the input image; finally, the reconstructed image is converted into RGB format, which is the fused image.

4. The all-weather distracted driving detection method based on multi-modal adaptive weight fusion according to claim 3, characterized in that: When training the model of the network based on multimodal adaptive weight fusion, the loss function used by the near-infrared and visible light image fusion network is: In the above formula is the loss function value of the multimodal adaptive weight fusion network model, W ir and W vis Respectively represent the near infrared fusion weight and the visible light fusion weight, is the intensity loss value of the near infrared image, is the intensity loss value of the visible light image; and The formula is as follows: Where H and W are the height and width of the input image, respectively, ‖‖1 represents the L1 norm, and ‖I f -I ir ‖1 and ‖I f -I vis The formula ‖1 is as follows: Where i=1, 2, 3 represent the R channel, G channel, and B channel of the RGB format image respectively; the first formula in the above formula means that the element value of each channel of the fused image is subtracted from the element value of each channel of the corresponding near-infrared image to obtain the absolute value, and then all their absolute values ​​are added; the second formula in the above formula means that the element value of each channel of the fused image is subtracted from the element value of each channel of the corresponding visible light image to obtain the absolute value, and then all their absolute values ​​are added; The loss function of the illumination weight adjustment network is shown in formula (8); LIW-Net is actually an image classifier to distinguish whether the image belongs to daytime or nighttime; in is the cross entropy loss function value of the illumination weight adjustment network LIW-Net, z is the label value of the input image; the night image is labeled as 0, and the day image is labeled as 1; y = [P d ,P n ] is the output value of LIW-Net, and σ is the Softmax function.

5. The all-weather distracted driving detection method based on multi-modal adaptive weight fusion according to claim 4, characterized in that: In step 5, the feature extraction module FEM of the PE-Net image enhancement network is a single-branch network with 5 convolutional layers, and the convolution kernel of each convolutional layer is 3*3, the step size is 1, and the activation function is the ReLU nonlinear function; and each layer output of FEM is both the input of the next layer and the input of the corresponding subnet of EM; the enhancement module EM contains 5 subnets, each of which includes three convolutional layers and three deconvolutional layers. The convolution kernel of its convolutional layer and deconvolution layer is 3*3, and each subnet corresponds to a layer output of FEM, which is used to extract the deep features in the image and achieve the effect of image enhancement; the fusion module FM uses a 1*1 convolution kernel to receive the output of all EM layers and weightedly merge them, so as to combine the deep feature information of the image for image enhancement.

6. The all-weather distracted driving detection method based on multi-modal adaptive weight fusion according to claim 5, characterized in that: Step eight specifically includes the following steps: S81: calling visible light and near infrared binocular cameras to collect images of the driver in real time, and obtaining near infrared images and visible light images with the same time sequence information; S82: Load the trained network model based on multimodal adaptive weight fusion, input the driver's near-infrared image and visible light image with the same time series information into the network model based on multimodal adaptive weight fusion, and output the fused driver image; S83: Load the trained all-weather distracted driving behavior detection model; input the fused driver image into the YoloV5-based dark light enhancement network model, and output the driving behavior status of the image; S84: Based on steps S81 to S83, the driving behavior status of the driver at other times is obtained, and whether the current driver is in distracted driving behavior is determined according to preset judgment conditions.

7. The all-weather distracted driving detection method based on multi-modal adaptive weight fusion according to claim 6, characterized in that: In step S84, it is determined whether the current driver is in a distracted driving behavior based on preset determination conditions, and the preset determination conditions are: if at least one of the preset conditions is met, the driver is determined to be in a distracted driving behavior: the preset conditions include one or more states of the driver's hands playing with a mobile phone, smoking, or drinking water.

Citation Information

Patent Citations

  • Driving assistance method and device, vehicle-mounted equipment and storage medium

    CN114418895A

  • All-weather-oriented cross-modal adaptive fusion pedestrian target detection system and method

    CN115410147A

Cited By

  • Abnormal driving behavior detection method based on cross-modal image fusion recognition

    CN119206674A

  • Controller fatigue state detection method based on infrared visible light image fusion

    CN119206835A

  • Image enhancement method for night fatigue driving detection

    CN119417705A

  • An image enhancement method for night-time fatigue driving detection

    CN119417705B

  • Target detection method for performing multi-modal fusion according to adaptive weight

    CN119785015A