Fatigue driving state recognition method, device, equipment and medium

By using a state recognition model composed of a RepVGG network and an attention network, and leveraging driver image feature extraction and channel feature interaction, the high device dependence and environmental interference problems of fatigue driving state recognition are solved, achieving higher recognition accuracy and adaptability.

CN123182196APending Publication Date: 2026-11-27BEIJING AUTOMOBILE RES GENERAL INST
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611405765.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-10
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies for fatigue driving state recognition rely on physiological signal equipment, which is costly. The similarity of image features makes them susceptible to environmental interference, resulting in low recognition accuracy and environmental adaptability.

Method used

A state recognition model composed of a RepVGG network and an attention network is adopted to identify fatigue driving state through driver image feature extraction and channel feature interaction, and the feature representation capability is enhanced by convolutional residual structure and attention module.

Benefits of technology

It improves the accuracy of fatigue driving state recognition and environmental adaptability, and reduces equipment dependence and cost.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123182196A_ABST
    Figure CN123182196A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of intelligent driving, in particular to a fatigue driving state recognition method and device, equipment and a medium, wherein the method comprises the following steps: acquiring a driver image in a vehicle driving process; inputting the driver image into a pre-trained state recognition model; and recognizing the fatigue driving state of the driver through the state recognition model, wherein the state recognition model is composed of a RepVGG network and an attention network, the RepVGG network is used for extracting a feature map of the driver image through different channels, the fatigue driving state of the driver is recognized based on the feature map, and the attention network is used for capturing feature interaction between channels. Therefore, the problems that in the related art, fatigue state recognition is performed based on physiological signals or driver images, a device is highly dependent and high in cost, image features are similar, and the recognition accuracy and environmental adaptability are low due to environmental interference are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of intelligent driving technology, and in particular to a method, device, equipment and medium for identifying fatigue driving state. Background Technology

[0002] Fatigue driving status recognition is crucial for timely detection of driver fatigue, reducing the risk of traffic accidents caused by fatigue driving, and improving vehicle driving safety. Currently, related technologies rely on physiological signals such as electroencephalography (EEG), eye tracking, or heart rate monitoring to identify driver status. However, these technologies suffer from high dependence on specialized detection equipment, high equipment costs, and complex installation and use. Other technologies rely on driver images for recognition, but the image features of different fatigue stages are quite similar, making it particularly difficult to accurately distinguish mild fatigue. Furthermore, these technologies are easily affected by factors such as lighting changes, image noise, and facial occlusion, resulting in low accuracy and environmental adaptability in fatigue driving status recognition. Summary of the Invention

[0003] This application provides a fatigue driving state recognition method, device, equipment, and medium to solve the problems of related technologies that rely on physiological signals or driver images for fatigue state recognition, such as strong equipment dependence, high cost, and low recognition accuracy and environmental adaptability due to similar image features and susceptibility to environmental interference.

[0004] The first aspect of this application provides a method for identifying fatigued driving state, including the following steps: acquiring a driver image during vehicle operation; inputting the driver image into a pre-trained state recognition model, and identifying the driver's fatigued driving state through the state recognition model, wherein the state recognition model consists of a RepVGG network and an attention network, the RepVGG network is used to extract feature maps of the driver image through different channels, and identify the driver's fatigued driving state based on the feature maps, and the attention network is used to capture feature interactions between channels.

[0005] Optionally, in one embodiment of this application, the RepVGG network includes a first branch network, a second branch network, and a fusion network, wherein the fusion network fuses the feature maps output by the first branch network and the feature maps output by the second branch network, and identifies the driver's fatigue driving state based on the fused feature maps.

[0006] Optionally, in one embodiment of this application, the RepVGG network includes multiple convolutional residual structures, and the attention network includes multiple attention modules.

[0007] Optionally, in one embodiment of this application, the first branch network includes a convolutional residual structure and a first attention module. The feature map of the driver image is downsampled through multiple convolutions, the first attention module outputs a weighted feature map, and the weighted feature map is upsampled through multiple convolutions.

[0008] Optionally, in one embodiment of this application, the second branch network includes a convolutional residual structure, a second attention module, a third attention module, a first fusion module, and a second fusion module. The feature maps of the driver image are upsampled by a convolution and then fed into the second attention module. The first fusion module fuses the upsampled feature maps and the feature maps output by the second attention module. The feature maps output by the first fusion module are downsampled by a convolution and then fed into the second attention module. The second fusion module fuses the downsampled feature maps and the feature maps output by the third attention module.

[0009] Optionally, in one embodiment of this application, before inputting the driver image into the pre-trained state recognition model, the method further includes: obtaining a training dataset, which includes multiple training samples and ground truth labels for the training samples, wherein the training samples are driver images and the ground truth labels are the actual fatigue driving states corresponding to the driver images; dividing the training dataset into a training set, a validation set, and a test set; using the training set to train the state recognition model, using the validation set to validate the state recognition model, and using the test set to test the state recognition model; and completing the training when the recognition performance of the state recognition model reaches the target performance.

