A multimodal emotion recognition method and system
Through the multi-modal emotion recognition system, combined with EEG signals, facial images and voice data, the deep learning model is used for emotion classification, which solves the problem of limited accuracy of emotion recognition in a single-modal system and achieves a more comprehensive emotion analysis. and higher recognition accuracy.
Patent Information
- Application Number
- CN202410711334.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-04
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2044-06-04
AI Technical Summary
Existing single-modal emotion recognition systems cannot fully utilize the complementarity between multiple biometric data, resulting in limited accuracy and reliability of emotion recognition, and are prone to misjudgments in complex emotional state analysis.
A multi-modal emotion recognition system is used to collect EEG signals, facial images and voice data through sensor arrays, perform Fourier transform, Adaboost face detection algorithm and Mel frequency cepstrum coefficient extraction, and combine with multi-modal integration algorithms to generate a unified feature vectors, and use deep learning models for emotion classification.
By integrating EEG signals, facial images and voice data, the system can provide more comprehensive emotional analysis, improve the accuracy of emotion recognition and the ability to analyze complex emotional states, and enhance the ability to identify and classify user emotions.
Smart Images

Figure CN118312857B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to a multimodal emotion recognition method and system. Background Art
[0002] Emotion recognition technology has become an important research direction in the field of human-computer interaction, especially in the application of emotional state analysis and classification through biometric data. Existing emotion recognition systems usually rely on single-modality data, such as EEG signals, facial expressions or voice features. These systems collect corresponding biometric data through specially designed sensor arrays. For example, EEG signals are collected through electrode caps, facial images are obtained through high-resolution cameras, and voice data are recorded through microphones. These data are processed and analyzed independently, aiming to interpret the user's emotional state from their respective dimensions.
[0003] However, emotion recognition systems that rely on a single data source often fail to fully exploit the complementarity between multiple biometric data, resulting in limited accuracy and reliability of emotion recognition. In addition, single-modality data processing often ignores possible correlations between data, which can lead to misjudgments in complex emotional state analysis. For example, facial expressions may vary due to cultural differences or personal habits, while EEG signals and voice data can provide deeper emotional information, but this information is often not fully utilized when analyzed independently.
[0004] Therefore, there is an urgent need to develop a multimodal emotion recognition system. Summary of the invention
[0005] The present application provides a multimodal-based emotion recognition method and system to improve the accuracy of emotion recognition.
[0006] The present application provides a multimodal emotion recognition system, comprising:
[0007] a sensor array configured to collect biometric data from a user, the biometric data including EEG signals, facial images, and voice data;
[0008] A data processing unit is communicatively connected to the sensor array, and is used to receive biometric data collected by the sensor array; preprocess the collected biometric data to obtain preprocessed data; wherein the preprocessing includes applying Fourier transform to the EEG signal to generate a power spectral density profile, detecting facial features from the facial image using an Adaboost-based face detection algorithm, and extracting Mel-frequency cepstral coefficients from the speech data; applying a multimodal integration algorithm to combine the power spectral density profile, facial features, and Mel-frequency cepstral coefficients to obtain a unified feature vector; and using a trained deep learning model to classify the user's emotions into predefined categories based on the unified feature vector to generate an emotion recognition result;
[0009] The output unit is used to display the emotion recognition result generated by the data processing unit.
[0010] Furthermore, the multimodal integration algorithm comprises the following steps:
[0011] According to the following formula 1, the power spectral density profile is , facial features and Mel-frequency cepstral coefficients Fusion is performed to produce an intermediate feature vector :
[0012]
[0013] in, , and is the combination coefficient; is the power spectral density profile The mapping function is shown in Formula 2:
[0014]
[0015] in, is the learning parameter; is the power spectral density profile Middle elements; is the power spectral density profile The total number of elements in ; It is the facial features The mapping function is shown in Formula 3:
[0016]
[0017] in, and is the learning parameter; It's a facial feature The elements; It's a facial feature The total number of elements in ; is the Mel-frequency cepstral coefficient The mapping function is as described in Formula 4:
[0018]
[0019] in, is the learning parameter; is the Mel-frequency cepstral coefficient Middle elements; is the Mel-frequency cepstral coefficient The total number of elements in ;
[0020] According to the following formula 5, the intermediate eigenvector Processing to obtain a unified feature vector :
[0021]
[0022] in, is the scaling factor; is the adaptive weight parameter; is the intermediate eigenvector No. elements; is the intermediate eigenvector The total number of elements in ; is the feature offset parameter; is the regularization coefficient; is the Kullback-Leibler divergence term, which is used to evaluate the intermediate eigenvectors The difference from the target distribution, and is a learning parameter.
[0023] Furthermore, the deep learning model includes a feature decomposition subnetwork, an enhanced feature learning subnetwork, an emotion dynamic modeling subnetwork, and a multimodal emotion classification subnetwork;
[0024] The feature decomposition subnetwork is used to receive a unified feature vector, and use a principal component analysis technique to perform dimensionality reduction processing on the received unified feature vector to obtain a feature vector after dimensionality reduction;
[0025] The enhanced feature learning subnetwork is used to receive the reduced-dimensional feature vector provided by the feature decomposition subnetwork; use a convolutional neural network to perform feature extraction on the reduced-dimensional feature vector to obtain a spatial feature representation; use a long short-term memory network to process the spatial feature representation to obtain a spatiotemporal feature representation;
[0026] The emotion dynamics modeling subnetwork is used to receive the spatiotemporal feature representation provided by the enhanced feature learning subnetwork; use a variational autoencoder to encode the received empty feature representation to generate a potential emotion representation; use a gated convolutional network to process the potential emotion representation to generate a high-level feature sequence reflecting the emotion dynamics;
[0027] The multimodal emotion classification subnetwork is used to receive the high-level feature sequence provided by the emotion dynamic modeling subnetwork; the high-level feature sequence is processed using a multi-layer perceptron enhanced by an attention mechanism to generate an emotion recognition result.
[0028] Furthermore, the eigendecomposition subnetwork uses singular value decomposition to implement principal component analysis to improve the computational efficiency and accuracy of the dimensionality reduction process.
[0029] Furthermore, the convolutional neural network of the enhanced feature learning subnetwork includes a deeply separable convolutional layer to reduce the computational complexity of the model and improve the efficiency of feature extraction; the long short-term memory network has a bidirectional structure to learn the changes in emotional states from both positive and negative directions of time series data.
[0030] Furthermore, the variational autoencoder of the emotion dynamics modeling subnetwork uses a nonlinear activation function to enhance the nonlinear encoding capability, and the nonlinear activation function includes ReLU and Leaky ReLU; the gated convolutional network adopts a multi-scale convolution kernel to capture the details of emotion representation at different scales, so as to more comprehensively understand the emotion dynamics.
[0031] Furthermore, the multi-layer perceptron enhanced with the attention mechanism of the multimodal sentiment classification subnetwork uses a multi-head attention model, wherein each head focuses on a different subset of features to achieve a detailed interpretation of sentiment features and improve classification accuracy.
[0032] Furthermore, the output unit includes an emotion-driven interface, which automatically adjusts its color theme and graphic elements according to the displayed emotion recognition results; the emotion-driven interface is specifically used to: when happy emotions are detected, the interface will use bright colors and lively icons; when sad emotions are detected, the interface will use dark tones and soothing icons, so as to enhance the user's emotional resonance and understanding.
[0033] Furthermore, the output unit includes a multimodal feedback function, which provides visual information and audio feedback corresponding to the emotion recognition results; the multimodal feedback function is specifically the same as: when it is detected that the user feels sad or nervous, the output unit will play soothing music; when it is detected that the user feels happy, the output unit will play cheerful music, thereby enhancing the communication of the emotion recognition results and the user's sensory experience.
[0034] The present application provides a multimodal emotion recognition method, comprising:
[0035] collecting biometric data from the user, the biometric data including EEG signals, facial images, and voice data;
[0036] Preprocessing the collected biometric data to obtain preprocessed data; wherein the preprocessing includes applying Fourier transform to the EEG signal to generate a power spectral density profile, detecting facial features from the facial image using an Adaboost-based face detection algorithm, and extracting Mel-frequency cepstral coefficients from the speech data;
[0037] Applying a multimodal integration algorithm, the power spectral density profile, facial features and Mel-frequency cepstral coefficients are feature-combined to obtain a unified feature vector;
[0038] Based on the unified feature vector, using a trained deep learning model, classify the user's emotions into predefined categories to generate an emotion recognition result;
[0039] Displays the emotion recognition results generated by the data processing unit.
[0040] The beneficial effects of the present application mainly include: (1) By integrating EEG signals, facial images and voice data, the system can integrate different types of biometric information to provide a more comprehensive emotion analysis. The fusion of multimodal data helps to supplement the limitations of a single data source. For example, EEG signals can provide physiological emotional responses that are difficult to reflect in facial expressions and voice, while facial and voice data can enrich the expression level of emotions. (2) By performing Fourier transform on EEG signals to generate power spectral density profiles, using Adaboost-based face detection algorithms to detect facial features from facial images, and extracting Mel-frequency cepstral coefficients from voice data, the system can effectively preprocess and extract key emotion features. These preprocessing steps optimize subsequent feature fusion and classification processing, ensuring the efficiency of data processing. (3) The multimodal integration algorithm is applied to combine feature vectors of different modalities to generate a unified feature vector. This method significantly enhances the ability to integrate information from different data sources and improves the system's ability to parse complex emotional states. This step is the key to achieving efficient emotion classification, which enables deep learning models to more accurately identify and classify users' emotions. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 It is a schematic diagram of a multimodal emotion recognition system provided in the first embodiment of the present application.
[0042] Figure 2 This is a flowchart of a multimodal emotion recognition method provided in the second embodiment of the present application. DETAILED DESCRIPTION
[0043] Many specific details are described in the following description to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of the present application, so the present application is not limited by the specific implementation disclosed below.
[0044] The first embodiment of the present application provides an emotion recognition system based on multimodality. Figure 1 , which is a schematic diagram of the first embodiment of the present application. Figure 1 A first embodiment of the present application provides a multimodal emotion recognition system for detailed description.
[0045] The multimodal emotion recognition system includes a sensor array 101 , a data processing unit 102 and an output unit 103 .
[0046] The sensor array 101 is configured to collect biometric data from a user, wherein the biometric data includes brain electrical signals, facial images, and voice data.
[0047] In the multimodal emotion recognition system provided in this embodiment, the sensor array 101 is one of its core components, which is carefully designed to collect multiple biometric data from the user. Specifically, this sensor array includes three main parts: electrodes for collecting EEG signals, high-resolution cameras for capturing facial images, and high-sensitivity microphones for recording voice data. Each sensor is optimized to capture data related to emotional states, thereby ensuring the quality and relevance of the data.
[0048] First, the part used to collect EEG signals includes multiple electrodes, which are usually placed at specific locations on the user's head, such as those recommended by the international 10-20 system. These electrodes are able to capture tiny currents generated by the brain's electrical activity, and these current changes are closely related to the user's emotional state. The electrodes are connected to a highly sensitive amplifier to ensure that even tiny current changes can be accurately recorded.
[0049] Secondly, the facial image acquisition part consists of one or more high-resolution cameras that are configured to capture the user's facial expressions from different angles. Each camera is equipped with a high dynamic range sensor and sufficient optical resolution to ensure that clear facial images can be captured even under complex lighting conditions. In addition, these cameras may include infrared sensors to support facial expression capture in low light.
[0050] Finally, the part used to record voice includes at least one microphone, which is designed to capture clear, noise-free audio. They usually have noise suppression capabilities, which can effectively filter out background noise and retain only the user's voice data. This is crucial for the subsequent extraction of features such as Mel-frequency cepstral coefficients (MFCC) from the voice, as these features can reflect the user's emotional state.
[0051] In order to ensure that the collected data can be effectively processed by the data processing unit 102 in the system, a high-speed and secure communication connection is set between the sensor array 101 and the data processing unit. These connections not only ensure the real-time and reliability of data transmission, but also support data encryption processing to ensure the security of user privacy.
[0052] In summary, the design and implementation of the sensor array 101 takes into account a wide range of technical requirements and application scenarios to ensure that emotion-related biometric data can be collected effectively and accurately from multiple modalities.
[0053] The data processing unit 102 is communicatively connected to the sensor array, and is used to receive the biometric data collected by the sensor array; preprocess the collected biometric data to obtain preprocessed data; wherein the preprocessing includes applying Fourier transform to the EEG signal to generate a power spectral density profile, detecting facial features from the facial image using an Adaboost-based face detection algorithm, and extracting Mel-frequency cepstral coefficients from the speech data; applying a multimodal integration algorithm to combine the power spectral density profile, facial features, and Mel-frequency cepstral coefficients to obtain a unified feature vector; and classifying the user's emotions into predefined categories based on the unified feature vector using a trained deep learning model to generate an emotion recognition result.
[0054] The data processing unit 102 plays a vital role in the multimodal emotion recognition system provided in this embodiment. It not only receives the biometric data collected by the sensor array 101, including EEG signals, facial images and voice data, but is also responsible for efficiently and accurately preprocessing these data, and finally fusing and analyzing them to identify the user's emotional state.
[0055] First, the data processing unit 102 is connected to the sensor array 101 through a high-speed communication interface to ensure the real-time and security of data transmission. The received data first enters the pre-processing module. In this module, the EEG signal is processed by Fourier transform to generate a power spectral density profile, which critically helps identify the frequency components related to emotions in brain activity. Facial image data is processed by an Adaboost-based face detection algorithm, which effectively identifies and extracts key features in facial expressions, such as the position of eyebrows, the opening and closing of eyes, and the movement of mouth corners. At the same time, the voice data is extracted through audio analysis technology Mel frequency cepstral coefficients (MFCC), which capture the basic characteristics of speech signals, such as pitch, rhythm, and intensity, which are important aspects of emotional expression.
[0056] In multimodal emotion recognition systems, processing EEG signals, facial images, and speech data is a key step in achieving efficient and accurate emotion recognition. These steps use advanced algorithms to convert raw data into useful features that are subsequently used to classify emotional states.
[0057] First, for the processing of EEG signals, Fourier transform is used to analyze the frequency components of the signal to generate a power spectral density profile. Specifically, the time series EEG signals collected from the scalp electrodes can be first digitized, and then the fast Fourier transform (FFT) is applied to convert these time series data into a frequency domain representation. This conversion process involves decomposing the continuous signal into a combination of its constituent sine and cosine waves, each of which corresponds to a specific frequency and amplitude. By calculating the power of each frequency component (usually the square of the amplitude), a power spectral density (PSD) profile can be generated, which describes how the signal power changes with frequency. The PSD profile provides a basis for analyzing the activity of brain waves, especially the activity of brain areas related to emotions.
[0058] Secondly, in the processing of facial images, the use of Adaboost-based face detection algorithms can effectively identify faces and facial expression features in images. Adaboost, or adaptive boosting algorithm, is a machine learning method for building strong classifiers. In the context of face detection, the algorithm is often used with cascade classifiers, where each stage of the cascade uses a set of simple feature detectors (such as Haar features) to decide whether a window contains part of a face. Each stage gradually excludes non-face areas by judging whether to enter the next stage, thereby improving detection speed and accuracy. By training these classifiers to recognize facial features with typical emotional expressions, the system is able to effectively capture and parse the user's facial expressions from videos or static images.
[0059] Finally, for the processing of speech data, the extraction of Mel-frequency cepstral coefficients (MFCC) is an important means of analyzing the emotional content of speech signals. The basic steps of MFCC extraction include first dividing the speech signal into frames, usually 20 to 40 milliseconds in length per frame. The spectrum is extracted using a discrete Fourier transform (DFT) for each frame, and then these spectra are mapped to the Mel scale, which is a frequency scale that is nonlinearly related to human auditory perception. The mapped spectrum is processed by a logarithmic function to simulate the nonlinear characteristics of human hearing, and then the discrete cosine transform (DCT) is used to extract coefficients from the logarithmic Mel spectrum, which are MFCCs. MFCC can capture the main features of speech signals and can be effectively used for emotion recognition.
[0060] Through these detailed steps, the features extracted from EEG signals, facial images, and voice data can be further integrated and analyzed by the system to identify and classify the user's emotional state. The implementation of these processes ensures the efficiency and accuracy of the emotion recognition system, making it a practical tool.
[0061] Next, all pre-processed data features are fed into the multimodal integration algorithm. This algorithm is the core of the data processing unit. It combines features from different sensors and uses advanced data fusion technology to generate a unified feature vector. This vector integrates information from each modality and provides a comprehensive data foundation for subsequent emotion classification.
[0062] The data processing unit also includes a deep learning module, which is configured with advanced neural networks such as convolutional neural networks (CNN) and long short-term memory networks (LSTM), which are specifically designed to learn and predict the user's emotional category from a unified feature vector. These networks are trained to recognize different emotional states through a large amount of training data, so that specific emotional classifications can be output based on real-time analyzed data.
[0063] Finally, the result of emotion classification is displayed through output unit 103, which can be any form of display device, such as a computer screen, mobile device or other electronic display panel. The output unit provides a user interface so that the operator can intuitively view the recognition results, so as to conduct further analysis or take corresponding measures.
[0064] In general, the data processing unit 102 not only takes into account both high efficiency and accuracy in technical implementation, but also has a good user experience in operation and maintenance. Through this comprehensive data processing strategy, the emotion recognition system can efficiently process and analyze multimodal data and achieve accurate emotion recognition function.
[0065] Furthermore, the multimodal integration algorithm comprises the following steps:
[0066] According to the following formula 1, the power spectral density profile is , facial features and Mel-frequency cepstral coefficients Fusion is performed to produce an intermediate feature vector :
[0067]
[0068] in, , and is the combination coefficient; is the power spectral density profile The mapping function is shown in Formula 2:
[0069]
[0070] in, is the learning parameter; is the power spectral density profile Middle elements; is the power spectral density profile The total number of elements in ; It is the facial features The mapping function is shown in Formula 3:
[0071]
[0072] in, and is the learning parameter; It's a facial feature The elements; It's a facial feature The total number of elements in ; is the Mel-frequency cepstral coefficient The mapping function is as described in Formula 4:
[0073]
[0074] in, is the learning parameter; is the Mel-frequency cepstral coefficient Middle elements; is the Mel-frequency cepstral coefficient The total number of elements in ;
[0075] According to the following formula 5, the intermediate eigenvector Processing to obtain a unified feature vector :
[0076]
[0077] in, is the scaling factor; is the adaptive weight parameter; is the intermediate eigenvector No. elements; is the intermediate eigenvector The total number of elements in ; is the feature offset parameter; is the regularization coefficient; is the Kullback-Leibler divergence term, which is used to evaluate the intermediate eigenvectors The difference from the target distribution, and is a learning parameter.
[0078] Formula 1: Calculation of intermediate eigenvector X
[0079]
[0080] , and : These coefficients are determined through a system optimization process. They can be optimized on the training set using machine learning methods such as gradient descent to ensure the best data fusion.
[0081] , , : These mapping functions transform different data modalities into a form suitable for further processing. The specific design and parameter selection of each function should be based on the analysis of the corresponding data characteristics.
[0082] Formula 2: Power spectral density mapping function
[0083]
[0084] These coefficients are optimized using a training dataset, usually using a back-propagation algorithm to minimize the error in the final emotion classification.
[0085] : The specific value of the power spectral density can be obtained by performing a fast Fourier transform (FFT) on the EEG signal and then calculating the energy of each frequency component.
[0086] Formula 3: Facial feature mapping function
[0087]
[0088] and : These parameters are optimized during the training phase by minimizing the emotion recognition error. Statistical methods can be used to evaluate the relevance of each feature to the emotional state and set the initial values accordingly.
[0089] Formula 4: Mel frequency cepstral coefficient mapping function
[0090]
[0091] : These weights are determined through a training process with the goal of maximizing the accuracy of sentiment classification.
[0092] : Mel-frequency cepstral coefficients can be obtained by pre-emphasis, windowing, fast Fourier transform, and Mel filter bank processing on the speech signal, then taking the logarithm and performing discrete cosine transform.
[0093] Formula 5: Calculation of unified eigenvector Y
[0094]
[0095] , , , \ : These parameters are optimized through a data-driven approach to adapt to different users’ emotional expressions and the system’s dynamic feedback.
[0096] : Kullback-Leibler divergence is used to measure the deviation of the actual feature distribution from the expected distribution, where and It is estimated from the training data by statistical methods.
[0097] In a multimodal emotion recognition system, integrating data from different sources—such as the power spectral density profile of EEG signals, features of facial images, and Mel-frequency cepstral coefficients of speech data—is a key step. This process can also be achieved through a simple multimodal integration algorithm.
[0098] First, for each type of data, the system first performs necessary preprocessing. For EEG signals, Fourier transform is performed and power spectrum density is calculated to analyze frequency components; for facial images, image processing technology is used to identify and extract key facial expression features, such as the position and shape of eyes and mouth; for voice data, Mel frequency cepstral coefficients are extracted, which help capture the basic sound quality and tonality of the voice.
[0099] Next, these pre-processed data are unified into a single feature vector. This can be done by simply combining the feature numbers of each modality together. For example, the power spectral density values, the vector of facial features, and the data of Mel-frequency cepstral coefficients can be linearly arranged side by side to form a long feature vector. This operation ensures that the information from each modality is considered and represented equally, and no one data dominates the entire emotion recognition process.
[0100] In addition, in order to further optimize the effect of feature fusion, each type of feature can be standardized before arranging them side by side to ensure that they are in the same numerical range and avoid deviations caused by different magnitudes of data.
[0101] Finally, this long feature vector constitutes a unified feature vector, which combines comprehensive information from EEG, face and voice, and can be directly used to provide to deep learning models or other machine learning algorithms for classification and identification of emotional states.
[0102] In this way, the multimodal integration algorithm can effectively integrate multi-source information without complex calculations, making the emotion recognition system not only simple and easy to use, but also able to fully utilize the advantages of multiple biometric data to improve the accuracy and reliability of emotion recognition.
[0103] Furthermore, the deep learning model includes a feature decomposition subnetwork, an enhanced feature learning subnetwork, an emotion dynamic modeling subnetwork, and a multimodal emotion classification subnetwork;
[0104] The feature decomposition subnetwork is used to receive a unified feature vector, and use a principal component analysis technique to perform dimensionality reduction processing on the received unified feature vector to obtain a feature vector after dimensionality reduction;
[0105] The enhanced feature learning subnetwork is used to receive the reduced-dimensional feature vector provided by the feature decomposition subnetwork; use a convolutional neural network to perform feature extraction on the reduced-dimensional feature vector to obtain a spatial feature representation; use a long short-term memory network to process the spatial feature representation to obtain a spatiotemporal feature representation;
[0106] The emotion dynamics modeling subnetwork is used to receive the spatiotemporal feature representation provided by the enhanced feature learning subnetwork; use a variational autoencoder to encode the received empty feature representation to generate a potential emotion representation; use a gated convolutional network to process the potential emotion representation to generate a high-level feature sequence reflecting the emotion dynamics;
[0107] The multimodal emotion classification subnetwork is used to receive the high-level feature sequence provided by the emotion dynamic modeling subnetwork; the high-level feature sequence is processed using a multi-layer perceptron enhanced by an attention mechanism to generate an emotion recognition result.
[0108] In the multimodal emotion recognition system provided in this embodiment, the deep learning model is subdivided into four sub-networks, each of which performs a specific function, thereby effectively processing and parsing information obtained from multiple data sources (such as EEG signals, facial images, and voice data). These sub-networks work together in sequence to ensure that each step from raw data to emotion recognition results is accurate and efficient.
[0109] First, the eigendecomposition subnetwork is mainly responsible for receiving the unified eigenvector and performing dimensionality reduction processing through principal component analysis (PCA) technology. This process involves calculating the covariance matrix of the eigenvector, then finding the eigenvalues and eigenvectors of the matrix, and selecting the main components based on these eigenvalues, thereby reducing the dimension of the eigenvector while retaining the most information. This not only reduces the complexity of data processing, but also speeds up the calculation speed of subsequent processing steps.
[0110] Next, the enhanced feature learning subnetwork receives the reduced feature vector output by the feature decomposition subnetwork. This network first uses convolutional neural network (CNN) layers to further extract spatial features, because CNN is particularly suitable for identifying patterns from images or image-like data structures. Then, a long short-term memory network (LSTM) is used to process these spatial features to capture the dynamic changes of the data over time, which is crucial for understanding and predicting the development of emotional states.
[0111] Third, the emotion dynamics modeling subnetwork receives spatiotemporal feature representations from the enhanced feature learning subnetwork. This network uses variational autoencoders (VAEs) to generate latent emotion representations, a technique that allows the system to learn high-dimensional probability distributions of data, providing a basis for more complex emotion dynamics. In addition, these latent representations are further processed by gated convolutional networks (GCNs) to extract high-level feature sequences that reflect emotion dynamics.
[0112] Finally, the multimodal sentiment classification subnetwork receives the high-level feature sequence provided by the sentiment dynamics modeling subnetwork. This subnetwork uses a multi-layer perceptron (MLP) with an attention mechanism that can highlight important sentiment features and suppress irrelevant information, thereby effectively enhancing the accuracy and sensitivity of sentiment classification.
[0113] The entire process needs to ensure the optimization and coordination of parameters of each sub-network, as well as the efficient management of data flow in the network. The implementation of these sub-networks requires a deep understanding of the working principle of each network and how to configure these networks on actual hardware. In addition, the reasonable design of the number of layers and nodes of each network, the selection of appropriate activation functions, optimization algorithms and loss functions are the key to ensure the effective operation of the entire system. In the specific implementation, it is also necessary to consider the design of data preprocessing, synchronization processing and real-time feedback mechanism to ensure the system's responsiveness and user experience.
[0114] Furthermore, the eigendecomposition subnetwork uses singular value decomposition to implement principal component analysis to improve the computational efficiency and accuracy of the dimensionality reduction process.
[0115] In the multimodal emotion recognition system provided in this embodiment, the feature decomposition subnetwork uses singular value decomposition (SVD) technology to perform principal component analysis (PCA). This processing step is to optimize the dimensionality reduction process, thereby improving computational efficiency and accuracy. This method allows the system to effectively extract the most important features while reducing information loss when processing complex and high-dimensional data.
[0116] Singular value decomposition is a technique used in mathematics and signal processing to decompose a matrix of any size into three specific component matrices: , , and In the emotion recognition system, the feature decomposition subnetwork first normalizes the input unified feature vector (i.e., the original data matrix obtained by integrating multimodal data sources) and then applies SVD.
[0117] 1. Data standardization: First, the original data matrix needs to be centered, usually by subtracting the mean of each variable. This step is to ensure the accuracy of the PCA analysis so that the subsequent SVD decomposition can focus on the covariance structure of the data.
[0118] 2. Apply singular value decomposition: Apply SVD to the normalized data matrix. In SVD, the matrix A (data matrix) is decomposed into the product of three matrices: , , and , where U and V are orthogonal matrices, Σ is a diagonal matrix whose diagonal elements are so-called singular values, which are arranged in descending order and represent the importance of the data or the size of the variance.
[0119] 3. Extract principal components: After SVD, select the columns corresponding to the largest singular values (i.e., the first few maximum values in Σ and their corresponding columns of U and V). These columns represent the most important variance directions in the data, i.e., principal components. This can significantly reduce the dimensionality of the data while retaining the most important feature information.
[0120] 4. Reconstruct the reduced dimensionality data: Use the selected singular values and the corresponding columns of U and V to reconstruct the reduced dimensionality data matrix. The data matrix generated in this step contains the main information of the original data, but with a lower dimension, which is convenient for further analysis and processing.
[0121] In this way, the feature decomposition subnetwork not only improves the efficiency of data processing by reducing unnecessary calculations, but also improves the accuracy of data processing by focusing on the most informative parts of the data. This is particularly important for subsequent sentiment analysis because it allows the model to reduce the interference of noise and irrelevant information while retaining key information.
[0122] In this embodiment, the implementation of the eigendecomposition subnetwork performs principal component analysis (PCA) through singular value decomposition (SVD) technology to improve the computational efficiency and accuracy of dimensionality reduction processing. The following is the implementation code of the eigendecomposition subnetwork using SVD to perform PCA.
[0123] # Import necessary libraries
[0124] import numpy as np
[0125] def feature_decomposition(X):
[0126] """
[0127] Perform PCA dimensionality reduction on the input unified feature vector
[0128] parameter:
[0129] X : ndarray
[0130] The input feature matrix, shape is (n_samples, n_features), representing the original unified feature vector
[0131] return:
[0132] X_reduced : ndarray
[0133] Feature matrix after dimensionality reduction
[0134] """
[0135] # Step 1: Data Standardization
[0136] # Calculate the mean of all samples
[0137] mean_X = np.mean(X, axis=0)
[0138] # Centralized Data
[0139] X_centered = X - mean_X
[0140] # Step 2: Apply singular value decomposition
[0141] # Use the singular value decomposition function of the numpy library
[0142] U, S, Vt = np.linalg.svd(X_centered)
[0143] # Step 3: Select principal components
[0144] # Here we select the first k singular values that explain the maximum variance, assuming that we select the first k=2
[0145] k = 2
[0146] U_reduced = U[:, :k]
[0147] # Step 4: Reconstruct the data matrix after dimensionality reduction
[0148] X_reduced = np.dot(U_reduced, np.diag(S[:k]))
[0149] return X_reduced
[0150] # Example: Using the Eigendecomposition Function
[0151] # Assume that data is the original data matrix obtained by integrating multimodal data sources
[0152] data = np.random.rand(100, 10) # 100 samples, 10 features per sample
[0153] reduced_data = feature_decomposition(data)
[0154] print("Data shape after dimensionality reduction:", reduced_data.shape)
[0155] The code is explained as follows:
[0156] Data normalization: First, the mean of the input data is calculated, and then the mean of each feature is subtracted from the corresponding feature value to ensure that PCA is performed on a centralized basis.
[0157] Singular value decomposition: Use the `numpy.linalg.svd` function to perform singular value decomposition on the centralized data. This step will produce three matrices: U (left singular vectors), S (singular values), and Vt (transpose of right singular vectors).
[0158] Select principal components: According to the size of the singular values, select the first k largest singular values and their corresponding left singular vectors as principal components.
[0159] Reconstruct reduced dimension data: Reconstruct the data matrix using the selected principal components to obtain the reduced dimension data.
[0160] Furthermore, the convolutional neural network of the enhanced feature learning subnetwork includes a deeply separable convolutional layer to reduce the computational complexity of the model and improve the efficiency of feature extraction; the long short-term memory network has a bidirectional structure to learn the changes in emotional states from both positive and negative directions of time series data.
[0161] In the multimodal emotion recognition system provided in this embodiment, the enhanced feature learning subnetwork adopts an advanced neural network architecture, including a deep separable convolutional layer and a bidirectional long short-term memory (LSTM) network, to optimize the data processing flow, improve efficiency, and accurately capture complex emotional dynamics.
[0162] The depthwise separable convolution layer mainly consists of two parts: depthwise convolution and pointwise convolution. This structural design enables the network to significantly reduce the number of parameters and computational costs while maintaining or improving the ability to extract features.
[0163] Depth convolution: This step uses a single convolution kernel to perform independent convolution operations on each input channel, which is mainly to extract spatial features. Compared with traditional convolution, depth convolution does not mix different channels of the input, which greatly reduces the amount of calculation.
[0164] Point-wise convolution (1×1 convolution): Subsequently, the output channels of the depthwise convolution are combined and remapped using a 1×1 convolution kernel. This step is used to integrate features across channels and restore the depth of features, allowing the network to learn to abstract more complex representations from local features.
[0165] When implementing this convolutional layer, technicians need to set appropriate parameters such as convolution kernel size, step size, padding method, and ensure that the input and output sizes of the network are correctly configured to meet the needs of subsequent processing layers.
[0166] Bidirectional LSTM is a special type of recurrent neural network that can process both past and future information simultaneously. This ability is particularly important in emotion recognition tasks because the user's emotional state may be influenced by both previous and future data.
[0167] Bidirectional structure: In a bidirectional LSTM, the data at each time point will be processed by two independent LSTM layers, one for processing the forward (past to future) time series and the other for processing the reverse (future to past) time series. This can capture the forward and backward dependencies in the time series data.
[0168] Information synthesis: The outputs of the two-directional LSTM layers are usually combined (e.g., by concatenation or addition) at each time step to form a complete spatiotemporal feature representation.
[0169] When implementing a bidirectional LSTM, you need to adjust the number of hidden units in each directional LSTM layer, choose a suitable activation function, and set appropriate learning parameters. In addition, you also need to deal with possible overfitting issues, such as by adding a dropout layer or using regularization techniques.
[0170] In the multimodal emotion recognition system, the enhanced feature learning subnetwork is responsible for processing the feature vectors after dimension reduction by the feature decomposition subnetwork, and further extracting useful spatial and spatiotemporal features. This network combines a deep separable convolutional layer and a bidirectional long short-term memory (LSTM) network to optimize the processing flow and improve the efficiency of feature extraction. The following is the implementation code for this subnetwork.
[0171] import tensorflow as tf
[0172] from tensorflow.keras.models import Model
[0173] from tensorflow.keras.layers import Input, Conv2D, DepthwiseConv2D,LSTM, Bidirectional
[0174] def create_enhanced_feature_learning_network(input_shape):
[0175] """
[0176] Creating an enhanced feature learning subnetwork
[0177] parameter:
[0178] input_shape : tuple
[0179] The shape of the input data should match the shape of the feature vector after dimensionality reduction
[0180] return:
[0181] model : Model
[0182] TensorFlow model, including depthwise separable convolutional layers and bidirectional LSTM network
[0183] """
[0184] # Input layer
[0185] inputs = Input(shape=input_shape)
[0186] # Depthwise Separable Convolutional Layer
[0187] # Step 1: Depthwise convolution, processing each input channel independently
[0188] depth_conv = DepthwiseConv2D(kernel_size=(3, 3), padding='same',activation='relu')(inputs)
[0189] # Step 2: Point-wise convolution, combining the outputs of depth-wise convolution
[0190] point_conv = Conv2D(filters=64, kernel_size=(1, 1), activation='relu')(depth_conv)
[0191] # Convert the output of the convolutional layer into a form suitable for LSTM input
[0192] reshaped_conv_output = tf.reshape(point_conv, (-1, point_conv.shape[1]*point_conv.shape[2], 64))
[0193] # Bidirectional LSTM layer for processing time series data
[0194] bi_lstm = Bidirectional(LSTM(128, return_sequences=True))(reshaped_conv_output)
[0195] # Create model
[0196] model = Model(inputs=inputs, outputs=bi_lstm)
[0197] return model
[0198] # Assume that the input shape of the feature vector is (10, 10, 32), instantiate the network
[0199] input_shape = (10, 10, 32)
[0200] enhanced_feature_learning_network = create_enhanced_feature_learning_network(input_shape)
[0201] print(enhanced_feature_learning_network.summary())
[0202] The code is explained as follows:
[0203] 1. Input layer: defines the input of the network, whose shape matches the feature vector after dimensionality reduction.
[0204] 2. Deep convolution layer: First, deep convolution is performed to apply spatial filters independently for each channel, which helps to extract local features within each channel.
[0205] 3. Point-by-point convolution layer: Use a 1×1 convolution kernel to process the results of deep convolution, integrate the information of each channel, and increase the depth of the features.
[0206] 4. Conversion layer: In order to adapt the convolutional layer output to the LSTM layer, its shape needs to be adjusted.
[0207] 5. Bidirectional LSTM layer: Bidirectional LSTM is applied to process spatiotemporal data. This structure can simultaneously learn the forward and backward dependencies of the data and improve the ability to capture changes in emotional states.
[0208] Furthermore, the variational autoencoder of the emotion dynamics modeling subnetwork uses a nonlinear activation function to enhance the nonlinear encoding capability, and the nonlinear activation function includes ReLU and Leaky ReLU; the gated convolutional network adopts a multi-scale convolution kernel to capture the details of emotion representation at different scales, so as to more comprehensively understand the emotion dynamics.
[0209] In the multimodal emotion recognition system provided in this embodiment, the emotion dynamics modeling subnetwork is a key component, which is used to extract and encode emotion dynamics from the spatiotemporal feature representation provided by the enhanced feature learning subnetwork. This subnetwork adopts a combination of variational autoencoder (VAE) and gated convolutional network (GCN), and uses nonlinear activation functions and multi-scale convolution kernels to enhance the ability to capture and analyze emotion changes.
[0210] The variational autoencoder is used in this system to generate implicit representations that can represent the potential emotional state of the input data. The characteristic of VAE is that it captures the distribution of input data through a probabilistic encoding process. Its structure includes an encoder and a decoder. The encoder maps the input data to a potential distribution, while the decoder reconstructs the data from this distribution.
[0211] Use of non-linear activation functions: In the encoder and decoder, non-linear activation functions such as ReLU (Rectified Linear Unit) and Leaky ReLU are used after each convolutional or fully connected layer. The formula of the ReLU activation function is , which can provide the advantages of fast model convergence and simple calculation; LeakyReLU is a variant of ReLU, defined as , which solves the problem that the gradient of ReLU is zero when the input is negative, and maintains a certain gradient flow, which helps to avoid premature "death" of neurons. These activation functions enable VAE to more effectively capture complex nonlinear relationships, thereby better characterizing the dynamic changes of emotional states.
[0212] The gated convolutional network is used to further process the potential emotion representation generated by the variational autoencoder. By adopting multi-scale convolution kernels to analyze the emotion details at different levels, the model's ability to capture emotion changes is enhanced.
[0213] Application of multi-scale convolution kernels: Convolution kernels of different sizes (such as 1×1, 3×3, 5×5, etc.) are used in GCN, which allows the network to capture features at multiple scales. Smaller convolution kernels can capture fine-grained emotional changes, while larger convolution kernels help understand a wider range of emotional contexts. In this way, the gated convolution network is able to integrate information at different scales to provide a more comprehensive and accurate analysis of emotional dynamics.
[0214] In the multimodal emotion recognition system, the emotion dynamics modeling sub-network is one of the core components, which uses variational autoencoders (VAE) and gated convolutional networks (GCN) to process and encode emotion dynamics. The following is the implementation code of this sub-network.
[0215] import tensorflow as tf
[0216] from tensorflow.keras.layers import Input, Conv2D, Dense, Flatten,Reshape, LSTM
[0217] from tensorflow.keras.models import Model
[0218] from tensorflow.keras.layers import LeakyReLU, ReLU
[0219] def build_emotion_dynamic_model(input_shape):
[0220] """
[0221] Creating the Emotion Dynamics Modeling Subnetwork
[0222] parameter:
[0223] input_shape : tuple
[0224] The shape of the input features, the spatiotemporal feature representation from the enhanced feature learning subnetwork
[0225] return:
[0226] model : Model
[0227] Emotional dynamic modeling network model
[0228] """
[0229] # Input layer
[0230] inputs = Input(shape=input_shape)
[0231] # Variational Autoencoder Part
[0232] Encoder
[0233] x = Conv2D(32, (3, 3), padding='same', activation='relu')(inputs)
[0234] x = Flatten()(x)
[0235] x = Dense(64)(x)
[0236] x = LeakyReLU(alpha=0.1)(x) # Use LeakyReLU to enhance nonlinear coding capabilities
[0237] # Hidden layer
[0238] z = Dense(32, activation='relu')(x) # Use ReLU activation function
[0239] # Decoder
[0240] x = Dense(64)(z)
[0241] x = LeakyReLU(alpha=0.1)(x)
[0242] x = Dense(tf.math.reduce_prod(input_shape))(x)
[0243] x = ReLU()(x) # Use the ReLU activation function again
[0244] x = Reshape(input_shape)(x) # Reconstruct to input shape
[0245] # Gated convolutional network part
[0246] # Use multi-scale convolution kernels to capture emotional details at different levels
[0247] gcn_output = Conv2D(32, (1, 1), padding='same', activation='relu')(x)
[0248] gcn_output = Conv2D(32, (3, 3), padding='same', activation='relu')(gcn_output)
[0249] gcn_output = Conv2D(32, (5, 5), padding='same', activation='relu')(gcn_output)
[0250] # Create model
[0251] model = Model(inputs=inputs, outputs=gcn_output)
[0252] return model
[0253] # Assume that the shape of the input feature is determined by the previous network
[0254] input_shape = (10, 10, 64) # For example, 10x10 spatial size and 64 feature channels
[0255] emotion_dynamic_model = build_emotion_dynamic_model(input_shape)
[0256] print(emotion_dynamic_model.summary())
[0257] The code is explained as follows:
[0258] 1. Variational Autoencoder (VAE): Convolutional layers and fully connected layers are used to build encoders and decoders. In the encoder and decoder, LeakyReLU is used to handle possible negative values of the activation function and provide small gradients to prevent activation "death". ReLU is used in the hidden layer to ensure the effective expression of nonlinear features.
[0259] 2. Gated Convolutional Network (GCN): Apply convolution kernels of different sizes on the decoded data to capture emotional features at multiple scales. Small convolution kernels capture local details, while large convolution kernels help understand the broad emotional context.
[0260] Furthermore, the multi-layer perceptron enhanced with the attention mechanism of the multimodal sentiment classification subnetwork uses a multi-head attention model, wherein each head focuses on a different subset of features to achieve a detailed interpretation of sentiment features and improve classification accuracy.
[0261] In the multimodal emotion recognition system provided in this embodiment, the multimodal emotion classification subnetwork is a key component, which is specifically used to process the high-level feature sequence from the emotion dynamic modeling subnetwork and accurately classify the user's emotions by using a multi-layer perceptron (MLP) enhanced by an attention mechanism. In particular, this subnetwork utilizes a multi-head attention model, which is an advanced technology that can parse emotion features more finely, thereby improving the accuracy and sensitivity of emotion recognition.
[0262] The core idea of the multi-head attention mechanism is to spread attention to different representation subspaces, so that it can capture the characteristics of the data from multiple perspectives at the same time. This mechanism is particularly effective when processing complex emotional data because it allows the model to capture key information in different representation spaces, thereby more comprehensively understanding the emotional state.
[0263] In implementation, each "head" in the multi-head attention model performs attention operations independently, but they each focus on a different subset of input features. This design allows the network to understand emotions at different levels and dimensions, improving the ability to capture emotional details.
[0264] Implementation steps include:
[0265] 1. Initialize the multi-head attention layer: First, define multiple independent attention "heads". Each head processes the same input through a different linear transformation (usually a weight matrix) to produce a different representation.
[0266] 2. Calculate attention weights: For each head, use dot product attention or other related mechanisms to calculate the interactions and importance between input features. This usually involves calculating the similarity between a query and a set of keys, and then using this similarity to weight the corresponding value.
[0267] 3. Fusion of multiple head outputs: The outputs of all heads are combined (usually by concatenation or addition) and further processed through a linear layer to produce the final output, which is then used for sentiment classification.
[0268] 4. Sentiment classification: The final output enters one or more fully connected layers (i.e., multi-layer perceptrons) for final sentiment classification. These layers can use appropriate activation functions, such as ReLU or Softmax, to ensure the validity and applicability of the output.
[0269] In the multimodal emotion recognition system, the multimodal emotion classification subnetwork uses an advanced multi-head attention mechanism combined with a multi-layer perceptron (MLP) for emotion classification. The implementation code of this subnetwork is provided here.
[0270] import tensorflow as tf
[0271] from tensorflow.keras.layers import Input, Dense, Dropout,LayerNormalization, MultiHeadAttention
[0272] from tensorflow.keras.models import Model
[0273] def build_emotion_classification_network(input_shape, num_classes):
[0274] """
[0275] Creating a multimodal sentiment classification subnetwork
[0276] parameter:
[0277] input_shape : tuple
[0278] The shape of the input features, usually the shape of the high-level feature sequence output by the emotion dynamics modeling subnetwork
[0279] num_classes : int
[0280] Number of emotion categories
[0281] return:
[0282] model : Model
[0283] Sentiment Classification Model
[0284] """
[0285] # Input layer
[0286] inputs = Input(shape=input_shape)
[0287] # Multi-head attention layer
[0288] # Here we assume that 8 heads are used and the dimensions of each head are automatically calculated
[0289] attention_output = MultiHeadAttention(num_heads=8, key_dim=input_shape[-1] / / 8)(inputs, inputs)
[0290] # Normalization of attention output
[0291] attention_output = LayerNormalization()(attention_output)
[0292] # Connection layer, converting the output of multi-head attention into one-dimensional features
[0293] features = Dense(256, activation='relu')(attention_output)
[0294] features = Dropout(0.2)(features) # Use Dropout to reduce overfitting
[0295] # Output layer, using Softmax for multi-class classification
[0296] outputs = Dense(num_classes, activation='softmax')(features)
[0297] # Create model
[0298] model = Model(inputs=inputs, outputs=outputs)
[0299] return model
[0300] # Example: Shape and number of categories output by using the sentiment dynamics modeling subnetwork
[0301] input_shape = (None, 128) # Assume that each sample is a feature sequence of length 128
[0302] num_classes = 5 # Assume there are 5 emotion categories
[0303] emotion_classification_network = build_emotion_classification_network(input_shape, num_classes)
[0304] print(emotion_classification_network.summary())
[0305] The code is explained as follows:
[0306] 1. Input layer: defines the input of the network, and its shape matches the output from the emotion dynamics modeling sub-network.
[0307] 2. Multi-Head Attention Layer: Implemented a multi-head attention mechanism, where each head processes the input data independently, which helps the model learn the features of the input data from different perspectives. The `MultiHeadAttention` layer is directly available in TensorFlow and is very suitable for processing sequence data.
[0308] 3. Normalization layer: Use layer normalization to stabilize the training process, which helps to converge quickly and reduce fluctuations in training.
[0309] 4. Fully connected layer and Dropout layer: used to further process the output of the attention layer, extract features for classification, and use Dropout to reduce possible overfitting.
[0310] 5. Output layer: The final fully connected layer uses the `softmax` activation function to predict the emotion category.
[0311] The following is an explanation of the training steps of the deep learning model in the multimodal emotion recognition system:
[0312] Step 1: Data collection and preprocessing
[0313] First, the system needs to collect multimodal data related to emotion recognition, including but not limited to facial expression videos, audio recordings, and physiological signals. These data undergo preprocessing steps such as denoising, normalization, and possible feature scaling to ensure data quality and consistency, laying the foundation for subsequent deep learning model training.
[0314] Step 2: Model training
[0315] 1. Feature decomposition sub-network training: In this stage, the system uses principal component analysis technology to process the unified feature vector and perform data dimensionality reduction to reduce the complexity of subsequent processing and improve computational efficiency.
[0316] 2. Enhanced feature learning sub-network training: Next, the system uses a convolutional neural network (CNN) to extract spatial features from the reduced feature vector. Then, a long short-term memory network (LSTM) is used to process these spatial feature representations, capture the temporal dependencies, and generate spatiotemporal feature representations.
[0317] 3. Training of the emotion dynamics modeling sub-network: In this stage, the variational autoencoder (VAE) is used to encode the potential emotion representation from the spatiotemporal feature representation. Then, the gated convolutional network (GCN) processes these potential emotion representations to further refine and generate high-level emotion feature sequences.
[0318] 4. Multimodal sentiment classification subnetwork training: Finally, a multi-layer perceptron enhanced with a multi-head attention mechanism is used to process high-level feature sequences for sentiment classification. Each attention "head" focuses on a different subset of features, which enhances the ability to interpret sentiment features and improves classification accuracy.
[0319] Step 3: Model evaluation and testing
[0320] After training, the model will undergo a series of evaluations and tests, using performance indicators such as accuracy and recall to verify its effectiveness and reliability in practical applications.
[0321] Step 4: Model deployment and implementation
[0322] The validated model is then deployed in the target system to process the input multimodal data in real time and respond dynamically based on the prediction results to achieve accurate emotion recognition and corresponding countermeasures.
[0323] Step 5: Continuous monitoring and iterative updates
[0324] The system will continuously monitor the performance and actual application effects of the model, and regularly collect new data for iterative updates and optimization of the model to ensure its long-term adaptation to environmental changes and user needs.
[0325] Through such training and implementation processes, we ensure that the emotion recognition system can effectively utilize deep learning technology, continuously optimize and improve the accuracy and real-time performance of emotion recognition, and meet actual application needs.
[0326] The output unit 103 is used to display the emotion recognition result generated by the data processing unit.
[0327] The output unit 103 plays a key role in displaying the final emotion recognition result in the multimodal-based emotion recognition system provided in this embodiment.
[0328] The output unit 103 is generally a display device, which may be a computer display screen, a mobile device screen, or any other electronic display interface capable of visually displaying information. The unit is connected to the data processing unit 102 via a stable and reliable interface, such as HDMI, VGA, or modern wireless transmission technology, to ensure that the emotion classification results received from the data processing unit can be displayed instantly and accurately.
[0329] Specifically, the output unit 103 should be configured with sufficient resolution and color support to clearly display complex images and text information. This is particularly important for displaying multiple emotional states and their related data. For example, different emotional categories can be represented by different colors or icons so that users can see them at a glance. In addition, the output unit should support dynamic image processing technology so that any real-time changing emotional analysis results can be displayed, which is particularly critical for application scenarios that require instant feedback (such as real-time psychological counseling or interactive entertainment systems).
[0330] In terms of operability, the output unit should have a user-friendly interface that allows users to perform basic configuration and customize display options through simple operations (such as touch screen operation or using physical buttons). For example, users can choose to view a detailed emotion analysis report or just display a simple emotional status indication.
[0331] Furthermore, to ensure the wide applicability of the system, the output unit should be designed to be adaptable to different operating systems and software platforms. This means that it should have sufficient hardware and software compatibility so that it can be easily integrated into a variety of existing technological environments, whether it is a PC, tablet or other smart device.
[0332] The output unit 103 can not only effectively display the emotion recognition results generated by the data processing unit 102, but also provide a high degree of user interaction experience and adaptability, thereby meeting the needs of different users and scenarios.
[0333] Furthermore, the output unit includes an emotion-driven interface, which automatically adjusts its color theme and graphic elements according to the displayed emotion recognition results; the emotion-driven interface is specifically used to: when happy emotions are detected, the interface will use bright colors and lively icons; when sad emotions are detected, the interface will use dark tones and soothing icons, so as to enhance the user's emotional resonance and understanding.
[0334] In the multimodal emotion recognition system provided in this embodiment, the output unit includes a key component: an emotion-driven interface. This interface is designed to automatically adjust its display features, including color themes and graphic elements, based on the emotion recognition results obtained by analyzing the biometric data (electroencephalogram signals, facial images, and voice data) collected from the user. This design is intended to provide an intuitive way to enhance the user's understanding and perception of the emotional state through visual feedback.
[0335] The working mechanism of emotion-driven interface is as follows:
[0336] 1. Automatic adjustment of interface colors and icons:
[0337] The interface design includes a set of predefined color themes and icon sets, which have been pre-designed according to different emotion categories. For example, emotional states such as happiness, sadness, and anger each have their own matching visual elements.
[0338] When the data processing unit analyzes the user's biometric data and identifies a specific emotion, the emotion-driven interface of the output unit triggers corresponding visual feedback based on this recognition result. This includes changes in color themes and corresponding adjustments to graphic elements (such as icons and background patterns). 2. Specific embodiments:
[0340] Visual representation of happy emotions: When the emotion recognition system detects that the user is happy, the emotion-driven interface will automatically switch to using bright colors such as yellow, orange or other bright tones, and display lively icons such as smiley faces, the sun or other symbols related to happiness.
[0341] Visual representation of sad emotions: On the contrary, if the user's emotion is detected to be sad, the interface will change to using dark tones such as dark blue or gray, and display soothing and gloomy icons such as drooping clouds and raindrops.
[0342] 3. Technical implementation details:
[0343] The dynamic adjustment of the interface is achieved through software programming, in which the switching logic involving color and graphic elements is embedded in the software code of the emotion recognition system.
[0344] Implementing this function requires support from interface design software and programming languages, such as HTML / CSS / JavaScript for front-end interface design, and possible back-end support for logic that processes data and triggers interface changes.
[0345] Furthermore, the output unit includes a multimodal feedback function, which provides visual information and audio feedback corresponding to the emotion recognition results; the multimodal feedback function is specifically the same as: when it is detected that the user feels sad or nervous, the output unit will play soothing music; when it is detected that the user feels happy, the output unit will play cheerful music, thereby enhancing the communication of the emotion recognition results and the user's sensory experience.
[0346] In the multimodal emotion recognition system provided in this embodiment, the output unit has a core function, namely, the multimodal feedback function. This function is intended to enhance the delivery of emotion recognition results through visual and audio feedback to enhance the user's sensory experience and emotional understanding. This function enables the system to not only display visual information of emotion recognition, such as expressing emotional states through changes in interface colors and icons, but also provide corresponding audio feedback synchronously based on the recognized emotion results.
[0347] The implementation steps of the multimodal feedback function are as follows:
[0348] 1. Visual feedback: The output unit will use different colors and graphic elements through its display interface to visually express the user's emotional state. For example, the interface may change the background color according to the emotional result, use specific icons and images to match the detected emotion type, such as using warm colors and sunshine icons to represent happiness, or using cold colors and raindrop icons to represent sadness.
[0349] 2. Audio feedback: In addition, the output unit will play corresponding music or sound effects based on the results of the emotion analysis. The system has a built-in audio library that contains a variety of music and sound tracks that match specific emotions. For example, when the system detects that the user is sad or nervous, the output unit will automatically select and play soothing music, such as soft piano music or natural sounds, to help ease the user's emotions; on the contrary, when the user's emotions are recognized as happy, the system will play cheerful music, such as fast-paced dance music, to enhance the user's positive emotions.
[0350] The second embodiment of the present application provides a multimodal emotion recognition method, comprising:
[0351] Step S201: collecting biometric data from a user, wherein the biometric data includes an electroencephalogram signal, a facial image, and voice data;
[0352] Step S202: preprocessing the collected biometric data to obtain preprocessed data; wherein the preprocessing includes applying Fourier transform to the EEG signal to generate a power spectral density profile, detecting facial features from the facial image using an Adaboost-based face detection algorithm, and extracting Mel-frequency cepstral coefficients from the speech data;
[0353] Step S203: applying a multimodal integration algorithm to combine the power spectral density profile, facial features and Mel-frequency cepstral coefficients to obtain a unified feature vector;
[0354] Step S204: Classifying the user's emotions into predefined categories using a trained deep learning model according to the unified feature vector to generate an emotion recognition result;
[0355] Step S205: Displaying the emotion recognition result generated by the data processing unit.
[0356] Although the present application is disclosed as above in the form of a preferred embodiment, it is not intended to limit the present application. Any technical personnel in this field may make possible changes and modifications without departing from the spirit and scope of the present application. Therefore, the scope of protection of the present application shall be based on the scope defined by the claims of the present application.
Claims
1. A multimodal emotion recognition system, characterized in that: include: a sensor array configured to collect biometric data from a user, the biometric data including EEG signals, facial images, and voice data; a data processing unit, communicatively connected to the sensor array, configured to receive biometric data collected by the sensor array; preprocess the collected biometric data to obtain preprocessed data; wherein the preprocessing includes applying a Fourier transform to the EEG signal to generate a power spectral density profile, detecting facial features from facial images using an Adaboost-based face detection algorithm, and extracting Mel-frequency cepstral coefficients from speech data; applying a multimodal integration algorithm to feature-combine the power spectral density profile, facial features, and Mel-frequency cepstral coefficients to obtain a unified feature vector; and classifying the user's emotions into predefined categories using a trained deep learning model based on the unified feature vector to generate an emotion recognition result; an output unit, for displaying the emotion recognition result generated by the data processing unit; The multimodal integration algorithm includes the following steps: According to the following formula 1, the power spectrum density profile is , facial features and Mel-frequency cepstral coefficients Fusion is performed to produce an intermediate feature vector : in, 、 and is the combination coefficient; is the power spectral density profile The mapping function is shown in Formula 2: in, is the learning parameter; is the power spectral density profile Middle elements; is the power spectral density profile The total number of elements; It is facial features The mapping function is shown in Formula 3: in, and is the learning parameter; It's a facial feature The elements; It's a facial feature The total number of elements; is the Mel-frequency cepstral coefficient The mapping function is as described in Formula 4: in, is the learning parameter; is the Mel-frequency cepstral coefficient Middle elements; is the Mel-frequency cepstral coefficient The total number of elements; According to the following formula 5, the intermediate eigenvector Processing is performed to obtain a unified feature vector : in, is the scaling factor; is the adaptive weight parameter; is the intermediate eigenvector No. elements; is the intermediate eigenvector The total number of elements; is the feature offset parameter; is the regularization coefficient; is the Kullback-Leibler divergence term, which is used to evaluate the intermediate eigenvectors The difference from the target distribution, and is a learning parameter.
2. The multimodal emotion recognition system according to claim 1, characterized in that: The deep learning model includes a feature decomposition subnetwork, an enhanced feature learning subnetwork, an emotion dynamics modeling subnetwork, and a multimodal emotion classification subnetwork; The feature decomposition subnetwork is used to receive a unified feature vector and perform dimensionality reduction processing on the received unified feature vector using principal component analysis technology to obtain a feature vector after dimensionality reduction; The enhanced feature learning subnetwork is used to receive the reduced-dimensional feature vector provided by the feature decomposition subnetwork; use a convolutional neural network to perform feature extraction on the reduced-dimensional feature vector to obtain a spatial feature representation; and use a long short-term memory network to process the spatial feature representation to obtain a spatiotemporal feature representation; The emotion dynamics modeling subnetwork is used to receive the spatiotemporal feature representation provided by the enhanced feature learning subnetwork; use a variational autoencoder to encode the received empty feature representation to generate a potential emotion representation; use a gated convolutional network to process the potential emotion representation to generate a high-level feature sequence reflecting the emotion dynamics; The multimodal emotion classification subnetwork is used to receive the high-level feature sequence provided by the emotion dynamic modeling subnetwork; and use a multi-layer perceptron enhanced by an attention mechanism to process the high-level feature sequence to generate an emotion recognition result.
3. The multimodal emotion recognition system according to claim 2, characterized in that: The eigendecomposition subnetwork uses singular value decomposition to perform principal component analysis to improve the computational efficiency and accuracy of the dimensionality reduction process.
4. The multimodal emotion recognition system according to claim 2, characterized in that: The convolutional neural network of the enhanced feature learning subnetwork includes a deep separable convolutional layer to reduce the computational complexity of the model and improve the efficiency of feature extraction; the long short-term memory network has a bidirectional structure to learn changes in emotional states from both positive and negative directions of time series data.
5. The multimodal emotion recognition system according to claim 4, characterized in that: The variational autoencoder of the emotion dynamics modeling subnetwork uses nonlinear activation functions to enhance nonlinear coding capabilities. The nonlinear activation functions include ReLU and Leaky ReLU. The gated convolutional network uses multi-scale convolution kernels to capture the details of emotion representation at different scales, thereby more comprehensively understanding emotion dynamics.
6. The multimodal emotion recognition system according to claim 4, characterized in that: The multi-layer perceptron enhanced with the attention mechanism of the multimodal sentiment classification subnetwork uses a multi-head attention model; wherein each head focuses on a different subset of features to achieve a detailed interpretation of sentiment features and improve classification accuracy.
7. The multimodal emotion recognition system according to claim 1, characterized in that: The output unit includes an emotion-driven interface, which automatically adjusts its color theme and graphic elements according to the displayed emotion recognition results; the emotion-driven interface is specifically used to: when happy emotions are detected, the interface will use bright colors and lively icons; when sad emotions are detected, the interface will use dark tones and soothing icons, thereby enhancing the user's emotional resonance and understanding.
8. The multimodal emotion recognition system according to claim 1, characterized in that: The output unit includes a multimodal feedback function, which provides visual information and audio feedback corresponding to the emotion recognition results; the multimodal feedback function is specifically the same as: when it is detected that the user feels sad or nervous, the output unit will play soothing music; when it is detected that the user feels happy, the output unit will play cheerful music, thereby enhancing the communication of the emotion recognition results and the user's sensory experience.
9. A multimodal emotion recognition method, characterized in that: include: collecting biometric data from the user, the biometric data including EEG signals, facial images, and voice data; Preprocessing the collected biometric data to obtain preprocessed data; wherein the preprocessing includes applying Fourier transform to the EEG signal to generate a power spectral density profile, detecting facial features from the facial image using an Adaboost-based face detection algorithm, and extracting Mel-frequency cepstral coefficients from the speech data; Applying a multimodal integration algorithm to combine the power spectral density profile, facial features, and Mel-frequency cepstral coefficients to obtain a unified feature vector; classifying the user's emotions into predefined categories using a trained deep learning model based on the unified feature vector to generate an emotion recognition result; displaying emotion recognition results generated by the data processing unit; The multimodal integration algorithm includes the following steps: According to the following formula 1, the power spectrum density profile is , facial features and Mel-frequency cepstral coefficients Fusion is performed to produce an intermediate feature vector : in, 、 and is the combination coefficient; is the power spectral density profile The mapping function is shown in Formula 2: in, is the learning parameter; is the power spectral density profile Middle elements; is the power spectral density profile The total number of elements; It is facial features The mapping function is shown in Formula 3: in, and is the learning parameter; It's a facial feature The elements; It's a facial feature The total number of elements; is the Mel-frequency cepstral coefficient The mapping function is as described in Formula 4: in, is the learning parameter; is the Mel-frequency cepstral coefficient Middle elements; is the Mel-frequency cepstral coefficient The total number of elements; According to the following formula 5, the intermediate eigenvector Processing is performed to obtain a unified feature vector : in, is the scaling factor; is the adaptive weight parameter; is the intermediate eigenvector No. elements; is the intermediate eigenvector The total number of elements; is the feature offset parameter; is the regularization coefficient; is the Kullback-Leibler divergence term, which is used to evaluate the intermediate eigenvectors The difference from the target distribution, and is a learning parameter.
