Self-supervised learning driver distraction behavior detection method

Through the self-supervised learning method, masked image blocks and transfer learning are used to solve the problems of high hardware cost and poor generalization ability of driver distracted behavior detection in the existing technology, and achieve more accurate and efficient detection results.

CN118570779APending Publication Date: 2024-08-30SUZHOU YAOTENG PHOTOELECTRIC

Patent Information

Application Number
CN202411034915.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Existing driver distraction behavior detection methods have problems such as high hardware cost, high data annotation cost, low feature extraction efficiency, and poor generalization ability. In particular, methods based on supervised learning and convolutional neural networks cannot detect in complex scenarios. precise.

Method used

A self-supervised learning method is used to detect driver distraction behavior through two stages of pre-training and fine-tuning. Mask image blocks and transfer learning are used to increase attention to key feature information and optimize the model's generalization ability in complex scenes.

Benefits of technology

It improves the accuracy and generalization ability of driver distraction behavior detection, reduces hardware costs and data annotation costs, and enhances the model's detection capabilities in complex scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118570779A
    Figure CN118570779A
Patent Text Reader

Abstract

The invention provides a driver distraction behavior detection method based on self-supervised learning. The driver distraction behavior detection method is used for detecting distraction behaviors of a driver. The method comprises a pre-training stage and a fine tuning stage: (1) in the pre-training stage, firstly, carrying out self-supervised learning by utilizing a large number of unmarked data sets, then, training a model by utilizing mask image blocks, and re-predicting a mask area of an image; and (2) performing fine tuning on the pre-trained model by using transfer learning in a fine tuning stage, wherein the stage comprises precision optimization, encoder lightweight and data enhancement. According to the self-supervised learning driver distraction behavior detection method provided by the invention, pre-training is performed on a large number of unmarked data sets by using an image masking strategy, the number of SwinTransform blocks is reconfigured, the generalization ability of a model in a complex scene is improved, and accurate detection of driver distraction behaviors is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of automobile technology, and in particular to a method for detecting driver distraction behavior through self-supervisory learning. Background Art

[0002] Although autonomous driving technology has made remarkable progress, the control of autonomous driving on vehicles is still immature. Therefore, whether it is autonomous driving or manual driving, the driver needs to stay focused during the driving process. Therefore, efficient and accurate detection of driver distraction behavior is an important guarantee for achieving traffic safety.

[0003] Driver distraction detection will be integrated into the intelligent assisted driving system, which analyzes the driver's behavior to predict unsafe distracted operations. When the driver's distraction is detected, the vehicle dashboard will display a corresponding prompt message, emit a specific sound, or lower the window height to remind the driver of the risk of improper driving, and temporarily adjust the vehicle's control priority to initiate braking and avoid risks.

[0004] Driver distraction behavior detection methods are usually implemented with the help of physiological signals, vehicle information, computer vision and other methods.

[0005] The hardware cost of the driver distraction behavior detection method based on physiological signals is high, and wearable physiological sensors often affect the driver's driving experience.

[0006] Driver distraction behavior detection methods based on vehicle information often suffer from inaccurate information collection due to hardware failures of vehicles and sensors and various external interferences, thus affecting the accuracy of the system. In addition, the above two methods also require a large amount of data processing and advanced algorithm support.

[0007] To solve these problems, researchers gradually shifted their research focus to computer vision methods. Since the driver distraction detection method based on computer vision is non-contact, it will not affect the driver's normal driving, nor will it be inaccurate due to information collection errors like the vehicle information method. By analyzing the current research work in the field of driver distraction detection, it can be found that the current driver distraction detection method has the following three problems: Driver distraction behavior detection methods based on supervised learning methods have the following problems: (1) The labeling of a large number of distraction behavior data sets requires a lot of manpower, material resources and financial resources; (2) The training of a large number of distraction behavior data sets increases the training cost; (3) The complexity of driving scenarios in the real world makes it difficult to accurately label distraction behavior data in certain scenarios, which increases the difficulty and cost of labeling.

