نوع مقاله : مقاله پژوهشی انگلیسی
نویسندگان
1 گروه مهندسی کامپیوتر، واحد رشت، دانشگاه آزاد اسلامی، رشت، ایران
2 گروه کامپیوتر، واحد فومن و شفت ، دانشگاه آزاد اسلامی ، فومن، ایران
3 گروه مهندسی کامپیوتر، واحد لاهیجان، دانشگاه آزاد اسلامی، لاهیجان، ایران
چکیده
کلیدواژهها
موضوعات
عنوان مقاله [English]
نویسندگان [English]
In recent years, dynamic emotion recognition has become a crucial component for enhancing natural human-computer interaction. This paper proposes an advanced method for recognizing emotions in video files by combining facial and speech features, with a novel focus on improving the segmentation process to enhance recognition accuracy. The approach utilizes facial images and speech signals as the two primary inputs, which are integrated through an improved deep architecture. Feature fusion occurs at the extraction stage, employing an enhanced spectrogram for speech signals and AlexNet for both facial expression analysis and speech emotion recognition. To further enhance the accuracy of emotion recognition, the segmentation of extracted facial images is optimized using the Grey Wolf Optimization (GWO) algorithm, a powerful evolutionary technique inspired by the hunting behavior of grey wolves. This algorithm ensures better segmentation by adaptively dividing facial regions into meaningful parts, providing more informative features for dynamic recognition tasks. Feature selection is performed using Correlation-Based Feature Selection (CFS), while information fusion is guided by the SOAR cognitive model. The dynamic aspects of emotion recognition are addressed by employing dynamic deep learning techniques to implement the SOAR model. The proposed model is tested on the RAVDESS dataset, achieving an impressive accuracy of 91.23%, which demonstrates the effectiveness of the GWO algorithm in segmentation alongside multimodal fusion for dynamic emotion recognition.
کلیدواژهها [English]
The use of computers in programs that interact with users relies on accurately identifying their moods and emotions. Computers must be able to recognize emotions conveyed through speech tone, facial expressions, or body movements. Human movement and interaction are inherently intertwined with media. The senses of sight and hearing are essential for navigating our complex world. Numerous studies in psychology have explored how to assist people in completing tasks by combining auditory and visual cues, such as lip reading [3] and sound source localization [4]. These studies provide a foundation for research into intelligent systems that integrate auditory and visual modalities. It can be said that humans are sophisticated systems equipped with multimodal sensors that can process, analyze, learn from, and respond to various stimuli [5-7].
Considering the importance of information fusion, this article leverages audio and visual information fusion to recognize emotional states. One of the most significant challenges in integrating speech and facial features lies in managing the interaction between the temporal and spatial dimensions of audio-visual data and ensuring synergetic processing of their nonlinear relationships. To address this, a new model for multimodal emotion recognition is presented in this article. The proposed framework employs time-spatial sequences to learn the intricate relationships between frames and features of facial emotional states, as well as emotional speech, thereby effectively integrating the audio-visual processes.
This article introduces an innovative enhancement in the image segmentation stage of the pipeline by applying Grey Wolf Optimization (GWO). Inspired by the natural hunting behavior of grey wolves, GWO is used to adaptively segment the extracted images into meaningful regions. This segmentation process enables the extraction of more discriminative features from facial data, which contributes to a higher recognition rate in the subsequent layers of the model.
Expressing emotions plays a crucial role in everyday communication, and one of the key methods for detecting these emotions is recognizing facial expressions. Consequently, an important aspect of natural human-machine interaction is the ability to recognize facial expressions and provide feedback based on the perceived emotions. These facial changes result from muscle movements in various areas of the face. To explore this topic, extensive research has been conducted on facial expressions and muscle activity, including the development of the Facial Action Coding System (FACS) [8]. In [9], the relationship between facial expression recognition and mental characteristics is examined. Based on this analysis, a facial expression recognition model is developed that incorporates convolutional neural network (CNN) layers and integrates various neural network architectures such as VGGNet, AlexNet, and LeNet-5. Additionally, a Central Local Binary Pattern (CLBP) algorithm optimized for CNN is introduced, resulting in the creation of a CNN-CLBP algorithm for facial expression recognition.
Fig. 1. Block Diagram of the Proposed Method
Face images path: The face images, which are multi-dimensional and in RGB format, are sent to the pre-trained AlexNet model for tuning in emotional face recognition. In this study, the video file's sampling frames are set to 10 frames. All inputs in the first layer have dimensions of 255 x 255 x 3. The convolutional layer (CL) consists of convolutional filters used to extract various local patterns from specific areas in the input, generating several feature maps. The AlexNet model comprises five convolutional layers: Conv1, Conv2, Conv3, Conv4, and Conv5. Among these, three layers (Conv1, Conv2, and Conv5) are followed by max-pooling operations. The convolutional layers utilize the ReLU activation function. The first convolutional layer (Conv1) contains 64 cores, with a size of 3 x 8 x 8, a stride of 4 pixels, and zero-padding. The second layer (Conv2) has 256 cores and a size of 64 x 3 x 3, with a stride of 1 and padding of 2. The third convolutional layer (Conv3) consists of 384 cores with a size of 128 x 3 x 3 and is connected to the outputs of Conv2. Lastly, the fourth convolutional layer (Conv4) also has 384 cores, with a size of 164 x 3 x 3. The ReLU activation function is applied to adapt to the training process at the output of each convolutional layer.
The highlights extracted from two channels within the convolutional layer (Conv4) will be processed using a feature selection method to identify the most significant features. To implement the semantic memory portion, we utilize the Correlation-based Feature Selection (CFS) method, which selects distinct features. The CFS technique evaluates a subset of features and chooses only those that have a high correlation with the output class label. This classification algorithm, based on these selected features, improves predictive accuracy. In the continuation of the feature combination module, convolutional combination is first used to reduce the dimensionality, and the resulting features are then sent to the Softmax layer, which obtains the self-attention weights. The most important features are subsequently passed to the concatenation channel to merge the two sets of features. During the convolutional combination step, the parameters of each convolution unit are optimized using backpropagation algorithms informed by learning automata (LA).
The following section provides further explanations to evaluate the proposed model:
Feature extraction is performed using AlexNet. Within AlexNet, most of the network's weights remain fixed while several layers are utilized for the feature extraction process. AlexNet features a deep architecture with multiple channels per layer and stacked convolutional layers. These convolutional layers include max pooling, dropout, activation functions like ReLU, data augmentation, and stochastic gradient descent with momentum. The model employs ReLU as its activation function, which accelerates the processing speed. In the fully connected layers (FCLs), the output of the network is represented as a vector of a specific size, which can be used for further processing. However, a drawback of these layers is their large number of parameters, which results in a high computational cost during training. For this reason, FCLs do not perform well in recognizing and analyzing raw data.
In contrast, the convolutional layers (specifically Conv4) extract important features from raw input values while maintaining spatial relationships within the data. FCLs capture general features, whereas convolutional layers (CLs) generate local features and transform local descriptors into a compact feature vector. In the proposed framework, the features extracted from the convolutional layer (Conv4) are utilized for sentiment detection. This local convolution layer (Conv4) enables the model to learn the channels with the strongest response in a specific local input region, thereby capturing the local relationships within the input space. A total of 64,896 features have been obtained from the convolutional layer (Conv4) and are sent to the feature selection phase. This article employs a correlation-based feature selection (CFS) method for feature selection. The CFS method assesses a subset of features and selects only those that have a strong correlation with the target outcome [43]. The CFS (Correlation-based Feature Selection) positions are highlighted, which will be calculated using an exploratory assessment based on relationships. This strategy has been employed to measure and evaluate the similarity between features. The CFS method eliminates irrelevant attributes that are less relevant to the class label. The CFS criterion is calculated using equation “(1)” [43]:
Where is the classification correlation of the feature, k is the number of features, and represents the correlation between the features. The extracted features are utilized alongside a Convolutional Neural Network (CNN) in an optimized feedforward mode. This image processing method effectively reduces the dimensions of large datasets while preserving the distinctive characteristics of the images, aligning with the principles of image processing. In the feature fusion module, convolutional fusion is employed to reduce the dimensions, and the parameters of each convolution unit are optimized using Learning Algorithm (LA) backpropagation techniques. The rationale behind using LA in neural network learning is that the optimization problem typically lacks convexity. Therefore, a common approach to solving optimization issues in neural networks is through backtracking. To improve the CNN, we incorporate the probability theory of the LA within the Backpropagation Process (BPP) errors to train the proposed model. When LA is applied in this layer, it not only reduces computational complexity but also increases the model's speed compared to traditional gradient descent methods. The output of the LA, denoted as \ (i - \alpha \), represents potential actions that serve as momentum factors for updating the neural network's weights. Through multiple iterations, we establish a strong connection between the optimal input and output features. This process allows the parameters to be adaptively adjusted in the gradient descent (GD) method for calculating backpropagation error. Subsequently, the output from the convolutional fusion (Fusion_Conv) is directed to the Softmax layer, where it acquires self-attention weights. The best features extracted are then channeled into a concatenated cascade to fuse the two feature sets. LA functions as a stochastic model within the framework of reinforcement learning, where automatic learning utilizes selected actions as inputs to operate within its stochastic environment. The environment provides reinforcement feedback to indicate how closely the adopted actions align with the desired outcomes, enabling the action probability vector to be updated. Automatic learning aims to identify the optimal action from a set of possible actions to minimize the average penalty associated with the environment. This approach is particularly useful in scenarios where complete information about the environment is lacking. The output from the LA, being the potential actions, iteratively updates the neural network's weights, thereby strengthening the connection between the most relevant input and output features and adjusting parameters accordingly.
In our analysis of Ryerson's audio-visual database, we have utilized the RAVDESS[i] [38] emotional speech and song dataset. This dataset consists of 7,356 recordings (total size: 24.8 GB) featuring emotionally expressive speech, where two lexically matched phrases are voiced in a neutral North American accent. The recordings are evenly distributed across three content types: full audio-visual (AV), video-only, and audio-only. There are also two audio channels: speech and music. Each emotional expression is produced at two levels of intensity—normal and strong—with an additional neutral expression. All conditions are available in three formats: audio-only (16-bit, 48 kHz .wav), audio-video (720p H.264, AAC 48 kHz, .mp4), and video-only (no audio). It’s important to note that there is no song file for Actor 18. In addition to the neutral emotion, which only has a regular intensity, the other emotional expressions are produced at two levels of arousal: regular and strong. Each recording features an actor representing one of the following eight emotions: Calm (925), Neutral (892), Happy (796), Sad (986), Angry (921), Fear (907), Surprised (974), and Disgusted (955).
We used the entire dataset to propose a multimodal approach for our experiments, focusing on the recognition of audio-visual emotions in speech. The videos in the dataset have maximum and minimum durations of 5.31 seconds and 2.99 seconds, respectively. The ensemble comprises 24 actors (12 female and 12 male), ensuring a balanced representation of genders, who express lexically matched phrases in a neutral North American accent. This collection is well-suited for studying emotion-related metalinguistic features, lexical isolation, and reducing the bias that culture can introduce in emotional expressions. One key advantage of the dataset is its proportional number of files for each emotion, which helps avoid challenges related to training algorithms on unbalanced data. Furthermore, RAVDESS is considered a reference dataset within the research community and has been employed in several studies [23–39].
In our proposed method, we employed a hierarchical structure inspired by the social behavior and hunting processes of wolves to enhance feature extraction and image segmentation. This optimization process is guided by three key roles: alpha, beta, and delta wolves. The alpha wolf acts as the primary leader, directing the search process, while the beta and delta wolves help refine the search area. The remaining wolves serve as followers within the optimization hierarchy.
The Grey Wolf Optimization (GWO) algorithm is specifically used to improve the segmentation and feature extraction phases of the model. During these enhancements, GWO employs an evaluation function within its fitness module, which considers key parameters for optimization. In this equation, the weight represents the feature weighting factor, while and are randomly generated numbers between 0 and 1. The parameter M acts as a component weight that adjusts the influence of random searches across different search iterations. This structure effectively balances exploration and exploitation, helping to locate optimal solutions within the image segmentation space.
By integrating GWO, segmentation operations are applied to the extracted images in both the facial and speech feature channels. The segmented images create refined regions that facilitate the extraction of more discriminative features, thereby enhancing the overall recognition accuracy of the proposed model. The hierarchical segmentation, guided by the alpha, beta, and delta wolves, ensures precise identification of feature-rich areas in the images, enabling the model to achieve superior performance.
Fig. 2. Performing Various Types of Pre-Processing on Images
The log Mel spectrogram is an effective method for analyzing one-dimensional speech signals based on their recurring components over short time intervals, presenting this information visually. The duration of the time windows significantly impacts the quality of the resulting image. Short time windows generate wideband spectrograms with high and low spectral resolution, while longer windows yield lower resolution. All experiments were conducted using the Leave-One-Speaker-Out (LOSO) technique. Emotions are closely linked to the speaker's identity. To apply this algorithm effectively and learn the relationship between speech and emotion independently of the speaker's identity, it is essential to train the system using multiple speakers and test it with others who have no samples in common. For this reason, the RAVDEESS dataset was utilized, as it includes speech samples from ten different speakers. During the testing procedure, ten independent trials were conducted: in each trial, samples from nine speakers were used for training, while the samples from the remaining speaker were kept hidden for testing. This process continued until all ten speakers had participated in the testing phase. Additionally, to evaluate the proposed method, tests were performed on the dataset to determine how the integration of various features could enhance classification performance. Tables 1 to 3 present spectrograms of wideband (8 ms time window), midband (16 ms time window), and narrowband (32 ms time window), along with the characteristics of the images in data integration, specifically in terms of confusion matrices. The results, along with the obtained data, are displayed in the accompanying figures.
As shown in Table 1, the accuracy of the proposed method using the broadband spectrometer (with a response time of 8 milliseconds) has reached 86.47%. In terms of the recall criterion, the highest value was for the emotion of feeling relaxed, while the lowest was for feeling disgusted.
Table 2 presents the accuracy achieved by the proposed method using the medium band spectrograph (with a response time of 16 milliseconds), reaching 88.75%. In this instance, accuracy was highest for the emotion of feeling sad and lowest for feeling angry. Similar to the previous results, the recall criterion indicated that the highest value was for feeling relaxed, and the lowest was for feeling disgusted.
Table 3 illustrates the accuracy of the proposed method with the narrowband spectrograph (with a response time of 32 milliseconds), achieving an accuracy of 87.46%. In this experiment, the highest accuracy corresponded to the emotion of feeling sad, while the lowest was for feeling surprised. Once again, in the recall criterion, the highest value was for feeling relaxed, and the lowest was for feeling disgusted.
Table 4 presents the confusion matrix generated by the proposed method using the RAVDEESS dataset. In these tables, the columns represent the identified emotions, while the rows denote the actual emotions. The last column of the table shows the recall, defined as the number of accurately identified samples from each emotion class divided by the total number of samples in that class. This indicates the recognition rate for each category.
Accuracy can be calculated by determining the reliability of the classification results for each emotion class. This is done by dividing the number of correctly classified samples for each class by the total number of samples assigned to that class by the classifier. Additionally, overall accuracy or detection rate is evaluated as the total number of correctly classified samples divided by the overall number of samples in the dataset.
In the following discussion, we will compare the performance of ResNet 152, VGGNet 16, AlexNet, and LeNet 5 to determine the best CNN architecture to use within the proposed method.
Table (1): Perplexity matrix of wide-band spectrogram (8ms time frame) in RAVDEESS Dataset
|
Emotions |
Calm |
Neutral |
Happy |
Sad |
Angry |
Fear |
Surprised |
Disgusted |
Recall (%) |
|
Calm |
826 |
8 |
15 |
18 |
16 |
17 |
13 |
12 |
89.3 |
|
Neutral |
20 |
784 |
17 |
11 |
13 |
17 |
18 |
12 |
87.89 |
|
Happy |
16 |
14 |
701 |
17 |
13 |
12 |
14 |
9 |
88.07 |
|
Sad |
11 |
11 |
12 |
834 |
33 |
31 |
30 |
24 |
84.58 |
|
Angry |
10 |
15 |
12 |
26 |
811 |
14 |
21 |
12 |
88.06 |
|
Fear |
14 |
15 |
10 |
2 |
26 |
786 |
32 |
22 |
86.66 |
|
Surprised |
21 |
22 |
11 |
14 |
39 |
25 |
822 |
20 |
84.39 |
|
Disgusted |
13 |
12 |
18 |
24 |
26 |
32 |
41 |
789 |
82.62 |
|
Precision (%) |
88.72 |
88.99 |
88.07 |
88.16 |
83.01 |
84.15 |
82.95 |
87.67 |
|
|
Accuracy |
86.47 |
||||||||
Table (2): Perplexity matrix of wide-band spectrogram (16ms time frame) in RAVDEESS Dataset
|
Emotions |
Calm |
Neutral |
Happy |
Sad |
Angry |
Fear |
Surprised |
Disgusted |
Recall (%) |
|
Calm |
846 |
8 |
9 |
12 |
14 |
16 |
11 |
9 |
91.46 |
|
Neutral |
19 |
798 |
16 |
11 |
13 |
11 |
12 |
12 |
89.46 |
|
Happy |
15 |
13 |
705 |
16 |
13 |
12 |
13 |
9 |
88.57 |
|
Sad |
11 |
8 |
10 |
878 |
24 |
21 |
18 |
16 |
89.05 |
|
Angry |
8 |
11 |
10 |
15 |
841 |
10 |
17 |
9 |
91.31 |
|
Fear |
11 |
12 |
7 |
2 |
22 |
814 |
21 |
18 |
89.75 |
|
Surprised |
21 |
22 |
11 |
14 |
25 |
19 |
842 |
20 |
86.45 |
|
Disgusted |
13 |
12 |
18 |
24 |
26 |
28 |
33 |
801 |
83.87 |
|
Precision (%) |
89.62 |
90.27 |
89.69 |
90.33 |
85.99 |
87.43 |
87.07 |
89.6 |
|
|
Accuracy |
88.75 |
||||||||
Table (3): Perplexity matrix of wide-band spectrogram (32ms time frame) in RAVDEESS Dataset
|
Emotions |
Calm |
Neutral |
Happy |
Sad |
Angry |
Fear |
Surprised |
Disgusted |
Recall (%) |
|
Calm |
837 |
8 |
15 |
11 |
12 |
17 |
13 |
12 |
90.49 |
|
Neutral |
20 |
787 |
14 |
11 |
13 |
17 |
18 |
12 |
88.23 |
|
Happy |
16 |
14 |
703 |
15 |
13 |
12 |
14 |
9 |
88.32 |
|
Sad |
11 |
11 |
12 |
856 |
24 |
26 |
22 |
24 |
86.82 |
|
Angry |
8 |
13 |
12 |
19 |
827 |
14 |
16 |
12 |
89.79 |
|
Fear |
15 |
14 |
10 |
5 |
16 |
798 |
26 |
23 |
87.98 |
|
Surprised |
21 |
22 |
11 |
14 |
39 |
16 |
831 |
20 |
85.32 |
|
Disgusted |
13 |
12 |
18 |
24 |
26 |
32 |
39 |
791 |
82.83 |
|
Precision (%) |
88.95 |
89.33 |
88.43 |
89.63 |
85.26 |
85.62 |
84.88 |
87.6 |
|
|
Accuracy |
87.46 |
||||||||
Table (4): Perplexity matrix of wide-band spectrogram in RAVDEESS Dataset
|
Emotions |
Calm |
Neutral |
Happy |
Sad |
Angry |
Fear |
Surprised |
Disgusted |
Recall (%) |
|
Calm |
849 |
8 |
9 |
11 |
13 |
15 |
11 |
9 |
91.78 |
|
Neutral |
19 |
801 |
11 |
8 |
9 |
17 |
15 |
12 |
89.8 |
|
Happy |
14 |
12 |
707 |
16 |
13 |
12 |
13 |
9 |
88.82 |
|
Sad |
8 |
6 |
6 |
895 |
21 |
18 |
17 |
15 |
90.77 |
|
Angry |
8 |
11 |
8 |
14 |
847 |
8 |
16 |
9 |
91.97 |
|
Fear |
11 |
12 |
7 |
2 |
22 |
822 |
16 |
15 |
90.63 |
|
Surprised |
21 |
22 |
11 |
11 |
22 |
19 |
848 |
20 |
87.06 |
|
Disgusted |
13 |
12 |
18 |
22 |
26 |
28 |
30 |
806 |
84.4 |
|
Precision (%) |
90.03 |
90.61 |
90.99 |
91.42 |
87.05 |
87.54 |
87.78 |
90.06 |
|
|
Accuracy |
89.44 |
||||||||
Fig. 3. Comparison of VGGNet 16, ResNet 152, AlexNet, LeNet 5 on RAVDEESS dataset
As illustrated in Figure 3, the proposed method utilizing the ResNet152 network achieved an accuracy of 89.44%, making it superior to all other methods evaluated. Consequently, this approach is classified as the type of CNN employed in the proposed framework. In the next evaluation, we will compare and analyze the proposed method alongside similar techniques. In our proposed framework, three experiments were conducted on the input data. The first set of experiments focused on unimodal biometrics by analyzing speech and facial streams independently, employing feature extractors. In the second and third series of experiments, we assessed the fusion of these two biometrics—speech and facial streams. This fusion was first carried out using feature extractors and then without them, to evaluate the impact of feature extraction on overall performance. Table 5 presents a comparison between the method that utilized normal extractors and the one that benefited from segmentation improvement provided by GWO. According to Table 5, the proposed method that implemented segmentation yielded better results than the extraction method that did not use segmentation. In both methods, the emotion of disgust achieved the highest recognition rate, with the recognition accuracy percentage showing an improvement of 1.2% when segmentation was applied compared to the method without it.
As illustrated in Table 6, the proposed method achieves higher accuracy than the other investigated methods, thanks to the integration of new information and information fusion for classification.
Table (5): Comparison of recognition accuracy for different feature extraction methods
|
Feature Extraction |
Calm |
Neutral |
Happy |
Sad |
Angry |
Fear |
Surprised |
Disgusted |
Total recognition accuracy |
|
Common Methods PCA and MFCC |
85% |
88.1% |
73.8% |
78.6% |
81% |
78% |
78.6% |
81% |
81.7% |
|
Extraction Method with GWO Segmentation |
85.7% |
89.3% |
75.1% |
79.7% |
81.8% |
79.1% |
79.7% |
81.8% |
82.9% |
Table (6): Comparison of recent models
|
Method |
Accuracy (%) |
|
[38](2021) |
82.82 |
|
[45] (2021) |
84.3 |
|
[40] (2022) |
81.58 |
|
[41] (2022) |
82.8 |
|
[46] (2022) |
83.6 |
|
[42] (2024) |
87.5 |
|
[44] (2024) |
87.61 |
|
Proposed Model |
89.44 |
[1] Submission date:07, 02, 2024
Acceptance date:04, 10, 2025
Corresponding author: Sara Motamed, Department of Computer Engineering, Fouman and Shaft Branch, Islamic Azad University, Fouman, Iran
[i] https://datasets.activeloop.ai/docs/ml/datasets/ravdess-dataset/