[0010] Optionally, in one embodiment of this application, after identifying the driver's fatigue driving state through the state recognition model, the method further includes: controlling the vehicle to perform a target reminder action based on the fatigue driving state.

[0011] A second aspect of this application provides a fatigue driving state recognition device, comprising: an acquisition module for acquiring driver images during vehicle operation; and a recognition module for inputting the driver images into a pre-trained state recognition model and recognizing the driver's fatigue driving state through the state recognition model. The state recognition model consists of a RepVGG network and an attention network. The RepVGG network is used to extract feature maps of the driver images through different channels and recognize the driver's fatigue driving state based on the feature maps. The attention network is used to capture feature interactions between channels.

[0012] Optionally, in one embodiment of this application, the RepVGG network includes a first branch network, a second branch network, and a fusion network, wherein the fusion network fuses the feature maps output by the first branch network and the feature maps output by the second branch network, and identifies the driver's fatigue driving state based on the fused feature maps.

[0013] Optionally, in one embodiment of this application, the RepVGG network includes multiple convolutional residual structures, and the attention network includes multiple attention modules.

[0014] Optionally, in one embodiment of this application, the first branch network includes a convolutional residual structure and a first attention module. The feature map of the driver image is downsampled through multiple convolutions, the first attention module outputs a weighted feature map, and the weighted feature map is upsampled through multiple convolutions.

[0015] Optionally, in one embodiment of this application, the second branch network includes a convolutional residual structure, a second attention module, a third attention module, a first fusion module, and a second fusion module. The feature maps of the driver image are upsampled by a convolution and then fed into the second attention module. The first fusion module fuses the upsampled feature maps and the feature maps output by the second attention module. The feature maps output by the first fusion module are downsampled by a convolution and then fed into the second attention module. The second fusion module fuses the downsampled feature maps and the feature maps output by the third attention module.

[0016] Optionally, in one embodiment of this application, the method further includes: before inputting the driver image into the pre-trained state recognition model, a training module is used to obtain a training dataset, which includes multiple training samples and ground truth labels for the training samples. The training samples are driver images, and the ground truth labels are the actual fatigue driving states corresponding to the driver images. The training dataset is divided into a training set, a validation set, and a test set. The state recognition model is trained using the training set, validated using the validation set, and tested using the test set. Training is completed when the recognition performance of the state recognition model reaches the target performance.

[0017] Optionally, in one embodiment of this application, the system further includes: after identifying the driver's fatigue driving state through the state recognition model, the control module controls the vehicle to perform a target reminder action based on the fatigue driving state.

[0018] A third aspect of this application provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor. The processor executes the program to implement the fatigue driving state recognition method as described in the above embodiments.

[0019] A fourth aspect of this application provides a computer-readable storage medium having a computer program stored thereon, which is executed by a processor to implement the fatigue driving state recognition method as described above.

[0020] A fifth aspect of this application provides a computer program that, when executed, is used to implement the fatigue driving state recognition method as described in the above embodiments.

[0021] Therefore, this application has the following beneficial effects: First, driver images are acquired during vehicle operation. This continuous acquisition of driver images during vehicle movement provides a real-time image data foundation for subsequent fatigue driving state identification, enabling continuous monitoring of driver fatigue. Second, the driver images are input into a pre-trained state recognition model. This model performs feature extraction and fatigue driving state identification. Specifically, the state recognition model includes a RepVGG network and an attention network. The RepVGG network is used to perform convolutional feature extraction on the driver images, obtaining the corresponding feature maps. Then, the attention network is used to perform inter-channel feature interaction on the feature maps, determining the corresponding features of different channels. Feature weights are assigned, and the feature maps are weighted accordingly to obtain enhanced feature maps. Finally, the driver's fatigue state is determined based on the enhanced feature maps. A RepVGG network is used to extract features from the driver image, utilizing a convolutional residual structure to extract features at different levels, obtaining driver image features at different levels. An attention network interacts with and weights features from different channels, enhancing features related to fatigue driving state, thereby improving the expressive power of fatigue-related features and reducing the interference of irrelevant features on the state recognition results. Fatigue driving state recognition based on the enhanced feature maps improves the ability of the state recognition model to distinguish driver fatigue states, thus improving the accuracy of fatigue driving state recognition. This solves the problems of related technologies that rely on physiological signals or driver images for fatigue state recognition, such as strong equipment dependence, high cost, and low recognition accuracy and environmental adaptability due to similar image features and susceptibility to environmental interference.

[0022] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description

[0023] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, wherein: Figure 1 This is a flowchart of a fatigue driving state recognition method according to an embodiment of this application; Figure 2 This is an example diagram of the RepVGG network architecture according to an embodiment of this application; Figure 3This is an example diagram of an attention network architecture according to an embodiment of this application; Figure 4 This is an example diagram of the inference fusion logic of the state recognition model according to an embodiment of this application; Figure 5 This is an example diagram of a fatigue driving state recognition device according to an embodiment of this application; Figure 6 This is a schematic diagram of the structure of an electronic device according to an embodiment of this application. Detailed Implementation

[0024] The embodiments of this application are described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application.