[0008] The driver distraction behavior detection method based on convolutional neural network has the following problems: (1) The feature extraction efficiency is low and the ability to capture the overall information of the image is limited; (2) Since convolutional neural networks only model stacked convolution and pooling operations, convolutional neural networks are inefficient in capturing and representing the long-term correlation of data; (3) Since convolutional neural networks tend to focus on low-level image features, driver distraction behavior detection requires the use of high-level global semantic feature information.

[0009] The driver distraction behavior detection method based on supervised convolutional neural network has the following problems: (1) The feature representation ability is limited and the generalization ability is average; (2) This type of model cannot effectively focus attention on key areas to detect distraction behavior; (3) This type of model is dependent on labeled datasets, which reduces the generalization ability and the ability to transfer to new tasks. Summary of the invention

[0010] The purpose of the present invention is to overcome the above problems existing in the prior art and provide a self-supervised learning method for detecting driver distraction. The method includes two stages: pre-training and fine-tuning: (1) In the pre-training stage, a large number of unlabeled data sets are first used for self-supervised learning, and then the model is trained using masked image blocks, and the masked area of ​​the image is re-predicted; (2) In the fine-tuning stage, transfer learning is used to fine-tune the pre-trained model, which includes precision optimization, encoder lightweighting, and data enhancement. The focus on key feature information is increased, and the generalization ability of the model in complex scenes is further improved, so that accurate detection of driver distraction can be achieved.

[0011] In order to achieve the above technical objectives and the above technical effects, the present invention is implemented through the following technical solutions: A self-supervised learning method for detecting driver distraction behavior: S1, pre-training stage, first use a large amount of unlabeled data sets for self-supervised learning, then use the mask image blocks to train the model and re-predict the mask area of ​​the image; S2, fine-tuning stage, uses transfer learning to fine-tune the pre-trained model. This stage includes accuracy optimization, encoder lightweighting, and data enhancement.

[0012] As a further step, the step S1 includes the following steps: S11, mask module, which first sets the number and mode of mask image blocks, and then The coded image blocks are transmitted to the encoder module; The random strategy is used to mask the image. For the SwinTransformer encoder, the size of the image block ranges from 4×4 to 32×32; for the ViT encoder, the size of the image block is 32×32; S12, encoder module, which first extracts the latent representation of the mask image block and then predicts the original information of the mask image block; Among them, when the image is an RGB three-channel image, the image block has 4×4=16 pixels, and the number of pixels after flattening is 16×3=48, that is, the image is transformed from [L, H, 3] to [L / 4, H / 4, 48]; then, linear embedding is used to transform the image from [L / 4, H / 4, 48] to the defined [L / 4, H / 4, C]; secondly, the image is processed through four similar segmentation, flattening, and linear embedding, and the image size is also changed accordingly; S13, a prediction head module, which is used to represent the original feature information of the mask image block; Firstly, the large-scale unlabeled dataset ImagenNet-1K is used to pre-train the model, and a random mask strategy is adopted. The image block size is set to 32, and the overlap rate of adjacent image blocks is set to 0.5. Then, the SwinTransformer encoder is used to map the input information to the latent feature representation. Secondly, based on the obtained latent feature information, the image mask information is reconstructed using the prediction head. Finally, a 1×1 convolution kernel is used to predict the pixel value. S14, target prediction module, which specifies the prediction form of the original signal, which can be the original pixel value or the transformation of the original pixel, and defines the loss type; The 1×1 linear layer with an output dimension of 3072 = 32×32×3 is downsampled in multiple dimensions using the SwinTransformer encoder to obtain {32×32, 16×16, 8×8, 4×4, 2×2} feature maps to depict RGB values ​​at different resolutions.

[0013] The loss function adopts the following form:

[0014] in, represents the number of mask pixels, and Represent the input mask pixel value and the predicted mask pixel respectively.

[0015] As a further step, the step S2 comprises the following steps: S21, data enhancement strategy, data enhancement strategies include color jitter, motion blur, Gaussian noise, horizontal flip and random scaling, mixed shearing strategy and mixed interpolation strategy; The color jitter simulates the driving conditions of the driver under different lighting and weather conditions by randomly changing the exposure, saturation and hue of the image; The motion blur simulates the motion blur caused by the driver's continuous operation actions by converting a clearly focused image into an image with a blurred effect; The Gaussian noise is added to the image to enhance the diversity of the image and improve the model's ability to learn various behavior representations. S22, optimized and lightweight transfer learning, first, the input image is processed by layer normalization and window multi-head self-attention, accompanied by skip connections; then, the image information is processed by layer normalization and multi-layer perceptron, accompanied by skip connections; next, the image information is processed by layer normalization and drift window multi-head self-attention, accompanied by skip connections; finally, the image information is processed by layer normalization and multi-layer perceptron again, accompanied by skip connections; The transfer learning process can be expressed as follows: ; The calculation formula of multi-head self-attention is as follows:

[0016] in Indicates the number of channels of the image.

[0017] Window multi-head self-attention, first divide the feature map into several windows with length and height β, and then perform multi-head self-attention processing on each window. The calculation formula of window multi-head self-attention is as follows:

[0018] As a further step, a hybrid shearing strategy first generates a random shearing box and shears the corresponding part of the u image; then, the region of interest in the v image is placed in the cropped area of ​​the u image to form a new image. Finally, a hard fusion strategy is used to merge the regions of different images, and a soft fusion strategy is used to merge the labels. The hybrid shearing strategy can be expressed by the following formula:

[0019] Among them and represents different training samples, and express and The corresponding label, B {0, 1} represents a binary mask for deleting and filling image areas. Represents a binary mask whose element value is 1, represents the multiplication of element pairs, It means that it follows the Gaussian distribution in the (0,1) interval; For sampling of the binary mask B, the bounding box needs to be sampled first; then, and Sampling is performed for clipping and padding; and the bounding box coordinates are sampled as follows:

[0020] Among them and Represent the length and height of the rectangular bounding box, L and H represent the length and height of the original image, and the shear area ratio is ,The value of B indicates whether the bounding box is within the clipping region.

[0021] As a further step, the hybrid interpolation strategy randomly linearly interpolates and weights the pixels of the two images to generate a new image containing the labels of the two images. The calculation formula is as follows:

[0022] in It follows a Gaussian distribution in [0,1].

[0023] In summary, the present invention provides a self-supervised learning method for detecting driver distraction, which is used to detect driver distraction. The method includes two stages: pre-training and fine-tuning: (1) In the pre-training stage, a large number of unlabeled data sets are first used for self-supervised learning, and then the model is trained using masked image blocks, and the masked area of ​​the image is re-predicted; (2) In the fine-tuning stage, the pre-trained model is fine-tuned using transfer learning, which includes accuracy optimization, encoder lightweighting, and data enhancement. The present invention provides a self-supervised learning method for detecting driver distraction, which uses an image masking strategy to perform pre-training on a large number of unlabeled data sets, re-configures the number of SwinTransformer blocks, and reduces the complexity of the encoder network while improving the accuracy of task detection. At each level of the encoder, the number of window multi-head self-attention and drift window multi-head self-attention detection heads is reconfigured, which reduces the number of feature transfers and increases the focus on key feature information, further improving the generalization ability of the model in complex scenes, and realizing accurate detection of driver distraction. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings: Figure 1 is a flow chart of the overall method of the present invention; Figure 2 is a flow chart of the pre-training phase method in the present invention; Figure 3 It is a method flow chart of the fine-tuning stage in the present invention. DETAILED DESCRIPTION

[0025] The present invention will be described in detail below with reference to the accompanying drawings and in combination with embodiments.

