Skip to main content
Advertisement
Browse Subject Areas
?

Click through the PLOS taxonomy to find articles in your field.

For more information about PLOS Subject Areas, click here.

  • Loading metrics

Hybrid CNN-embedding fusion with MFCC-SVM for speech emotion recognition: Random vs actor-wise evaluation on CREMA-D

  • Parveen Kumari,

    Roles Conceptualization, Investigation, Methodology, Writing – original draft, Writing – review & editing

    Affiliation Department of Computer Science and Engineering, Dronacharya College of Engineering, Gurugram, India

  • Yogita Yashveer Raghav,

    Roles Conceptualization, Methodology, Writing – original draft, Writing – review & editing

    Affiliation Centre of Excellence-Cloud Computing, School of Engineering & Technology K.R. Mangalam University, Gurugram, India

  • Vimmi Kochher,

    Roles Data curation, Formal analysis, Writing – review & editing

    Affiliation Department of Computer Science and Engineering, Guru Teg Bahadur Institute of Technology, Mayapuri, Delhi, India

  • Prashanth kumar katta,

    Roles Funding acquisition, Resources, Writing – review & editing

    Affiliation Department of restorative dental sciences, College of Dentistry, King Faisal University, Al-Ahsa, Saudi Arabia

  • Abhilasha A,

    Roles Resources, Software, Writing – review & editing

    Affiliation Department of Computer Science and Engineering, Jaipur Engineering College and Research Centre, Shri Ram ki Nangal, Jaipur, India

  • Prabhakar M,

    Roles Validation, Visualization, Writing – review & editing

    Affiliation Department of Computer Science and Engineering, Dayananda Sagar University, Bangalore, India

  • Jayanthiladevi A,

    Roles Funding acquisition, Project administration, Supervision, Writing – review & editing

    Affiliation Department of Computer Science and Engineering, BGSIT, Adichunchanagiri University, BG Nagara, Karnataka, India

  • Fikir Gizachew Belete

    Roles Project administration, Supervision, Writing – review & editing

    fikirgizachew@dbu.edu.et

    Affiliation Department of Computer Science, College of Computing, Debre Berhan University, Debre Berhan, Ethiopia

Abstract

Speech Emotion Recognition (SER) is an important component of human-centered intelligent systems, yet robust performance remains challenging when speaker identities differ between training and testing. This study presents a protocol-aware and reproducible comparison on the CREMA-D corpus using three pipelines: (i) a classical MFCC-based Support Vector Machine (SVM), (ii) a log-mel Convolutional Neural Network (CNN), and (iii) a lightweight hybrid model that concatenates handcrafted acoustic descriptors with CNN-derived embeddings and uses an SVM classifier. The methodological contribution is not a new standalone classifier; it is the controlled integration of identical preprocessing, random and actor-wise evaluation, five-seed robustness reporting, class-wise error analysis, and CPU-oriented deployment within one experimental framework. The Hybrid approach achieves the best overall performance, obtaining 62.03% ± 0.94% Macro-F1 on the random split and 58.09% ± 1.36% on the actor-wise split, outperforming MFCC+SVM (55.72% ± 0.95% and 52.05% ± 1.95%) and the log-mel CNN (50.20% ± 1.51% and 42.68% ± 1.84%). A Streamlit interface supports WAV upload, live prediction, and export of per-seed confusion matrices and summary figures. The results show that a controlled lightweight fusion framework can improve robustness while making the performance gap between speaker-overlapping and speaker-independent evaluation explicit.

1 Introduction

Speech Emotion Recognition (SER) aims to automatically infer a speaker’s emotional state from speech signals and has become an important component in affective computing, human–computer interaction, intelligent tutoring, call-center analytics, and assistive technologies. Despite long-standing progress, SER remains difficult in practical deployments because emotional expression varies across speakers, speaking styles, languages, and recording environments. Comprehensive reviews emphasize that feature choice, dataset properties, and evaluation protocols strongly influence reported performance, and that results obtained in controlled settings may not translate to real-world conditions [1,2].

One of the most fundamental challenges is generalization. Performance reporting in many SER studies commonly relies on random train/test splits, where utterances from the same speaker may appear in both training and test data. This setting can inflate scores, as models may exploit speaker identity cues or recording artifacts rather than emotion-related variations [1]. Speaker-independent evaluation (e.g., actor-wise splits) provides a more realistic estimate for unseen speakers, but it is often underreported or inconsistently applied, making fair comparison across methods difficult [2].

Another important gap concerns the way established SER components are assembled and evaluated. Although MFCCs, CNNs, SVMs, feature fusion, and deployment tools are individually well known, they are often studied under different preprocessing choices, split protocols, and reporting practices. Consequently, it remains difficult to determine whether an apparent gain comes from the model itself, speaker overlap, or experimental configuration. A controlled framework that compares classical, deep, and hybrid pipelines under identical preprocessing, both random and actor-wise splits, repeated seeds, and a reusable inference path provides methodological value even when the individual algorithms are established.

In response to these concerns, this paper presents a replicable comparative study on the CREMA-D dataset [3]. CREMA-D contains 7,442 emotionally expressive speech samples from 91 actors across six emotion categories (angry, disgust, fear, happy, neutral, sad), providing a strong basis for examining speaker variability. Three modeling strategies representing common SER paradigms are considered. The first is a classical baseline using handcrafted acoustic features (MFCC statistics along with complementary spectral/prosodic features) and a Support Vector Machine (SVM) classifier [4,5]. The second is a compact convolutional neural network (CNN) using log-mel spectrogram inputs, enabling representation learning directly from time-frequency patterns relevant to the task [6,7]. The third is a hybrid fusion model that combines handcrafted acoustic features with deep CNN embedding vectors and performs classification using an SVM. The motivation for this hybrid design is the complementary nature of the two representations: handcrafted descriptors can provide stable low-level cues, while CNN embeddings can capture discriminative time-frequency patterns learned from data [6].

