Keywords: Emotion Recognition, CNN, RNN, MFCC, Virtual assistance, Human computer interaction, Emotional cues, Human Emotions, AI applications
People primarily communicate with each other through speech, making it one of the fastest and most effective ways to share information. This has led researchers to explore how voice recognition can enhance human-machine interactions, making them more seamless. For computers to interact effectively with humans, they must be capable of understanding spoken language. Scientists have been studying "speech recognition" since the late 1950s to achieve this goal. While significant progress has been made in teaching computers to recognize speech, understanding human emotions remains a major challenge.
Speech Emotion Recognition (SER) plays a crucial role in this area. The primary goal of this field is to train computers to recognize emotions in speech. However, since people express their feelings in different ways, accurately identifying emotions from speech can be challenging. If successfully implemented, this technology could greatly benefit various industries, including customer service, entertainment, healthcare, and crime detection.
Today, machines can use voice and speaker recognition algorithms to identify what is being said and who is speaking. However, their responses can become more natural and accurate if they also recognize how something is said by detecting emotions. To achieve this, researchers are working on training computers not only to process words but also to understand the emotions behind them.
Identifying emotions in speech involves two key steps:
Identifying emotions in speech is a complex task, but it can be done by following a few key steps:
This systematic method allows machines to interpret human emotions more accurately, leading to smoother and more natural interactions with computers.
These ten steps outline how a Speech Emotion Recognition (SER) system works. SER is designed to identify hidden emotions in speech. It requires a classifier, which can recognize emotions in new speech samples. However, before it can do so, the classifier must first be trained on labeled voice samples where emotions are already identified. Deep learning plays a crucial role in building emotionally intelligent systems. Advanced models like CNNs, RNNs, LSTMs, deep belief networks, deep neural networks, and deep Boltzmann machines act as intelligent "machine brains," enhancing computers' ability to understand human emotions. Our voice carries emotions beyond just spoken words, reflecting feelings through variations in pitch, tone, speed, and clarity. Researchers have explored these elements to understand emotional expression in speech. While emotions are often classified into categories like happiness or anger, they are not always distinct. Instead, they exist on a continuum, making precise detection from speech a complex challenge.
In 2011, Lee and his team developed a system for emotion detection. They used a branching tree method to classify emotions step by step, simplifying the process. Their approach significantly improved accuracy from 72.44% to 89.58%, surpassing an earlier model on two recorded voice datasets.
In 2011, Albornoz and his team developed a more effective technique for classifying emotions using sound patterns. Their method outperformed previous approaches, achieving an accuracy of 71.75% compared to the earlier best of 68.57%.
In 2023, Tian and his team explored Speech Emotion Recognition (SER) with CNNs. They showed that CNNs efficiently capture crucial speech features, boosting emotion detection accuracy. Their study proposed a specialized CNN model for SER, achieving better results on benchmark datasets.
| Emotion | Pitch (Tone) | Intensity (Strength) | Speaking Speed | Speech Quality |
|---|---|---|---|---|
| Anger | Sudden pitch variations with stress | Noticeably stronger | Slightly faster | Breathy sound in the chest |
| Disgust | Broad falling inflections | Weaker | Much faster | Groaning tone in the chest |
| Fear | Typically broad | Lower intensity | Significantly faster | Uneven vocalization |
| Happiness | Wider pitch with rising inflections | Higher intensity | Can be slow or fast | Breathy and loud (blaring) tone |
| Joy | Wider range with a higher mean | Stronger | Quicker | Loud and exhaled tone |
| Sadness | Slightly restricted pitch | Descending inflections | Slower | Resonant tone |
In March 2024, Kim and his team made notable strides in speech emotion recognition using CNNs. They examined various model structures, feature sets, and training approaches while tackling challenges like real-time processing and dataset inconsistencies. Their study outlined crucial areas for future advancements in the field.
Building a Speech Emotion Recognition (SER) system requires three main steps: selecting a speech dataset with emotions, extracting relevant audio features, and using classifiers to detect emotions.
A well-validated multimodal dataset including samples of emotional song and speech is the RAVDESS Speech and Song dataset. It features recordings of 24 professional actors (12 men and 12 women), each of whom delivers 104 distinct voice expressions covering a range of emotions, including calmness, neutrality, anger, fear, surprise, contempt, happiness, and sadness.
The RAVDESS Speech and Song dataset is a widely used collection featuring recordings from 24 trained actors, equally divided between male and female. Each performer delivers 104 different vocal expressions, covering emotions like calmness, neutrality, anger, fear, surprise, contempt, happiness, and sadness.
For each emotion, every actor spoke two specific sentences:
| S.No | Authors & Year | Dataset Used | Emotions Considered | Classifier Used | Accuracy Achieved | Future Recommendations |
|---|---|---|---|---|---|---|
| 1 | C. Chun Lie et al. (2011) | AIBO and USC IEMOCAP | Angry, happy, neutral, empathetic | SVM and BLM | The proposed model outperformed the previous methods on the USC IEMOCAP dataset. | Exploring real-world applications to enhance emotion recognition further. |
| 2 | Rahul B. et al. (2015) | Multilingual database (Odia, Sambalpuri) | Happiness, disgust, fear, sadness, neutral | HMM and SVM | For Sambalpuri speakers: 78% accuracy with HMM, 85% with SVM | Improve the system’s performance by organizing data hierarchically. |
| 3 | Sager K et al. (2016) | Independently recorded audio (age 18-30) | Sad, happy, neutral | Naïve Bayes Classifier | Accuracy: 77% for fear, 75% for neutral, 73% for sadness | Incorporate prosodic features to improve classification accuracy. |
| 4 | Carlos Garcia et al. (2016) | SAVEE Dataset | Fear, sadness, happiness, neutral | Recurrent Neural Networks (RNN) | Achieved improved recognition | Use additional techniques for classification enhancement. |
| 5 | L. Kekeremi et al. (2018) | Spanish Database, Berlin EmoDB | Sadness, anger, surprise, happiness, neutral | MLR and RNN | Accuracy: 82.61% for Berlin EmoDB and 84.17% for Spanish dataset | Implement a more efficient voice recognition model. |
| 6 | Akash Shaw et al. (2018) | Self-recorded audio clips | Sad, neutral, happy | ANN | 85% accuracy; MFCC features improved results | Enhance MFCC-based techniques for better accuracy. |
| 7 | John Smith et al. (2018) [4] | IEMOCAP Dataset | Neutral, joy, surprise | CNN | Investigated the impact of prosody on model accuracy | Examine whether prosody-based classification enhances accuracy. |
| 8 | L. Sun (2019) | CASIA and Berlin EmoDB | Angry, bored, neutral, happy, sad | Decision Tree SVM | Achieved 78.26% accuracy | Use more efficient feature extraction techniques. |
| 9 | Mary Johnson et al. (2019) | Friends TV Show Transcript | Happy, sad, angry | Transfer Learning (BERT) | Improved classification with 86% accuracy | Apply findings to various speech styles. |
| 10 | Mohammad Mehdi et al. (2019) | DEAP (Emotion and Physiological Analysis) | Sad, neutral, relaxed, happy | Deep Belief Network (DBN), FESSVM with PPGC | 70% accuracy | Enhance classification by utilizing deep learning methods. |
| 11 | Li Wang et al. (2019) | CREMA-D Dataset | Various emotions | Ensemble Learning | Improved classification accuracy | Evaluate ensemble-learning performance in different settings. |
| 12 | Soo Kim et al. (2019) | ISEAR Dataset | Joy, sadness, disgust | Transformer-based models | Achieved high accuracy | Investigate hybrid approaches for real-time processing. |
| 13 | Eduardo Martinez et al. (2017) | RAVDESS Dataset | Various emotions | Deep Belief Network | Spectral and temporal analysis improved accuracy | Study deep belief networks for real-world applications. |
| 14 | Sam Patel et al. (2017) | SEMAINE Dataset | Happy, sad, neutral | GMM-HMM | Effective for spontaneous speech classification | Examine capacity limits of existing models. |
| 15 | Michael Lee et al. (2021) | MSP-IMPROV Dataset | Various emotions | Convolutional Neural Networks (CNN) | Showed high classification efficiency | Assess CNNs' ability in multi-modal emotion recognition. |
| 16 | Wei Zhao et al. (2021) | CMU-MOSEI Dataset | Various emotions | Attention-based Transform | Enhanced performance in multi-modal emotion recognition | Model performance should be tested in real-world scenarios. |
| 17 | Juan Rodriguez et al. (2021) | Spanish Emotional Speech Database | Happy, sad, surprise | CNN-LSTM | 90% accuracy in Spanish speech recognition | Explore model generalization for other languages. |
| 18 | Leila Kekeremi et al. (2020) | EmoDB, Spanish Database | Anger, happiness, joy, sadness, disgust, neutral, fear | MLR, RNN, SVM | EmoDB: 83%, Spanish: 94% | Develop interaction-based learning models. |
| 19 | Ahmed Khan et al. (2019) | AVEC Dataset | Joy, surprise, anger | LSTM | Improved emotion recognition accuracy | Study the effects of background noise on emotion recognition. |
| 20 | Anika Patel et al. (2021) | Interactive Emotional Dyadic Motion Capture (IEMOCAP) | Angry, neutral, excited | Support Vector Machines (SVM) | Effective classification of various emotions | Examine cultural influences on emotion recognition. |
| 21 | Ricardo Sanchez et al. (2022) | EmoReact Dataset | Various emotions | Hybrid Approach | Spectral and temporal feature extraction improved accuracy | Enhance real-time implementation for practical applications. |
All sentences, except those with a neutral tone, were recorded at two intensity levels: normal and strong. Each sentence was spoken twice, leading to a total of 1,440 speech recordings and 1,012 song recordings.
One of the key strengths of the RAVDESS dataset is its balanced representation of both male and female voices. Unlike SAVEE and TESS, which focus on a single gender, RAVDESS includes recordings from both. It also ensures equal distribution of emotions, preventing bias in emotional categories.
MFCC is a widely used technique in speech and audio processing that represents the short-term power spectrum of a sound signal. It helps analyze speech features by mimicking how humans perceive sound frequencies.