[0025] The fatigue driving state recognition method, apparatus, device, and medium of this application are described below with reference to the accompanying drawings. Addressing the problems mentioned in the background art, this application provides a fatigue driving state recognition method. In this method, firstly, an image of the driver during vehicle operation is acquired. By acquiring the driver image during vehicle operation, image information corresponding to the driver's current state can be continuously obtained, providing a real-time image data foundation for subsequent fatigue driving state recognition, thereby achieving continuous monitoring of the driver's fatigue driving state. Secondly, the driver image is input into a pre-trained state recognition model. The state recognition model performs feature extraction and fatigue driving state recognition on the driver image. Specifically, the state recognition model includes a RepVGG network and an attention network. The RepVGG network is used to perform convolutional feature extraction on the driver image to obtain a feature map corresponding to the driver image. Then, the attention network is used to extract features... The image is processed by interacting with features between channels to determine the feature weights corresponding to different channels. The feature maps are then weighted according to these weights to obtain enhanced feature maps. Finally, the driver's fatigue state is determined based on the enhanced feature maps. A RepVGG network is used to extract features from the driver image, utilizing a convolutional residual structure to extract features at different levels, obtaining driver image features at different levels. An attention network is used to interact with and weight the features of different channels, enhancing features related to fatigue driving state, thereby improving the expressive power of fatigue-related features and reducing the interference of irrelevant features on the state recognition results. Fatigue driving state recognition based on the enhanced feature maps improves the ability of the state recognition model to distinguish driver fatigue states, thus improving the accuracy of fatigue driving state recognition. This solves the problems of related technologies that rely on physiological signals or driver images for fatigue state recognition, such as strong equipment dependence, high cost, and low recognition accuracy and environmental adaptability due to similar image features and susceptibility to environmental interference.

[0026] Specifically, Figure 1 This is a flowchart illustrating a fatigue driving state recognition method provided in an embodiment of this application.

[0027] like Figure 1 As shown, the fatigue driving state recognition method includes the following steps: In step S101, the driver's image during the vehicle's driving process is acquired.

[0028] The driver image is at least one image of the driver's face and body area captured by an image acquisition device installed in the vehicle, and in this application represents an input image used to identify the driver's fatigue driving state.

[0029] It is understood that this application acquires driver images during vehicle operation, enabling the state recognition model to identify fatigue driving state based on real-time acquired driver images. This avoids reliance on physiological signal acquisition devices worn by the driver, thereby reducing the dependence on dedicated detection equipment for fatigue driving state recognition and providing a data foundation for subsequent real-time identification of fatigue driving state and vehicle alerts.

[0030] In step S102, the driver image is input into a pre-trained state recognition model. The state recognition model identifies the driver's fatigue driving state. The state recognition model consists of a RepVGG network and an attention network. The RepVGG network is used to extract feature maps of the driver image through different channels and identify the driver's fatigue driving state based on the feature maps. The attention network is used to capture the feature interactions between channels.

[0031] The state recognition model is a machine learning model used to identify the driver's fatigue driving state based on the input image. In this application, it represents a model composed of a RepVGG (Re-parameterization Visual Geometry Group) network and an attention network, used for feature extraction and fatigue driving state classification of driver images. The RepVGG network is a neural network that uses a multi-branch structure for feature learning and can be converted into a single-branch convolutional structure through structural reparameterization. In this application, it represents a feature extraction network used to extract features from driver images. The attention network is a neural network used to determine feature weights based on the correlation between different features in the input features. In this application, it represents a network used to capture the feature interaction relationships between different channels in the feature map and to weight the features of different channels. The fatigue driving state is a state category used to characterize the driver's current driving fatigue level. In this application, it represents the driver's current driving state output by the state recognition model based on the driver image.

[0032] Understandably, this application inputs the driver's image into a state recognition model composed of a RepVGG network and an attention network. The RepVGG network is used to extract features from the driver's image, and the attention network is used to capture the feature interaction relationships between different channels. This enables the model to extract features related to fatigue driving from the driver's image and to perform targeted representation of features in different channels, thereby enhancing the expressive power of fatigue-related features and improving the accuracy of driver fatigue driving state recognition.

[0033] The RepVGG network in this embodiment of the application is as follows: Figure 2As shown, both the first and second branch networks use convolutional residual structures for feature extraction. The first branch network extracts features through Conv1×1 convolutional branches and Identity residual branches. The second branch network, based on this, combines multiple attention modules and fusion modules to process and fuse features at different scales, thereby improving the ability to extract driver fatigue features. Meanwhile, the RepVGG network adopts a multi-branch structure during the training phase and a simplified network structure through reparameterization during the inference phase to improve the model's inference efficiency.

[0034] The attention network of this application is illustrated below with a specific embodiment. The specific values ​​and implementation methods described below are for illustrative purposes only and are not intended to limit the application.

[0035] In one embodiment of this application, the attention network can employ an ECA (Efficient Channel Attention) module, which can achieve significant performance gains with only a small increase in parameters. The ECA module is an improvement upon the SENet channel attention module. By avoiding the impact of channel dimensionality reduction on channel attention learning, it proposes a local cross-channel interaction strategy that does not involve channel dimensionality reduction, and implements local cross-channel interaction through one-dimensional convolution. The specific structure of the ECA module is as follows... Figure 3 As shown.