To better assess generalization, results are reported for both a conventional random split and an actor-wise (speaker-independent) split, where training and test sets contain non-overlapping speakers. Accuracy, Unweighted Average Recall (UAR), and Macro-F1 are used for model comparison, while confusion matrices are used to analyze class-wise errors. Conventional regularization and augmentation methods are applied to improve robustness and reduce overfitting. Time and frequency masking, commonly referred to as SpecAugment, is used to encourage invariance in spectrogram representations [8]. Focal loss is employed to emphasize difficult-to-classify samples, and mixup-style interpolation is used to improve generalization [9,10]. Feature extraction and signal processing are implemented using standard audio tooling [11].

1.1 Research gap

The study addresses the following research gaps:

  • Protocol gap: SER performance is often reported using random splits with possible speaker overlap, while speaker-independent evaluation is less consistently adopted, limiting conclusions about real-world generalization [1].
  • Fair comparison gap: Classical baselines (e.g., MFCC+SVM) and compact deep models are frequently evaluated with different preprocessing and split protocols, making direct comparison unreliable [2].
  • Reproducibility and deployment gap: Many studies do not report multi-seed robustness or provide an end-to-end pipeline that can be validated on unseen user-provided audio, limiting practical verification and transparency.
  • Integration and interpretation gap: Established handcrafted, deep, and hybrid components are less commonly evaluated together under identical data handling, repeated seeds, and both speaker-overlapping and speaker-independent protocols, making the source and robustness of performance gains difficult to interpret.

1.2 Contributions

The main contributions of this work are as follows:

  • A controlled benchmark is provided for MFCC+SVM, a log-mel CNN, and a lightweight hybrid model under the same waveform standardization, label space, metrics, and software pipeline.
  • A simple, CPU-compatible fusion implementation combines pooled handcrafted acoustic descriptors with penultimate-layer CNN embeddings and evaluates whether the complementary representations provide consistent gains.
  • Random and actor-wise (speaker-independent) protocols are reported side by side to quantify the effect of speaker overlap on apparent performance.
  • Five-seed mean ± standard deviation reporting and raw plus normalized confusion matrices are used to expose variability and class-wise error patterns rather than relying on a single headline score.
  • A CPU-oriented Streamlit interface supports WAV upload, live prediction, and export of evaluation artifacts using the same preprocessing assumptions as the experiments.

1.3 Nature of novelty

The contribution of this study is methodological and practical rather than the invention of a new fundamental classifier. MFCCs, CNNs, SVMs, feature concatenation, and Streamlit are established techniques. The novelty lies in evaluating them as one controlled, protocol-aware framework in which the same standardized waveform feeds classical, deep, and hybrid branches; random and actor-wise splits are reported side by side; all results are repeated over five seeds; class-wise errors are retained as raw and normalized confusion matrices; and the trained artifacts are exposed through a CPU-oriented interface that uses the same preprocessing assumptions. This integrated design makes speaker leakage, robustness, and deployment reproducibility directly observable rather than hidden behind a single performance value.

Accordingly, the paper does not claim architectural novelty for the individual components. It contributes an experimentally transparent and lightweight reference design for interpreting representation fusion and speaker-independent generalization on CREMA-D.

As shown in Fig 1, the SER workflow uses two parallel representations derived from the same preprocessed waveform: handcrafted acoustic statistics and a log-mel spectrogram. The detailed protocol-aware processing path, including the three comparable pipelines and evaluation flow, is summarized in Fig 2.

thumbnail
Fig 1. SER framework integrating MFCC–SVM, log-mel CNN, hybrid fusion, protocol-aware evaluation, and CPU inference.

https://doi.org/10.1371/journal.pone.0355238.g001

thumbnail
Fig 2. Proposed SER framework with preprocessing, MFCC–SVM, log-mel CNN, hybrid fusion, and protocol-aware evaluation.

https://doi.org/10.1371/journal.pone.0355238.g002

2 Related work

Speech Emotion Recognition (SER) has developed out of the initial acoustic pipeline handcrafted pipelines to deep representation learning, attention-based architectures, transformer-like encoders, as well as, more recently, self-supervised speech models. With this development, two issues have remained to influence the field. First, reported performance is very sensitive to the characteristics of data and the evaluation protocol. Second, it can be challenging to meaningfully compare studies due to significant differences in preprocessing pipelines, feature extraction options, metrics, and assumptions about speaker independence between the literature [1,2,12,13]. These problems render protocol conscious and reproducible analysis particularly significant in SER research.

Corpora like CREMA-D are still significant since they have controlled emotional labels and offer a large speaker diversity hence useful in the study of generalization across speakers [3]. But how such datasets are divided influences significantly the interpretation of results. Sampler-level splits can include samples of the same speaker in training and testing sets: this can also inflate performance by enabling models to use speaker-specific information or recording artifacts instead of emotion-specific signals [1,2]. By comparison, actor and leave-one-speaker-out are more stringent and realistic estimates of unseen-speaker deployment robustness [12,13,21]. Consequently, the current SER studies focus more on the significance of protocol-conscious reporting and transparent experimental design [12,13].

Traditional SER systems are still important since they are interpretable, computational efficient, and can be competitive when limited data is considered. These methods typically use manually designed acoustic features like MFCCs, pitchestatistics, energy-based features, and spectral features and then classifiers, including Support Vector Machines (SVMs) [4,5]. One-vs-rest SVM approaches are very common in multi-class scenarios as natural extensions of binary margin-based classification [14]. These models still remain powerful and reproducible baselines, but might be less effective at modeling the complex spectro-temporal patterns of emotion and could be worse at stringent speaker-independent tests [1,2]. Moreover, excitation-source-based modeling has also been demonstrated to reproduce emotionally relevant cues, which further supports the importance of a well-thought handcrafted representation in SER-related tasks [51,52].

Deep learning, particularly CNN-based modeling of log-mel spectrograms, has become common because convolutional filters can learn discriminative local spectro-temporal patterns directly from speech representations [6,7]. Robustness can be improved through augmentation and regularization methods such as SpecAugment-style masking, focal loss, and mixup, which encourage distributed feature use, emphasize difficult samples, and promote smoother decision boundaries [810]. Adam optimization, librosa-based preprocessing, and established digital signal-processing principles are also widely used in practical SER implementations [11,15,16]. Nevertheless, compact CNNs can remain sensitive to speaker mismatch and acoustically similar emotion classes, especially when datasets are limited or acted [1,13]. Transformer-style and attention-based models can capture longer-range dependencies and global emotional context [1719], while ensemble and fusion methods are frequently investigated to improve stability across evaluation conditions [19,20].