[0026] See also Figure 1 The present invention provides a self-supervised learning method for detecting driver distraction behavior. 1. Collect facial information of people of different genders and ages under multiple viewing angles, multiple lighting conditions, Capture distracted driving behavior from multiple perspectives: Using cameras placed at the front of the cockpit of each type of motor vehicle and cameras placed at the side of each type of motor vehicle, various distracted driving behaviors including not wearing seat belts, taking hands off the steering wheel, drinking water, smoking, making phone calls, playing with mobile phones, etc. are collected; Collect distracted driving behaviors from multiple angles: Based on the multi-angle arrangement of camera equipment, various distracted driving behaviors including not wearing seat belts, taking hands off the steering wheel, drinking water, smoking, making phone calls, playing with mobile phones, etc. are collected from various angles including 0°, 10°, 30°, 40°, etc. Experimental population of multiple genders and ages: On the premise that the male-female ratio is 7:3, the age groups of 18-30 years old: 31-40 years old: 41-50 years old: 51-60 years old: 61-70 years old: 71-80 years old are selected with a ratio of 12:16:8:4:2:1; Multi-light facial expression information collection: Based on the perspective and multiple angles, data are collected under various conditions, including no sunlight on the face in sunny weather, sunlight on the face in sunny weather, partial sunlight on the face in sunny weather, strong backlight on the face in sunny weather, interior lights on the face in weak light, street lights on the face in weak light, headlights from the opposite direction on the face in weak light, dark weather, and dark weather with weak light on the face. Various distracted driving behaviors, including not wearing a seat belt, hands off the steering wheel, drinking water, smoking, making phone calls, playing with mobile phones, etc. are detected.

[0027] 2. Driver distraction detection based on self-supervised learning (1) Pre-training process.

[0028] The pre-training framework consists of the following four parts: ① Mask module: This module first sets the number and method of mask image blocks, and then transfers the masked image blocks to the encoder module; ② Encoder module: This module first extracts the potential representation of the mask image blocks, and then predicts the original information of the mask image blocks; ③ Prediction head module: This module is used to represent the original feature information of the mask image blocks; ④ Target prediction module: This module specifies the predicted form of the original signal, which can be either the original pixel value or the transformation of the original pixel, and defines the loss type.

[0029] Mask module: This patent adopts a random strategy to mask the image. For the SwinTransformer encoder, the size of the image block ranges from 4×4 to 32×32; for the ViT encoder, the size of the image block is 32×32.

[0030] Encoder module: First, the image is divided into multiple 4×4 image blocks using the image block module, and these image blocks are flattened in the channel direction; When the input image is an RGB three-channel image, the image block has 4×4=16 pixels, and the number of pixels after flattening is 16×3=48, that is, the image is transformed from [L, H, 3] to [L / 4, H / 4, 48]; then, the image is transformed from [L / 4, H / 4, 48] to the defined [L / 4, H / 4, C] using linear embedding; secondly, the image is processed through four similar segmentation, flattening, and linear embedding, and the image size is changed accordingly. SwinTransformer, as the main module, contains the following two parts: one is the window multi-head self-attention block, and the other is the moving window multi-head self-attention block. Therefore, when stacking SwinTransformer modules, the window multi-head self-attention block and the moving window multi-head self-attention block are stacked in pairs.

[0031] Prediction Head Module: Firstly, the large-scale unlabeled dataset ImagenNet-1K is used to pre-train the model, and a random mask strategy is adopted. The image block size is set to 32, and the overlap rate of adjacent image blocks is set to 0.5. Then, the SwinTransformer encoder is used to map the input information to the latent feature representation. Secondly, based on the obtained latent feature information, the image mask information is reconstructed using the prediction head. Finally, a 1×1 convolution kernel is used to predict the pixel value. Target prediction module: Since the pixel values ​​of the predicted target are continuous in the color space, the original pixel values ​​of the masked area can be predicted through regression; at the same time, each feature vector is mapped back to the original resolution and the original pixel value is predicted. The above operation is used to predict all pixel values ​​of the input image at all resolutions.