[0036] Specifically, without reducing the channel dimension, the feature map is first subjected to channel-level global average pooling to obtain the channel features corresponding to each channel. Then, the ECA module performs feature interaction on each channel and its K neighboring channels through one-dimensional convolution to capture local cross-channel interaction information. Here, K represents the number of neighboring channels participating in the local cross-channel interaction, and the kernel size of the one-dimensional convolution is used to characterize the coverage of the local cross-channel interaction. By using a one-dimensional convolution kernel of size K, feature associations between neighboring channels can be established while keeping the channel dimension unchanged, and the attention weights corresponding to each channel can be determined based on the local cross-channel interaction information.

[0037] Furthermore, to avoid manually tuning K through cross-validation, the ECA module determines the kernel size to describe the local cross-channel interaction coverage based on the channel dimension, establishing a correspondence between the kernel size and the channel dimension, thereby enabling the adaptive determination of the local cross-channel interaction range based on the channel dimension of the feature map.

[0038] In one embodiment of this application, before inputting the driver image into the pre-trained state recognition model, the method further includes: obtaining a training dataset, which includes multiple training samples and ground truth labels for the training samples, wherein the training samples are driver images and the ground truth labels are the actual fatigue driving states corresponding to the driver images; dividing the training dataset into a training set, a validation set, and a test set; using the training set to train the state recognition model, using the validation set to validate the state recognition model, and using the test set to test the state recognition model; and completing the training when the recognition performance of the state recognition model reaches the target performance.

[0039] In this application, the training dataset represents a dataset consisting of multiple driver images and their corresponding real fatigue driving states; the training samples represent driver images used as input to the state recognition model; the ground truth labels represent annotation information used to characterize the real fatigue driving states corresponding to the driver images; the training set represents a dataset used to adjust the network parameters of the state recognition model; the validation set represents a dataset used to adjust and determine the training state of the state recognition model; the test set represents a dataset used to test the ability of the state recognition model to recognize fatigue driving states from driver images that were not involved in model parameter training; and the target performance is a pre-set performance metric used to determine whether the state recognition model meets the training requirements, and in this application, it represents the performance conditions used to judge whether the state recognition model meets the requirements for fatigue driving state recognition.

[0040] Understandably, this application trains the state recognition model using a training set to learn the feature correspondence between driver images and fatigued driving states; it validates the performance of the state recognition model during training using a validation set, allowing the model training process to be evaluated based on the validation results, thereby reducing the possibility of model overfitting; and it independently tests the trained state recognition model using a test set, enabling the test results to reflect the model's ability to recognize fatigued driving states in driver images that were not involved in parameter training, thus improving the generalization ability and recognition reliability of the state recognition model in real driving scenarios.

[0041] In one embodiment of this application, the state recognition model is trained before the driver image is input into the pre-trained state recognition model. The specific steps are as follows: First, an image acquisition system was built to obtain images of drivers in real driving scenarios. A training dataset including behaviors under different fatigue states was constructed, and the training dataset was divided into a training set, a validation set, and a test set in a 6:2:2 ratio.

[0042] Secondly, the acquired driver images are preprocessed, and image augmentation methods are used to generate enhanced images to increase the diversity of training data.

[0043] Then, the state recognition model was trained based on the training dataset. During training, the cross-entropy loss function was used as the label loss function, the Adam optimizer was used to optimize the model parameters, and the cosine learning rate decayer was used to adjust the learning rate. L2 regularization and random dropout were also used for model training, with the random dropout ratio set to 0.1, the initial learning rate set to 1×10^5, the batch size set to 256, the number of training epochs set to 150, and the original driver image reduced to 224×224 pixels before being input into the state recognition model for training.

[0044] Finally, the trained state recognition model is saved, and the trained state recognition model is tested using a test set to verify the recognition performance of the state recognition model. When the recognition performance of the state recognition model reaches the target performance, the state recognition model is considered to have completed training, and the trained state recognition model is used to identify driver fatigue driving state during vehicle operation.

[0045] In one embodiment of this application, the RepVGG network includes multiple convolutional residual structures, and the attention network includes multiple attention modules.

[0046] The convolutional residual structure is a network structure that extracts features from input features through convolution operations and residual connections. In this application, it represents the network structure in the RepVGG network used to extract driver image features and transmit feature information through residual connections. The attention module is a network structure used to determine the importance of different features in the input features and to perform weighted processing on the features. In this application, it represents the network structure in the attention network used to perform feature interaction and weight adjustment on the features of the driver image.

[0047] Understandably, this application sets up multiple convolutional residual structures in the RepVGG network, enabling the driver image to undergo step-by-step feature extraction through multiple convolutional residual structures, and retaining input feature information through residual connections. This enhances the network's ability to extract facial and driving behavior features. Simultaneously, by setting up multiple attention modules, the network performs feature interaction and weight adjustment on features extracted at different stages, enabling it to highlight features related to fatigued driving, thereby enhancing the expressive power of fatigue-related features and improving the accuracy of fatigued driving identification.