Self-supervised learning (SSL) has recently become a significant reference point in speech and paralinguistic modeling. wav2vec 2.0, HuBERT, and WavLM are pretrained encoders with strong transferability to downstream speech tasks [4648]. In affective and related paralinguistic applications, wav2vec 2.0 has been used for vocal emotion recognition and stuttering analysis, while pretrained wav2vec and HuBERT features have also shown potential in dysarthria classification [53,54]. The present study therefore does not claim to replace or outperform SSL-based state-of-the-art systems. Its contribution is a lower-compute, protocol-aware reference framework that isolates the effects of split strategy and representation fusion under one common pipeline. By reporting random and actor-wise results, five-seed variability, class-wise errors, and deployment using the same preprocessing, the study addresses an empirical reproducibility question that is distinct from proposing a new backbone. Direct benchmarking against SSL models is retained as future work.

3 Proposed method

3.1 Overall pipeline

This study implements a protocol-aware SER pipeline for fair comparison among three systems: (i) MFCC+SVM, (ii) a log-mel CNN, and (iii) a hybrid model that concatenates handcrafted features with CNN embeddings before final SVM classification. All systems share the same waveform standardization, class definitions, and evaluation metrics so that differences in performance can be attributed primarily to modeling choices rather than preprocessing mismatch [3,13,21].

As illustrated in Fig 2, each input waveform is converted into two synchronized representations. The handcrafted branch produces pooled utterance-level descriptors, while the deep branch produces a fixed-size log-mel spectrogram for CNN-based representation learning. The hybrid model then fuses the handcrafted vector with the penultimate-layer CNN embedding and performs final classification using an SVM.

The method intentionally uses established components so that the central experimental question can be isolated: whether complementary handcrafted and compact deep representations provide consistent gains when preprocessing, split construction, metrics, and repeated-run reporting are held constant. Therefore, the methodological contribution is the controlled design and validation of the integrated pipeline rather than a claim that MFCC, CNN, SVM, or feature concatenation is individually novel.

3.2 Preprocessing

All utterances are mono-sampled and resampled to a fixed sampling rate of fs. In order to maintain the consistent length of input, the waveform is center-cropped or zero-padded to a fixed length, which results in a sequence.

(1)

This fixed-duration policy reduces variability arising from leading/trailing silence and recording-length differences, while also enabling efficient batch processing in deep models. Such normalization is particularly important in CNN-based SER, where convolutional feature learning can be sensitive to input alignment and temporal scale [20]. In speech-processing pipelines, center cropping is commonly applied to maintain uniform time-frequency resolution and stable batching in neural networks, while reducing bias toward early silence segments in an utterance. Resampling and fixed-length normalization are likewise standard practices for achieving consistent input representations [25]. Furthermore, fixed-duration inputs help reduce variability in spectrogram statistics caused by silence and recording length, which can affect the behavior of downstream classifiers [26].

3.3 Feature extraction

3.3.1 Handcrafted branch: MFCC statistics.

Features of handcrafted computation are calculated based on Mel-Frequency Cepstral Coefficients (MFCCs), which is one of the established families of speech descriptors and has been extensively relied on the traditional SER baselines [4]. MFCCs are obtained at short-time frames, and the result is a coefficient matrix, denoted as where T is the amount of frames and K is the amount of coefficients. Statistics are calculated to obtain a fixed length description of each coefficient dimension k:

(2)

The final handcrafted vector is denoted . Statistical pooling is employed due to the fact that it gives a concise summary of all the data and is efficient to classical classifiers but also captures global distributional clues like spectral shape and affect-related articulation differences. These descriptors also provide an interpretable baseline for comparing representation learning approaches [21]. Beyond MFCCs, prior SER work frequently uses curated paralin- guistic feature sets that include energy, spectral, and voice-quality descriptors designed for affective speech analysis [24]. Such handcrafted descriptors are still widely used as strong baselines because they are computationally light and provide interpretable cues linked to prosody and voice quality [26].

3.3.2 Deep branch: Log-mel spectrogram.

Log-mel spectrograms of the Short-Time Fourier Transform (STFT), a common time-frequency representation in speech processing, are used as deep models in this study [16]. The raw speech signal is converted first to a time frequency representation and then a power spectrogram is derived. An mel filterbank is then used to map the spectral data to mel-scaled frequency bands, which are then logarithmically compressed to make the log-mel spectrogram. The optional per-feature normalization (e.g., z-score normalization) can be used to stabilize the distribution of the features prior to model training as well. This gives the resulting normalized log-mel representation which is center-cropped or padded to a constant number of time frames and fed into the CNN. The use of log-mel features Log-mel features are popular in current SER since they maintain a perceptually significant frequency resolution, and offer a consistent and useful input representation to convolutional learning [8,20].

3.4 Models

3.4.1 Baseline 1: MFCC + SVM.

Support Vector Machines (SVMs) are a strong classical baseline for high-dimensional features and remain widely used in speech classification and benchmarking due to their robustness and simplicity [5]. Given handcrafted features fMFCC, a linear SVM learns a margin-maximizing separator by solving:

(6)

where C controls the trade-off between margin and misclassification. For multi-class SER, a one-vs-rest strategy is typically employed [14]. This baseline serves as an efficient reference point and is especially relevant under CPU constraints, where low-latency inference may be required for interactive deployment.

3.4.2 Baseline 2: Log-mel CNN.

A convolutional neural network (CNN) is trained on log-mel spectrograms to learn discriminative time–frequency patterns associated with emotion. The classifier outputs and softmax probabilities:

(7)

The standard multi-class cross-entropy is:

(8)

