Driver emotion data set construction method and system based on deep learning
By using methods based on deep learning to collect and process driver emotion data in real road scenarios, combined with self-annotation and emotion classification rationality assessment models, the problems of low efficiency in the construction of emotion data sets and unbalanced data distribution in the existing technology are solved. , achieving rapid construction and normalization of data sets.
Patent Information
- Application Number
- CN202410669059.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-28
- Publication Date
- 2024-08-30
AI Technical Summary
Existing technologies are inefficient and have unbalanced data distribution when constructing driver emotion data sets, making it difficult to construct emotional data annotations.
Using a method based on deep learning, by collecting driver's emotion data in real road scenes, preprocessing and emotion classification recognition are performed, and combined with self-labeling and emotion classification rationality assessment models, an emotion data set with balanced data distribution and rich data types is constructed. .
It realizes the rapid construction of emotional data sets with balanced data distribution, ensures the systematization and standardization of the data sets, and provides technical support for emotional data sets in real road scenarios.
Smart Images

Figure CN118570776A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of vehicle driving, and in particular to a method and system for constructing a driver emotion dataset based on deep learning. Background Art
[0002] Accurately identifying the emotional state of drivers and passengers is a prerequisite for achieving human-machine emotional interaction. At present, the mainstream machine learning method based on supervised learning is still the main architecture of emotion recognition technology, which requires researchers to provide a large number of matching "feature-label" samples to the emotion recognition model. Therefore, a reliable "feature-label" emotion dataset is a necessary condition for obtaining a high-performance emotion recognition model.
[0003] At present, when constructing driver emotion datasets, the annotation of driver emotion data under real road conditions is generally done offline after the fact, that is, after completing the driving task, the experimental participants replay the video by themselves, watch their facial expressions and body posture changes during driving, so as to recall their emotional state at the time and give a self-report. However, this method of constructing emotion datasets has the following problems: 1. Low efficiency: Experimental participants watch the video clips of the driving process while filling out the emotion evaluation scale. Repeated switching can easily lead to confusion in data matching relationships, which requires a lot of inspection time, thus affecting the efficiency of emotion data annotation construction; 2. Unbalanced data distribution: In most cases, the driver's emotions induced by real road scenes are in a relatively calm state. Experimental participants spent a lot of time annotating a single calm emotional state, resulting in an unbalanced distribution of constructed emotion data.
[0004] Therefore, in order to solve the above problems, a method and system for constructing a driver emotion dataset based on deep learning is needed, which can quickly construct an emotion dataset with balanced data distribution and rich data types, and provide technical support for the systematic and standardized construction of emotion datasets in real road scenarios. Summary of the invention
[0005] In view of this, the purpose of the present invention is to overcome the defects in the prior art and provide a method and system for constructing a driver emotion dataset based on deep learning, which can quickly construct an emotion dataset with balanced data distribution and rich data types, and provide technical support for the systematic and standardized construction of emotion datasets in real road scenarios.
[0006] The method for constructing a driver emotion dataset based on deep learning of the present invention comprises the following steps:
[0007] Collect driver emotion data in real road scenarios;
[0008] Preprocessing the driver's emotion data to obtain processed driver's emotion data;
[0009] Based on deep learning, the processed driver emotion data is classified and recognized to obtain the first emotion recognition result;
[0010] According to the first emotion recognition result, the driver's emotion label data is generated;
[0011] The driver emotion label data and the processed driver emotion data are used as the driver emotion dataset.
[0012] Furthermore, the driver emotion data includes driver video data, road scene video data and physiological signal data.
[0013] Furthermore, the driver's emotion data is preprocessed, including:
[0014] Extract n frames of images per second from the driver video data segment, use the multi-task cascade neural network MTCC for face recognition cropping, use a three-level network to generate face windows and align face landmark positions to extract the RGB image of the face, and then convert the face image into a grayscale facial image of the driver;
[0015] N frames of data are extracted from the physiological signal data segment every second, and then each frame of data is standardized to obtain a standardized physiological data segment.
[0016] Furthermore, based on the first emotion recognition result, the driver's emotion label data is generated, including:
[0017] The emotion labels of several frames of images contained in each driver video segment j are obtained, and the emotion recognition result with the largest number of labels is selected as the emotion label data of the driver video segment j.
[0018] Furthermore, the driver's emotion label data and the processed driver's emotion data are used as a driver emotion dataset, including: aligning the driver's video clips, road scene video clips, driver's grayscale facial image clips, standardized physiological data clips, and emotion label data clips through UTC time to form a pre-classified emotion dataset.
[0019] Furthermore, the emotion label data in the pre-classified emotion dataset is optimized to obtain an updated driver emotion dataset, including:
[0020] Self-label the sentiment label data, including:
[0021] a. Calculate the number of data segments with different emotion labels, and sample a certain number of data segments with calm emotion labels, which is the maximum number of data segments with other emotion labels, to form discrete emotion video data after balancing the number of data samples;
[0022] b. Merge the facial expression video clips in the driver video with the road scene video clips, and splice and edit them into a short video sequence of t seconds; combine the short videos in the short video sequence into a long video, and convert its format to MP4; obtain time-aligned facial expression videos and road scene videos, and splice the facial expression videos and road scene videos into a complete video, in which the left side is the driver's perspective and the right side is the scene's perspective;
[0023] c. Edit the complete video into a set of video clips of t seconds, label the set of video clips, and obtain self-label data; wherein the self-label data includes emotion classification labels, emotion intensity labels, emotion valence labels, emotion arousal labels, and emotion dominance labels;
[0024] Based on the emotion classification rationality evaluation model, the emotion classification labels of the driver's emotion label data and the self-label data are compared, the emotion labels that do not conform to the emotion classification rationality evaluation model are eliminated, and the emotion label data that conform to the emotion classification rationality evaluation model are retained; and the emotion intensity label, emotion valence label, emotion arousal label and emotion dominance label are added to the pre-classified emotion data set to obtain an updated driver emotion data set.
[0025] Furthermore, a sentiment classification rationality evaluation model is constructed according to the following formula:
[0026]
[0027] Among them, label true Represents the emotional label data that conforms to the emotional classification rationality evaluation model; label model Represents the driver’s emotion label data, label user Represents the emotion classification label of the self-labeled data, Valence represents the emotion valence label, Arousal represents the emotion arousal label, and Dominance represents the emotion dominance label; Netural, anger, Sad, Fear, Digust, Surprise and Happy represent different emotion categories, representing calmness, anger, sadness, fear, disgust, surprise and happiness respectively.
[0028] Furthermore, the updated driver emotion dataset is de-privatized to obtain a de-privatized driver emotion dataset, which specifically includes:
[0029] The driver's grayscale facial image data is converted into numerical data, the original driver video data and driver's grayscale facial image data are eliminated, and the driver's grayscale facial image numerical data is saved to obtain a de-privacy driver emotion dataset.
[0030] A driver emotion dataset construction system based on deep learning, comprising a data acquisition unit, a data preprocessing unit, an emotion recognition unit, a label making unit and a dataset construction unit;
[0031] The data collection unit is used to collect driver emotion data in real road scenes;
[0032] The data preprocessing unit is used to preprocess the driver's emotion data to obtain processed driver's emotion data;
[0033] The emotion recognition unit is used to perform emotion classification and recognition on the processed driver emotion data based on deep learning to obtain a first emotion recognition result;
[0034] The label making unit is used to make driver emotion label data according to the first emotion recognition result;
[0035] The data set construction unit is used to use the driver emotion label data and the processed driver emotion data as the driver emotion data set.
[0036] The beneficial effects of the present invention are as follows: a method and system for constructing a driver emotion dataset based on deep learning disclosed by the present invention, first, after obtaining driving videos, scene videos, physiological signals and other data of different participants through real vehicle experiments, the feature extraction of the original data is realized through data slicing and preprocessing. Then, random sampling is performed from the video clip set with calm emotion labels, and calm emotion video clips with a number similar to that of the other six categories of emotions are extracted to form a discrete emotion seven-category video set after balancing the number of data samples. According to the comparison results of the self-evaluation emotion annotation and the output of the emotion recognition model, the effective emotion classification labels and the corresponding emotion data are determined, thereby forming an effective classification emotion dataset. Finally, the facial expressions of the experimental participants are numerically processed to generate facial expression grayscale data that cannot be directly observed, forming a de-privacy driver emotion dataset. The present invention can quickly construct an emotion dataset with balanced data distribution, and the data types of the dataset are rich, which provides technical support for the systematic and standardized construction of emotion datasets in real road scenes. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The present invention will be further described below in conjunction with the accompanying drawings and embodiments:
[0038] Figure 1A schematic diagram of the process of constructing a driver emotion dataset of the present invention;
[0039] Figure 2 It is a schematic diagram of the framework of the brain-inspired driver emotion detection model of the present invention;
[0040] Figure 3 A schematic diagram of a driver's facial image feature extraction path according to the present invention;
[0041] Figure 4 This is a schematic diagram of the operation of the driver emotion self-labeling tool of the present invention;
[0042] Figure 5 Schematic diagram of the digital conversion of the driver's facial image according to the present invention. DETAILED DESCRIPTION
[0043] The present invention is further described below in conjunction with the accompanying drawings, as shown in the drawings:
[0044] This embodiment discloses a method for constructing a driver emotion dataset based on deep learning, comprising the following steps:
[0045] Collect driver emotion data in real road scenarios;
[0046] Preprocessing the driver's emotion data to obtain processed driver's emotion data;
[0047] Based on deep learning, the processed driver emotion data is classified and recognized to obtain the first emotion recognition result;
[0048] According to the first emotion recognition result, the driver's emotion label data is generated;
[0049] The driver emotion label data and the processed driver emotion data are used as the driver emotion dataset.
[0050] In this embodiment, the driver's emotional data in a real road scene refers to the explicit and implicit representations of the driver's emotional experience under different road scene stimuli (vehicles, pedestrians, buildings, etc.), as well as road scene video data. Explicit representation refers to emotional information that can be directly observed from the driver's behavior, facial expressions, etc., which is mainly obtained through driver videos and vehicle control signals. Implicit representation refers to emotional information that cannot be directly observed from the driver's brain, physiology, biochemical reactions, etc., which needs to be collected based on wearable bracelets, multi-channel physiological instruments and other equipment. The specific data type can be configured according to the conditions of the experimental equipment. Driver emotional data also includes physiological signal data.
[0051] All data sources need to be able to record the coordinated universal time (UTC) function to achieve time axis alignment of subsequent data. Other types of data have similar sequence representations, so taking the easily collected ECG signal as an example, the mathematical representation of driver video, road scene video, and physiological ECG signal is: driver video f driver,i (x, y, z, t), road scene video f road,i (x,y,z,t), physiological signal f ecg,i (s, t), where x, y, z represent the RGB values of the image, t represents the UTC time, s represents the amplitude of the collected ECG signal, and i represents the i-th experimental participant.
[0052] In this embodiment, the duration of driver emotions induced by real road scene stimulation varies from person to person. Based on the analysis of the collected data in the early stage, 15 seconds is determined as the time window for the occurrence and elimination of emotions. Therefore, all data are sliced and aligned using UTC time. The mathematical representation of different data after slicing is:
[0053] f driver,i (x,y,z,t)=[f driver,i,1 (x,y,z,15)…f driver,i,j (x,y,z,15)],j=N(0.1)
[0054] f road,i (x,y,z,t)=[f road,i,1 (x,y,z,15)…f road,i,j (x,y,z,15)],j=N (0.2)
[0055] f ecg,i (s,t)=[f ecg,i,1 (s,15)…f ecg,i,j (s,15)],j=N (0.3)
[0056] Among them, x, y, z represent the RGB values of the image, t represents the UTC time, s represents the amplitude of the collected ECG signal, i represents the i-th experimental participant, j represents the j-th data segment, and N represents the total number of data segments.
[0057] Video clip of driver driver,i,j (x, y, z, 15) is used for data preprocessing, and images of three frames per second are extracted from the video. The multi-task cascade neural network MTCC is used for face recognition cropping. A three-level network is used to generate face windows and align the positions of face landmarks to extract the RGB image of the face (160×160). The face image is then converted into a grayscale image of the driver (160×160) to reduce image channels and improve computational efficiency. The preprocessed grayscale facial image of the driver is:
[0058] Gray(Cut(f driver,i,j (x,y,z,15)))=[f driver,i,j,1 (x,y)…f driver,i,j,k (x,y)],k=45(0.4)
[0059] Among them, Gray represents grayscale processing, Cut represents the face recognition cropping function, i represents the i-th experimental participant, j represents the j-th data segment, and k represents the k-th video image frame.
[0060] The road scene video is only used as reference data for the subsequent driver's emotional self-evaluation, so no special preprocessing operation is performed.
[0061] For other types of numerical data, such as physiological signals (electrocardiogram, electrodermal conductance, breathing, etc.), driving behavior signals (speed, acceleration, steering angle, etc.), and eye movement behavior signals (scanning, staring, etc.), 3 frames of data are extracted per second, and then each frame of data is preprocessed using standardization (the electrocardiogram of physiological signals is taken as an example here):
[0062] g(f ecg,i,j (s,15))=[f ecg,i,j,1 (s)…f ecg,i,j,k (s)], k = 45 (0.5)
[0063]
[0064] Among them, g represents the extraction process of each frame of data, i represents the i-th experimental participant, j represents the j-th data segment, k represents the k-th data frame, μ represents the mean of all data in the current dimension, σ represents the variance of all data in the current dimension, and f ecg,i,j,k (s)' represents the normalized numerical data.
[0065] In this embodiment, emotion classification and recognition are performed on emotion data based on deep learning. For deep learning, existing convolutional neural networks or recurrent neural networks, etc. can be used, or a brain-inspired driver emotion detection model (Brain-Inspired Driver Emotion Detection, BI-DED) can be used. BI-DED is a real-car road driver emotion detection model that can simulate the human cognitive process and recognize seven driver emotions through facial expressions. BI-DED takes the driver's facial expression image frames in road scenes as input, and finally outputs the driver's emotion classification (anger, sadness, fear, disgust, surprise, happiness and calmness) for each frame. According to the human brain information processing model, the human cognitive process of processing facial expression images includes four stages: perception, memory, attention and decision-making. Inspired by the cognitive stage of the human brain information processing model, the overall framework of the BI-DED model is as follows: Figure 2 shown.
[0066] The BI-DED model is divided into four parts: information perception module, working and long-term memory module, attention resource module, and response decision module. Among them, the role of the information perception module is to extract features from the perceived information and connect long-term memory and working memory for deep feature mapping and extraction. The role of the working memory and long-term memory modules is to generate memory information representing previous experience (long-term memory) and current memory information (working memory), respectively. The role of the attention resource module is to allocate attention to various parts of feature extraction, and improve the information retrieval efficiency of the information perception module and various parts of the working and long-term memory modules. The function of the response decision module is to identify the response decision of the extracted deep features and output the optimal result of driver emotion detection.
[0067] The core innovation of the BI-DED model is to control the switch of the working memory network channel and the long-term memory network channel according to the activation signal output by the information perception module, so as to realize the back and forth flow of input signals in the working memory network channel and the long-term memory network channel to realize information interaction and improve the recognition accuracy of the model. The specific process of information feature extraction is as follows:
[0068] The image information output by the information perception module is transmitted in two directions: the first coupling point between the activation signal mapping module and the two memory sub-networks; the activation signal mapping module processes and analyzes the image information and outputs a set of excitation switch signals; the excitation switch signals are then transmitted to the coupling points of each network unit of the working memory sub-network and the long-term memory sub-network, and the switches at the coupling points are controlled to influence whether the signals pass through the working memory sub-network unit or the long-term memory sub-network unit; when the excitation signal of the cognitive control network completes the switch allocation of each coupling point, the image information enters the network unit pointed to by the switch from the first coupling point, and the information output by this unit determines the direction of the information through the next coupling point switch; the information passes through each unit coupled to the working memory sub-network and the long-term memory sub-network in turn to complete the information feature extraction.
[0069] Feature extraction path see Figure 3 As shown, the process of information passing through a single coupling unit can be expressed by equation 1.7:
[0070] x l+1 =S l+1 (x l +F l+1 (x l ))+S l+1 '(x l +F l+1 '(x l )) (0.7)
[0071] In the formula, it represents the characteristic x of the input l+1 coupling unit l The processing process, its output feature x l+1 is the sum of two parts: the switching signal S of the working memory unit l+1 Its residual output x l +F l+1 (x l ), the switching signal S of the long-term memory unit l+1 'With its residual output x l +F l+1 '(x l ). Among them, the switching signal S l+1 With S l+1 ' is a set of 0 and 1 signals, and only one of them is 0 and the other is 1. The residual output is the output of a type of neural network, which has been widely used and will not be elaborated here. Using the BI-DED emotion recognition model for emotion classification and recognition, a 93.2% accuracy rate for seven-category emotion recognition can be obtained.
[0072] In this embodiment, the driver emotion recognition based on deep learning architecture can be used to obtain the 45-frame image emotion label label contained in each driver image video segment j.i,j,k , select the emotion recognition result with the largest number of labels as the emotion label label of the driver image video clip j i,j , the specific calculation method is:
[0073] label i,j =max[label i,j,1 …label i,j,k ] (0.8)
[0074] label i,j,k ∈{angry, sad, scared, disgusted, surprised, happy, calm} (0.9)
[0075] Where i represents the i-th experimental participant, j represents the j-th data segment, and k represents each video frame. i,j,k Indicates the emotion label of the facial image of each frame, label i,j It represents the emotion label of each facial image segment, and also represents the emotion label of each driver video segment.
[0076] The driver video clips, road scene video clips, driver grayscale facial image clips, standardized ECG data clips, and emotion label data clips are aligned by UTC time to form a pre-classified emotion dataset, as shown below:
[0077] set={set1…set i} (0.10)
[0078] set i ={set i,1 …set i,j} (0.11)
[0079]
[0080] Among them, set represents the data set containing all experimental participants, set i represents all the data of the i-th experimental participant, set i,j represents the i-th segment data (15s) of the i-th experimental participant,
[0081] f driver,i,j (x,y,z,15) represents the driver video clip, f road,i,j (x,y,z,15) represents a road video clip,
[0082] [f driver,i,j,1 (x,y)…f driver,i,j,k (x,y)] represents the extracted grayscale facial image segment of the driver,
[0083] [fecg,i,j,1 (s)'…f ecg,i,j,k (s)'] represents a standardized ECG data segment, label i,j Represents the emotion label of the data segment output by the driver emotion detection model.
[0084] In this embodiment, the emotion recognition model can only output emotion classification labels for different data segments, such as discrete emotions such as anger and sadness, but cannot obtain the emotion intensity of different data segments, nor can it output the continuous emotion dimension values of different emotions. Therefore, based on the pre-classified emotion data set, the number of data segments with different emotion labels is calculated, and a certain number of data segments with the "calm" label are sampled, and the number of samples is the maximum number of data segments with other emotions "anger, sadness, fear, disgust, surprise, and happiness", forming a discrete emotion seven-category video after balancing the number of data samples. The specific data sampling method is:
[0085] sample anger =number label,anger (0.13)
[0086] sample sad =number label,sad (0.14)
[0087] sample fear =number label,fear (0.15)
[0088] sample disgust =number label,disgust (0.16)
[0089] sample surprise =number label,surprise (0.17)
[0090] sample happy =number label,happy (0.18)
[0091]
[0092] Among them, sample i Indicates the number of samples of different emotions i, number label,i Represents the number of pre-classified samples for different emotions i.
[0093] Then, the experimental participants played back the driver video clips of each data segment in an emotion labeling tool. driver,i,j (x,y,z,15) and road video segment f road,i,j(x,y,z,15) and give self-annotation.
[0094] The specific process of self-labeling is as follows:
[0095] Firstly, the driver video clips and the road video clips are merged. The purpose of data merging and alignment is to splice and edit each participant's real vehicle video data (facial expression video and road scene video) into a 15-second short video sequence (for example, if the effective video length of the driver is 60 minutes, then after this data preprocessing, 240 short video sequences of 15 seconds in length will be obtained) for emotion labeling.
[0096] The video clips initially recorded by each participant included facial recordings and scene recordings, both of which contained a certain number of 1-minute video clips in the form of transport streams (TS), which is a standard digital container format for transmitting and storing audio and video. We then combined the effective short videos into a long video and converted its format to MP4.
[0097] After that, we obtain the time-aligned driver facial expression and road scene videos. Then we stitch these two videos into a complete video, where the left side is the driver's perspective and the right side is the scene's perspective.
[0098] Finally, the videos were edited into a collection of 15-second video clips that were annotated by the participants themselves.
[0099] Use the annotation tool to perform annotation processing. The interface of the annotation tool is as follows Figure 4 As shown. The main function of the annotation tool is to read the preprocessed dataset (multiple videos cropped to 15 seconds, including the driver's face and road context) into the tool. The tool can help participants play and read each video in turn, and let participants mark the video while the video is playing (select "Operation" through the button on the software interface). After "Save" the video, the result will be saved, and selecting the button "Next" will continue to play the next video. Participants repeat the annotation steps until all videos in the folder are annotated. In order to prevent participants from getting sleepy, the presentation order of all video clips is randomized. The labels for video annotation include time, weather, dimensional emotion labels, discrete emotion labels, and road context labels (road type, planning, and traffic congestion). Self-labeling data includes emotion classification labels, emotion intensity labels, emotion valence labels, emotion arousal labels, and emotion dominance labels.
[0100] Through the driver's self-labeling of emotions, we can obtain the user's self-assessed emotion classification label, emotion intensity label, emotion valence label, emotion arousal label, and emotion dominance label for each video clip, and add them to the pre-classified emotion dataset. The i-th segment data (15s) set of the i-th experimental participant after adding labels i,j for:
[0101]
[0102] Among them, label i,j,model The emotion "classification" label of the data segment output by the emotion recognition algorithm, label i,j,user Intensity is a label for the emotion of the user's self-assessed data segment. i,j,user Label the emotional "intensity" of the user's self-assessed data segment, Valence i,j,user Arousal is a label for the "valence" of the user's self-assessed data segment. i,j,user The "arousal degree" label for the user's self-assessed data segment, Dominance i,j,user A “dominance” label for a piece of data that is self-rated by the user.
[0103] For each data segment, according to label i,j,model With label i,j,user The matching of , and Valence under different emotion labels i,j,user 、Arousal i,j,user 、Dominance i,j,user The distribution of emotion labels is used to evaluate whether the emotion labels are correct. The driver emotion labels are corrected based on the following emotion classification rationality evaluation model:
[0104]
[0105] In order to express it concisely, the formula is abbreviated. i,j,true Indicates the real and effective emotion classification label, label model Indicates label i,j,model , label user Indicates label i,j,user , Valence means Valence i,j,user , Arousal means Arousal i,j,user , Dominance means Dominance i,j,user .
[0106] The emotion results that do not conform to the emotion classification rationality evaluation model are eliminated, and the data fragment results that conform to the evaluation model are retained, thereby outputting a valid classification emotion data set:
[0107] set={set1…set i} (0.22)
[0108] set i ={set i,1 …set i,j} (0.23)
[0109]
[0110] Among them, set represents the data set containing all experimental participants, set i represents all the data of the i-th experimental participant, set i,j represents the i-th segment data (15s) of the i-th experimental participant,
[0111] f driver,i,j (x,y,z,15) represents the driver video clip, f road,i,j (x,y,z,15) represents a road video clip,
[0112] [f driver,i,j,1 (x,y)…f driver,i,j,k (x,y)] represents the extracted grayscale facial image segment of the driver,
[0113] [f ecg,i,j,1 (s)'…f ecg,i,j,k (s)'] represents a standardized ECG data segment, label i,j,true Intensity is a real and effective emotional "classification" label for data fragments. i,j,user Label the emotional "intensity" of the user's self-assessed data segment, Valence i,j,user Arousal is a label for the "valence" of the user's self-assessed data segment. i,j,user The "arousal degree" label for the user's self-assessed data segment, Dominance i,j,user A “dominance” label for a piece of data that is self-rated by the user.
[0114] In this embodiment, considering the risk of privacy leakage of driver's facial image, it is converted into a numerical matrix and then saved in the driver's emotion dataset. The specific conversion is shown as follows: Figure 5 shown.
[0115] The conversion function from the driver's grayscale facial image data to numerical data is:
[0116] f driver,val,i,j,k (x,y)=φ(f driver,i,j,k (x,y)) (0.25)
[0117] Among them, f driver,val,i,j,k (x, y) represents the digitalized driver’s facial image data, φ(x) represents the digital conversion function, and f driver,i,j,k (x, y) represents the grayscale image data of the driver’s face image.
[0118] After converting the driver's grayscale facial image into numerical data, the original driver video data and driver's grayscale facial image data are removed, and the numerical data of the driver's grayscale facial image is saved, thereby outputting the de-privacy rated emotion dataset:
[0119] set={set1…set i} (0.26)
[0120] set i ={set i,1 …set i,j} (0.27)
[0121]
[0122] Among them, set represents the data set containing all experimental participants, set i represents all the data of the i-th experimental participant, set i,j represents the i-th segment data (15s) of the i-th experimental participant,
[0123] f road,i,j (x,y,z,15) represents a road video segment, [f driver,val,i,j,1 (x,y)…f driver,val,i,j,k (x,y)] represents the extracted numerical data of the driver’s grayscale facial image,
[0124] [f ecg,i,j,1 (s)'…f ecg,i,j,k (s)'] represents a standardized ECG data segment, label i,j,true Intensity is a real and effective emotional "classification" label for data fragments. i,j,user Label the emotional "intensity" of the user's self-assessed data segment, Valence i,j,user Arousal is a label for the "valence" of the user's self-assessed data segment. i,j,user The "arousal degree" label for the user's self-assessed data segment, Dominance i,j,user A “dominance” label for a piece of data that is self-rated by the user.
[0125] The present invention also relates to a driver emotion dataset construction system based on deep learning, the construction system corresponds to the driver emotion dataset construction method of the above embodiment, and can be understood as a system that implements the above construction method, the construction system includes a data acquisition unit, a data preprocessing unit, an emotion recognition unit, a label making unit and a dataset construction unit;
[0126] The data collection unit is used to collect driver emotion data in real road scenes;
[0127] The data preprocessing unit is used to preprocess the driver's emotion data to obtain processed driver's emotion data;
[0128] The emotion recognition unit is used to perform emotion classification and recognition on the processed driver emotion data based on deep learning to obtain a first emotion recognition result;
[0129] The label making unit is used to make driver emotion label data according to the first emotion recognition result;
[0130] The data set construction unit is used to use the driver emotion label data and the processed driver emotion data as the driver emotion data set.
[0131] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the purpose and scope of the technical solution of the present invention, which should be included in the scope of the claims of the present invention.
Claims
1. A method for constructing a driver emotion dataset based on deep learning, characterized by: The steps include: Collect driver emotion data in real road scenarios; Preprocessing the driver's emotion data to obtain processed driver's emotion data; Based on deep learning, the processed driver emotion data is classified and recognized to obtain the first emotion recognition result; According to the first emotion recognition result, the driver's emotion label data is generated; The driver emotion label data and the processed driver emotion data are used as the driver emotion dataset.
2. The method for constructing a driver emotion dataset based on deep learning according to claim 1, characterized in that: The driver emotion data includes driver video data, road scene video data and physiological signal data.
3. The method for constructing a driver emotion dataset based on deep learning according to claim 1, characterized in that: Preprocess the driver's emotional data, including: Extract n frames of images per second from the driver video data segment, use the multi-task cascade neural network MTCC for face recognition cropping, use a three-level network to generate face windows and align face landmark positions to extract the RGB image of the face, and then convert the face image into a grayscale facial image of the driver; N frames of data are extracted from the physiological signal data segment every second, and then each frame of data is standardized to obtain a standardized physiological data segment.
4. The method for constructing a driver emotion dataset based on deep learning according to claim 1, characterized in that: According to the first emotion recognition result, the driver's emotion label data is generated, including: The emotion labels of several frames of images contained in each driver video segment j are obtained, and the emotion recognition result with the largest number of labels is selected as the emotion label data of the driver video segment j.
5. The method for constructing a driver emotion dataset based on deep learning according to claim 1, characterized in that: The driver's emotion label data and the processed driver's emotion data are used as a driver emotion dataset, including: aligning the driver's video clips, road scene video clips, driver's grayscale facial image clips, standardized physiological data clips, and emotion label data clips through UTC time to form a pre-classified emotion dataset.
6. The method for constructing a driver emotion dataset based on deep learning according to claim 5, characterized in that: The emotion label data in the pre-classified emotion dataset is optimized to obtain an updated driver emotion dataset, including: Self-label the sentiment label data, including: a. Calculate the number of data segments with different emotion labels, and sample a certain number of data segments with calm emotion labels, which is the maximum number of data segments with other emotion labels, to form discrete emotion video data after balancing the number of data samples; b. Merge the facial expression video clips in the driver video with the road scene video clips, and splice and edit them into a short video sequence of t seconds; combine the short videos in the short video sequence into a long video, and convert its format to MP4; obtain time-aligned facial expression videos and road scene videos, and splice the facial expression videos and road scene videos into a complete video, in which the left side is the driver's perspective and the right side is the scene's perspective; c. Edit the complete video into a set of video clips of t seconds, label the set of video clips, and obtain self-label data; wherein the self-label data includes emotion classification labels, emotion intensity labels, emotion valence labels, emotion arousal labels, and emotion dominance labels; Based on the emotion classification rationality evaluation model, the emotion classification labels of the driver's emotion label data and the self-label data are compared, the emotion labels that do not conform to the emotion classification rationality evaluation model are eliminated, and the emotion label data that conform to the emotion classification rationality evaluation model are retained; and the emotion intensity label, emotion valence label, emotion arousal label and emotion dominance label are added to the pre-classified emotion data set to obtain an updated driver emotion data set.
7. The method for constructing a driver emotion dataset based on deep learning according to claim 6, characterized in that: The sentiment classification rationality evaluation model is constructed according to the following formula: Among them, label true Represents the emotional label data that conforms to the emotional classification rationality evaluation model; label model Represents the driver’s emotion label data, label user Represents the emotion classification label of the self-labeled data, Valence represents the emotion valence label, Arousal represents the emotion arousal label, and Dominance represents the emotion dominance label; Netural, anger, Sad, Fear, Digust, Surprise and Happy represent different emotion categories, representing calmness, anger, sadness, fear, disgust, surprise and happiness respectively.
8. The method for constructing a driver emotion dataset based on deep learning according to claim 6, characterized in that: The updated driver emotion dataset is de-privatized to obtain a de-privatized driver emotion dataset, which specifically includes: The driver's grayscale facial image data is converted into numerical data, the original driver video data and driver's grayscale facial image data are eliminated, and the driver's grayscale facial image numerical data is saved to obtain a de-privacy driver emotion dataset.
9. A system for constructing a driver emotion dataset based on deep learning, characterized by: It includes a data collection unit, a data preprocessing unit, an emotion recognition unit, a label making unit and a data set construction unit; The data collection unit is used to collect driver emotion data in real road scenes; The data preprocessing unit is used to preprocess the driver's emotion data to obtain processed driver's emotion data; The emotion recognition unit is used to perform emotion classification and recognition on the processed driver emotion data based on deep learning to obtain a first emotion recognition result; The label making unit is used to make driver emotion label data according to the first emotion recognition result; The data set construction unit is used to use the driver emotion label data and the processed driver emotion data as the driver emotion data set.
Citation Information
Patent Citations
Method and system for adjusting road tension emotion of driver based on micro-expression recognition
CN113139469A
Driver emotion intelligent recognition method based on multi-modal network
CN115690887A
Rapidly hardening polymer compound for reinforcement of concrete structure
KR102290254B1
Cited By
Emotional portrait tracking method and device based on multi-site galvanic skin technology
CN119498848A