[0032] The 1×1 linear layer with an output dimension of 3072 = 32×32×3 is downsampled in multiple dimensions using the SwinTransformer encoder to obtain {32×32, 16×16, 8×8, 4×4, 2×2} feature maps to depict RGB values ​​at different resolutions.

[0033] The loss function adopts the following form:

[0034] Among them represents the number of mask pixels, and Represent the input mask pixel value and the predicted mask pixel value respectively.

[0035] (2) Fine-tuning process.

[0036] Data augmentation strategy: On the one hand, since creating driving scenarios that simulate driver distraction is very dangerous, the number of real driver distraction behavior datasets is relatively small; on the other hand, the adequacy of data and the diversity of scenarios will greatly affect the training results of deep learning network models, including recognition accuracy and robustness. To solve the above problems, this application proposes the following data augmentation strategy, which aims to simulate real-life driving scenarios to increase the number and diversity of datasets.

[0037] Color jittering: This enhancement strategy randomly changes the exposure, saturation, and hue of an image to simulate how a driver would drive under different lighting and weather conditions.

[0038] Motion Blur: This enhancement strategy simulates the motion blur caused by the driver's continuous operation by converting a sharply focused image into a blurred image.

[0039] Gaussian noise: This enhancement strategy adds Gaussian noise to the image to enhance the diversity of the image and improve the model's ability to learn various behavior representations.

[0040] Horizontal flipping and random scaling: This enhancement strategy achieves the purpose of enhancing the multi-scale distraction behavior detection capability through random scaling, and at the same time, through horizontal flipping, it better simulates the driving scenes on both sides of the vehicle.

[0041] Hybrid shearing strategy, this enhancement strategy first generates a random shearing box and shears the corresponding part of the u image; then, the region of interest in the v image is placed in the cropped area of ​​the u image to form a new image. Finally, a hard fusion strategy is used to merge the regions of different images, and a soft fusion strategy is used to merge the labels. This hybrid shearing strategy can be expressed by the following formula:

[0042] Among them and represents different training samples, and express and The corresponding label, B {0, 1} represents a binary mask for deleting and filling image areas. Represents a binary mask whose element value is 1, represents the multiplication of element pairs, It means that it follows the uniform distribution in the (0,1) interval.

[0043] To sample the binary mask B, we need to first sample the bounding box; then, based on the sampling result, and Sampling is performed for cropping and padding. In this application, the aspect ratio of the rectangular bounding box is proportional to the aspect ratio of the original image, and the sampling method of the bounding box coordinates is as follows:

[0044] Among them and represent the center coordinates of the rectangular bounding box, and Indicates that the interval (0, L ) is the value of the Gaussian distribution, Indicates that the interval (0, H ) is the value of the Gaussian distribution, and point They represent the length and height of the rectangular bounding box. α represents the sampling rate, and Represent the length and height of the rectangular bounding box, L and H represent the length and height of the original image, and the shear area ratio is ,The value of B indicates whether the bounding box is within the clipping region.

[0045] This enhancement strategy randomly linearly interpolates / weights the pixels of the two images to generate a new image containing the labels of the two images. It aims to enhance the diversity and complexity of the training dataset by maximizing the combination of contextual information, thereby improving performance. The calculation formula is as follows:

[0046] Among them is a Gaussian distribution in [0,1].

[0047] Transfer learning with precise optimization and lightweight This patent also considers the relationship between complex network models and specific application scenarios, that is, it is necessary to consider deploying network models to hardware terminals to achieve specific engineering applications. Therefore, it is necessary to lightweight the encoder in the self-supervised learning framework.