CNN-based SER is motivated by the ability of convolutional filters to learn localized spectro-temporal patterns—such as harmonics, formant shifts, spectral energy variations, and temporal dynamics—that correlate with emotional expression [19,20]. However, these models can remain sensitive to speaker mismatch and confusable emotion pairs, which motivates the robust training strategies described next. CNNs operating on spectrograms were first popularized in broader audio-classification benchmarks and were subsequently adopted in SER because they can efficiently capture local spectro-temporal structure while remaining relatively lightweight for deployment [6,27]. Nevertheless, deep spectrogram-based models may still overfit dataset-specific speaker or channel cues when evaluated using random splits, reinforcing the importance of speaker-independent testing [28,29].

3.5 Robust training strategies

The CNN branch is augmented with SpecAugment-style time and frequency masking to improve robustness and reduce overfitting. The masking operation removes contiguous temporal regions or mel-frequency bands, encouraging invariance to local distortions and reducing dependence on narrow spectral cues [8]. Although originally proposed for automatic speech recognition, this perturbation is now widely used in speech representation-learning pipelines because of its simplicity and effectiveness [8,21]. Focal loss is also used to emphasize hard and confusable emotion classes, such as neutral versus sad or fear versus disgust, by down-weighting easy examples and assigning greater influence to difficult samples [9,13]. Mixup regularization further improves generalization by training on convex combinations of inputs and labels, which promotes smoother decision boundaries and reduces reliance on speaker-specific artifacts [10,21]. Model parameters are optimized with Adam, which adapts per-parameter learning rates using first- and second-moment estimates and is commonly used in deep speech pipelines because of its stable convergence [15].

3.6 Proposed hybrid fusion model

The proposed hybrid model combines complementary information from handcrafted descriptors and deep embeddings. After training the CNN, an embedding vector is extracted from the penultimate layer:

(11)

This is fused with handcrafted features using concatenation:

(12)

An SVM is then trained on the fused vector to perform final classification. Handcrafted statistics capture stable utterance-level spectral and prosodic properties, whereas CNN embeddings encode learned time-frequency patterns; their combination can therefore reduce failure cases of either representation alone [4,5,20]. The fusion operation is deliberately simple and should not be interpreted as a new mathematical fusion mechanism. Its value in this study is as a controlled, low-compute integration point for testing whether complementary representations yield consistent gains under both speaker-overlapping and speaker-independent conditions. The design is also suitable for CPU deployment because the compact CNN functions as a feature extractor while final classification is handled by a lightweight SVM.

3.7 Evaluation protocol and reporting

All models are evaluated under the same random and actor-wise protocols and reported using Accuracy, UAR, Macro-F1, and confusion matrices. Results are aggregated across five random seeds as mean ± std to reduce dependence on a single split. In addition, Fig 2 summarizes the complete experimental flow from standardized input processing to protocol-aware evaluation.

4 Experimental setup

4.1 Dataset

All models are evaluated on the CREMA-D speech emotion dataset, which contains 7,442 utterances spoken by 91 actors and annotated into six discrete emotions: angry, disgust, fear, happy, neutral, and sad [3]. CREMA-D is frequently used in SER because it provides high speaker diversity and standardized categorical labels, enabling controlled within-dataset recognition experiments as well as speaker-independent generalization analysis. All recordings are processed as mono waveforms, and labels are maintained in an identical six-class space across all methods, so that performance differences arise from modeling decisions rather than label-processing variations.

4.2 Preprocessing and input standardization

Each of the audio files is subjected to a single preprocessing pipeline to create a fairness be- tween approaches. The signals are initially converted to mono and resampled to a fixed rate of sampling frequency fs. Resampling is a standard requirement for reproducible time–frequency analysis because STFT and mel-filterbank resolution depend on sampling rate [25]. The next step is to apply a fixed period to any utterance: longer utterances are center-cropped and shorter utterances are zero-padded. This produces equal-length waveforms, reduces variability caused by differing recording durations and leading/trailing silence, and guarantees consistent tensor shapes for CNN training and evaluation.

To reduce sensitivity to amplitude differences and channel variability, we apply consistent normalization choices at the feature stage (Section 4.3). This “same-input-policy” ensures that both handcrafted features (MFCC statistics) and spectrogram inputs are derived from the iden- tical standardized waveform, preventing confounds where one model benefits from a different preprocessing pipeline.

4.3 Feature representations

Handcrafted branch (MFCC statistics): For the MFCC+SVM baseline and the handcrafted component of the hybrid model, MFCCs are computed over short-time frames as standard speech descriptors [4]. To obtain a fixed-dimensional utterance representation, frame-wise MFCC sequences are summarized via statistical pooling (mean and standard deviation per co- efficient), yielding compact features suitable for efficient SVM learning and CPU inference. In addition to MFCCs, prior paralinguistics literature frequently highlights curated acoustic descriptors (energy, spectral, and voice-quality cues) as strong interpretable baselines for af- fective speech analysis, motivating the use of pooled utterance-level statistics in classical SER comparisons [24,26].

Deep branch (log-mel spectrogram): For deep models, waveforms are transformed into log-mel spectrograms using STFT, mel filter banks, and logarithmic compression. The mel scale is widely used in audio modeling because it provides perceptually motivated frequency spacing and works effectively with convolutional filters [30,31]. To reduce amplitude/channel variability, per-feature normalization (z-score) is applied. Finally, the spectrogram is center- cropped/padded to a fixed number of frames so that the CNN receives inputs with identical dimensions.

4.4 Evaluation protocols

To obtain a reliable and protocol-aware assessment, all models are evaluated under two complementary split strategies. Both splits use the same preprocessing and feature extraction settings (Table 1) so that performance differences reflect protocol strictness and model design rather than configuration changes. Following common reproducibility guidance, random-split (potentially speaker-overlapping) performance is clearly separated from speaker-independent performance [13,21].

thumbnail
Table 1. Key hyperparameters used in preprocessing, feature extraction, and CNN training.