[0048] In one embodiment of this application, the RepVGG network includes a first branch network, a second branch network, and a fusion network, wherein the fusion network fuses the feature maps output by the first branch network and the feature maps output by the second branch network, and identifies the driver's fatigue driving state based on the fused feature maps.

[0049] In this application, the first branch network is a network structure in the state recognition model used to extract first path features from the input features. In this application, it represents a network that processes the features of the driver image and outputs a first feature map. The second branch network is a network structure in the state recognition model used to extract second path features from the input features. In this application, it represents a network that processes the features of the driver image using a different feature processing path than the first branch network and outputs a second feature map. The fusion network is a network structure used to combine the features output by multiple network branches. In this application, it represents a network used to fuse the first feature map output by the first branch network and the second feature map output by the second branch network, and determine the driver's fatigue driving state based on the fused feature map. The feature map is the feature data formed by the neural network after extracting features from the input image. In this application, it represents data containing feature information related to the driver's fatigue driving state in the driver image.

[0050] It is understood that this application enables the features of the driver image to be extracted along different feature processing paths by setting up a first branch network and a second branch network, thereby obtaining the feature information of the driver image from different angles; furthermore, the feature maps output by the first branch network and the second branch network are fused by a fusion network, so that the feature information extracted by different branches can complement each other, thereby obtaining a richer representation of driver features, improving the ability of the state recognition model to represent driver fatigue-related features, and thus improving the accuracy of identifying fatigue driving state.

[0051] During the model inference phase, the reparameterization process of the RepVGG network includes, for example: Figure 4 The operator fusion and operator replacement are shown.

[0052] Specifically, Figure 4 The left-hand flowchart presents the entire reparameterization process from a structured perspective. Figure 4 The right-hand flowchart illustrates the entire reparameterization process from the perspective of model parameters. During operator fusion, the convolutional layers and BN (Batch Normalization) layers in the residual structure are fused, including the fusion of Conv3×3 convolutional layers and BN layers, as well as the fusion of Conv1×1 convolutional layers and BN layers, thereby converting the parameters of the convolutional layers and BN layers into fused convolutional parameters. The specific fusion formula is shown below:

[0053]

[0054] in, Represents the parameters of the convolutional layer. Represents the mean. Represents variance. Represents the scale factor. Represents the offset factor. Represents weight, Represents bias.

[0055] By fusing convolutional layers and batch normalization (BN) layers, the multi-branch structure in the training phase can be transformed into a simplified structure in the inference phase, which helps to reduce the computational and structural complexity in the inference process and improve the inference efficiency of the model.

[0056] In one embodiment of this application, the first branch network includes a convolutional residual structure and a first attention module. The feature map of the driver image is downsampled through multiple convolutions, the first attention module outputs a weighted feature map, and the weighted feature map is upsampled through multiple convolutions.

[0057] In this application, the convolutional residual structure is a network structure that extracts input features through convolution operations and uses residual connections to transmit feature information. In this application, it represents the network structure in the first branch network used to extract features of the driver image step by step. Downsampling is a processing method that reduces the spatial size of the feature map and extracts features at different scales. In this application, it represents the process of gradually reducing the spatial resolution of the driver image feature map through convolution operations to obtain feature information at different scales. The first attention module is a network structure used to analyze the importance of different features in the input features and assign weights. In this application, it represents the attention module used to perform feature interaction on the feature map obtained after downsampling and determine the weights corresponding to different features. The weighted feature map is a feature map obtained by adjusting the original features according to the weights corresponding to the features. In this application, it represents the feature map that highlights important features after processing by the first attention module. Upsampling is a processing method that increases the spatial size of the feature map. In this application, it represents the process of gradually restoring the spatial resolution of the weighted feature map through convolution operations to obtain a feature map for subsequent feature fusion.

[0058] Understandably, this application downsamples the feature map of the driver image through multiple convolutional operations, enabling the first branch network to extract driver image features at different scales step by step and reduce the spatial size of the feature map. Furthermore, the first attention module performs feature weighting on the downsampled feature map to highlight important features related to fatigue driving and suppress features with low correlation. Then, the weighted feature map is upsampled multiple times to restore the extracted features to a spatial scale suitable for subsequent processing. This reduces the complexity of feature processing while enhancing the expressive power of fatigue-related features and improving the accuracy of fatigue driving recognition.

[0059] The first branch network in this embodiment is as follows: Figure 2 As shown in the network structure on the left, the network includes multiple convolutional residual structures, including Conv1×1 convolutional branches and Identity residual branches. The Conv1×1 convolutional branches are used to perform convolutional processing on the input features, while the Identity residual branches are used to directly pass the input features. Because the first branch network includes the aforementioned convolutional residual structures, multiple feature propagation and gradient propagation paths are formed within the first branch network, thereby mitigating the gradient vanishing problem in deep networks and making the first branch network more prone to convergence.