[0048] In the SwinTransformer module, first, the input image is processed by layer normalization and window multi-head self-attention, accompanied by jump connections; then, the image information is processed by layer normalization and multi-layer perceptron, accompanied by jump connections; next, the image information is processed by layer normalization and drift window multi-head self-attention, accompanied by jump connections; finally, the image information is processed by layer normalization and multi-layer perceptron again, accompanied by jump connections. The transfer learning process can be expressed by the following formula:

[0049] in , , Respectively represent The input feature representation of the image block, The input feature representation of the image block, The input feature representation of the image patch, , Respectively represent The output feature representation of the image block, The output feature representation of each image patch.

[0050] Compared with large and difficult visual tasks, driver distraction behavior recognition is relatively simple, and each type of distraction behavior has distinct characteristics. Although large networks have superior recognition performance in solving complex visual tasks, overly complex networks are not the best solution for relatively simple detection scenarios. In order to reduce the amount of computation and parameters of large-scale encoders.

[0051] Compared with the previous multi-head self-attention, this patent adds multi-head self-attention in the window, which significantly reduces the amount of calculation. The calculation formula of multi-head self-attention is as follows:

[0052] Among them Indicates the number of channels of the image. The window multi-head self-attention first divides the feature map into several windows with length and height β, and then performs multi-head self-attention processing on each window. Therefore, the calculation formula of the window multi-head self-attention in this patent is as follows: .

[0053] In summary, the present invention provides a self-supervised learning method for detecting driver distraction behavior, which increases the focus on key feature information, further improves the generalization ability of the model in complex scenarios, and realizes accurate detection of driver distraction behavior.

[0054] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments, and the above embodiments and descriptions are only for explaining the principles of the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, and these changes and improvements all fall within the scope of the present invention to be protected.

Claims

1. A self-supervised learning method for detecting driver distraction. Features , the method comprises the following steps: S1, pre-training stage, first use a large amount of unlabeled data sets for self-supervised learning, then use the mask image blocks to train the model and re-predict the mask area of ​​the image; S2, fine-tuning stage, uses transfer learning to fine-tune the pre-trained model. This stage includes accuracy optimization, encoder lightweighting, and data enhancement.

2. The self-supervised learning driver distraction behavior detection method according to claim 1, It is characterized in that The step S1 comprises the following steps: S11, mask module, which first sets the number and mode of mask image blocks, and then The coded image blocks are transmitted to the encoder module; S12, encoder module, which first extracts the latent representation of the mask image block and then predicts the original information of the mask image block; S13, a prediction head module, which is used to represent the original feature information of the mask image block; S14, target prediction module, which specifies the prediction form of the original signal, which can be either the original pixel value or the transformation of the original pixel, and defines the loss type.

3. The self-supervised learning driver distraction behavior detection method according to claim 2, It is characterized in that The S11 comprises the following steps: The random strategy is used to mask the image. For the SwinTransformer encoder, the size of the image block ranges from 4×4 to 32×32; for the ViT encoder, the size of the image block is 32×32; The S12 comprises the following steps: firstly, using an image block module, dividing the image into a plurality of image blocks of size 4×4, and flattening the image blocks in the channel direction; Among them, when the image is an RGB three-channel image, the image block has 4×4=16 pixels, and the number of pixels after flattening is 16×3=48, that is, the image is transformed from [L, H, 3] to [L / 4, H / 4, 48]; then, linear embedding is used to transform the image from [L / 4, H / 4, 48] to the defined [L / 4, H / 4, C]; secondly, the image is processed through four similar segmentation, flattening, and linear embedding, and the image size is also changed accordingly; The S13 comprises the following steps: Firstly, the large-scale unlabeled dataset ImagenNet-1K is used to pre-train the model, and a random mask strategy is adopted. The image block size is set to 32, and the overlap rate of adjacent image blocks is set to 0.