https://doi.org/10.1371/journal.pone.0355238.t001

  • Random split: Utterances are divided into training and testing partitions using stratification by emotion class where applicable. Random splits are common because they are simple and often yield strong performance numbers, but they can allow the same speaker to appear in both train and test sets, which may inflate performance through speaker leakage [13]. Therefore, random-split results are interpreted as an optimistic estimate of within-dataset performance.
  • Actor-wise (speaker-independent) split: Speakers are strictly separated between training and test sets so that no speaker identity overlap occurs across partitions. This protocol prevents leakage and provides a more realistic estimate of generalization to unseen speakers [21]. Actor-wise splitting is implemented using group-based partitioning, ensuring that all utterances from a given actor remain in a single split, consistent with standard group-aware evaluation practices in ML [32].

Across both protocols, Accuracy, Unweighted Average Recall (UAR), and Macro-F1 are reported. These are standard SER metrics; UAR and Macro-F1 are particularly informative when emotions are confusable or class-wise separability is uneven [22,23]. In addition, confusion matrices (raw and normalized) are reported to analyze systematic confusions between emotion pairs that may be hidden by scalar metrics alone [22].

4.5 Repeated runs and reporting

To reduce sensitivity to a single partition or initialization, each experimental setting is repeated across five different random seeds and summarized using mean ± std. Multi-run reporting improves the reliability of empirical comparisons and helps distinguish consistent gains from seed-specific variance [21]. For each seed, confusion matrices are also generated to support qualitative error-pattern analysis.

4.6 Implementation and runtime setting

All experiments are implemented in Python for reproducibility and ease of deployment. Feature extraction is implemented using librosa [11]. Classical models (SVM) and splitting utili- ties are implemented using scikit-learn, which provides standardized implementations for supervised learning and evaluation [33]. The deep learning components are implemented using TensorFlow/Keras [34,35], and CNN training uses the Adam optimizer due to its stable convergence and adaptive learning-rate behavior [15].

All experiments are executed on CPU-only hardware (no GPU acceleration). This reflects realistic deployment constraints and aligns the experimental environment with the end- to-end Streamlit inference interface used for interactive testing on unseen.wav files [36]. CPU-oriented evaluation also highlights the practicality of efficient feature representations and lightweight model designs for real-world SER integration.

4.7 Robust training and regularization

CNN-based SER can degrade under speaker mismatch and confusable emotion categories. To improve generalization and mitigate overfitting, widely adopted robustness strategies are incorporated during CNN training:

  • SpecAugment-style masking: Time and frequency masking are applied directly to log-mel spectrograms, encouraging invariance to local occlusions and reducing reliance on narrow cues [8].
  • Focal loss: Focal loss down-weights easy samples and emphasizes harder examples, improving learning under systematic confusions [9].
  • Mixup: Mixup trains on convex combinations of inputs and labels, smoothing decision boundaries and typically improving generalization [10].

Together, these strategies provide complementary benefits (invariance, hard-sample emphasis, and boundary smoothing) and are commonly recommended to improve reliability under distribution shift and to reduce overfitting to speaker overlap [13,21].

4.8 Hyperparameter disclosure

For reproducibility, the key hyperparameters used throughout the pipeline are explicitly reported, including sampling rate , fixed crop duration (or fixed spectrogram frame length), mel-bin resolution , frequency range, and CNN training configuration (optimizer and robustness settings). These settings are kept identical for both random and actor-wise protocols so that performance differences primarily reflect protocol strictness and model design rather than tuning changes.

5 Evaluation metrics and reporting

To provide a consistent and interpretable comparison, performance is reported using three complementary measures: Accuracy, Unweighted Average Recall (UAR), and Macro-F1. Accuracy reflects overall correctness, but it may be overly optimistic when class distributions are uneven or when certain emotions dominate predictions. For this reason, Macro-F1 and UAR are also reported, as these metrics are commonly recommended for multi-class evaluation because they reduce sensitivity to class prevalence by averaging performance across classes [22,23].

UAR is computed as the mean of per-class recall values, assigning equal importance to each emotion class:

Macro-F1 is computed by first calculating the F1-score independently for each class and then averaging:

As part of good practice in classifier evaluation, confusion matrices are also used to visualize class-wise behavior, and they help reveal systematic confusions between emotion pairs that may not be identified from scalar metrics alone [22]. Both raw-count confusion matrices and normalized (%) versions are reported to support qualitative comparison across classes.

To reduce sensitivity to a single split or random initialization, all experiments are repeated over five random seeds and summarized as mean ± std. The aggregated results (Table 2) are used for the main comparison, while per-seed results and confusion-matrix summaries are provided for transparency and error-pattern analysis. In addition, SER often exhibits class imbalance and confusable classes, so reporting class-balanced metrics is recommended in imbalanced classification settings [37]. To complement point estimates, mean ± std is reported over multiple seeds, and statistical testing is encouraged where appropriate (e.g., paired comparisons across folds/splits), following common guidance for empirical ML evaluation [38,39].

thumbnail
Table 2. Mean±std performance (%) over 5 seeds on CREMA-D under random and actor-wise protocols.

https://doi.org/10.1371/journal.pone.0355238.t002

6 Results and discussion

6.1 Overall performance (mean±std over 5 seeds)

Table 2 reports mean±std results over five random seeds for both evaluation protocols. Across all metrics (Accuracy, UAR, and Macro-F1), the proposed hybrid fusion model consistently achieves the best performance in both the random and actor-wise settings. This indicates that combining handcrafted statistics with learned CNN embeddings provides complementary in- formation that improves classification stability.

On the random split, the hybrid model reaches 62.16% ± 0.99% Accuracy and 62.03% ± 0.94% Macro-F1, outperforming MFCC+SVM (56.00% ± 1.10% Accuracy) and the log-mel CNN baseline (51.74% ± 1.31% Accuracy). On the actor-wise split, overall scores decrease for all models due to speaker mismatch, but the hybrid model remains strongest with 58.27% ± 1.21% Accuracy and 58.09% ± 1.36% Macro-F1.

This protocol gap is expected because speaker-independent testing is a stricter evaluation setting that reduces the benefit of speaker overlap present in random splits. UAR and Macro-F1 are reported in addition to Accuracy because SER often exhibits class confusability and uneven per-class separability, where aggregate Accuracy alone may not adequately reflect class-balanced behavior [22,23].

6.2 Confusion matrix analysis (per-class errors)

