Feature fusion emotion recognition method, device, electronic device and storage medium
Through the emotional recognition method of feature fusion, combined with facial expressions and physiological signals, breathing and heartbeat characteristics are extracted, and the problem of low accuracy of emotional recognition in the prior art is solved, achieving a more efficient emotional recognition effect.
Patent Information
- Application Number
- CN202410834546.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2044-06-26
AI Technical Summary
Existing emotional recognition methods are susceptible to spontaneous deception by users, and expressions and voices can be concealed and disguised, making it difficult to reflect the true emotions in the heart, resulting in low recognition accuracy.
Using the emotional recognition method of feature fusion, facial expression images are obtained through image acquisition equipment, and physiological signal data are obtained using FM continuous wave radar, breathing and heartbeat characteristics are extracted, and facial emotional characteristics are combined for splicing feature recognition, using multi-layer perceptron and volume A neural network performs emotion recognition classification.
It improves the accuracy and reliability of emotional recognition, can more accurately identify psychological emotions, and obtain signals without contact, and is suitable for a wide range of application scenarios.
Smart Images

Figure CN118395387B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of emotion type diagnosis, and in particular to a feature-fused emotion recognition method, device, electronic device and storage medium. Background Art
[0002] Emotion recognition is a technology that automatically recognizes and understands human emotions through computer-human perception and interaction. It has a wide range of application value and far-reaching impact. It can enhance the personalization and adaptability of human-computer interaction, monitor mental health, optimize the working environment and improve efficiency, deeply analyze consumer behavior, enhance public safety monitoring, assist in medical decision-making, enrich virtual reality and gaming experience, and improve interpersonal communication and social interaction.
[0003] Among the existing methods, most are based on audio-visual signals, such as expressions, movements, language, and intonation. Taking expressions as an example, Facial Emotion Recognition (FER) refers to the use of computer vision and machine learning technology to identify and classify human emotional states. By analyzing facial features and patterns, the machine can make educated guesses about a person's emotional state. With the development of image recognition and target detection tasks based on deep learning technology, the classification of emotional images can achieve very high accuracy. However, this method is susceptible to spontaneous deception by users. Expressions and sounds can be concealed and disguised, making it difficult to reflect the true emotions in the heart, resulting in low recognition accuracy. Summary of the invention
[0004] The present invention provides a feature-fused emotion recognition method, device, electronic device and storage medium for improving the accuracy of emotion recognition.
[0005] The present invention provides a feature fusion emotion recognition method, comprising:
[0006] Based on the image acquisition device, a facial expression image of the target to be detected is obtained, and based on the frequency modulated continuous wave radar, the radar raw data of the target to be detected is obtained;
[0007] Performing emotion recognition on the facial expression image to determine the facial emotion characteristics of the target to be detected;
[0008] Performing feature extraction on the radar raw data to extract the physiological signal features of the target to be detected, and performing emotion recognition on the physiological signal features to determine the physiological emotion features of the target to be detected, wherein the physiological signal features include breathing features and heartbeat features;
[0009] The physiological emotion feature and the facial emotion feature are spliced to obtain a spliced feature, and the spliced feature is subjected to emotion recognition classification to determine the emotion type of the target to be detected.
[0010] According to a feature fusion emotion recognition method provided by the present invention, the feature extraction of radar raw data to extract the physiological signal features of the target to be detected includes:
[0011] Extracting the breathing waveform of the target to be detected and the heartbeat waveform of the target to be detected based on the radar raw data;
[0012] Performing peak detection on the respiratory waveform to determine the respiratory frequency of the target to be detected and the respiratory interval of the target to be detected;
[0013] Extracting features of the breathing frequency and the breathing interval to determine the breathing features of the target to be detected;
[0014] Extracting the heartbeat interval time domain features of the heartbeat waveform to determine the heartbeat features of the target to be detected;
[0015] The breathing feature and the heartbeat feature are used as the physiological signal features.
[0016] According to a feature fusion emotion recognition method provided by the present invention, the extraction of the breathing waveform and the heartbeat waveform of the target to be detected based on the radar raw data includes:
[0017] Performing phase signal extraction on the radar raw data to extract the breathing phase signal of the target to be detected and the heartbeat phase signal of the target to be detected;
[0018] Based on a Butterworth low-pass filter and a preset amplitude threshold, the respiratory phase signal is filtered to obtain a respiratory waveform of the target to be detected;
[0019] Performing second-order difference processing on the radar raw data to obtain an acceleration signal of the chest wall movement of the target to be detected, and enhancing the heartbeat difference signal in the heartbeat phase signal based on the acceleration signal;
[0020] Based on the heartbeat extraction template, the enhanced heartbeat phase signal is segmented to obtain the heartbeat waveform of the target to be detected.
[0021] According to a feature fusion emotion recognition method provided by the present invention, the emotion recognition is performed on the physiological signal feature to determine the physiological emotion feature of the target to be detected, including:
[0022] The physiological signal feature is input into a first feature mapping layer for physiological emotion recognition to obtain the physiological emotion feature output by the first feature mapping layer, wherein the first feature mapping layer is constructed based on a multi-layer perceptron.
[0023] According to a feature fusion emotion recognition method provided by the present invention, the emotion recognition of the facial expression image is performed to determine the facial emotion features of the target to be detected, including:
[0024] Inputting the facial expression image into a lightweight convolutional neural network model to obtain pre-trained features output by the lightweight convolutional neural network model, wherein the lightweight convolutional neural network model is trained based on facial expression image samples and their corresponding emotion category labels;
[0025] The pre-trained features are input into a second feature mapping layer for facial emotion recognition to obtain facial emotion features output by the second feature mapping layer, where the second feature mapping layer is constructed based on a multi-layer perceptron.
[0026] According to a feature fusion emotion recognition method provided by the present invention, the emotion recognition classification of the spliced features to determine the emotion type of the target to be detected includes:
[0027] The spliced features are input into an emotion recognition classification model to obtain the emotion type of the target to be detected output by the emotion recognition classification model, wherein the emotion recognition classification model is trained based on samples that integrate facial emotion features and physiological signal features and their corresponding emotion type labels.
[0028] According to a feature fusion emotion recognition method provided by the present invention, before performing emotion recognition classification on the spliced features, the method further includes:
[0029] The concatenated features are input into a weighted self-attention channel to assign weights of different feature dimensions to the concatenated features.
[0030] The present invention also provides a feature fusion emotion recognition device, comprising:
[0031] A data acquisition module, used to acquire a facial expression image of a target to be detected based on an image acquisition device, and to acquire radar raw data of the target to be detected based on a frequency modulated continuous wave radar;
[0032] A facial emotion feature determination module, used to perform emotion recognition on the facial expression image and determine the facial emotion features of the target to be detected;
[0033] A physiological and emotional feature determination module is used to perform feature extraction on the radar raw data, extract the physiological signal features of the target to be detected, and perform emotion recognition on the physiological signal features to determine the physiological and emotional features of the target to be detected, wherein the physiological signal features include breathing features and heartbeat features;
[0034] The emotion type determination module is used to splice the physiological emotion features and the facial emotion features to obtain spliced features, and perform emotion recognition classification on the spliced features to determine the emotion type of the target to be detected.
[0035] The present invention also provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, an emotion recognition method using feature fusion as described above is implemented.
[0036] The present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the emotion recognition method using feature fusion as described in any one of the above is implemented.
[0037] The feature-fused emotion recognition method, device, electronic device, and storage medium provided by the present invention can accurately identify the psychological emotions of the target to be detected by fusing multimodal emotion recognition of visual signals and physiological signals and fusing the signals of two different modes. Fusion of audio-visual multimedia with physiological signals for emotion recognition effectively improves the reliability of the recognition results. At the same time, the two signals complement each other and expand the scope of the recognition scene. In addition, signal acquisition is non-contact, and medical sensors that do not require human contact are used, which has the advantages of convenience and comfort. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0039] Figure 1 It is a flowchart of the feature fusion emotion recognition method provided by the present invention.
[0040] Figure 2 It is a schematic diagram of the facial emotion feature determination process provided by the present invention.
[0041] Figure 3 It is a schematic diagram of the multimodal fusion process provided by the present invention.
[0042] Figure 4It is a flowchart of the emotion recognition method using the feature fusion provided by the present invention.
[0043] Figure 5 It is a schematic diagram of the structure of the feature fusion emotion recognition device provided by the present invention.
[0044] Figure 6 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION
[0045] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0046] Among the related methods, the emotional computing methods can be divided into two categories. One category is based on audio-visual signals, such as expressions, actions, language, intonation and other audio-visual signals for recognition. Taking expressions as an example, facial emotion recognition refers to the use of computer vision and machine learning technology to identify and classify human emotional states. By analyzing facial features and patterns, the machine can make educated guesses about a person's emotional state. With the development of image recognition and target detection tasks based on deep learning technology, the classification of emotional images can achieve very high accuracy. However, the defect of this method is that it is easy to be deceived by users spontaneously, and expressions and sounds can be concealed and disguised, making it difficult to reflect the true emotions in the heart.
[0047] The other type is the emotion computing method based on physiological signals such as heart, EEG, and skin conductivity, which uses the fluctuations in physiological state caused by emotions as clues for identification, and has strong reliability and authenticity. However, physiological signals are easily submerged by noise interference, and data collection is also difficult, resulting in low accuracy.
[0048] Aiming at the defects in related methods, the present invention proposes a feature fusion emotion recognition method. Figure 1 This is a flow chart of the feature fusion emotion recognition method provided by the present invention. Figure 1 , the feature fusion emotion recognition method provided by the present invention may include:
[0049] Step 110, based on the image acquisition device, obtain the facial expression image of the target to be detected, and based on the frequency modulated continuous wave radar, obtain the radar raw data of the target to be detected;
[0050] Step 120, performing emotion recognition on the facial expression image to determine the facial emotion characteristics of the target to be detected;
[0051] Step 130, extracting features from the radar raw data, extracting physiological signal features of the target to be detected, and performing emotion recognition on the physiological signal features to determine physiological emotion features of the target to be detected, wherein the physiological signal features include breathing features and heartbeat features;
[0052] Step 140, concatenating the physiological emotion feature and the facial emotion feature to obtain a concatenated feature, and performing emotion recognition classification on the concatenated feature to determine the emotion type of the target to be detected.
[0053] The execution subject of the feature fusion emotion recognition method provided by the present invention can be an electronic device, a component in an electronic device, an integrated circuit, or a chip. The electronic device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), or a personal computer (PC), etc., which is not specifically limited by the present invention.
[0054] The following takes the emotion recognition method of feature fusion provided by the present invention executed by a computer as an example to explain the technical solution of the present invention in detail.
[0055] In step 110, a facial expression image of a target to be detected is acquired based on an image acquisition device, and radar raw data of the target to be detected is acquired based on a frequency modulated continuous wave radar.
[0056] Frequency Modulated Continuous Wave Radar (FMCW radar) is a continuous wave radar whose transmission frequency is modulated by a specific signal.
[0057] FMCW radar can obtain human distance information and is very sensitive to sub-millimeter displacement within a certain distance range. Therefore, FMCW radar can sense the tiny vibrations on the surface of the human chest caused by breathing and heartbeat, thereby obtaining the radar raw physiological signal data of the target to be detected.
[0058] The image acquisition device can be a camera. While acquiring radar raw data of the target to be detected based on the frequency modulated continuous wave radar, the facial expression image of the target to be detected is acquired based on the camera, thereby achieving the simultaneous acquisition of physiological information and facial expression information.
[0059] In step 120, emotion recognition is performed on the facial expression image to determine the facial emotion characteristics of the target to be detected.
[0060] Facial expression recognition technology aims to identify and understand a person's emotional state by analyzing facial features in face images or videos.
[0061] For the emotion recognition task, referring to the facial expression recognition datasets FER and FER+, the emotion categories are defined into three categories, namely positive, negative, and neutral. Positive emotions include positive emotions such as happiness and surprise, and negative emotions include sadness, anger, fear, disgust, and contempt. Neutral emotions usually refer to an emotional state that is neither positive nor negative. It is usually regarded as the "default" or "baseline" state of emotional expression. Neutral emotions are manifested as relaxation of facial muscles and expressions, and a stable state of physiological state, without obvious emotional signs. In psychology and emotion research, neutral emotions provide a comparative benchmark to help researchers and technologies identify and distinguish more obvious emotional expressions, so as to better represent the relative emotional changes of different individuals.
[0062] In step 130, feature extraction is performed on the radar raw data to extract the physiological signal features of the target to be detected, and emotion recognition is performed on the physiological signal features to determine the physiological emotion features of the target to be detected, wherein the physiological signal features include breathing features and heartbeat features.
[0063] The perception of physiological signals mainly involves the collection of breathing and heartbeat movements. The heart rate and breathing rate of the human body in different emotional states will show specific changes. This is because the emotional state affects the autonomic nervous system, thereby affecting the heart rate (HR) and breathing rate (RR). For example, when a person is in a positive mood, the heart rate will increase slightly, and the breathing may become slightly faster and shallower. This is due to the increased secretion of adrenaline, which stimulates the sympathetic nervous system, thereby speeding up the heartbeat and breathing. In sad or depressed emotions, a person's heart rate may slow down and the breathing rate may also decrease. In some extreme sad emotions, the heart rate may be irregular and the breathing may become deep and long. In a neutral emotional state such as relaxation or meditation, the heart rate usually slows down steadily and the breathing becomes more soothing and calm.
[0064] For the collection of physiological signals, the radio frequency sensing technology based on millimeter wave radar is used to reconstruct the heartbeat and breathing signals. Frequency modulated continuous wave radar can obtain the distance information of the human body, and is very sensitive to sub-millimeter displacement within a certain distance range. By sensing the tiny vibrations on the surface of the human chest caused by breathing and heartbeat through FMCW radar, the breathing and heartbeat waveforms can be restored from the radar raw data, and then the estimation and trend analysis of physiological signals such as heart rate and breathing can be performed.
[0065] After obtaining the physiological signal characteristics including the breathing and heartbeat characteristics of the target to be detected based on the radar raw data, emotion recognition is performed on the physiological signal characteristics to determine the physiological emotion characteristics of the target to be detected.
[0066] In step 140, the physiological emotion feature and the facial emotion feature are spliced to obtain a spliced feature, and the spliced feature is subjected to emotion recognition classification to determine the emotion type of the target to be detected.
[0067] After obtaining the physiological emotion features and facial emotion features, they need to be concatenated to achieve feature fusion, thereby forming a richer feature vector.
[0068] You can use a classification model to classify the spliced features for emotion recognition. Use a labeled dataset to train the classification model. During the training process, the model will learn how to identify different emotion types from the spliced features. The spliced features can be input into the trained classification model, and the model will output one or more emotion labels as the prediction results.
[0069] It can be understood that by splicing physiological emotion features and facial emotion features and inputting them into the emotion recognition classification model, the emotion type of the target to be detected can be determined more accurately. This method combines physiological and facial information to provide more comprehensive and accurate emotion recognition results.
[0070] Combining the visual modality and physiological signals of the human body, accurate and effective psychological emotion analysis in indoor environments is performed. By integrating facial expressions with physiological signals such as breathing and heart activity, the emotional state of the human body is analyzed and evaluated from multiple dimensions, combining the convenience and efficiency of facial expression and emotion recognition with the authenticity of physiological signal recognition, thereby improving the accuracy and universality of emotion recognition.
[0071] Based on this, an intelligent state perception system integrating cameras and millimeter-wave radars can be designed. The camera collects visual information of the visible spectrum, and obtains general visual information such as the spatial position information, facial image, and color of the human body through two-dimensional projection exposure of visible light; the millimeter-wave radar can process the frequency and phase information of the carrier signal through electromagnetic wave modulation technology, and is extremely sensitive to radial displacement, speed, and micro vibration signals at the millimeter level. The two sensors complement each other and collect multi-modal human time series signals to perform multi-dimensional human signal perception from a richer perspective.
[0072] The non-contact acquisition of physiological signals is different from the traditional contact-based methods of collecting physiological signals such as ECG, PPG, and respiratory straps. It uses a radio frequency sensing method based on millimeter-wave radar to obtain physiological signals such as human heartbeat and breathing. It does not require direct contact between the sensor and the human body. It has many advantages such as strong comfort, avoidance of cross-infection, and suitability for patients with skin diseases and infants. It is suitable for a wide range of application scenarios.
[0073] Based on this, a multimodal fusion strategy based on deep learning can be adopted. The deep learning model is used to extract and select features from the signals of the two modalities, and then a fusion network is designed at the feature level to fully integrate the features of the two modalities and adaptively learn features related to emotion recognition. Compared with separate decision-making, it has higher adaptability and robustness.
[0074] The feature fusion emotion recognition method provided in the embodiment of the present invention accurately identifies the psychological emotions of the target to be detected by integrating multimodal emotion recognition of visual signals and physiological signals and fusion perception of signals of two different modes. Fusion of audio-visual multimedia with physiological signals for emotion recognition effectively improves the reliability of the recognition results. At the same time, the two signals complement each other and expand the scope of recognition scenarios. In addition, signal acquisition is non-contact, and medical sensors that do not require human contact are used, which has the advantages of convenience and comfort.
[0075] In one embodiment, feature extraction is performed on radar raw data to extract physiological signal features of the target to be detected, including: extracting a respiratory waveform of the target to be detected and a heartbeat waveform of the target to be detected based on the radar raw data; performing peak detection on the respiratory waveform to determine the respiratory frequency of the target to be detected and the respiratory interval of the target to be detected; performing feature extraction on the respiratory frequency and the respiratory interval to determine the respiratory features of the target to be detected; performing heartbeat interval time domain feature extraction on the heartbeat waveform to determine the heartbeat features of the target to be detected; and using the respiratory features and the heartbeat features as the physiological signal features.
[0076] Among them, based on the radar raw data, extracting the respiratory waveform of the target to be detected and the heartbeat waveform of the target to be detected, including: performing phase signal extraction on the radar raw data to extract the respiratory phase signal of the target to be detected and the heartbeat phase signal of the target to be detected; filtering the respiratory phase signal based on a Butterworth low-pass filter and a preset amplitude threshold to obtain the respiratory waveform of the target to be detected; performing second-order difference processing on the radar raw data to obtain the acceleration signal of the chest wall movement of the target to be detected, and based on the acceleration signal, enhancing the heartbeat difference signal in the heartbeat phase signal; based on the heartbeat extraction template, segmenting the enhanced heartbeat phase signal to obtain the heartbeat waveform and heartbeat interval of the target to be detected.
[0077] Optionally, the physiological signal feature extraction process may mainly include two stages. The first stage is to restore the breathing waveform and the heartbeat waveform from the radar signal; the second stage is to extract the heartbeat features and the breathing features, and construct the physiological signal features for emotion recognition.
[0078] First, collect training data for physiological signal emotion classification. During the training process, you can use different types of videos in a sitting state to induce emotions for data collection. Emotions are also divided into three categories: positive, negative, and neutral. Videos suitable for stimulating the three human emotions are selected for testers to watch. At the same time, cameras and millimeter-wave radars record different emotional measurement data information. After watching, interview the subjects in a timely manner to record the subjects' different emotional information to ensure data reliability.
[0079] Then, physiological signals including breathing and heartbeat are extracted from the radar raw data. The steps are as follows:
[0080] Step 210: performing a one-dimensional fast Fourier transform (FFT) on the signal data acquired by the FMCW radar to obtain the distance ranges corresponding to different frequency components, namely, Range-FFT;
[0081] Step 220: Static background filtering. The Range-FFT is averaged in the slow time dimension to obtain the static background reflection. The background reflection result is subtracted from the Range-FFT to retain the dynamic components with a high correlation with the physiological signal.
[0082] Step 230: Human body positioning: Obtain a distance-amplitude graph, perform histogram statistics on the highest energy range-bin of the distance-amplitude graph, and the peak value of the statistical result is the distance with the strongest reflected energy, that is, the position of the human body.
[0083] Step 240: Extract phase signal. Demodulate the distance signal using the arctan function. The obtained phase signal range is [-π,π]. Use the phase unwrapping algorithm to process the jump value. The formula is as follows:
[0084] ;
[0085] The subscript n represents a time point. and Represent the phase signal at the current moment and the previous moment respectively. t represents the sampling time interval.
[0086] At this time, the extracted signal is the original phase signal including breathing and heartbeat.
[0087] Next, physiological signal restoration is performed.
[0088] The first step is to restore the respiratory signal. Respiratory movement is the main component in the phase signal, with a prominent amplitude, a stable frequency of 0.1-0.3Hz and obvious periodicity. Therefore, a Butterworth low-pass filter with a preset amplitude threshold of less than 0.5Hz can be used to filter the original signal to obtain the respiratory waveform.
[0089] Next is the restoration of the heartbeat signal. Since the heartbeat signal is relatively weak and the signal-to-noise ratio is low, a more sophisticated waveform extraction method design is required. The steps are as follows:
[0090] Step 310: Heartbeat signal differential enhancement. Since breathing is slow and dominant, the chest wall movement amplitude and speed caused by breathing are large, but the acceleration is small; on the contrary, the heartbeat amplitude is small, but the heartbeat is fast and the acceleration is large. Therefore, the acceleration signal of the chest wall movement can be obtained by the second-order difference method to enhance the heartbeat waveform. Here, the noise-robust smooth second-order difference is used, and the formula is as follows:
[0091] ;
[0092] in, The subscript represents a time point. For example, 1 represents the time point after the current time point, and -2 represents the time points two points before the current time point.
[0093] Step 320: Template segmentation. The heartbeat extraction template is used to segment the heartbeat and extract the heartbeat waveform. Since the specific form of the heartbeat waveform is unknown, it is necessary to select the most appropriate heartbeat extraction template from the signal and perform reasonable heartbeat segmentation using the heartbeat extraction template. The best heartbeat extraction template and segmentation are determined by iterative optimization. First, define: , whose distance is:
[0094] Linear interpolation: , indicating that the signal Linear interpolation is transformed into length T. Then, the signal Transform to Same length, use Indicates that Indicates signal Length.
[0095] distance: , that is, First transform to Length, and then calculate the L2 distance.
[0096] According to the above definition, let the original signal be , the segment is , the heartbeat extraction template is , then the optimal partition is to minimize the sum of the distances between each partition and the template, that is,
[0097] ;
[0098] Since segmentation is a serial operation, dynamic programming can be used to optimize the segmentation process. , set the range of split length Then, perform the following steps:
[0099] Step 331: Initialize the heartbeat extraction template to a zero vector, the segmentation set S to an empty set, and the segmentation loss to L;
[0100] Step 332: Find the optimal segmentation p in one step, which is:
[0101] ;
[0102] ;
[0103] Step 333: Update the current time index t to ; Update segmentation loss L;
[0104] Step 334: Repeat steps 332 and 333 until signal segmentation is completed.
[0105] Step 330: Update the heartbeat extraction template. , all the segments can be averaged. The formula is as follows:
[0106] ;
[0107] Step 340, iteratively optimize step 320 and step 330 until the segmentation loss L reaches convergence.
[0108] Through the above iterative optimization algorithm, the heartbeat waveform and heart rate segmentation results can be obtained.
[0109] Physiological signal feature extraction can be:
[0110] After obtaining the breathing and heartbeat waveforms, the peak value of the breathing waveform is detected, and then the breathing frequency and breathing interval can be calculated. For the heartbeat, segmentation has been performed, and then the interval between heartbeats can be calculated, and then the physiological signal features related to emotions can be calculated. Here, the following features are used:
[0111] Respiratory characteristics: including respiratory rate and respiratory rate interval;
[0112] Time domain features of the heart beat interval (IBI). Including IBI mean, IBI quartile, IBI standard deviation (SDRR), root mean square of IBI continuous difference (RMSSD), standard deviation of continuous difference (SDSD), pNN50 (the percentage of adjacent continuous difference intervals greater than 50ms), SDNNi (short-term change of standard deviation), meanRate (mean heart rate), and sdRate (standard deviation of heart rate).
[0113] Frequency domain characteristics: namely, the low-frequency / high-frequency power ratio of the heart rate spectrum, the peak value of the low-frequency power, and the peak value of the high-frequency power.
[0114] Information features: IBI sample entropy, skewness, kurtosis, IBI derivative zero-crossing rate.
[0115] In one embodiment, emotion recognition is performed on the physiological signal characteristics to determine the physiological emotion characteristics of the target to be detected, including: inputting the physiological signal characteristics into a first feature mapping layer for physiological emotion recognition, and obtaining the physiological emotion characteristics output by the first feature mapping layer, wherein the first feature mapping layer is constructed based on a multi-layer perceptron.
[0116] Specifically, the breathing features and the heartbeat features may be concatenated into a one-dimensional vector to obtain the physiological signal features.
[0117] Based on the first feature mapping layer, the physiological signal features are classified into emotion categories to obtain the mapped feature vector. The first feature mapping layer is constructed based on a multi-layer perceptron MLP.
[0118] In one embodiment, emotion recognition is performed on the facial expression image to determine the facial emotion features of the target to be detected, including: inputting the facial expression image into a lightweight convolutional neural network model to obtain pre-trained features output by the lightweight convolutional neural network model, wherein the lightweight convolutional neural network model is trained based on facial expression image samples and their corresponding emotion category labels; inputting the pre-trained features into a second feature mapping layer to perform facial emotion recognition, and obtaining facial emotion features output by the second feature mapping layer, wherein the second feature mapping layer is constructed based on a multi-layer perceptron.
[0119] Specifically, the specific process of determining facial emotion features can be as follows: Figure 2 The facial emotion feature determination process provided by the present invention is shown in the schematic diagram, which may specifically include:
[0120] Dataset processing. The FER+ dataset is used for training. The FER+ dataset is an extension of the original Facial Expression Recognition (FER) dataset. It annotates facial expressions more finely and subtly, and adds neutral and contemptuous emotions. First, the labels of the dataset are divided according to the definition of the emotion recognition task and organized into three categories of emotion category labels.
[0121] Subsequently, according to the characteristics of the facial expression recognition task, targeted image enhancement operations are designed. The specific operations for processing the facial expression image of the expression input image include:
[0122] Zoom in to better capture details of facial expressions;
[0123] Center cropping to ensure key expression features can be effectively captured;
[0124] Randomly rotate to simulate facial expressions at different angles;
[0125] Image standardization helps to improve the stability of model training and accelerate the convergence speed, while effectively avoiding the occurrence of overfitting.
[0126] Feature extraction network construction: The pre-trained model MobileNetV3 of the ImageNet dataset is used as the framework network for facial expression feature extraction. The pre-trained model has been learned on millions of images on ImageNet and has the ability to recognize basic image elements such as contours and shapes, and can output abstract expressions of high-level semantic features. At the same time, MobileNetV3 is a lightweight deep learning architecture specifically designed for efficient visual recognition tasks on mobile and edge devices, aiming to maintain performance while reducing model size and computational complexity.
[0127] Facial expression feature mapping. Since the pre-trained model focuses on the expression of macro-semantics, such as portraits and faces, but the feature is not strongly relevant to specific downstream tasks, feature mapping dedicated to facial expressions is required. Therefore, fine-tuning training is performed on the prepared FER+ dataset to produce obvious distribution differences in the three types of emotional states. First, the image is input into the MobileNetV3 network to obtain the pre-trained feature expression; then the pre-trained network is frozen and the pre-trained features are input into the second feature mapping layer. The second feature mapping layer is composed of a multi-layer perceptron (MLP), which is processed by linear feature mapping and nonlinear activation function (Relu layer), and the Dropout regularization term is added. After back-propagation training based on the second feature mapping layer, the result is obtained.
[0128] In one embodiment, the spliced features are subjected to emotion recognition classification to determine the emotion type of the target to be detected, including: inputting the spliced features into an emotion recognition classification model to obtain the emotion type of the target to be detected output by the emotion recognition classification model, wherein the emotion recognition classification model is trained based on samples that integrate facial emotions and physiological signal features and their corresponding emotion type labels.
[0129] The emotion recognition classification model is trained using labeled sample data. The fused feature vector of each sample is used as input, and the corresponding emotion type label is used as the target output. The fused feature vector is constructed based on the fusion of facial emotion features and physiological signal features.
[0130] After the emotion recognition classification model is trained, the concatenated features are input into the emotion recognition classification model to output the emotion type of the target to be detected.
[0131] In one embodiment, before performing emotion recognition classification on the spliced features, the method further includes: inputting the spliced features into a weighted self-attention channel to assign weights of different feature dimensions to the spliced features.
[0132] The specific implementation process can be as follows Figure 3 The multimodal fusion process provided by the present invention is shown in the schematic diagram.
[0133] First, the facial expression image is used as the expression input image for face detection. The expression input image is enhanced, and the enhanced image is input into the MobileNetV3 model. After the features are output, expression feature mapping is performed to obtain the facial emotion features of the target to be detected.
[0134] At the same time, feature extraction is performed on the radar raw data. The heartbeat signal is enhanced based on background filtering, human body positioning, phase signal extraction, etc., and segmented based on the heartbeat template to obtain the heartbeat waveform. Feature extraction is performed based on the obtained heartbeat waveform and breathing waveform to obtain physiological signal characteristics.
[0135] When multimodal features are fused, the physiological signal features and facial emotion features are first concatenated into one-dimensional feature vectors; then they are input into the MLP layer for feature mapping; at the same time, the weighted self-attention channel is input to adaptively obtain the weights of different feature dimensions, and then the element-by-element product operation is performed with the feature vector to assign weights of different feature dimensions to the concatenated features. Emotion recognition is performed based on the concatenated features to obtain the emotion recognition results.
[0136] The present invention also provides a flow chart of an emotion recognition method using feature fusion provided by the present invention, such as Figure 4 As shown, specifically including:
[0137] The facial expression image is used as the expression input image to extract the expression features and obtain the facial emotion features of the target to be detected.
[0138] The original radar data is used as radar signal to perform feature extraction to obtain physiological signal features.
[0139] The physiological signal features and facial emotion features are concatenated into one-dimensional feature vectors; then they are input into the MLP layer for feature mapping; at the same time, the weighted self-attention channel is input to adaptively obtain the weights of different feature dimensions, and then the element-by-element product operation is performed with the feature vector to assign weights of different feature dimensions to the concatenated features. Finally, the SoftMax layer is input for emotion recognition classification to obtain the classification results.
[0140] Figure 5 The structural diagram of the feature fusion emotion recognition device provided by the present invention is as follows: Figure 5 The device comprises:
[0141] The data acquisition module 510 is used to acquire the facial expression image of the target to be detected based on the image acquisition device, and acquire the radar raw data of the target to be detected based on the frequency modulated continuous wave radar;
[0142] A facial emotion feature determination module 520 is used to perform emotion recognition on the facial expression image to determine the facial emotion features of the target to be detected;
[0143] The physiological and emotional characteristics determination module 530 is used to extract features from the radar raw data, extract the physiological signal features of the target to be detected, and perform emotion recognition on the physiological signal features to determine the physiological and emotional features of the target to be detected, wherein the physiological signal features include breathing features and heartbeat features;
[0144] The emotion type determination module 540 is used to splice the physiological emotion feature and the facial emotion feature to obtain a spliced feature, and perform emotion recognition classification on the spliced feature to determine the emotion type of the target to be detected.
[0145] The feature-fused emotion recognition device provided in the embodiment of the present invention can accurately identify the psychological emotions of the target to be detected by fusing multimodal emotion recognition of visual signals and physiological signals, and fusing the signals of two different modes to perceive them. Fusion of audio-visual multimedia with physiological signals for emotion recognition effectively improves the reliability of the recognition results. At the same time, the two signals complement each other and expand the scope of recognition scenarios. In addition, signal acquisition is non-contact, and medical sensors that do not require human contact are used, which has the advantages of convenience and comfort.
[0146] In one embodiment, the physiological emotion feature determination module 530 is specifically used to:
[0147] Performing feature extraction on the radar raw data to extract the physiological signal features of the target to be detected includes:
[0148] Extracting the breathing waveform of the target to be detected and the heartbeat waveform of the target to be detected based on the radar raw data;
[0149] Performing peak detection on the respiratory waveform to determine the respiratory frequency of the target to be detected and the respiratory interval of the target to be detected;
[0150] Extracting features of the breathing frequency and the breathing interval to determine the breathing features of the target to be detected;
[0151] Extracting the heartbeat interval time domain features of the heartbeat waveform to determine the heartbeat features of the target to be detected;
[0152] The breathing feature and the heartbeat feature are used as the physiological signal features.
[0153] In one embodiment, the physiological emotion feature determination module 530 is further specifically used for:
[0154] Extracting the breathing waveform of the target to be detected and the heartbeat waveform of the target to be detected based on the radar raw data, including:
[0155] Performing phase signal extraction on the radar raw data to extract the breathing phase signal of the target to be detected and the heartbeat phase signal of the target to be detected;
[0156] Based on a Butterworth low-pass filter and a preset amplitude threshold, the respiratory phase signal is filtered to obtain a respiratory waveform of the target to be detected;
[0157] Performing second-order difference processing on the radar raw data to obtain an acceleration signal of the chest wall movement of the target to be detected, and enhancing the heartbeat difference signal in the heartbeat phase signal based on the acceleration signal;
[0158] Based on the heartbeat extraction template, the enhanced heartbeat phase signal is segmented to obtain the heartbeat waveform of the target to be detected.
[0159] In one embodiment, the physiological emotion feature determination module 530 is further specifically used for:
[0160] Performing emotion recognition on the physiological signal characteristics to determine the physiological emotion characteristics of the target to be detected includes:
[0161] The physiological signal feature is input into a first feature mapping layer for physiological emotion recognition to obtain the physiological emotion feature output by the first feature mapping layer, wherein the first feature mapping layer is constructed based on a multi-layer perceptron.
[0162] In one embodiment, the facial emotion feature determination module 520 is specifically used to:
[0163] Performing emotion recognition on the facial expression image to determine the facial emotion features of the target to be detected includes:
[0164] Inputting the facial expression image into a lightweight convolutional neural network model to obtain pre-trained features output by the lightweight convolutional neural network model, wherein the lightweight convolutional neural network model is trained based on facial expression image samples and their corresponding emotion category labels;
[0165] The pre-trained features are input into a second feature mapping layer for facial emotion recognition to obtain facial emotion features output by the second feature mapping layer, where the second feature mapping layer is constructed based on a multi-layer perceptron.
[0166] In one embodiment, the emotion type determination module 540 is specifically used to:
[0167] Performing emotion recognition classification on the spliced features to determine the emotion type of the target to be detected includes:
[0168] The spliced features are input into an emotion recognition classification model to obtain the emotion type of the target to be detected output by the emotion recognition classification model, wherein the emotion recognition classification model is trained based on samples that integrate facial emotion features and physiological signal features and their corresponding emotion type labels.
[0169] In one embodiment, the emotion type determination module 540 is further specifically configured to:
[0170] Before performing emotion recognition classification on the spliced features, the method further includes:
[0171] The concatenated features are input into a weighted self-attention channel to assign weights of different feature dimensions to the concatenated features.
[0172] Figure 6 An example of a physical structure diagram of an electronic device is shown in FIG. Figure 6 As shown, the electronic device may include: a processor 610, a communication interface 620, a memory 630 and a communication bus 640, wherein the processor 610, the communication interface 620 and the memory 630 communicate with each other through the communication bus 640. The processor 610 may call the logic instructions in the memory 630 to execute the feature fusion emotion recognition method, which includes:
[0173] Based on the image acquisition device, a facial expression image of the target to be detected is obtained, and based on the frequency modulated continuous wave radar, the radar raw data of the target to be detected is obtained;
[0174] Performing emotion recognition on the facial expression image to determine the facial emotion characteristics of the target to be detected;
[0175] Performing feature extraction on the radar raw data to extract the physiological signal features of the target to be detected, and performing emotion recognition on the physiological signal features to determine the physiological emotion features of the target to be detected, wherein the physiological signal features include breathing features and heartbeat features;
[0176] The physiological emotion feature and the facial emotion feature are spliced to obtain a spliced feature, and the spliced feature is subjected to emotion recognition classification to determine the emotion type of the target to be detected.
[0177] In addition, the logic instructions in the above-mentioned memory 630 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0178] On the other hand, the present invention further provides a computer program product, the computer program product comprising a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions, when the program instructions are executed by a computer, the computer can execute the feature fusion emotion recognition method provided by the above methods, the method comprising:
[0179] Based on the image acquisition device, a facial expression image of the target to be detected is obtained, and based on the frequency modulated continuous wave radar, the radar raw data of the target to be detected is obtained;
[0180] Performing emotion recognition on the facial expression image to determine the facial emotion characteristics of the target to be detected;
[0181] Performing feature extraction on the radar raw data to extract the physiological signal features of the target to be detected, and performing emotion recognition on the physiological signal features to determine the physiological emotion features of the target to be detected, wherein the physiological signal features include breathing features and heartbeat features;
[0182] The physiological emotion feature and the facial emotion feature are spliced to obtain a spliced feature, and the spliced feature is subjected to emotion recognition classification to determine the emotion type of the target to be detected.
[0183] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to perform the above-mentioned feature fusion emotion recognition method, the method comprising:
[0184] Based on the image acquisition device, a facial expression image of the target to be detected is obtained, and based on the frequency modulated continuous wave radar, the radar raw data of the target to be detected is obtained;
[0185] Performing emotion recognition on the facial expression image to determine the facial emotion characteristics of the target to be detected;
[0186] Performing feature extraction on the radar raw data to extract the physiological signal features of the target to be detected, and performing emotion recognition on the physiological signal features to determine the physiological emotion features of the target to be detected, wherein the physiological signal features include breathing features and heartbeat features;
[0187] The physiological emotion feature and the facial emotion feature are spliced to obtain a spliced feature, and the spliced feature is subjected to emotion recognition classification to determine the emotion type of the target to be detected.
[0188] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0189] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0190] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A feature fusion emotion recognition method, characterized in that: The method comprises: Based on the image acquisition device, a facial expression image of the target to be detected is obtained, and based on the frequency modulated continuous wave radar, the radar raw data of the target to be detected is obtained; Performing emotion recognition on the facial expression image to determine the facial emotion characteristics of the target to be detected; Performing feature extraction on the radar raw data to extract the physiological signal features of the target to be detected, and performing emotion recognition on the physiological signal features to determine the physiological emotion features of the target to be detected, wherein the physiological signal features include breathing features and heartbeat features; The physiological emotion feature and the facial emotion feature are spliced together to obtain a spliced feature, and the spliced feature is subjected to emotion recognition classification to determine the emotion type of the target to be detected; The step of extracting features from the radar raw data to extract physiological signal features of the target to be detected includes: Extracting the breathing waveform of the target to be detected and the heartbeat waveform of the target to be detected based on the radar raw data; Performing peak detection on the respiratory waveform to determine the respiratory frequency of the target to be detected and the respiratory interval of the target to be detected; Extracting features of the breathing frequency and the breathing interval to determine the breathing features of the target to be detected; Extracting the heartbeat interval time domain features of the heartbeat waveform to determine the heartbeat features of the target to be detected; Using the breathing feature and the heartbeat feature as the physiological signal feature; The step of extracting the breathing waveform of the target to be detected and the heartbeat waveform of the target to be detected based on the radar raw data includes: Performing phase signal extraction on the radar raw data to extract the breathing phase signal of the target to be detected and the heartbeat phase signal of the target to be detected; Based on a Butterworth low-pass filter and a preset amplitude threshold, the respiratory phase signal is filtered to obtain a respiratory waveform of the target to be detected; Performing second-order difference processing on the radar raw data to obtain an acceleration signal of the chest wall movement of the target to be detected, and enhancing the heartbeat difference signal in the heartbeat phase signal based on the acceleration signal; Based on the heartbeat extraction template, the enhanced heartbeat phase signal is segmented to obtain the heartbeat waveform of the target to be detected.
2. The feature fusion emotion recognition method according to claim 1, characterized in that: The step of performing emotion recognition on the physiological signal characteristics to determine the physiological emotion characteristics of the target to be detected includes: The physiological signal feature is input into a first feature mapping layer for physiological emotion recognition to obtain the physiological emotion feature output by the first feature mapping layer, wherein the first feature mapping layer is constructed based on a multi-layer perceptron.
3. The feature fusion emotion recognition method according to claim 1, characterized in that: The step of performing emotion recognition on the facial expression image to determine the facial emotion features of the target to be detected includes: Inputting the facial expression image into a lightweight convolutional neural network model to obtain pre-trained features output by the lightweight convolutional neural network model, wherein the lightweight convolutional neural network model is trained based on facial expression image samples and their corresponding emotion category labels; The pre-trained features are input into a second feature mapping layer for facial emotion recognition to obtain facial emotion features output by the second feature mapping layer, where the second feature mapping layer is constructed based on a multi-layer perceptron.
4. The feature fusion emotion recognition method according to claim 1, characterized in that: The performing emotion recognition classification on the splicing features to determine the emotion type of the target to be detected includes: The spliced features are input into an emotion recognition classification model to obtain the emotion type of the target to be detected output by the emotion recognition classification model, wherein the emotion recognition classification model is trained based on samples that integrate facial emotion features and physiological signal features and their corresponding emotion type labels.
5. The feature fusion emotion recognition method according to claim 1, characterized in that: Before the emotion recognition classification is performed on the spliced features, the method further includes: The concatenated features are input into a weighted self-attention channel to assign weights of different feature dimensions to the concatenated features.
6. A feature fusion emotion recognition device, characterized in that: include: A data acquisition module, used to acquire a facial expression image of a target to be detected based on an image acquisition device, and to acquire radar raw data of the target to be detected based on a frequency modulated continuous wave radar; A facial emotion feature determination module, used to perform emotion recognition on the facial expression image and determine the facial emotion features of the target to be detected; A physiological and emotional feature determination module is used to perform feature extraction on the radar raw data, extract the physiological signal features of the target to be detected, and perform emotion recognition on the physiological signal features to determine the physiological and emotional features of the target to be detected, wherein the physiological signal features include breathing features and heartbeat features; An emotion type determination module is used to splice the physiological emotion features and the facial emotion features to obtain spliced features, and to perform emotion recognition classification on the spliced features to determine the emotion type of the target to be detected; The step of extracting features from the radar raw data to extract physiological signal features of the target to be detected includes: Extracting the breathing waveform of the target to be detected and the heartbeat waveform of the target to be detected based on the radar raw data; Performing peak detection on the respiratory waveform to determine the respiratory frequency of the target to be detected and the respiratory interval of the target to be detected; Extracting features of the breathing frequency and the breathing interval to determine the breathing features of the target to be detected; Extracting the heartbeat interval time domain features of the heartbeat waveform to determine the heartbeat features of the target to be detected; Using the breathing feature and the heartbeat feature as the physiological signal feature; The step of extracting the breathing waveform of the target to be detected and the heartbeat waveform of the target to be detected based on the radar raw data includes: Performing phase signal extraction on the radar raw data to extract the breathing phase signal of the target to be detected and the heartbeat phase signal of the target to be detected; Based on a Butterworth low-pass filter and a preset amplitude threshold, the respiratory phase signal is filtered to obtain a respiratory waveform of the target to be detected; Performing second-order difference processing on the radar raw data to obtain an acceleration signal of the chest wall movement of the target to be detected, and enhancing the heartbeat difference signal in the heartbeat phase signal based on the acceleration signal; Based on the heartbeat extraction template, the enhanced heartbeat phase signal is segmented to obtain the heartbeat waveform of the target to be detected.
7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the feature fusion emotion recognition method according to any one of claims 1 to 5 is implemented.
8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the feature fusion emotion recognition method according to any one of claims 1 to 5 is implemented.
Citation Information
Cited By
Method, system, and program for facial expression evaluation using reference and measurement result
US12688730B2