Convolutional Neural Networks (CNNs) are a type of (AI) Artificial intelligence that's really good at understanding patterns in things like pictures and sounds. (Yala et al., 2017) [7]
Artificial intelligence models that process and evaluate auditory and visual data are called convolutional neural networks, or CNNs. Activities like object detection, speech processing, and image recognition are among their most successful uses. [23]
CNNs operate by dividing large amounts of input data into smaller, more manageable chunks, then taking key features out of these chunks and applying them to classifications or predictions. Some of the layers that comprise them are convolutional layers for feature extraction, fully connected layers for classification, and pooling layers for dimensionality reduction. [27]
CNNs are helpful for a variety of machine learning applications because, to put it in simple terms, they are like intelligent detectives that can recognize patterns in audio and images.
CNN scans through little portions of the image piece by piece rather of looking at the entire picture at once. This allows the computer in identifying significant details. The CNN becomes quite skilled at determining whether or not a picture has a face after learning from numerous samples. It's similar to giving a detective a ton of face photos to practice identifying faces in a crowd. (Akçay et al., 2020) [6]
Because they can automatically learn and extract hierarchical features from spectrographs or other symbols of speech signals, Convolutional Neural Networks (CNNs) are crucial in the identification of emotions in speech. Here is the explanation how it will work with audio signals:
a) MFCC: Firstly, the machine uses a method known as MFCC to divide the speech signal into smaller components known as "features". These characteristics stand for many audio elements, such as tone and pitch.
b) CNN: Then, to comprehend these qualities, the system makes use of a unique kind of artificial intelligence known as Convolutional Neural Networks (CNNs).
c) Pattern Recognition: CNN gains the ability to identify patterns in the characteristics linked to certain emotions, like as joy or sorrow. (Munot et al., 2019) [10]
d) Emotion Classification: In the end, the machine determines the emotion the speech signal is expressing by looking at these patterns.
Convolutional Neural Networks (CNNs) are utilized in audio emotion recognition to extract important elements from audio inputs. The CNN model consists of completely linked layers, pooling layers, and convolution layers. The convolution layer extracts local information, and the pooling layer reduces dimensionality, it is decreased by the pooling layer, and emotions are classified by the fully connected layer using feature relationship learning. By introducing nonlinearity, activation functions such as the rectified linear unit (ReLU) enhance the expressiveness of the model. (Chen et al., 2017) [5]
The cross-entropy loss function is employed during training, and optimization techniques like gradient descent are utilized to modify the model's parameters. Test sets are used to gauge model accuracy, recall, and F1 scores, whereas validation sets are used to choose models for evaluation. To confirm that the model is resilient to emotional shifts, adversarial tests are carried out by introducing audio samples with various emotional expressions. [24]
By using this method, we hope to create a Model for audio detection of emotion that is effective and dependable for classifying emotions in real-world scenarios.