5. Then, the SwinTransformer encoder is used to map the input information to the latent feature representation. Secondly, based on the obtained latent feature information, the image mask information is reconstructed using the prediction head. Finally, a 1×1 convolution kernel is used to predict the pixel value. The S14 comprises the following steps: The 1×1 linear layer with an output dimension of 3072 = 32×32×3 is downsampled in multiple dimensions using the SwinTransformer encoder to obtain {32×32, 16×16, 8×8, 4×4, 2×2} feature maps to depict RGB values ​​at different resolutions; The loss function adopts the following form: ; in, represents the number of mask pixels, and Represent the input mask pixel value and the predicted mask pixel respectively.

4. The self-supervised learning driver distraction behavior detection method according to claim 1, It is characterized in that The S2 comprises the following steps: S21, data enhancement strategy, data enhancement strategies include color jitter, motion blur, Gaussian noise, horizontal flip and random scaling, mixed shearing strategy and mixed interpolation strategy; The color jitter simulates the driving conditions of the driver under different lighting and weather conditions by randomly changing the exposure, saturation and hue of the image; The motion blur simulates the motion blur caused by the driver's continuous operation actions by converting a clearly focused image into an image with a blurred effect; The Gaussian noise is added to the image to enhance the diversity of the image and improve the model's ability to learn various behavior representations. S22, optimized and lightweight transfer learning, first, the input image is processed by layer normalization and window multi-head self-attention, accompanied by skip connections; then, the image information is processed by layer normalization and multi-layer perceptron, accompanied by skip connections; next, the image information is processed by layer normalization and drift window multi-head self-attention, accompanied by skip connections; finally, the image information is processed by layer normalization and multi-layer perceptron again, accompanied by skip connections; The transfer learning process can be expressed as follows: .

5. The self-supervised learning method for detecting driver distraction behavior according to claim 4, It is characterized in that The hybrid shearing strategy first generates a random shearing box and shears the corresponding part of the u image; then, the region of interest in the v image is placed in the cropped region of the u image to form a new image. Finally, a hard fusion strategy is used to merge the regions of different images, and a soft fusion strategy is used to merge the labels. The hybrid shearing strategy can be expressed by the following formula: ; Among them and represents different training samples, and express and The corresponding label, B {0, 1} represents a binary mask for deleting and filling image areas. Represents a binary mask whose element value is 1, represents the multiplication of element pairs, It indicates a Gaussian distribution in the (0,1) interval.

6. The self-supervised learning driver distraction behavior detection method according to claim 4, It is characterized in that The hybrid interpolation strategy randomly linearly interpolates and weights the pixels of the two images to generate a new image containing the labels of the two images. The calculation formula is as follows: ; Among them is a Gaussian distribution in [0,1].

7. The self-supervised learning method for detecting driver distraction behavior according to claim 4, It is characterized in that The calculation formula of the multi-head self-attention is as follows: ; in Indicates the number of channels of the image.

8. The self-supervised learning method for detecting driver distraction behavior according to claim 4, It is characterized in that The window multi-head self-attention first divides the feature map into several windows with length and height β, and then performs multi-head self-attention processing on each window. The calculation formula of the window multi-head self-attention is as follows: 。 9. The self-supervised learning method for detecting driver distraction behavior according to claim 5, It is characterized in that The binary mask B needs to first sample the bounding box; then, and Sampling is performed for clipping and padding; and the bounding box coordinates are sampled as follows: ; Among them and Represent the length and height of the rectangular bounding box, L and H represent the length and height of the original image, and the shear area ratio is The value of B indicates whether the bounding box is inside the clipping region.

Citation Information

Patent Citations

  • Driver fatigue detection method and system

    CN116129408A

  • Self-supervised facial expression recognition method combining comparative learning with mask image modeling

    CN116386104A

Cited By

  • Driver road rage emotion detection method based on machine learning

    CN120182951A

  • Water supply network leakage detection method and device, equipment and medium thereof

    CN120296428A

  • Water supply network leakage detection method, device, equipment and medium

    CN120296428B