---
title: "CTL-MTNet: A Novel CapsNet and Transfer Learning-Based Mixed Task Net for Single-Corpus and Cross-Corpus Speech Emotion Recognition"
authors:
  - "Xin-Cheng Wen"
  - "JiaXin Ye"
  - "Yan Luo"
  - "Yong Xu"
  - "Xuan-Ze Wang"
  - "Chang-Li Wu"
  - "Kun-Hong Liu"
doi: "10.24963/ijcai.2022/320"
url: "https://ijcai.org/proceedings/2022/320"
pdf: "https://ijcai.org/proceedings/2022/0320.pdf"
venue: "Proceedings of the Thirty-First International Joint Conference on Artificial Intelligence"
year: 2022
pages: "2305-2311"
track: "Main Track"
keywords:
  - "Humans and AI: Cognitive Modeling"
  - "Data Mining: Applications"
  - "Natural Language Processing: Speech"
  - "Humans and AI: Human-Computer Interaction"
  - "Machine Learning: Classification"
---

# CTL-MTNet: A Novel CapsNet and Transfer Learning-Based Mixed Task Net for Single-Corpus and Cross-Corpus Speech Emotion Recognition

Xin-Cheng Wen, JiaXin Ye, Yan Luo, Yong Xu, Xuan-Ze Wang, Chang-Li Wu, Kun-Hong Liu