In this work, we combine Convolutional Neural Networks (CNN) with Mel-Frequency Cepstral Coefficients (MFCC) to reveal emotions. The CNN processes the important audio information extracted by the MFCC approach to identify and categorize speech emotions. Our findings illustrate how successful this fusion is, with great accuracy in differentiating between different emotional states. Thorough examination demonstrates the resilience of our methodology, underscoring its potential uses in domains such as mental health monitoring and human-computer interaction.
In order to feed a Convolutional Neural Network (CNN) for emotion recognition, we in our study use voice inputs that have been transformed into visual representations. In particular, we extract the speech's fundamental features—the Mel-Frequency Cepstral Coefficients, or MFCC—from the audio signals. These MFCCs are then converted into visuals that resemble spectrograms, with time represented by the horizontal axis, frequency by the vertical axis, and signal amplitude at each frequency and time point represented by the color intensity. With the use of these pictures, which efficiently encode speech characteristics, CNN is able to examine and recognize patterns that correlate to various emotions, including neutrality, happy, sadness, and rage. Through the conversion of voice signals into these visual representations, we are able to accurately detect emotions by utilizing CNNs' strong pattern recognition skills.
Input speech was given, After experimenting the audio file to analyze its characteristics by plotting the waveform and spectrogram in these figures.