[0060] In one embodiment of this application, the second branch network includes a convolutional residual structure, a second attention module, a third attention module, a first fusion module, and a second fusion module. The feature maps of the driver image are upsampled by a convolution and then fed into the second attention module. The first fusion module fuses the upsampled feature maps and the feature maps output by the second attention module. The feature maps output by the first fusion module are downsampled by a convolution and then fed into the second attention module. The second fusion module fuses the downsampled feature maps and the feature maps output by the third attention module.

[0061] The second attention module is a network structure used for feature interaction and weight adjustment of input features. In this application, it represents an attention module used for channel feature interaction of the feature map of the driver image and outputting a first attention feature map. The third attention module is a network structure used for feature interaction and weight adjustment of input features. In this application, it represents an attention module used for channel feature interaction of the feature map output by the first fusion module and outputting a second attention feature map. The first fusion module is a network structure used for combining multiple input features. In this application, it represents a network module used for fusing the upsampled feature map and the feature map output by the second attention module. The second fusion module is a network structure used for combining multiple input features. In this application, it represents a network module used for fusing the downsampled feature map and the feature map output by the third attention module. Feature fusion is a processing method that combines feature information from multiple sources to form a new feature representation. In this application, it represents fusing feature maps obtained from different processing paths to form a fused feature map containing multi-path feature information.

[0062] Understandably, this application enables feature maps to extract and interact at different spatial scales by setting up a second branch network that includes two-level attention processing and two-level feature fusion, thereby simultaneously preserving local facial details and high-level semantic features of the driver. By fusing features of different scales and processing paths step by step through the first and second fusion modules, the limitations of single-scale features on fatigue state recognition can be reduced, and the model's ability to perceive subtle facial feature changes in mild fatigue state can be enhanced, thereby improving the accuracy of fatigue driving state recognition.

[0063] The second branch network in this embodiment is as follows: Figure 2 The network structure shown on the right includes a convolutional residual structure, a second attention module, a third attention module, a first fusion module, and a second fusion module. The main structure of the second branch network adopts a residual structure similar to that of ResNet (Residual Network), with the convolutional residual structure including multiple residual branches. Some convolutional residual structures only include Conv1×1 convolutional branches, while others include both Conv1×1 convolutional branches and Identity residual branches. Because the convolutional residual structure has multiple branches, it can provide multiple gradient propagation paths for the network, giving the second branch network better feature learning capabilities.

[0064] Specifically, the feature maps corresponding to the driver's image are upsampled through a convolution and then input into a second attention module. The second attention module performs inter-channel feature interactions on the input feature maps to obtain corresponding attention feature maps. The first fusion module fuses the upsampled feature maps with the attention feature maps output by the second attention module to obtain a first fused feature map. The first fused feature map is downsampled through a convolution and then input into a third attention module. The third attention module performs inter-channel feature interactions on the input feature maps to obtain corresponding attention feature maps. The second fusion module fuses the downsampled feature maps with the attention feature maps output by the third attention module to obtain a second fused feature map.

[0065] The second branch network performs feature processing through multiple residual branches during the training phase, giving the network multiple feature and gradient propagation paths. This step introduces multiple feature processing paths into a single network, thereby improving the network's feature learning ability. During the inference phase, the RepVGG network structure can be reparameterized into a simplified network structure formed by stacking Conv3×3 convolutions and ReLU activation functions, thus simplifying the network structure and facilitating model inference and acceleration.

[0066] In one embodiment of this application, after identifying the driver's fatigue driving state through a state recognition model, the method further includes: controlling the vehicle to perform a target reminder action based on the fatigue driving state.

[0067] Among them, the target reminder action is an action performed by the vehicle to remind the driver based on the driver's current fatigue driving state. In this application, it represents the control action by which the vehicle, based on the identified fatigue driving state, issues a fatigue driving reminder to the driver through sound, image, vibration, or a combination thereof.

[0068] Understandably, this application controls the vehicle to perform target reminder actions based on the identified fatigue driving state, enabling the vehicle to issue targeted reminders to the driver in a timely manner according to different levels of driver fatigue. This allows the fatigue driving state identification results to be further used for active safety intervention of the vehicle, shortening the response time between fatigue state identification and driver reminder, reducing the safety risks caused by driver fatigue driving, and improving the active safety of the vehicle during driving.

[0069] According to the fatigue driving state recognition method proposed in this application, firstly, the driver image during vehicle operation is acquired. By acquiring the driver image during vehicle operation, image information corresponding to the driver's current state can be continuously obtained, providing a real-time image data foundation for subsequent fatigue driving state recognition, thereby achieving continuous monitoring of the driver's fatigue driving state. Secondly, the driver image is input into a pre-trained state recognition model. The state recognition model performs feature extraction and fatigue driving state recognition on the driver image. Specifically, the state recognition model includes a RepVGG network and an attention network. The RepVGG network is used to perform convolutional feature extraction on the driver image to obtain a feature map corresponding to the driver image. Then, the attention network is used to perform inter-channel feature crossing on the feature map. The process involves determining the feature weights for different channels and weighting the feature maps accordingly to obtain enhanced feature maps. Finally, the driver's fatigue state is determined based on the enhanced feature maps. A RepVGG network is used to extract features from the driver image, utilizing a convolutional residual structure to extract features at different levels, obtaining driver image features at various depths. An attention network is used to interact and weight the features from different channels, enhancing features related to fatigue state and improving the expressive power of fatigue-related features while reducing the interference of irrelevant features on the state recognition results. Fatigue state recognition based on the enhanced feature maps improves the ability of the state recognition model to distinguish driver fatigue states, thereby increasing the accuracy of fatigue state recognition. This approach solves the problems of related technologies that rely on physiological signals or driver images for fatigue state recognition, such as strong equipment dependence, high cost, and low accuracy and environmental adaptability due to similar image features and susceptibility to environmental interference.