*Proceedings of the Thirty-First International Joint Conference on Artificial Intelligence*, pages 2305-2311. DOI: [10.24963/ijcai.2022/320](https://doi.org/10.24963/ijcai.2022/320)

## Abstract

Speech Emotion Recognition (SER) has become a growing focus of research in human-computer interaction. An essential challenge in SER is to extract common attributes from different speakers or languages, especially when a specific source corpus has to be trained to recognize the unknown data coming from another speech corpus. To address this challenge, a Capsule Network (CapsNet) and Transfer Learning based Mixed Task Net (CTL-MTNet) are proposed to deal with both the single-corpus and cross-corpus SER tasks simultaneously in this paper. For the single-corpus task, the combination of Convolution-Pooling and Attention CapsNet module (CPAC) is designed by embedding the self-attention mechanism to the CapsNet, guiding the module to focus on the important features that can be fed into different capsules. The extracted high-level features by CPAC provide sufficient discriminative ability. Furthermore, to handle the cross-corpus task, CTL-MTNet employs a Corpus Adaptation Adversarial Module (CAAM) by combining CPAC with Margin Disparity Discrepancy (MDD), which can learn the domain-invariant emotion representations through extracting the strong emotion commonness. Experiments including ablation studies and visualizations on both single- and cross-corpus tasks using four well-known SER datasets in different languages are conducted for performance evaluation and comparison. The results indicate that in both tasks the CTL-MTNet showed better performance in all cases compared to a number of state-of-the-art methods. The source code and the supplementary materials are available at: https://github.com/MLDMXM2017/CTLMTNet.

## Full text

## 1 Introduction

As an important communication way among people, speech conveys emotion, pitch and rhythm to express their thoughts and intentions to others. The understanding of emotional information in a speech is important in predicting the speaker's tendencies and reactions. The prediction of human emotions from speech signals is known as the Speech Emotion Recognition (SER) task, which has been attracting more and more researchers' attention in the human-computer interaction research field.

In the SER task, different speech signals collected from various speakers tend to exhibit diverse characteristics, but there are implicit emotional attributes in the same emotion category. Therefore, the essential challenge in SER is to discover such common representations so as to build robust models to predict human speech emotions. Most of such models were developed based on Convolutional Neural Networks (CNN) and Long Short-Term Memory (LSTM) networks [Akc¸ay and O˘guz, 2020] with manually designed features to extract local spatial and temporal information from speech. Verbitskiy et al.[2021] designed a CNN architecture by carefully adjusting its hyperparameters to reduce the size of the SER model significantly. In addition, the Capsule Neural Network (CapsNet) [Sabour et al., 2017] was also first used by Wu et al.[2019] in the SER domain to process the spatial relationships of speech features in spectrograms due to its effectiveness in extracting spatial information. Liu et al.[2020] further embedded CapsNet into a local-global aware deep representation learning system to perform emotion classification. All these methods could lead to high performance on the SER task.

However, these SER methods were proposed without considering the scenarios where the training data (source corpus) and test data (target corpus) come from different speech corpora. In this case, the huge gap in the model's performance between the source and target corpora was ignored. This gap is mainly caused by the speech signals collected from different language environments, such as various vocal environments or different ways of expressing emotions. Consequently, different from the single-corpus task, which only needs to split the training and test data from the same corpus, the cross-corpus SER task tends to distinguish the training and test speech signals coming from different corpora. The weak potential correlation of data distributions between the source and target corpora makes the cross-corpus task more challenging than the single-corpus task.

In the cross-corpus task, researchers tried to unlabel the agglomerate data and align features from diversified spaces [Zhang et al., 2021]. For example, Domain Adversarial Neural Network (DANN) was proposed to efficiently align mismatched feature distributions [Abdelwahab and Busso, 2018]. A non-negative matrix factorization based transfer subspace learning method [Luo and Han, 2020] was designed to search for an optimally shared feature subspace for the source and target corpora, aiming to better eliminate the discrepancy between two distributions. Furthermore, the Variational Auto-encoding Wasserstein Generative Adversarial Network (VAW-GAN) implemented an emotional style transfer framework to bridge the signals across different data sets [Zhou et al., 2021].

Nevertheless, there are still some limitations to the proposed methods for the SER task, including:

1. There are no known algorithms that suit both the singlecorpus and cross-corpus SER tasks simultaneously.
2. Most methods utilized complex hand-crafted Low-Level Descriptors as inputs [Schuller et al., 2010], in which the extraction of salient features was highly dependent on the training data.
3. The mainstream transfer learning methods in SER can only learn 0-1 loss, which is not suitable to handle the multiclass classification problems related to the cross-corpus task directly.

To address these challenges, this paper proposes a CapsNet incorporated with the Transfer Learning-based Mixed Task Net (CTL-MTNet) to tackle the single- and cross-corpus SER tasks simultaneously. It is noted that in the traditional CapsNet, each capsule individually represents some properties of the entity, which require proper strategies to dynamically evaluate their importance. Therefore, for the singlecorpus task, the module is designed through the combination of Convolution-Pooling and Attention-based CapsNet (CPAC for short) to enhance the effectiveness of important capsules. CPAC calculates the emotion information scores to adjust the attention weights for each capsule entity accordingly. In this way, larger weights are assigned to the more informative capsule entities to promote the discriminative ability.

Besides, the Corpus Adaptation Adversarial Module (CAAM) is adopted in the cross-corpus task with the most commonly used Mel-Frequency Cepstral Coefficients (MFCCs) features. CAAM employs the Margin Disparity Discrepancy (MDD) loss [Zhang et al., 2019] and the crossentropy loss to balance the prediction results on sentiment feature alignment and emotion discrimination. The combination of CPAC and CAAM guarantees the high performance of our framework in both single- and cross-corpus SER tasks.

The main contributions are summarized as follows:

The first framework for handling two SER tasks simultaneously. To the best of our knowledge, CTL-MTNet is the first model that can handle the single-corpus and cross-corpus tasks simultaneously. It can not only extract the common features of the source corpus and the target corpus for the crosscorpus task, but also extract the individual emotional characteristics in the speech for the single-corpus task.

A novel high-level feature extraction component. The proposed CPAC mechanism inherits CapsNet's ability to capture local relevance and global contextual information, and generates high-level features. In addition, it can also identify important features contained in various capsules through the attention mechanism.

The design of CAAM module for the cross-corpus task. The CAAM module is embedded in our framework with the aid of MDD to learn the domain-invariant emotion representations with high robustness to bridge the gap between different corpora.

## 2 Methodology

## 2.1 The Framework of CTL-MTNet

As is shown in Fig.1, our model employs CPAC for the singlecorpus task, and CAAM for the cross-corpus task. MFCC features are extracted from audio data to serve as input features. The CNN-Pooling module generates relevant emotion features by capturing local correlations fromMFCC features. The Attention CapsNet module consists of a PrimaryCaps layer, a self-attention layer and a DigitCaps layer. The PrimaryCaps layer adjusts each sample from a scalar neuron to a vector neuron layer. The vector length is used to represent the probability of the capsule entity.

Furthermore, the self-attention layer calculates the correlation scores among capsules, aiming to guide the module to focus on the connections across different capsules at the DigitCaps layer. The attentional representations learned by the DigitCaps are iterated through the capsule routing algorithm to produce robust and discriminative high-level speech features, which are sequentially fed to the global average pooling layer. The final prediction is generated based on the softmax function in the single-corpus task.

Besides, the proposed algorithm employs the CAAMmodule to effectively deal with the cross-corpus task by extracting common speech features. For the MFCC features of the source corpus and the target corpus, CPAC extracts highlevel features with discriminative emotion-preserving representations, and MDD is used to further learn the domaininvariant emotion representation via feature alignment. After successive iterations, CAAM gradually generates representations with more discriminative emotion-preserving and a minor discrepancy between corpora.

## 2.2 CNN-Pooling Feature Learning

As is shown in Fig.1, three one-dimensional convolution blocks are connected to extract high-level features from MFCC further. Each CNN-pooling block consists of a 2D convolution operation followed by batch normalization, elu activation function, and an average pooling layer with a fixed dropout at a rate of 0.25. The kernel size of all convolutional layers is [3×3], and the number of filters is 64. The CNNpooling blocks act as a mapping of the MFCC features to a high-dimensional space for training capsules.

Figure 1: The architecture of CTL-MTNet. The upper and lower parts represent the cross-corpus task and the single-corpus task, respectively.

![Image](https://ijcai.org/proceedings/2022/fulltext/320/image_000000_4ef267b730182ecf6a90040e9e16b03edc1f8e4809c3b1b5581702c8b5ecb29a.png)

## 2.3 Attention CapsNet

Attentional vocalization in speech has a more significant role in perceiving human emotions. As is shown in Sabour et al.[2017], the state and properties of each capsule include many different types of instantiated parameters. Our method attempts to establish a relationship among different capsules by the attention mechanism. The output of the CNN-Pooling module is fed to the PrimaryCaps layer, which consists of a 2D convolution operation and the Squash function. The output of the PrimaryCaps layer is the product of the capsule dimension and the number of target capsules. It is equivalent to stacking multiple parallel conventional layers. The length of the input and output vectors of CapsNet represents the probability of an emotional entity. The Squash nonlinear function is employed as the activation function:

<!-- formula-not-decoded -->

Where j represents the specified capsule and sj represents the output of the convolution layer within the PrimaryCaps. The squash function ensures that the length of the short vector is reduced to almost zero, while the length of the long vector is scaled to close to but no more than one. The output of the PrimaryCaps layer is also adjusted to fit the vector neuron layer and is mapped to three identical linear mappings AQ, AK , AV . These mappings represent the queries, keys, and values of the self-attention mechanism, which all have the same dimension d. The output attention is then calculated by:

<!-- formula-not-decoded -->

With the aid of the attention mechanism, our CapsNet can further extract spatial information from the inputs, and establish connections for the representations extracted from the capsules. It provides distinguishing feature learning results for subsequent components. Moreover, the network computes the similarity among the sequence information to mine the emotional representation in the capsules. The input Idig of the DigitCaps layer is obtained from the attention scores and the output Opri of the PrimaryCaps layer:

<!-- formula-not-decoded -->

Then, the output is fed to the DigitCaps and Avepooling layers to further extract high-level speech features. The selfattention score is gradually improved through iterative refinement to establish the connections among different capsules. This approach provides more robust and discriminative representations for the subsequent operations in both single-corpus and cross-corpus tasks, thus improving the overall performance of our algorithm.

## 2.4 Margin Loss

In the single-corpus task, the output layer uses a vector other than scalar representation. The length of each vector represents the probability that the capsule entity exists. Since there are multiple emotions classes, the overall margin loss is the sum of all samples' loss, calculated by:

<!-- formula-not-decoded -->

where k represents the k-th class, Vk is the output of the DigitCaps and Avepooling layers, and Tk represents the predicted results by the softmax function. That is, Tk equals 1 if the sample is assigned to the k-th emotion class, and 0 otherwise. m+, m- and ρ are the hyperparameters, and they are set to 0.9, 0.1 and 0.5 respectively in this study.

## 2.5 Corpus Adaptation Adversarial Module

Different corpora contain unique characteristics, such as distinct environments or different accents. By discovering the commonness in human emotion, the difference in these unique characteristics can be bridged. The MDD-based CAAM is proposed to identify the cross-corpus emotion by mining the domain-invariant emotion features, so as to discover the feature subspace where the source corpus P and the target corpus Q can be aligned. In CAAM, the model is trained on a labeled sample set containing n samples drawn from the source corpus distribution, ˆ P = {(xi, yi)}ni=1 . An unlabeled sample set with m samples drawn from the target corpus distribution, ˆQ = {(xi)}mi=1 .

As is depicted in Fig.1, CAAM contains our proposed CPAC and two output modules. The CPAC acts as the feature extractor ψ to encode the MFCC features xs , xt from the source and target corpus, and then the high-level features ψ(xs ), ψ(xt ) are fed to the two output modules. The upper output module f contains one fully-connected (FC) layer of five dimensional neurons to classify speech emotions with the cross-entropy loss function L( ˆ P ; f ), which calculates the loss only in the source corpus by:

<!-- formula-not-decoded -->

Here n, f(ψ(xs )) and ys are the number of training examples, outputs of f with the softmax operation and target labels of training samples respectively.

The lower output module f ′ also contains the same FC layer to reduce the discrepancy in different corpora, and the MDD loss function Dγ ( ˆ P, ˆQ; f ′) is employed to calculate the loss between the labeled dataset from source corpus and the unlabeled dataset from target corpus, as defined by:

<!-- formula-not-decoded -->

where γ is a positive hyperparameter larger than 1, named margin factor. dispxt∼ ˆQ (f, f ′ ) and dispxs∼ ˆ P (f, f ′ ) are two margin disparities of the source and target corpus respectively. f ′ is trained to maximize the distribution discrepancy between two corpora, and f, ψ is trained to minimize the maximumMDD. The objective of adversarial learning for extracting corpus-confused features is formulated as follows:

<!-- formula-not-decoded -->

where η is the trade-off coefficient between the cross entropy loss function L( ˆ P; f) and the MDD loss function Dγ ( ˆ P, ˆQ; f ′). And η = 1, γ = 1.5 in this study.

## 3 Experiments

## 3.1 Experiment Setup

Dataset. In the experiments, four datasets in different languages are employed, including the Institute of Automation of Chinese Academy of Sciences (CASIA), Berlin Emotional dataset (EmoDB), Surrey Audio-Visual Expressed Emotion dataset (SAVEE), and Ryerson Audio-Visual dataset of Emotional Speech and Song (RAVDESS). The four datasets include 1200, 535, 480, and 1440 data. Their details are given in Tables S1 and S2 in the Supplementary Materials.

Feature Extraction. In this experiment, 39-dimensional MFCCs are extracted from the Librosa toolbox [McFee et al., 2015] to serve as the inputs with a frame shift of 0.0125 s and a frame length of 0.05 s.

Implementation and Training. The proposed algorithm is implemented with TensorFlow and optimized by using Adam algorithm [Kingma and Ba, 2014]. Especially, the gradient reversal layer (GRL) [Ganin and Lempitsky, 2015] is employed to train ψ to minimize the MDD loss function. Besides, all experimental results in the single-corpus task are based on the 10-fold cross-validation. Details about the training parameters are listed in Section C in the Supplementary Materials.

Evaluation Metrics. The weighted average recall (WAR) and the unweighted average recall (UAR) are adopted for performance comparisons. The former refers the mean of recall for different emotional classes and the latter is the weighted mean of recall with weights equal to class probability. Their definitions are given in Equations S1-S2 in the Supplementary Materials.

## 3.2 Comparison to State-of-the-art

The Single-Corpus Task. As there are various state-of-theart methods proposed for different datasets, we select three representative SER methods reporting the top three results on each dataset for the performance comparisons. Consequently, there are different algorithms employed as baselines for different datasets.

As is shown in Table 1, compared to other approaches, CTL-MTNet improves WAR by +4.85%, +3.65%, +0.83%, and +3.40% on CASIA, EMODB, SAVEE, and RAVDESS datasets, respectively. The results confirm that CPAC can establish the sentiment link among different capsules and provide a more robust representation for the SER task.

The Cross-Corpus Task. Our method is compared with some representative methods: CDAN [Long et al., 2017], DANN [Abdelwahab and Busso, 2018], and NMFTSL [Luo and Han, 2020]. The results in Table 2 show that our method outperforms all these methods with obvious advantages in all cases. The average UAR and WAR obtained from our method reach 39.90% and 41.57%, respectively. As is shown in Table 2, our method achieves +8.24% and +10.96% improvements of the average UAR and WAR compared to CDAN, +9.50%

Table 1: The performance comparisons on CASIA, EMODB, SAVEE and RAVDESS datasets.

|       | Reference                         | Methods   | WAR   |         | Reference               | Methods   | WAR   |
|-------|-----------------------------------|-----------|-------|---------|-------------------------|-----------|-------|
|       | [Sun et al., 2019]                | SVM       | 85.08 |         | [Yildirim et al., 2021] | SVM       | 87.66 |
|       | CASIA [Gao et al., 2019]          | CNN       | 87.90 | EMODB   | [Tuncer et al., 2021]   | SVM       | 90.09 |
|       | [Hong et al., 2020]               | LCNN      | 83.65 | EMODB   | [Ilyas, 2021]           | CNN       | 91.32 |
|       | Our approach                      | CPAC      | 92.75 | EMODB   | Our approach            | CPAC      | 94.97 |
|       | Reference                         | Methods   | WAR   | EMODB   | Reference               | Methods   | WAR   |
|       | [Hajarolasvadi and Demirel, 2019] | 3D-CNN    | 81.05 | EMODB   | [Kwon, 2021]            | CNN       | 85.00 |
| SAVEE | [Mustaqeem and Kwon, 2021]        | CNN       | 82.00 | RAVDESS | [Tuncer et al., 2021]   | SVM       | 87.43 |
| SAVEE | [Tuncer et al., 2021]             | SVM       | 84.79 | RAVDESS | [Ibrahim et al., 2021]  | ESN       | 74.54 |
| SAVEE | Our approach                      | CPAC      | 85.62 | RAVDESS | Our approach            | CPAC      | 90.83 |

Table 2: The performance comparisons on the CASIA, EMODB, and SAVEE datasets. The results of RAVDESS are given in Table S3 in the Supplementary Materials

| Source Corpus - Target Corpus   | Source Corpus - Target Corpus   | Source Corpus - Target Corpus   |   CASIA - EMODB |   EMODB - CASIA |   CASIA - SAVEE |   SAVEE - CASIA |   EMODB - SAVEE |   SAVEE - EMODB |   Average |
|---------------------------------|---------------------------------|---------------------------------|-----------------|-----------------|-----------------|-----------------|-----------------|-----------------|-----------|
| [Long et al., 2017]             | CDAN                            | UAR                             |           43.17 |           25.60 |           31.67 |           30.40 |           28.17 |           30.95 |     31.66 |
| [Long et al., 2017]             |                                 | WAR                             |           37.25 |           25.60 |           33.61 |           30.40 |           26.67 |           30.15 |     30.61 |
| [Abdelwahab and Busso, 2018]    | DANN                            | UAR                             |           46.13 |           25.90 |           26.67 |           29.50 |           25.67 |           28.58 |     30.41 |
| [Abdelwahab and Busso, 2018]    |                                 | WAR                             |           39.95 |           25.90 |           25.00 |           29.50 |           29.17 |           26.23 |     29.29 |
| [Luo and Han, 2020]             | NMFTSL                          | UAR                             |           30.25 |           28.50 |           34.79 |           33.88 |           24.17 |           29.14 |     30.12 |
| [Luo and Han, 2020]             |                                 | WAR                             |           29.21 |           28.50 |           34.67 |           33.88 |           24.52 |           28.89 |     29.95 |
| Our approach                    | CAAM                            | UAR                             |           54.58 |           39.60 |           40.17 |           34.60 |           34.33 |           36.14 |     39.90 |
| Our approach                    |                                 | WAR                             |           59.56 |           39.60 |           49.44 |           34.60 |           29.72 |           36.52 |     41.57 |

Table 3: The WAR results of the ablation study on the single-corpus task

| Method      | CNN-Pooling   | Self-Attention   | CapsNet   |   CASIA |   EMODB |   RAVDESS |   SAVEE |   Average |
|-------------|---------------|------------------|-----------|---------|---------|-----------|---------|-----------|
| Algorithm 1 | No            | Yes              | Yes       |   83.42 |   82.84 |     72.57 |   75.00 |     78.46 |
| Algorithm 2 | Yes           | No               | Yes       |   89.42 |   89.90 |     82.15 |   74.58 |     84.01 |
| Algorithm 3 | Yes           | No               | No        |   84.74 |   82.05 |     76.46 |   69.79 |     78.26 |
| CPAC        | Yes           | Yes              | Yes       |   92.75 |   94.97 |     90.83 |   85.62 |     91.04 |

Table 4: The ablation study on the cross-corpus task. The results of RAVDESS are given in Table S4 in the Supplementary Materials

| Method      | MDD   | Source Corpus - Target Corpus   |   CASIA - EMODB |   EMODB - CASIA |   CASIA - SAVEE |   SAVEE - CASIA |   EMODB - SAVEE |   SAVEE - EMODB |   Average |
|-------------|-------|---------------------------------|-----------------|-----------------|-----------------|-----------------|-----------------|-----------------|-----------|
| Algorithm 4 | No    | UAR                             |           39.83 |           24.80 |           25.83 |           26.40 |           25.50 |           25.26 |     27.94 |
| Algorithm 4 | No    | WAR                             |           33.59 |           24.80 |           23.61 |           26.40 |           25.83 |           25.25 |     26.58 |
| CAAM        | Yes   | UAR                             |           54.58 |           39.60 |           40.17 |           34.60 |           34.33 |           36.14 |     39.90 |
| CAAM        | Yes   | WAR                             |           59.56 |           39.60 |           49.44 |           34.60 |           29.72 |           36.52 |     41.57 |

and +12.28% compared to DANN, and +9.78% and +11.63% compared to NMFTSL. The excellent performance on the cross-corpus datasets verifies that our method can better fit the environments of various accents and cross-languages.

## 3.3 The Ablation Study

To verify the importance of each component of the proposed method, we conduct experiments in the following four aspects:

- (1) Algorithm 1 uses the convolutional network provided by the original CapsNet for feature learning;
- (2) Algorithm 2 removes the Self-Attention mechanism from the CPAC architecture;
- (3) Algorithm 3 replaces the capsule layer with LSTM to extract high-level features;

(4) Algorithm 4 removes the domain adaptation method for the target corpus and trains only with the source corpus.

The first three algorithms are adapted for the single-corpus task, and the last one is used for the cross-corpus task. As is shown in Table 3, on average, our proposed CPAC obtains a relative improvement of +12.58% on WAR compared with the results of Algorithm 1 using only the Conv-Pool component and +7.03% compared with Algorithm 2. These results validate the effectiveness of the CPAC module. Compared to Algorithm 3, applying the CapsNet-based module can beat the LTSM-based module by achieving +12.78% higher score. Similar results can be observed on all datasets, indicating the contribution of different components.

To verify the generalization ability of the CPAC module, we visualize the higher-order features in the test set using Al-

![Image](https://ijcai.org/proceedings/2022/fulltext/320/image_000001_48ba14b49aea72fc76db6e124395e4d378aac32e92c528d2ecf8259d85600dfd.png)

![Image](https://ijcai.org/proceedings/2022/fulltext/320/image_000002_59c3c84f4c4c5a7784f1eab0547df437e38e51597dd3927b82782e90b74d2d25.png)

(a) Algorithm 2

(b) CPAC

Figure 2: t-SNE visualization of the high-level features obtained by the Algorithm 2 on CASIA. The results of other ablation algorithms are given in Figure S2 in the Supplementary Materials

gorithms 1-3 based on the t-distributed stochastic neighbor embeddings (t-SNE) technique [Van der Maaten and Hinton, 2008]. As are shown in Fig.2(a) and 2(b), CPAC provides larger and clearer margins among different classes in the mapped feature subspace. Compared with the results of Algorithm 1 in Fig.S2(a) in the Supplementary Materials, CPAC effectively improves the discriminability of the Happy class. Compared with Algorithm 2, CPAC extracts the sentiment features in the audio more selectively, and the clustering effect of each category is tighter. Compared with Algorithm 3 in Fig.S2(c), CPAC corrects the misclassified samples in the Angry, Happy and Surprise classes to a large extent. Therefore, the CPAC structure has excellent generalization ability on a single corpus, which lays the foundation for excellent performance on the cross-corpus dataset.

As is shown in Table 4, compared with Algorithm 4, our algorithm achieves higher performance in all cases with the aid of MDD, gaining +11.96% and +14.99% improvements for the average UAR and WAR indices, and promotes the results to +14.85% and +25.97% higher in UAR and WAR scores in the best cases.

## 3.4 Visualization of Speech Representations

The t-SNE technique is employed to visualize the representations learned by CPAC from different aspects, including distinctive emotional features and domain-invariant emotion features.

The Single-Corpus Task. To verify the discriminative ability of our algorithm, Fig.3(a)-3(b) illustrates the 2D visualization projections of the representations extracted from the last fully-connected layer. It is evident that different classes are clustered with clear boundaries in all datasets. The large distances among various classes with few mixed samples guarantee high accurate results, confirming that the proposed CPAC learns the distinctive emotional features well. In contrast, the exception cases shown in Fig.3(a) indicate the proximity between the Fear and Sad emotion classes in CASIA, which leads to the relatively high misclassified cases. As is given in Fig.S1 in the Supplementary Materials, there are 4.5% and 8% samples in the Fear and Sad classes misclassified to each other.

![Image](https://ijcai.org/proceedings/2022/fulltext/320/image_000003_f613f952f925b07ce1c3dc97d990764c5a3a13e200ce0d34945cab6ef1292653.png)

Figure 3: t-SNE visualization of the high-level features on the CASIA and RAVDESS datasets. The results of other datasets are given in Figure S3 in the Supplementary Materials

![Image](https://ijcai.org/proceedings/2022/fulltext/320/image_000004_c9a690b38e8910d4451a8ececad74b31fc5cd3c6d6a08aae57a30d1a653d797b.png)

The Cross-Corpus Task. The visualized embedding of common sentiment representations in Fig.S4(b) and Fig.S4(c) shows that the proposed CAAM yields superior performance in feature alignment between source corpus and target corpus. As is shown in Fig.S4(a), the distributions of original MFCC features from CASIA and EMODB datasets are not related, in which the average Euclidean distance between them in the same emotion class reaches 2286.44. On the contrary, the high-level features extracted by CAAM show a tighter representation of different corpora in Fig.S4(b) and Fig.S4(c). The average Euclidean distance between them is reduced to 19.87 and 20.53, respectively. Especially in Fig.S4(b), the feature alignment provides higher contributions. It shows that our method can capture domain-invariant sentiment features between different corpora. Moreover, the distance of the same category of emotions is significantly reduced, and the emotions of different categories still maintain certain discrepancies after the feature alignments. However, the separation between classes in the target corpus is not clear enough, which leads to reduced accuracy.

## 4 Conclusion

Speech Emotion Recognition with source and target data from different corpora containing different speakers and languages still remains a big challenge. In this paper, a novel SER algorithm is proposed to tackle the single-corpus and cross-corpus tasks simultaneously. Through the construction of CNN-Pooling and Self-Attention CapsNet, the CPAC model can establish the sentiment connection among different capsules, generating more constant high-level features. Furthermore, the CAAM module by combining CPAC and two MDD algorithms is designed to create more discriminant features and common representation, thus reducing the gap between source and target corpus space. Extensive experiments on four SER datasets validate the stability and superiority of the proposed CTL-MTNet model, with significant improvements over the state-of-the-art algorithms in both tasks.

## Acknowledgments

This work is supported by the National Natural Science Foundation of China (No. 61772023) and Fujian Science and Technology Plan Industry-University-Research Cooperation Project (No.2021H6015). The algorithm production is supported by the AutoDL.com platform.

## References

1. [Abdelwahab and Busso, 2018] Mohammed Abdelwahab and Carlos Busso. Domain adversarial for acoustic emotion recognition. IEEE/ACM Transactions on Audio, Speech, and Language Processing, 26(12):2423-2435, 2018.
2. [Akc ¸ay and Oguz, 2020] Mehmet Berkehan Akc ¸ay and Kaya Oguz. Speech emotion recognition: Emotional models, databases, features, preprocessing methods, supporting modalities, and classifiers. Speech Communi- cation, 116:56-76, 2020.
3. [Ganin and Lempitsky, 2015] Yaroslav Ganin and Victor Lempitsky. Unsupervised domain adaptation by backprop- agation. In International conference on machine learning, pages 1180-1189. PMLR, 2015.
4. [Gao et al., 2019] Mengna Gao, Jing Dong, Dongsheng Zhou, et al. End-to-end speech emotion recognition based on one-dimensional convolutional neural network. In Pro- ceedings of the 2019 3rd International Conference on In- novation in Artificial Intelligence, pages 78-82, 2019.
5. [Hajarolasvadi and Demirel, 2019] Noushin Hajarolasvadi and Hasan Demirel. 3d cnn-based speech emotion recognition using k-means clustering and spectrograms. Entropy, 21(5):479, 2019.
6. [Hong et al., 2020] Zhaojin Hong, Chenyang Wei, Yuan Zhuang, et al. Research on psychological counseling and personality analysis algorithm based on speech emotion. In International Conference on Artificial Intelligence and Security, pages 725-737. Springer, 2020.
7. [Ibrahim et al., 2021] Hemin Ibrahim, Chu Kiong Loo, and Fady Alnajjar. Speech emotion recognition by late fusion for bidirectional reservoir computing with random projec- tion. IEEE Access, 9:122855-122871, 2021.
8. [Ilyas, 2021] Ozer Ilyas. Pseudo-colored rate map represen- tation for speech emotion recognition. Biomedical Signal Processing and Control, 66:102502, 2021.
9. [Kingma and Ba, 2014] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
10. [Kwon, 2021] Soonil Kwon. Optimal feature selection based speech emotion recognition using two-stream deep convo- lutional neural network. International Journal of Intelli- gent Systems, 36(9):5116-5135, 2021.
11. [Liu et al., 2020] Jiaxing Liu, Zhilei Liu, Longbiao Wang, et al. Speech emotion recognition with local-global aware deep representation learning. In International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 7174-7178. IEEE, 2020.
12. [Long et al., 2017] Mingsheng Long, Zhangjie Cao, Jianmin Wang, et al. Conditional adversarial domain adaptation. arXiv preprint arXiv:1705.10667, 2017.
13. [Luo and Han, 2020] Hui Luo and Jiqing Han. Nonnega- tive matrix factorization based transfer subspace learning for cross-corpus speech emotion recognition. IEEE/ACM Transactions on Audio, Speech, and Language Processing, 28:2047-2060, 2020.
14. [McFee et al., 2015] Brian McFee, Colin Raffel, Dawen Liang, et al. librosa: Audio and music signal analysis in python. In Proceedings of the 14th python in science con- ference, volume 8, pages 18-25. Citeseer, 2015.
15. [Mustaqeem and Kwon, 2021] Mustaqeem Mustaqeem and Soonil Kwon. Speech emotion recognition based on deep networks: A review. In Proceedings of the Korea Informa- tion Processing Society Conference, pages 331-334. Ko- rea Information Processing Society, 2021.
16. [Sabour et al., 2017] Sara Sabour, Nicholas Frosst, and Ge- offrey E Hinton. Dynamic routing between capsules. arXiv preprint arXiv:1710.09829, 2017.
17. [Schuller et al., 2010] Björn Schuller, Stefan Steidl, Anton Batliner, et al. The interspeech 2010 paralinguistic chal- lenge. In Proc. INTERSPEECH 2010, Makuhari, Japan, pages 2794-2797, 2010.
18. [Sun et al., 2019] Linhui Sun, Sheng Fu, and Fu Wang. De- cision tree svm model with fisher feature selection for speech emotion recognition. EURASIP Journal on Audio, Speech, and Music Processing, 2019(1):1-14, 2019.
19. [Tuncer et al., 2021] Turker Tuncer, Sengul Dogan, and U Rajendra Acharya. Automated accurate speech emo- tion recognition system using twine shuffle pattern and iterative neighborhood component analysis techniques. Knowledge-Based Systems, 211:106547, 2021.
20. [Van der Maaten and Hinton, 2008] Laurens Van der Maaten and Geoffrey Hinton. Visualizing data using t-sne. Journal of machine learning research, 9(11), 2008.
21. [Verbitskiy et al., 2021] Sergey Verbitskiy, Vladimir Berikov, Vyshegorodtsev, et al. Eranns: Efficient residual audio neural networks for audio pattern recognition. arXiv preprint arXiv:2106.01621, 2021.
22. [Wu et al., 2019] Xixin Wu, Songxiang Liu, Yuewen Cao, et al. Speech emotion recognition using capsule networks. In International Conference on Acoustics, Speech and Sig- nal Processing (ICASSP), pages 6695-6699, 2019.
23. [Yildirim et al., 2021] Serdar Yildirim, Yasin Kaya, and Fatih Kılıc ¸. A modified feature selection method based on metaheuristic algorithms for speech emotion recognition. Applied Acoustics, 173:107721, 2021.
24. [Zhang et al., 2019] Yuchen Zhang, Tianle Liu, Mingsheng Long, and Michael Jordan. Bridging theory and algorithm for domain adaptation. In International Conference on Machine Learning, pages 7404-7413. PMLR, 2019.
25. [Zhang et al., 2021] Shiqing Zhang, Ruixin Liu, et al. Deep cross-corpus speech emotion recognition: Recent ad- vances and perspectives. Frontiers in Neurorobotics, 15, 2021.
26. [Zhou et al., 2021] Kun Zhou, Berrak Sisman, Rui Liu, et al. Seen and unseen emotional style transfer for voice conver- sion with a new emotional speech dataset. In International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 920-924. IEEE, 2021.