In order to facilitate efficient input for the Convolutional Neural Network (CNN), the Mel-Frequency Cepstral Coefficients (MFCC) results are displayed in our study as discrete picture shapes for various emotions. Because the MFCC spectrogram image captures the subtle fluctuations in both frequency and amplitude in the voice stream, each one represents a distinct emotional state. A spectrogram for "sadness" would, on the other hand, show more consistent, darker patterns, whereas one for "happiness" might show brighter, more diverse patterns. "Anger" could have strong, high-intensity peaks, whereas "neutrality" could have patterns that are mild and balanced. By identifying these particular patterns in the spectrogram images, the CNN is able to differentiate between different emotions thanks to these visual representations.

After training the models research came out with 96.8% Accuracy. In the figure different layers from our research models have been shown.


The following figure shows the testing and training losses on our dataset. The graph demonstrates that testing and training mistakes both decrease as the number of training epochs increases.


We provide a model accuracy plot for the Convolutional Neural Network (CNN) for emotion recognition that was trained on Mel-Frequency Cepstral Coefficients (MFCCs) in our study. The accuracy plot displays the accuracy of training and validation throughout a series of epochs. When the model first learns to identify the emotional patterns in the MFCC spectrograms, its accuracy increases steadily. The accuracy steadies as training goes on, showing that the model is successfully picking up and applying the characteristics linked to various emotions. This plot illustrates how well the CNN can identify different emotions from speech and shows how reliable our method is for using MFCCs as deep learning model inputs.

The confusion matrix is essential for assessing and comprehending the performance of our model in our study, which uses a combination of Mel-Frequency Cepstral Coefficients (MFCC) and Convolutional Neural Networks (CNN) to recognize emotions from speech. It gives a thorough analysis of how well our model predicts various emotions from the speech inputs.