[0070] Next, the fatigue driving state recognition device proposed according to the embodiments of this application is described with reference to the accompanying drawings.

[0071] Figure 5 This is a block diagram of a fatigue driving state recognition device according to an embodiment of this application.

[0072] like Figure 5 As shown, the fatigue driving state recognition device 10 includes: an acquisition module 100 and a recognition module 200.

[0073] The acquisition module 100 is used to acquire driver images during vehicle operation; the recognition module 200 is used to input the driver images into a pre-trained state recognition model to identify the driver's fatigue driving state. The state recognition model consists of a RepVGG network and an attention network. The RepVGG network is used to extract feature maps of the driver images through different channels and identify the driver's fatigue driving state based on the feature maps. The attention network is used to capture feature interactions between channels.

[0074] In one embodiment of this application, the RepVGG network includes a first branch network, a second branch network, and a fusion network, wherein the fusion network fuses the feature maps output by the first branch network and the feature maps output by the second branch network, and identifies the driver's fatigue driving state based on the fused feature maps.

[0075] In one embodiment of this application, the RepVGG network includes multiple convolutional residual structures, and the attention network includes multiple attention modules.

[0076] In one embodiment of this application, the first branch network includes a convolutional residual structure and a first attention module. The feature map of the driver image is downsampled through multiple convolutions, the first attention module outputs a weighted feature map, and the weighted feature map is upsampled through multiple convolutions.

[0077] In one embodiment of this application, the second branch network includes a convolutional residual structure, a second attention module, a third attention module, a first fusion module, and a second fusion module. The feature maps of the driver image are upsampled by a convolution and then fed into the second attention module. The first fusion module fuses the upsampled feature maps and the feature maps output by the second attention module. The feature maps output by the first fusion module are downsampled by a convolution and then fed into the second attention module. The second fusion module fuses the downsampled feature maps and the feature maps output by the third attention module.

[0078] In one embodiment of this application, the method further includes: before inputting the driver image into the pre-trained state recognition model, a training module is used to obtain a training dataset, which includes multiple training samples and ground truth labels for the training samples. The training samples are driver images, and the ground truth labels are the actual fatigue driving states corresponding to the driver images. The training dataset is divided into a training set, a validation set, and a test set. The state recognition model is trained using the training set, validated using the validation set, and tested using the test set. Training is completed when the recognition performance of the state recognition model reaches the target performance.

[0079] In one embodiment of this application, the control module further includes: after identifying the driver's fatigue driving state through the state recognition model, the control module is used to control the vehicle to perform a target reminder action based on the fatigue driving state.

[0080] It should be noted that the foregoing explanation of the fatigue driving state recognition method embodiment also applies to the fatigue driving state recognition device of this embodiment, and will not be repeated here.

[0081] According to the fatigue driving state recognition device proposed in this application, firstly, the driver image during vehicle operation is acquired. By acquiring the driver image during vehicle operation, image information corresponding to the driver's current state can be continuously obtained, providing a real-time image data foundation for subsequent fatigue driving state recognition, thereby achieving continuous monitoring of the driver's fatigue driving state. Secondly, the driver image is input into a pre-trained state recognition model. The state recognition model performs feature extraction and fatigue driving state recognition on the driver image. Specifically, the state recognition model includes a RepVGG network and an attention network. The RepVGG network is used to perform convolutional feature extraction on the driver image to obtain a feature map corresponding to the driver image. Then, the attention network is used to perform inter-channel feature crossing on the feature map. The process involves determining the feature weights for different channels and weighting the feature maps accordingly to obtain enhanced feature maps. Finally, the driver's fatigue state is determined based on the enhanced feature maps. A RepVGG network is used to extract features from the driver image, utilizing a convolutional residual structure to extract features at different levels, obtaining driver image features at various depths. An attention network is used to interact and weight the features from different channels, enhancing features related to fatigue state and improving the expressive power of fatigue-related features while reducing the interference of irrelevant features on the state recognition results. Fatigue state recognition based on the enhanced feature maps improves the ability of the state recognition model to distinguish driver fatigue states, thereby increasing the accuracy of fatigue state recognition. This approach solves the problems of related technologies that rely on physiological signals or driver images for fatigue state recognition, such as strong equipment dependence, high cost, and low accuracy and environmental adaptability due to similar image features and susceptibility to environmental interference.

[0082] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of this application. The electronic device may include: The memory 601, the processor 602, and the computer program stored on the memory 601 and capable of running on the processor 602.

