Attentive Convolutional Neural Network based Speech Emotion Recognition: A Study on the Impact of Input Features, Signal Length, and Acted Speech
Michael Neumann, Ngoc Thang Vu

TL;DR
This study evaluates an attentive convolutional neural network for speech emotion recognition, analyzing how input features, signal length, and speech type affect performance, and achieves state-of-the-art results on improvised speech data.
Contribution
It introduces an attentive CNN model with multi-view learning for speech emotion recognition and systematically examines the impact of various input factors.
Findings
Recognition performance varies with speech data type.
State-of-the-art results achieved on improvised speech.
Performance is independent of input feature choice.
Abstract
Speech emotion recognition is an important and challenging task in the realm of human-computer interaction. Prior work proposed a variety of models and feature sets for training a system. In this work, we conduct extensive experiments using an attentive convolutional neural network with multi-view learning objective function. We compare system performance using different lengths of the input signal, different types of acoustic features and different types of emotion speech (improvised/scripted). Our experimental results on the Interactive Emotional Motion Capture (IEMOCAP) database reveal that the recognition performance strongly depends on the type of speech data independent of the choice of input features. Furthermore, we achieved state-of-the-art results on the improvised speech data of IEMOCAP.
| CNN | Attentive CNN | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Features (dim.) | SV | MV | SV | MV | ||||||||
| min | max | min | max | min | max | min | max | |||||
| logMel (26) | 61.71 | 60.40 | 62.66 | 62.06 | 61.08 | 62.86 | 61.95 | 61.19 | 63.85 | 62.11 | 61.41 | 63.34 |
| MFCC (13) | 61.31 | 60.85 | 61.94 | 61.35 | 60.85 | 62.28 | 60.85 | 60.10 | 61.41 | 61.35 | 60.68 | 62.12 |
| eGeMAPS (25) | 60.25 | 59.41 | 60.94 | 60.28 | 59.34 | 60.93 | 60.26 | 59.45 | 61.27 | 61.27 | 60.50 | 62.12 |
| Prosody (7) | 56.34 | 55.82 | 57.57 | 56.33 | 56.02 | 56.88 | 57.11 | 56.17 | 58.84 | 57.12 | 56.61 | 57.71 |
| CNN | Attentive CNN | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Features (dim.) | SV | MV | SV | MV | ||||||||
| min | max | min | max | min | max | min | max | |||||
| logMel (26) | 51.07 | 48.78 | 52.99 | 51.64 | 50.73 | 52.78 | 52.64 | 51.27 | 53.53 | 51.70 | 51.16 | 52.58 |
| MFCC (13) | 52.35 | 51.22 | 52.97 | 53.01 | 52.37 | 53.97 | 53.19 | 52.84 | 54.21 | 52.72 | 52.31 | 53.45 |
| eGeMAPS (25) | 51.84 | 50.93 | 53.98 | 52.82 | 52.15 | 54.25 | 52.31 | 51.16 | 54.16 | 53.19 | 52.57 | 54.31 |
| Prosody (7) | 49.17 | 48.46 | 50.06 | 48.76 | 48.16 | 49.65 | 48.69 | 47.71 | 49.70 | 49.02 | 48.16 | 50.25 |
| CNN | Attentive CNN | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Features (dim.) | SV | MV | SV | MV | ||||||||
| min | max | min | max | min | max | min | max | |||||
| logMel (26) | 55.38 | 54.58 | 56.52 | 55.92 | 55.24 | 56.85 | 54.86 | 54.14 | 55.57 | 56.10 | 55.24 | 56.85 |
| MFCC (13) | 55.33 | 54.70 | 55.82 | 55.74 | 54.76 | 57.02 | 55.12 | 54.02 | 55.55 | 55.40 | 54.46 | 56.64 |
| eGeMAPS (25) | 54.73 | 52.64 | 55.33 | 54.71 | 53.71 | 56.00 | 54.93 | 54.12 | 55.47 | 54.78 | 54.46 | 55.43 |
| Prosody (7) | 48.90 | 48.57 | 49.23 | 48.79 | 47.73 | 49.68 | 48.99 | 48.36 | 49.81 | 49.13 | 48.65 | 49.49 |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Attentive Convolutional Neural Network based Speech Emotion Recognition: A Study on the Impact of Input Features, Signal Length, and Acted Speech
Abstract
Speech emotion recognition is an important and challenging task in the realm of human-computer interaction. Prior work proposed a variety of models and feature sets for training a system. In this work, we conduct extensive experiments using an attentive convolutional neural network with multi-view learning objective function. We compare system performance using different lengths of the input signal, different types of acoustic features and different types of emotion speech (improvised/scripted). Our experimental results on the Interactive Emotional Motion Capture (IEMOCAP) database reveal that the recognition performance strongly depends on the type of speech data independent of the choice of input features. Furthermore, we achieved state-of-the-art results on the improvised speech data of IEMOCAP.
Index Terms: Speech Emotion Recognition, Convolutional Neural Networks
1 Introduction
Speech emotion recognition has been attracting increasing attention recently. It is a challenging task due to the complexity of emotional expressions (affected by many factors such as age [1] and gender [2]) and the lack of a large dataset.
Deep learning (DL) has become a state-of-the-art method for many tasks such as speech recognition, computer vision and natural language processing (NLP). Convolutional neural networks (CNN) proposed in [3, 4] are a special kind of neural networks that have been successfully used not only for computer vision but also for speech [5, 6, 7]. For speech recognition, CNN proved to be robust against noise compared to other DL models [8]. Furthermore, [9] showed that CNNs are suitable for small memory footprint keyword spotting due to the parameter sharing mechanism.
More recently, attention based recurrent neural networks have been successfully applied to a wide range of tasks such as handwriting generation [10], machine translation [11], image caption generation [12] and speech recognition [13]. Researchers have also started to use attention mechanisms for CNNs in NLP tasks [14, 15, 16]. This seems to be helpful when the input signal is rather long or complex.
DL has been shown to significantly boost emotion recognition performance [17, 18, 19, 20, 21, 22]. Recently, several papers [23, 24] presented CNNs in combination with Long Short-Term Memory models (LSTM) to improve speech emotion recognition based on log Mel filter-banks (logMel) or raw signal. [24] demonstrated an end-to-end training from raw signal. This model, however, overfits easily due to the small amount of training data. Well known features, like MFCCs and logMel are fairly simple to extract and have a small number of dimensions which might be more suitable to a low-resource setting than raw signal.
In this paper, we propose an attentive convolutional neural network (ACNN) for emotion recognition which combines the strengths of CNNs and attention mechanisms. We focus on the comparison between different feature types. Furthermore, while previous models employed the complete signal to make predictions which costs recognition delays, we are interested in the robustness of the system against the signal length, i.e. finding the answer to the question: how long does the system need to wait to make an accurate prediction? Moreover, we analyze extensively performance differences between improvised and scripted speech. Finally, we report state-of-the-art results on the improvised subset of the IEMOCAP database.
2 Model
The model we apply to predict emotional categories from speech is depicted in Figure 1. It consists of two main parts: a CNN with one convolutional layer and one pooling layer and an attention layer. The CNN learns the representation of the audio signal, while the attention layer computes the weighted sum of all the information extracted from different parts of the input. The output from the pooling layer and the attention vector are then fed into a fully connected softmax layer.
2.1 Convolutional neural network
The input to the CNN is an audio signal divided into overlapping segments represented by a -dimensional feature vector. Thus, for each utterance, we form a matrix as input. For the convolution operation we use 2D kernels (with width ) spanning all features. The following equation expresses this operation:
[TABLE]
After the convolution, we use max pooling to find the most salient features. Then, all feature maps are concatenated to one feature vector which is the input to the softmax layer.
2.2 Attention mechanism
For each vector in a sequence of inputs , the attention weights can be computed as follows
[TABLE]
where is the scoring function. In this work, is the linear function , where is a trainable parameter. The output of the attention layer, , is the weighted sum of the input sequence.
[TABLE]
Our intuitions behind using an attention mechanism for emotion recognition are two-fold: a) speech emotion recognition is related to sentence classification with emotional content being differently distributed over the signal and b) the emotion of the whole signal is a composition of emotions from different parts of the signal. Therefore, attention mechanisms are suitable to first weight the information extracted from different pieces of the input and then combine them in a weighted sum. However, because the input signal is noisy, a max pooling layer is still helpful to only select the most salient features and filter noise. Therefore, we combine the CNN output vector after max pooling and the attention vector for the final softmax layer.
2.3 Multi-view learning
Emotions can be represented in two ways, either as categorical labels (e.g. angry, happy) or as continuous labels in the 2D activation/valence space. In [22], it is shown that multi-view (MV) learning with both categorical and continuous labels for training can improve prediction results. Similarly, we extend our model to incorporate activation and valence information.
3 Input Features
We use the following feature sets: (a) 26 logMel filter-banks, (b) 13 MFCCs, (c) a prosody feature set, and (d) the extended Geneva minimalistic acoustic parameter set (eGeMAPS). For all feature sets we apply mean and standard deviation normalization for each speaker independently.
We use the openSMILE toolkit [25] to extract all features. For logMel, MFCC, and prosody features, the audio signal is segmented into 25ms long frames with a 10ms shift. To extract logMel and MFCC features, a Hamming window is applied and the FFT with 512 points is computed. Then, we compute the logarithmic power of 26 Mel-frequency filter-banks over a range from 0 to 6.5kHz. Finally, a discrete cosine transform (DCT) is applied to extract the first 13 MFCCs. The prosody feature set consists of the following features: PCM loudness, envelope of F0 contour, voicing probability, F0 contour, local jitter, differential jitter, and local shimmer.
The eGeMAPS is a hand-crafted feature set proposed for affective computing [26]. It consists of 25 low level descriptors (LLDs) containing frequency- and energy-related parameters and spectral parameters.
4 Data
We use the Interactive Emotional Dyadic Motion Capture (IEMOCAP) database [27] for all experiments. It consists of about 12 hours of audiovisual data (speech, video, facial motion capture) from two recording scenarios: scripted play and improvised speech. Annotations are on turn level and consist of categorical labels (e.g. happy, sad, angry) and three continuous dimensions labeled with a discrete value from 1 to 5 each: activation, valence, dominance. For this study we use the same four categories as in [22, 28, 29, 30]: angry, happy, sad, and neutral. We merged *happy *and *excited *into one class: happy.111Class distribution: angry: 1,103; happy: 1,636; sad: 1,084;
neutral: 1,708 To be comparable with related work and to find out more about differences between *improvised *and *scripted *speech, we take three subsets from the data: only *improvised *(2,943 turns), only *scripted *(2,588 turns), and *all *sessions (5,531 turns).
The mean length of all turns is 4.46s (max.: 34.1s, min.: 0.6s). Since the input length for a CNN has to be equal for all samples, we set the maximal length to 7.5s (mean duration plus standard deviation). Longer turns are cut at 7.5s and shorter ones are padded with zeros.
We group activation and valence labels into three categories each for the MV approach. The same range mapping as in [31] is used: low: [1,2]; medium: (2,4); high: [4,5].
5 Experimental Results
5.1 Setup
The IEMOCAP data consists of five sessions with one male and one female speaker each. To train the models in a speaker-independent manner, we use leave-one-session-out cross validation. We take data from 8 speakers to construct training and development sets and use the remaining two speakers as test set.
We conduct two sets of experiments: Firstly, we compare the performance of CNN and ACNN (both with single-view (SV) and MV learning) regarding different input features. We run each combination of model, dataset and feature set six times with different random seeds. In doing so, we are able to report result variations due to random parameter initialization. We consider the averaged results produced this way more reliable than only reporting the single best number.
Secondly, we intend to find out how much information in terms of length of an utterance is sufficient to predict the affective state. We train and test our model with decreasing utterance length (by cutting the speech signals at 7, 6, 5, 4, 3, 2, and 1 seconds respectively).
5.2 Hyper-parameters
Our CNN models are implemented with the Theano library [32, 33]. We use stochastic gradient descent with an adaptive learning rate (Adam [34]). For regularization dropout is applied to the last hidden layer [35]. The system’s hyper-parameters are: 100 kernels with two different widths each (a total of 200 feature maps); a batch size of 30 for logMel and eGeMAPS, and 50 for MFCC; a dropout rate of 0.8; a pool size of 30, and stride of 3 for all configurations.
5.3 Experiment 1: Different data and feature sets
For all experiments, we report weighted accuracy (WA, accuracy on the whole test set). All results are shown in Tables 1-3. The tables present averaged results across six runs and the respective minimum and maximum accuracy.
Improvised speech (Table 1). The best performance is reached with logMel filter-banks. The ACNN with MV learning performs best with 62.11% mean accuracy. The single best result of 63.85% – which outperforms the state-of-the-art result of 62.85% reported by [36] – is reached with ACNN and SV learning.
Scripted speech (Table 2). Prediction results are in general notably lower than for *improvised *speech. For this dataset, MFCC and eGeMAPS features lead to higher accuracies than logMel. The best performance of 53.19% is achieved with the ACNN (MFCC with SV and eGeMAPS with MV).
All data (Table 3). MFCC and logMel features produce similar results, the accuracy with eGeMAPS is slightly lower, whereas prosody features perform notably worse. The best mean accuracy of 56.10% is achieved with logMel features using ACNN and MV learning. This model outperforms related work on the same data reported in [28, 29]. However, our focus does not lie on competing with state-of-the-art results (60.8% and 60.6% WA published in [22, 30]). In this work, we focus on the comparison of different input features, as well as the interpretation of our results and a thorough error analysis (cf. section 6).
Feature fusion. In addition to the results in Tables 1-3, we test early fusion of logMel and prosody features (only one run of each model configuration). These results show slight improvements for *scripted *data (53.69%, ACNN with MV), but decreasing results for the complete dataset and *improvised *speech. This suggests that the CNN model cannot learn more discriminatory features from this additional information. This might be due to the convolution kernels spanning all features.
All results show that prosody features alone perform worse than cepstral features like logMel and MFCC. In [37], the authors state that prosodic features are strongly speaker-dependent and that their use is debatable in speaker-independent emotion recognition. To confirm this with our results, a comparable speaker-dependent experiment would be necessary. We assume that the prosody feature set contains too little information (only seven features) to compete with the others. The performance differences between logMel, MFCC and eGeMAPS are in general small. This suggests that the CNN is able to learn high-level features equally from these different input features. To find out whether the same information is learnt by the model from different input, further investigation is needed. In general, MV learning improves the prediction only slightly, if at all. The attention mechanism brings slight improvements on the *improvised *and *scripted *data for most of the feature sets, but has almost no effect on the complete dataset. Further, we see that there is high variation between single runs of the same model/feature combination (up to 4.2% between min and max results).
Overall, our model performs better on free speech (improvised) than on acted speech independent of the choice of features. These findings show that speech emotion recognition can be very sensitive to the type of speech data (in line with findings by [38]). Hence, it is important to carefully select suitable training data for a particular application.
5.4 Experiment 2: Signal length
In the second experiment, we use the ACNN with MV learning to perform emotion recognition on signals with decreasing length. We use logMel and MFCC features because these performed best previously. Results are presented in Figure 2.
In general, accuracy decreases with shorter input. We observe a notable difference in the performance drop between *improvised *and *scripted *speech, especially with logMel features (3.4% and 7.5% drop). From these results we assume that in spontaneous speech, it is more likely that an utterance carries emotional content in the first seconds already, whereas in scripted speech it is more difficult to predict the emotion from only the first one or two seconds. In general, the results show that a relatively short snippet of a speech signal can be sufficient to perform emotion recognition with only a small accuracy loss. This is an important finding for the development of real-time applications which aim to make a prediction while the user is still speaking. Moreover, the training time of the system can be reduced.
6 Error analysis
We analyze the predictions of the ACNN (logMel features, MV learning). Figures 2(a)-2(c) show the confusion matrices.
For improvised speech (Fig. 2(a)) the most striking observation is that the model predicts happy for 49.12% *angry *samples. This counter-intuitive mistake becomes more plausible when looking at the activation information. Both *angry *and *happy *have a high activation level. Hence, the system’s frequent confusion is due to the fact that valence is harder to predict than activation [39, 24, 26]. The category *sad *is predicted best (73.01%). This observation is in line with findings by [37, 27]. Further, the neutral class is frequently confused with other classes. This seems plausible because the neutral state is located in the center of the activation-valence space, what makes the discrimination from other classes difficult.
In contrast, for *scripted *sessions the accuracy for *angry *is surprisingly high, and relatively low for sad and happy. In general, there are more errors in almost all classes. One reason for the high discrepancy in the class *angry *is the different class distribution (many *angry *samples in scripted sessions). But this does not explain all other differences. The analysis suggests that *improvised *speech is in general more variable and therefore makes it easier to discriminate affective states. Investigation with more data would be helpful to confirm these findings. Note the high percentage of *sad *samples predicted as *happy *(23.08%). To find out the reason for this frequent confusion, further analysis is necessary. The error distribution on the complete dataset (Fig. 2(c)) lies between those seen in Figures 2(a) and 2(b). There are similar patterns as for *improvised *data (the *angry/ happy *confusion is not as severe).
7 Conclusion
We presented a comparison of different features for speech emotion recognition using an attentive CNN. The results with logMel, MFCC, and eGeMAPS features are similar, but notably lower with prosodic features. A reason for that could be the smaller number of features in the latter. The similar results suggest that for a CNN the particular choice of features is not as important as the model architecture and the amount and kind of training data. We found strong differences between *improvised *and *scripted *speech, obtaining better results on the first. Experiments with decreasing signal length showed that the performance decreases slightly, but remains at a relatively high level even for short signals down to two seconds. Future work includes testing the presented ACNN on a different database.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] A. Mill, J. Allik et al. , “Age-related differences in emotion recognition ability: a cross-sectional study.” Emotion , vol. 9, no. 5, p. 619, 2009.
- 2[2] T. Vogt and E. André, “Improving automatic emotion recognition from speech via gender differentiation,” in Proc. Language Resources and Evaluation Conference (LREC 2006), Genoa , 2006.
- 3[3] A. Waibel, T. Hanazawa et al. , “Phoneme recognition using time-delay neural networks,” IEEE transactions on acoustics, speech, and signal processing , vol. 37, no. 3, pp. 328–339, 1989.
- 4[4] Y. Le Cun, B. Boser et al. , “Handwritten digit recognition with a back-propagation network,” in Advances in neural information processing systems , 1990.
- 5[5] O. Abdel-Hamid, A.-r. Mohamed et al. , “Applying convolutional neural networks concepts to hybrid nn-hmm model for speech recognition,” in 2012 IEEE international conference on Acoustics, speech and signal processing (ICASSP) . IEEE, 2012, pp. 4277–4280.
- 6[6] T. N. Sainath, A.-r. Mohamed et al. , “Deep convolutional neural networks for lvcsr,” in 2013 IEEE International Conference on Acoustics, Speech and Signal Processing . IEEE, 2013, pp. 8614–8618.
- 7[7] T. N. Sainath, B. Kingsbury et al. , “Deep convolutional neural networks for large-scale speech tasks,” Neural Networks , vol. 64, pp. 39–48, 2015.
- 8[8] D. Palaz, R. Collobert et al. , “Analysis of cnn-based speech recognition system using raw speech as input,” in Proceedings of Interspeech , 2015.