To examine class-wise behavior beyond aggregate metrics, Figs 3 and 4 present representative confusion matrices (raw counts and normalized percentages) for the random and actor-wise protocols, respectively. Confusion matrices are included because they explicitly show which emotion pairs are systematically confused and whether error patterns become more pronounced under speaker-independent evaluation. This form of per-class analysis complements Accuracy by revealing imbalance-like behavior and asymmetric confusions that are common in multi-class recognition tasks [22,23].

thumbnail
Fig 3. Random-split confusion matrices for SVM, CNN, and Hybrid using raw and normalized values.

https://doi.org/10.1371/journal.pone.0355238.g003

thumbnail
Fig 4. Actor-wise confusion matrices for SVM, CNN, and Hybrid using raw and normalized values.

https://doi.org/10.1371/journal.pone.0355238.g004

Overall, stronger diagonal dominance is observed in the random split, whereas the actor-wise split exhibits increased off-diagonal mass, indicating reduced generalization to unseen speakers. Across models, the hybrid system generally produces cleaner diagonals and fewer confusions than the individual baselines, which is consistent with the performance improvements reported in Table 2. Confusion matrices are widely used in diagnostic evaluation because they expose per-class error structure and systematic confusions that may be hidden by aggregate scores alone [40].

6.3 Comparison of SVM vs CNN vs hybrid

The three evaluated systems represent complementary modeling choices. MFCC+SVM pro- vides a strong, computationally light baseline that benefits from stable utterance-level statis- tics, and it remains competitive under CPU-only inference. The log-mel CNN learns time– frequency patterns directly from spectrogram structure, but its performance degrades more strongly under speaker-independent testing, suggesting higher sensitivity to speaker/channel variation and to limited training data. This behavior aligns with the protocol gap seen between the random and actor-wise settings in Table 2.

The hybrid fusion model consistently performs best because it combines two complementary information sources: (i) handcrafted descriptors that summarize stable spectral and prosodic statistics, and (ii) CNN embeddings that capture discriminative high-level time-frequency cues. Relative to MFCC+SVM, the hybrid model improves Accuracy by 6.16 percentage points on the random split (62.16 vs. 56.00) and 5.72 points on the actor-wise split (58.27 vs. 52.55). Relative to the log-mel CNN baseline, the gains are 10.42 points and 12.18 points, respectively. These results do not establish universal algorithmic superiority; rather, they show that within the controlled CREMA-D protocol, the integrated representation is more stable than either branch alone and that the advantage persists when speakers are separated between training and testing.

The confusion matrices (Figs 34) further support this conclusion. Compared to the stan- dalone baselines, the hybrid system generally shows a stronger diagonal and reduced off- diagonal spillover, especially under actor-wise testing, which is the more realistic deployment scenario. Therefore, the proposed fusion design provides a practical accuracy/robustness trade-off while remaining compatible with CPU-based real-time inference.

6.4 Deployment and practical application (streamlit)

To improve usability and practical reproducibility, an optional Streamlit-based deployment is developed to provide both (i) access to research outputs and (ii) live inference through a simple web interface. The application offers a unified dashboard for comparing SVM, CNN, and the proposed Hybrid model under both random and actor-wise protocols, while also supporting downloads of the exact outputs used in the study (CSV tables and figures) and testing on new WAV inputs. Such qualitative inspection is important in affect recognition because emotion classes can overlap acoustically, and confusion patterns often reveal model biases (e.g., systematic neutral–sad confusions) more clearly than any single scalar metric [40].

The interface is organized into a model-status panel indicating available model/split artifacts, a results section summarizing 5-seed mean ± std performance along with per-seed metrics, a confusion-matrix viewer for inspecting raw-count and normalized (%) matrices with download options, and a dedicated WAV-upload section for live prediction on unseen audio. The application also supports direct export of outputs for thesis writing and reproducible analysis, including aggregated performance results (mean ± std) in CSV format, per-seed evaluation metrics in CSV format, confusion-matrix summary figures for random and actor-wise protocols in PNG format, and bulk confusion-matrix data (e.g., zipped images or saved numeric arrays) for downstream analysis and reproducible visualization.

For live prediction, a user uploads a WAV file and the application applies the same preprocessing pipeline used during experimentation (e.g., fixed sampling rate and feature configuration), then returns a predicted emotion label and confidence scores. This enables demonstration and hands-on testing on unseen samples without command-line execution.

The deployment is designed to reduce train–test mismatch and preserve repeatable outputs by reusing the same preprocessing and feature-extraction settings applied during training, loading saved model checkpoints and stored evaluation artifacts (including seed-wise results and confusion matrices), and providing downloadable outputs in standard formats (CSV/PNG/arrays) for independent verification and thesis integration. The browser-based interface also improves accessibility by allowing non-technical users to inspect evaluation results and run live predictions without code modification. Overall, this deployment layer serves as a bridge between research and implementation, improving accessibility while preserving a reproducible experimental workflow.

7 Conclusion

This study presents a protocol-aware comparison of classical, deep-learning, and hybrid speech emotion recognition pipelines on CREMA-D under both random and actor-wise (speaker-independent) evaluation. Across Accuracy, UAR, and Macro-F1, the hybrid fusion model achieves the strongest mean performance over five seeds. The decline observed for every model under actor-wise testing confirms that speaker-independent evaluation is more demanding and provides a more realistic estimate of deployment performance than a potentially speaker-overlapping random split.

The contribution is methodological and practical rather than the proposal of a new fundamental classifier. By holding preprocessing and reporting conditions constant, the study shows that combining handcrafted utterance-level descriptors with compact CNN embeddings provides consistent gains over either representation alone. The side-by-side protocol comparison, multi-seed uncertainty reporting, class-wise error analysis, and CPU-oriented Streamlit implementation together provide a transparent reference workflow for lightweight and reproducible SER experimentation.

8 Limitations and future work