[0083] When the processor 602 executes the program, it implements the fatigue driving state recognition method provided in the above embodiments.

[0084] Furthermore, electronic devices also include: Communication interface 603 is used for communication between memory 601 and processor 602.

[0085] The memory 601 is used to store computer programs that can run on the processor 602.

[0086] The memory 601 may include high-speed RAM (Random Access Memory) memory, and may also include non-volatile memory, such as at least one disk storage.

[0087] If the memory 601, processor 602, and communication interface 603 are implemented independently, then the communication interface 603, memory 601, and processor 602 can be interconnected via a bus to complete communication between them. The bus can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 6 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0088] Optionally, in a specific implementation, if the memory 601, processor 602, and communication interface 603 are integrated on a single chip, then the memory 601, processor 602, and communication interface 603 can communicate with each other through an internal interface.

[0089] The processor 602 may be a CPU (Central Processing Unit), an ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of this application.

[0090] This application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the above-described fatigue driving state recognition method.

[0091] This application also provides a computer program product that stores a computer program or instructions thereon. When the computer program or instructions are executed, the fatigue driving state recognition method described above is implemented.

[0092] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., refer to specific features, structures, materials, or characteristics described in connection with that embodiment or example, which are included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.

[0093] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise explicitly specified.

[0094] Any process or method described in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or N executable instructions for implementing custom logic functions or processes, and the scope of the preferred embodiments of this application includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as should be understood by those skilled in the art to which embodiments of this application pertain.

[0095] It should be understood that various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any of the following techniques known in the art, or a combination thereof: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (FPGAs), field-programmable gate arrays (FPGAs), etc.

[0096] Those skilled in the art will understand that all or part of the steps of the methods implementing the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.

[0097] Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of this application.

Claims

1. A method for identifying fatigued driving conditions, characterized in that, Includes the following steps: Acquire images of the driver during vehicle operation; The driver image is input into a pre-trained state recognition model, which identifies the driver's fatigue driving state. The state recognition model consists of a RepVGG network and an attention network. The RepVGG network is used to extract feature maps of the driver image through different channels and identify the driver's fatigue driving state based on the feature maps. The attention network is used to capture feature interactions between channels.

2. The fatigue driving state recognition method according to claim 1, characterized in that, The RepVGG network includes a first branch network, a second branch network, and a fusion network. The fusion network fuses the feature maps output by the first branch network and the feature maps output by the second branch network, and identifies the driver's fatigue driving state based on the fused feature maps.

3. The fatigue driving state recognition method according to claim 2, characterized in that, The RepVGG network includes multiple convolutional residual structures, and the attention network includes multiple attention modules.

4. The fatigue driving state recognition method according to claim 3, characterized in that, The first branch network includes a convolutional residual structure and a first attention module. The feature map of the driver image is downsampled through multiple convolutions. The first attention module outputs a weighted feature map, which is then upsampled through multiple convolutions.

5. The fatigue driving state recognition method according to claim 3, characterized in that, The second branch network includes a convolutional residual structure, a second attention module, a third attention module, a first fusion module, and a second fusion module. The feature maps of the driver image are upsampled by a convolution and then fed into the second attention module. The first fusion module fuses the upsampled feature maps and the feature maps output by the second attention module. The feature maps output by the first fusion module are downsampled by a convolution and then fed into the second attention module. The second fusion module fuses the downsampled feature maps and the feature maps output by the third attention module.

6. The fatigue driving state recognition method according to claim 1, characterized in that, Before inputting the driver image into the pre-trained state recognition model, the process also includes: Obtain a training dataset, which includes multiple training samples and ground truth labels for the training samples. The training samples are the driver images, and the ground truth labels are the actual fatigue driving states corresponding to the driver images. The training dataset is divided into a training set, a validation set, and a test set. The state recognition model is trained using the training set, validated using the validation set, and tested using the test set. Training is completed when the recognition performance of the state recognition model reaches the target performance.

7. The fatigue driving state recognition method according to claim 1, characterized in that, After identifying the driver's fatigue driving state through the state recognition model, the method further includes: Based on the fatigue driving state, the vehicle is controlled to perform a target reminder action.

8. A fatigue driving state recognition device, characterized in that, include: The acquisition module is used to acquire images of the driver during vehicle operation; The recognition module is used to input the driver image into a pre-trained state recognition model, and to identify the driver's fatigue driving state through the state recognition model. The state recognition model consists of a RepVGG network and an attention network. The RepVGG network is used to extract feature maps of the driver image through different channels, and to identify the driver's fatigue driving state based on the feature maps. The attention network is used to capture the feature interactions between channels.

9. An electronic device, characterized in that, include: The memory, the processor, and the computer program stored in the memory and executable on the processor, the processor executing the program to implement the fatigue driving state recognition method as described in any one of claims 1-7.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that, The program is executed by the processor to implement the fatigue driving state recognition method as described in any one of claims 1-7.

11. A computer program product having a computer program or instructions stored thereon, characterized in that, When the computer program or instructions are executed, they implement the fatigue driving state recognition method as described in any one of claims 1-7.