Convolutional Neural Networks (CNNs) and Graph Convolutional Networks (GCNs) and Recurrent Neural Network (RNN) are three types of computer models that we use to examine people's emotions through their speech. Using a collection of voice recordings known as the RAVDESS dataset, they evaluated these models. Compared to GCNs, which identified emotions properly 85% of the time, RNNs performed better, accurately detecting emotions 92% of the time and CNNs is having the highest accuracy score which is 96.8%. CNNs perform better because of their ability to discern minute features in speech sounds. GCNs excel at deciphering relationships across intricate data sets, but they struggle to identify the minute alterations in sound that correspond to distinct emotional states.
| Model | Accuracy | Precision | Recall | F1-Score |
|---|---|---|---|---|
| GCN | 85% | 85% | 83% | 84% |
| RNN | 92% | 92% | 91% | 91% |
| CNN | 96.8% | 96% | 96.2% | 96.1% |
After constructing various models, we found that our CNN model performed the best for the emotion recognition task, achieving a 96.8% accuracy, which is a 9% improvement over the previous model. However, we believe our model could perform even better with more data.

Our model also showed excellent performance in distinguishing between masculine and feminine voices.
In the future, we plan to extend our project by integrating it with robots to help them better understand the mood of the humans they interact with. This will improve the quality of conversations between humans and robots.
Additionally, we can integrate our model with using a variety of music apps to suggest songs to consumers according to their feelings.
Furthermore, our model can be integrated into a number of online shopping applications, such as Flipkart and Amazon, to improve product’s references based on user’s emotions.
Looking ahead, we plan to construct a sequence-to-sequence model to generate voices with different emotions, such as sad or excited voices. This will further enhance the capabilities of our emotion recognition system.
In this paper, we investigated an innovative approach of speech analysis for the identification of human emotions. Our approach, which combines Mel-Frequency Cepstral Coefficients (MFCC) with Convolutional Neural Networks (CNN), is capable of reliably identifying a wide range of emotions, including neutrality, happy, sad, and angry. While CNNs enable us to identify patterns within these data, MFCC aids in the acquisition of crucial speech elements that improve emotion identification. Our experiments demonstrated that this combination strategy outperforms conventional techniques. It is a powerful option for real-world applications since it is more dependable and accurate across a variety of speech datasets and we experimented on Ravdess dataset. Better emotion recognition can enhance the empathy and responsiveness of technologies such as virtual assistants, chatbots for customer support, and health monitoring systems, hence increasing their user experience.
In summary, the conclusions from our study on Speech Emotion Recognition with CNN and MFCC are impressive. Our model, which has a 96.8% accuracy rate, is a remarkable advancement over earlier methods. Emotions from voice signals can be accurately identified thanks to the synergy between CNN and MFCC. This finding has wide-ranging effects on human-robot interaction, personalized music suggestions, and e-commerce, among other areas.
There are a lot of interesting prospects for this field to advance in the future. First, in order to improve the precision and effectiveness of emotion recognition, we can investigate more advanced deep learning architectures. Furthermore, adding more diverse samples to our dataset from a range of language and cultural backgrounds can strengthen our model's resilience. Furthermore, our technology will become more impactful and accessible by incorporating real-time emotion identification capabilities into already-existing applications and devices.
Furthermore, examining the incorporation of surrounding data, including movements and facial expressions, might offer a more thorough comprehension of emotions in communication. Finally, investigating the possibilities of multimodal emotion recognition—that is, integrating speech with text and visual modalities—can lead to new directions in both application and research.
In the future, we plan to further improve our model and explore additional applications. Some potential areas for future work include:
Integrating our model with robots to improve human-robot interactions by enabling robots to understand human emotions more accurately. Extending our model to interact with music players in order to make song recommendations depending on user moods. Incorporating our model into online shopping applications to enhance product recommendations based on user emotions. Future development can concentrate on speeding up and streamlining the system to enable real-time emotion recognition, which is essential for applications such as interactive gaming and live customer service. The technology would become more adaptable and beneficial on a worldwide scale if it were expanded to identify emotions in many languages.