Because the individual components are established, this work should be interpreted as a reproducible lightweight benchmark and integration study rather than a new state-of-the-art architecture. The empirical findings are limited to CREMA-D and within-dataset evaluation, and the current experiments do not include direct comparison with modern self-supervised speech encoders. Future work will therefore extend the benchmark to RAVDESS [41], IEMOCAP [28], EMO-DB [42], and MSP-IMPROV [43], including cross-dataset testing to quantify distribution shift; compare the lightweight hybrid pipeline directly with wav2vec 2.0, HuBERT, and WavLM [4648,53,54]; and examine noise-aware augmentation, domain adaptation, calibration, and statistical significance testing so that performance and confidence estimates are more reliable for downstream use [44,45,49,50].

Supporting information

S1 File. Experimental Results* for dataset1.

https://doi.org/10.1371/journal.pone.0355238.s001

(CSV)

S2 File. Cross-Validation Results* for dataset2.

https://doi.org/10.1371/journal.pone.0355238.s002

(CSV)

S3 File. Partial CREMA-D Speech-Emotion Dataset. ZIP* for partial_dataset.

https://doi.org/10.1371/journal.pone.0355238.s003

(ZIP)

References

  1. 1. Schuller BW. Speech emotion recognition: two decades in a nutshell, benchmarks, and ongoing trends. Commun ACM. 2018;61(5):90–9.
  2. 2. El Ayadi 2 M, Kamel MS, Karray F. Survey on speech emotion recognition: features, classification schemes, and databases. Pattern Recognit. 2011;44(3):572–87.
  3. 3. Cao H, Cooper DG, Keutmann MK, Gur RC, Nenkova A, Verma R. CREMA-D: Crowd-sourced Emotional Multimodal Actors Dataset. IEEE Trans Affect Comput. 2014;5(4):377–90. pmid:25653738
  4. 4. Davis S, Mermelstein P. Comparison of parametric representations for monosyllabic word recognition in continuously spoken sentences. IEEE Trans Acoust Speech Signal Process. 1980;28(4):357–66.
  5. 5. Cortes C, Vapnik V. Support-vector networks. Mach Learn. 1995;20(3):273–97.
  6. 6. Trigeorgis G, Ringeval F, Brueckner R, Marchi E, Nicolaou MA, Schuller B, et al. Adieu features? End-to-end speech emotion recognition using a deep convolutional recurrent network. In: 2016 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP). 2016. p. 5200–4.
  7. 7. Satt A, Rozenberg S, Hoory R. Efficient Emotion Recognition from Speech Using Deep Learning on Spectrograms. In: Proc Interspeech. 2017. p. 1089–93.
  8. 8. Park DS, Chan W, Zhang Y, Chiu C-C, Zoph B, Cubuk ED, et al. SpecAugment: A Simple Data Augmentation Method for Automatic Speech Recognition. In: Proc Interspeech. 2019. p. 2613–7.
  9. 9. Lin T-Y, Goyal P, Girshick R, He K, Dollar P. “Focal loss for dense object detection”. In: Proc. IEEE International Conference on Computer Vision (ICCV). 2017. p. 2980–8.
  10. 10. Zhang H, Cisse M, Dauphin YN, et al. Mixup: Beyond Empirical Risk Minimization. In: Proceedings of the International Conference on Learning Representations (ICLR). 2018. https://doi.org/10.48550/arXiv.1710.09412
  11. 11. McFee B, Raffel C, Liang D, Ellis D, McVicar M, Battenberg E, et al. “librosa: Audio and music signal analysis in Python”. In: Proceedings of the 14th Python in Science Conference (SciPy 2015). 2015. p. 18–24.
  12. 12. Ibrahim A, Shehata S, Kulkarni A, Mohamed M, Abdul-Mageed M. What Does it Take to Generalize SER Model Across Datasets? A Comprehensive Benchmark. In: Proc Interspeech. 2024. p. 1590–4.
  13. 13. George SM, Ilyas PM. A review on speech emotion recognition: A survey, recent advances, challenges, and the influence of noise. Neurocomputing. 2024;568:127015.
  14. 14. Rifkin R, Klautau A. In defense of one-vs-all classification. J Mach Learn Res. 2004;5:101–41.
  15. 15. Kingma DP, Ba J. Adam: A method for stochastic optimization. In: International Conference on Learning Representations (ICLR). 2015. https://doi.org/10.48550/arXiv.1412.6980
  16. 16. Oppenheim AV, Schafer RW. Discrete-Time Signal Processing. 2nd ed. Prentice Hall; 1999.
  17. 17. Akinpelu O, Viriri S, Adegun A. An enhanced speech emotion recognition system using vision transformer. Sci Rep. 2024;14:13126.
  18. 18. Akinpelu S, et al. An enhanced speech emotion recognition using vision transformer- based modeling on spectrogram representations. Sci Rep. 2024.
  19. 19. Hashem A, et al. Enhancing speech emotion recognition through parallel cnns with transformer encoder and co-attention. PeerJ Comput Sci. 2025.
  20. 20. Chowdhury JH, et al. “Speech emotion recognition with light weight deep neural en- semble model using hand crafted features,” Journal/ venue as listed in PubMed Central, reports very high CREMA-D accuracy under its reported setup; see PMC full text. 2025.
  21. 21. Keesing A, Koh YS, Yogarajan V, Witbrock M. “Emotion recognition toolkit (ertk): Standardising tools for emotion recognition research”. In: Proceedings of the 31st ACM International Conference on Multimedia (ACM MM), reports CREMA-D baseline results (e.g., eGeMAPS + RBF-SVM UAR/Macro-F1). 2023.
  22. 22. Sokolova M, Lapalme G. A systematic analysis of performance measures for classification tasks. Inf Process Manag. 2009;45(4):427–37.
  23. 23. Powers DMW. Evaluation: From precision, recall and f-measure to ROC, informed- ness, markedness and correlation. In: Proceedings of the 2011 International Conference on Machine Learning Technologies (MLT 2011). 2011.
  24. 24. Eyben F, Scherer KR, Schuller BW, et al. The Geneva minimalistic acoustic parameter set (GeMAPS) for voice research and affective computing. IEEE Trans Affect Comput. 2016;7(2):190–202.
  25. 25. Rabiner LR, Schafer RW. Theory and Applications of Digital Speech Processing. Pearson; 2010.
  26. 26. Eyben F, Wöllmer M, Schuller B. Opensmile – the Munich Versatile and Fast Open-Source Audio Feature Extractor. In: Proceedings of the 18th ACM International Conference on Multimedia. 2010. p. 1459–62.
  27. 27. Piczak KJ. Esc: dataset for environmental sound classification. In: Proceedings of the 23rd ACM International Conference on Multimedia. 2015. p. 1015–8.
  28. 28. Busso C, Bulut M, Lee CC, et al. IEMOCAP: Interactive emotional dyadic motion capture database. Lang Resour Eval. 2008;42(4):335–59.
  29. 29. Schuller BW, Batliner A. Speech emotion recognition: Two decades in a nutshell, benchmarks, and ongoing trends. Commun ACM. 2018.
  30. 30. Stevens SS, Volkmann J, Newman EB. A Scale for the Measurement of the Psychological Magnitude Pitch. J Acoust Soc Am. 1937;8(3):185–90.
  31. 31. Slaney M. “Auditory toolbox,” Interval Research Corporation, Tech. Rep. 1998-010. 1998.
  32. 32. Kohavi R. A study of cross-validation and bootstrap for accuracy estimation and model selection. In: Proceedings of the 14th International Joint Conference on Artificial Intelligence (IJCAI). 1995. p. 1137–43.
  33. 33. Pedregosa F, Varoquaux G, Gramfort A, et al. Scikit-learn: Machine learning in Python. J Mach Learn Res. 2011;12:2825–30.
  34. 34. Abadi M, Barham P, Chen J, et al. Tensorflow: A system for large-scale machine learning. In: Proceedings of the 12th USENIX Symposium on Operating Systems Design and Implementation (OSDI). 2016. p. 265–83.
  35. 35. Chollet F, et al. Keras, software available online. 2015.
  36. 36. Streamlit. Streamlit documentation, accessed for implementation details of the demo UI. 2024.
  37. 37. Haibo He, Garcia EA. Learning from Imbalanced Data. IEEE Trans Knowl Data Eng. 2009;21(9):1263–84.
  38. 38. Demsˇar J. Statistical comparisons of classifiers over multiple data sets. J Mach Learn Res. 2006;7:1–30.
  39. 39. Dietterich T. Approximate Statistical Tests for Comparing Supervised Classification Learning Algorithms. Neural Comput. 1998;10(7):1895–923. pmid:9744903
  40. 40. Stehman SV. Selecting and interpreting measures of thematic classification accuracy. Remote Sens Environ. 1997;62(1):77–89.
  41. 41. Livingstone SR, Russo FA. The ryerson audio-visual database of emotional speech and song (ravdess). In: Proceedings of the 2018 International Conference on Affective Computing and Intelligent Interaction (ACII). 2018.
  42. 42. Burkhardt F, Paeschke A, Rolfes M, Sendlmeier WF, Weiss B. A database of German emotional speech. In: Interspeech 2005. 2005. p. 1517–20. https://doi.org/10.21437/interspeech.2005-446
  43. 43. Busso C, Parthasarathy S, Burmania A, AbdelWahab M, Sadoughi N, Provost EM. MSP-IMPROV: An Acted Corpus of Dyadic Interactions to Study Emotion Perception. IEEE Trans Affective Comput. 2017;8(1):67–80.
  44. 44. Ko T, Peddinti V, Povey D, Khudanpur S. Audio augmentation for speech recognition. In: Interspeech 2015. 2015. p. 3586–9. https://doi.org/10.21437/interspeech.2015-711
  45. 45. Hendrycks D, Mu N, Cubuk ED, et al. AugMix: A simple data processing method to improve robustness and uncertainty. In: Proc. International Conference on Learning Representations (ICLR). 2020. https://doi.org/10.48550/arXiv.1912.02781
  46. 46. Baevski A, Zhou H, Mohamed A, et al. “wav2vec 2.0: A framework for self-supervised learning of speech representations”. In: Advances in Neural Information Processing Systems (NeurIPS). 2020. https://doi.org/10.48550/arXiv.2006.11477
  47. 47. Hsu W-N, Bolte B, Tsai Y-HH, Lakhotia K, Salakhutdinov R, Mohamed A. HuBERT: Self-Supervised Speech Representation Learning by Masked Prediction of Hidden Units. IEEE/ACM Trans Audio Speech Lang Process. 2021;29:3451–60.
  48. 48. Chen S, Wang C, Chen Z, Wu Y, Liu S, Chen Z, et al. WavLM: Large-Scale Self-Supervised Pre-Training for Full Stack Speech Processing. IEEE J Sel Top Signal Process. 2022;16(6):1505–18.
  49. 49. Ganin Y, Ustinova E, Ajakan H, et al. Domain-adversarial training of neural networks. J Mach Learn Res. 2016;17(59):1–35.
  50. 50. Guo C, Pleiss G, Sun Y, et al. On calibration of modern neural networks. In: Proceedings of the 34th International Conference on Machine Learning (ICML). 2017. p. 1321–30. https://doi.org/10.48550/arXiv.1706.04599
  51. 51. Kadiri SR, Gangamohan P, Gangashetty SV, Alku P, Yegnanarayana B. Excitation Features of Speech for Emotion Recognition Using Neutral Speech as Reference. Circuits Syst Signal Process. 2020;39(9):4459–81.
  52. 52. Kadiri SR, Alku P. Excitation Features of Speech for Speaker-Specific Emotion Detection. IEEE Access. 2020;8:60382–91.
  53. 53. Grósz T, Porjazovski D, Getman Y, Kadiri S, Kurimo M. Wav2vec2-based Paralinguistic Systems to Recognise Vocalised Emotions and Stuttering. In: Proceedings of the 30th ACM International Conference on Multimedia. 2022. p. 7026–9. https://doi.org/10.1145/3503161.3551572
  54. 54. Javanmardi F, Tirronen S, Kodali M, Kadiri SR, Alku P. Wav2vec-Based Detection and Severity Level Classification of Dysarthria From Speech. In: ICASSP 2023 - 2023 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP). 2023. p. 1–5. https://doi.org/10.1109/icassp49357.2023.10094857