Original Paper
Abstract
Background: Doctor-patient communication plays a crucial role in enhancing the patient experience and promoting understanding and cooperation during diagnosis and treatment. However, the current health care system often struggles to identify patients’ needs and emotional changes in real time, thereby affecting the patient experience, treatment adherence, and medical safety. The deep integration of AI into health care provides new opportunities for improving patient-centered medical services.
Objective: This study aimed to evaluate the performance of mainstream pretrained models in medical emotion recognition tasks and to construct a multimodal emotion fusion framework suitable for real-world doctor-patient conversations based on the most effective candidate models. The objectives included improving the accuracy and robustness of emotion prediction, enhancing cross-modal information fusion capability, and validating the feasibility and clinical applicability of the proposed method on in-situ clinical recordings.
Methods: We systematically compared 5 representative pretrained models (hidden-unit BERT [HuBERT], waveform-based language model [WavLM], wav2vec 2.0, bidirectional encoder representations from transformers [BERT], and robustly optimized BERT pretraining approach [RoBERTa]) in medical scenarios. Based on the results, we propose a hybrid multimodal fusion framework built on HuBERT and RoBERTa, which integrates cross-modal multihead attention and a dynamic gating fusion strategy to jointly capture complementary acoustic and semantic features. Comparative experiments were performed to evaluate the performance of different models and fusion strategies.
Results: The study used a final dataset of 4571 audio clips across 6 distinct emotion categories, comprising 3513 original self-collected utterances from hospital conversations and documentary recordings, training-set data augmentation and limited oversampling, and 846 additional samples from the publicly available Emotional Speech Dataset (ESD). Field validation was conducted using 8674 seconds (2.4 hours) of extended doctor-patient conversations recorded in hospital settings. The RoBERTa-HuBERT multimodal pretrained model achieved a prediction accuracy of 82.39% and an F1-score of 82.40% on this dataset. Its performance across different emotion categories ranged from 63.64% to 90.84%, significantly outperforming traditional baseline models (55%-61%) and most unimodal models. The model demonstrated notable improvements in prediction stability, robustness, and generalization capability. In long-dialogue validation experiments, the model achieved an average accuracy of approximately 78%, suggesting stable performance and potential applicability in real-world clinical settings.
Conclusions: This study reveals the complementary nature of audio and text modalities in speech emotion recognition, highlighting the critical role of the proposed fusion mechanism in enhancing model performance. The method enables real-time speech emotion recognition in clinical practice, providing significant insights for optimizing the patient experience, fostering doctor-patient trust, and advancing intelligent health care interaction systems.
doi:10.2196/94694
Keywords
Introduction
As a crucial component of health care services, doctor-patient communication plays a critical role in delivering high-quality medical care [,]. Modern medical education emphasizes communicative competence as a core clinical skill, as proficiency in this area directly influences care quality and patient safety [,]. However, communicative effectiveness in clinical environments remains limited due to insufficient understanding of patient concerns, vague explanations of medical information, restricted interaction time, and the lack of mechanisms to confirm patient comprehension. These barriers can deteriorate the patient experience, reduce treatment adherence, and increase the risk of conflict []. Moreover, overwhelming workloads often hinder clinicians’ ability to cultivate empathy and maintain communication quality [].
With the increasing integration of AI into health care, new opportunities and challenges have emerged for patient-centered care []. Speech emotion recognition (SER), an important branch of human-computer interaction, has been gradually applied in medical scenarios [,]. Unimodal SER traditionally relies on acoustic features, evolving from classical machine learning to deep learning, with pretrained models such as wav2vec 2.0 substantially improving robustness in complex environments [,]. In parallel, text-based emotion recognition has progressed from rule-based and lexicon-based approaches to pretrained models, where hybrid frameworks—such as transformer + bidirectional encoder representations from transformers [BERT] + bidirectional gated recurrent unit [Bi-GRU] [] and BERT + large language model [LLM] architectures []—achieve strong performance, particularly in short-text analysis [] and health care contexts [,].
Multimodal emotion recognition integrates speech and textual information to enhance emotional understanding. Models using attention-enhanced BERT + convolutional neural network (CNN) architectures improve cross-modal alignment [], while recent frameworks such as KoHMT [] and MemoCMT [] demonstrate strong fusion capability. Foundational models have also shown promise in medical settings: for instance, emotion-labeled dialogues have supported early dementia diagnosis [], LLM-based models have improved fine-grained medical emotion analysis [], and AI tools have optimized clinical workflows [,]. By combining prosodic and semantic cues, multimodal systems mitigate the limitations of unimodal analysis [,], and pretrained models such as BERT and LLMs excel in fine-grained emotional interpretation [,].
Despite these advances, applying pretrained models in health care remains challenging. Medical emotions are often conveyed implicitly, dialogues involve short texts with sparse semantics [], and clinical language is highly specialized. These characteristics demand robust emotional reasoning in complex environments. Moreover, general-purpose pretrained language models provide limited medical coverage, potentially introducing semantic bias; the scarcity of labeled medical data further restricts fine-tuning performance. Privacy constraints and the variability of natural conversations add further complexity, underscoring the need for improved domain adaptation, few-shot learning, and privacy-preserving techniques.
To address these challenges, this study compared 5 representative pretrained models—hidden-unit BERT [HuBERT], waveform-based language model [WavLM], wav2vec 2.0, BERT, and robustly optimized BERT pretraining approach [RoBERTa]—and identified HuBERT and RoBERTa as the most effective for medical scenarios. Building on these findings, we propose a multimodal fusion framework tailored to health care applications. Using real doctor-patient dialogue audio, we designed a hybrid fusion mechanism that integrates cross-modal multihead attention with a dynamic gating strategy, enabling efficient real-time emotion analysis through RoBERTa-HuBERT fusion. Comparative experiments involving early fusion, late fusion, and various model pairings demonstrated that multimodal pretrained models combined with advanced fusion strategies significantly enhanced predictive performance. Validation on extensive in-situ clinical recordings further confirmed the robustness of our framework in real-world environments. Comparative analysis with existing multimodal methods highlighted the superiority of our approach in prediction reliability, generalization ability, and clinical applicability, providing evidence for its value in improving doctor-patient communication and advancing intelligent health care applications.
Methods
Overview
The method proposed in this study comprises 4 parts: data preprocessing, audio processing, text processing, and multimodal model fusion. The data processing flowchart is shown in .

Audio Preprocessing
Audio Standardization
The target audio segments were extracted according to timestamps using the MoviePy library and subsequently converted into 16-kHz, single-channel WAV format through the convert_to_wav function.
Speaker Diarization
The pyannote.audio toolkit was used to perform speaker diarization (Diarize_audio), detecting and outputting the time intervals associated with different speakers. This process primarily aimed to reduce multispeaker interference in subsequent audio segmentation. Speaker identities were not distinguished during subsequent model training and inference.
Audio Segmentation
Speech segments were separated and merged using a silence threshold of −40 dB, organizing them into clips of 5 to 10 seconds to avoid excessively short or redundant samples. For longer utterances that remained after this process, a secondary segmentation was performed using a silence threshold of −20 dB.
Data Deidentification
To ensure ethical compliance, all segmented audio data were manually reviewed to remove any content containing personal or sensitive patient information.
Audio Annotation
A multiround questionnaire-based annotation process was conducted to assign emotional labels to the collected speech data. To ensure annotation quality and reliability, each audio clip was independently evaluated by multiple annotators, and only samples meeting predefined agreement criteria were retained in the final corpus.
Audio Transcription
The Whisper model was used for audio transcription tasks []. Whisper, developed by OpenAI, is a weakly supervised, deep learning–based acoustic model designed for speech recognition and transcription. Due to its high robustness, it was well suited for Chinese speech transcription in this study.
Posttranscription Verification
To improve transcription accuracy, the model was explicitly constrained to use the Chinese language. After transcription, the text output was checked for length and script consistency. Erroneous traditional Chinese characters were replaced with simplified Chinese, and excessively long texts were truncated.
Audio Feature Processing
This module aims to extract informative acoustic representations from preprocessed audio signals to support downstream multimodal fusion. Three representative self-supervised speech models—wav2vec 2.0, HuBERT, and WavLM—are adopted as feature encoders. wav2vec 2.0 learns contextualized representations through contrastive learning and is fine-tuned with a classification head for emotion recognition []. HuBERT extends this paradigm by predicting masked discrete units and combining convolutional feature extraction with Transformer-based context modeling, yielding improved stability on emotion-related tasks [,]. WavLM further enhances the Transformer backbone through gated relative position bias and enlarged pretraining data, achieving strong performance not only in automatic speech recognition (ASR) but also in speaker and non-ASR perceptual tasks [].
The input audio consists of 16-kHz mono waveforms loaded and standardized using torchaudio. Each model first produces frame-level acoustic representations through its convolutional encoder, followed by transformer layers for long-range dependency modeling. To obtain a fixed-length representation, global average pooling is applied to generate a 768-dimensional embedding, which is subsequently projected into the emotion classification space via a fully connected layer.
To improve robustness under noisy and variable conditions, long time frame analysis weighted wavelet packet cepstral coefficient (LW-WPCC) is used as a front-end denoising method []. After partitioning the dataset into training and test sets, data augmentation techniques, including speed and pitch perturbation, together with synthetic oversampling, were applied exclusively to the training set to simulate acoustic variability, increase data diversity, and alleviate class imbalance across emotion categories []. After these procedures, the expanded training set and the original test set comprised a total of 3725 samples, including 2811 training samples and 914 test samples. These strategies collectively improve the reliability of the extracted acoustic features and contribute to more stable performance in real-world SER scenarios.
Text Feature Processing
The text processing module uses BERT and its optimized variant, RoBERTa, both of which have shown strong effectiveness in Chinese language understanding. BERT provides contextualized representations through a transformer encoder and serves as a widely used backbone for classification and semantic analysis tasks. RoBERTa further enhances this architecture by training on larger corpora with dynamic masking and by adopting whole-word masking in Chinese pretraining [], which improves word-level semantic modeling and yields stronger downstream performance [].
In this study, Whisper-transcribed text was first subjected to quality control during preprocessing. To evaluate transcription quality in the noisy clinical environment, a representative subset of recordings was manually assessed, yielding a character error rate of 15.2%. Abnormal or severely truncated transcripts were removed to reduce the influence of transcription errors. The remaining text was tokenized using RoBERTa’s tokenizer with a maximum sequence length of 128. The final-layer hidden states are extracted to obtain 768-dimensional contextual embeddings for each token. These embeddings constitute the text-modality features and are subsequently integrated with acoustic representations through the cross-attention fusion module.
Multimodal Fusion Design
The multimodal fusion technology flowchart is shown in .

To achieve effective multimodal integration, this study used 3 fusion strategies. The first 2 are the conventional early fusion and late fusion approaches, and the third is a novel mechanism combining cross-modal multihead attention [] with a dynamic gating strategy []. The proposed hybrid fusion mechanism is configured as follows: unimodal features are first extracted from each modality. The model batch size is denoted as B, the audio sequence length as Ta, the text sequence length as Tt, and the hidden dimension as d.
The hidden states from the final layer of the audio and text modalities are denoted as A and T, respectively. R denotes the set of real numbers, specifying the element type of the tensor. In cases where the original feature dimensions are inconsistent, they are linearly projected into a unified dimensional space.
The cross-modal multihead attention mechanism uses multiple attention heads simultaneously. Each attention head independently learns modality-specific features and produces fusion results from distinct representational perspectives. Accordingly, a multilayer multihead attention mechanism is used, and its implementation is outlined as follows:
To enhance text representations using audio features, text features T are used as the Q (query), while audio features A serve as the K (key) and V (value). The number of model layers is denoted as k. For each attention head i = 1 , ... , h, a learnable projection matrix is defined.
The attention computations are performed separately for each head:
For each head internally, the attention-related weights are obtained based on the scaled dot product, where the attention score is denoted as S:
A mask is applied to exclude invalid audio frames ωA:
Weighted summation and normalization are then performed:
The output projection matrix is denoted by WO and represented as WO ∈ Rd×d, ultimately yielding the text features Te, which contain the injected audio information.
To enhance audio representations using text features, this procedure mirrors the previous one: audio feature A serves as Q (query), while text feature T functions as both K (key) and V (value). The number of model layers is denoted as k. For each attention head i = 1, ... , h, another set of learned projection matrices is established, namely:
Compute attention scores and apply masks to block invalid frames ωT in the text:
Weighted summation and normalization are then performed to obtain audio features Ae with incorporated text information:
Layer stacking is performed on the obtained Te and Ae. By alternately executing these 2 steps across multiple layers, multiple rounds of information exchange are achieved, enabling alignment between the 2 modalities in the semantic space.
The study used a dynamic modal gating mechanism to concatenate global audio and textual features, followed by SoftMax normalization to compute modality weights. To address the limited semantic information contained in excessively short texts as well as the potential confusion caused by transcription errors and redundant content in overly long texts, a text-length-aware gating mechanism is introduced to dynamically adjust the contribution of textual features according to the effective text length.
Global pooling is initially performed on audio and text features:
The linear mapping yields logits:
To effectively filter out semantic sparsity in extremely short utterances and prevent emotional dilution in overly long segments, a dual-sigmoid band-pass gating mechanism is incorporated. The function is defined by the effective text length Lt, a maximum weight capacity M, lower and upper activation thresholds τ1 and τ2, their corresponding slopes ρ1 and ρ2, and a numerical protection parameter ε to maintain stability.
Perform SoftMax normalization on the final results to obtain the audio-text weights α and the fused modalities.
Let the weight matrix be Wc and the bias parameter as bc. The sequence length is Th. A classification head is added to obtain the vector z after temporal average pooling and the final prediction result y ̂:
Given the actual outcome y and the emotion category C, the loss function is computed as follows:
Experimental Design
To investigate the application of audio and text pretrained models, as well as the multimodal model proposed in this study based on cross-modal multihead attention mechanisms, in doctor-patient communication dialogues, we designed prediction tasks and comparative experiments. Furthermore, we conducted ablation experiments on the optimal model identified, namely, the multimodal multihead attention model, to evaluate the contribution of each component and validate the robustness of the proposed framework.
Experimental Setting
All experiments were implemented using the PyTorch framework. After data augmentation, limited oversampling, and the incorporation of Emotional Speech Dataset (ESD) samples exclusively into the training set, the final dataset had an approximately 8:2 training-to-test ratio. Different random seeds were used across repeated training runs to account for variability in model training, while the other experimental settings were kept consistent. The model was trained using the AdamW optimizer with an initial learning rate of 1 × 10–5, a batch size of 16, and 15 training epochs. Cross-entropy loss was used as the optimization objective.
For the proposed cross-modal fusion framework, the number of attention heads was set to 8, and the number of stacked fusion layers was set to 2. The hidden dimension d was determined by the hidden size of the pretrained HuBERT encoder. In the dynamic weighting mechanism, the maximum text-modal weight M was set to 0.5, the lower threshold τ1 was set to 8.0, the upper threshold τ2 was set to 40.0, the slope coefficients ρ1 and ρ2 were set to 0.5 and 0.15, respectively, and the protection parameter ε was set to 1 × 10–8. The classification head consisted of a fully connected layer with 256 hidden units followed by a LeakyReLU activation function with a negative slope of 0.01.
All experiments were conducted on a workstation equipped with an NVIDIA GeForce RTX 4060 GPU and an Intel Core i5-12490F CPU.
Data Description
The experimental dataset was constructed from a self-developed emotion-labeled speech corpus derived from authentic doctor-patient conversations recorded in hospital consultation rooms and relevant online documentaries. During corpus construction, a multiround annotation process was conducted involving 20 annotators, including medical students and physicians (9/20, 45%) as well as nonmedical participants (11/20, 55%), aged between 20 and 50 years. Annotators were instructed to identify the dominant emotion conveyed by each audio clip based on both semantic content and acoustic characteristics, such as tone, speaking rate, and prosody. Audio clips were randomly assigned to annotators to reduce selection bias, and each clip was independently evaluated by at least 5 annotators. Audio clips could be replayed when necessary. In addition, low-quality samples with severe background noise, incomplete semantic content, or poor recording quality were removed during the annotation process. Samples achieving an interannotator agreement rate above 70% were assigned the corresponding emotional label and retained, while samples with lower agreement were excluded. To quantitatively evaluate interrater reliability, Fleiss κ was calculated for the annotation process. The initial set of annotated samples yielded a Fleiss κ value of 0.3825. After excluding samples with low agreement and retaining only those meeting the predefined quality criteria, the Fleiss κ increased to 0.6584.
After annotation, the self-collected dataset initially consisted of 3513 utterances across 6 emotion categories: angry (ANG), happy (HAP), sad (SAD), neutral (NEU), surprise (SUR), and fear (FEA). Of these, 2122 utterances were obtained from hospital conversations and 1391 from documentary recordings. The dataset was first partitioned into 2599 training utterances and 914 test utterances. To reduce the risk of data leakage, utterances sharing the same speaker label were not assigned to both the training and test sets where speaker labels were available. The test set was fixed after this partition and remained unchanged throughout the subsequent data processing. Data augmentation and limited oversampling were applied exclusively to the training set, increasing its size from 2599 to 2811 samples. Subsequently, 846 Chinese emotional speech samples from the publicly available ESD [] dataset were incorporated exclusively into the training set to supplement underrepresented emotion categories and further adjust the class distribution. No ESD samples were added to the test set. The final dataset therefore comprised 3657 training samples and 914 test samples, for a total of 4571 samples and a training-to-test ratio of approximately 8:2.
Evaluation Criteria
Model performance was evaluated on the test set using accuracy, precision, recall, F1-score, and the confusion matrix. For the multiclass emotion classification task, accuracy is defined as the proportion of correctly classified samples among all evaluated samples. Here, we adopted a one-vs-rest strategy to derive the true positives TPi, false positives FPi, and false negatives FNi for each specific emotion category i:
N represents the total number of samples in the test set, and C is the total number of classes, which is set to 6 in this study.
The confusion matrix is a k × k matrix whose rows represent true classes and columns represent predicted classes, with each entry (i, j) indicating the number of samples from class i predicted as class j. It serves as the basis for deriving precision and recall. Precision measures the fraction of predicted positives that are correct, while recall (sensitivity) measures the fraction of actual positives correctly identified:
To jointly reflect these 2 metrics, the F1-score is computed as:
To account for class imbalance, the macroaverage-F1-score is further reported:
For the main performance evaluation, the model was trained in 3 independent runs using different random seeds. For each run, test accuracy was evaluated over 5 training epochs during the stable phase, and the checkpoint with the highest test accuracy among these epochs was selected. Its test accuracy was recorded as the run-level performance. The mean of the 3 run-level performances was reported as the main experimental performance. Additional runs were also conducted to obtain observations for the subsequent 2-tailed paired t test. For each run, the average accuracy over 5 consecutive epochs in the stable phase was calculated and used as 1 run-level observation in the test.
Baseline Model
To validate the effectiveness of the proposed model, several baseline models were established for comparison.
Traditional Machine Learning Model (Mel-Frequency Cepstral Coefficients + Support Vector Machine)
Several traditional models were used to compare predictive performance. In this study, low-dimensional acoustic features were extracted from speech using mel-frequency cepstral coefficients (MFCCs), followed by multiclass emotion classification with a support vector machine (SVM). Alternatively, audio signals were transformed into 2D spectrograms or log-Mel spectrograms, which were then used as input to standard CNNs for end-to-end feature learning and classification. In a further approach, CNN layers were used to extract high-level features directly from raw spectrograms, and long short-term memory (LSTM) layers were used to capture temporal dependencies [-].
Single-Mode Model
Fine-Tuning RoBERTa
Speech is first transcribed into text using a high-performance ASR system (eg, Whisper or wav2vec 2.0–connectionist temporal classification [CTC]), after which the text is fed into the pretrained RoBERTa model for emotion classification. This approach leverages semantic information from speech content but disregards acoustic cues such as pitch and speech rate [].
Fine-Tuning BERT
Speech is transcribed using a high-performance ASR system, and the resulting text is classified using a pretrained BERT model [].
Fine-Tuning HuBERT
The HuBERT model is fine-tuned end-to-end on emotion recognition datasets. This involves adding a classification head to the model and jointly optimizing all parameters for emotion classification [].
Fine-Tuning wav2vec 2.0
The pretrained wav2vec 2.0 model is adapted for emotion-related feature extraction and applied to downstream emotion classification tasks [].
Fine-Tuning WavLM
WavLM is a pretrained model designed for full-stack downstream speech tasks. By adding an emotion classification head and performing fine-tuning, it can effectively perform emotion classification.
Fine-Tuning the Massively Multilingual Speech Model
The massively multilingual speech (MMS) model proposed by Meta AI is a large-scale multilingual speech representation learning framework. It is designed to support speech recognition and related tasks across more than 1100 languages within a unified framework. By adding a classification head and fine-tuning the model, it can also be adapted for SER.
Multimodal Fusion Models
Trainable Late Weighted Fusion Model
Audio and text models are trained separately on their respective training sets. The trained models are subsequently fused through linear weighting, with the fusion weights automatically fine-tuned according to the fusion model’s outputs.
Trainable Early Fusion Concatenation Model
Feature representations are extracted separately from speech and text. The feature vectors are concatenated along the feature dimension (early fusion) and subsequently fed into a downstream classification network for joint training. The concatenation weights are automatically learned and optimized during the end-to-end training process at the feature layer, enabling the effective fusion of cross-modal information.
Cross-Modal Multihead Attention–Dynamic Gating Fusion Strategy Hybrid Model
This approach constructs a fusion model by integrating audio and text models with the previously described cross-modal multihead attention mechanism and a dynamic gating fusion strategy.
Recently Released Multimodal Models
Self-Attention Multiscale Fusion
The self-attention multiscale fusion model extracts multichannel, multiscale features through dual speech and text branches combined with multihead self-attention. It achieves multimodal emotion recognition via feature-level concatenation and decision score (DS) fusion [].
KoHMT Multimodal Model
This model uses pretrained HuBERT for embedding extraction, followed by pretrained KoELECTRA for contextual embedding extraction. The features are subsequently integrated through a cross-modal attention module [].
MemoCMT Model
This model uses HuBERT for audio feature extraction and BERT for text feature extraction, with subsequent feature fusion performed via a cross-modal transformer (CMT) [].
Cross-Modal Distillation
The cross-modal distillation model uses BERT and wav2vec 2.0 as teacher models to transfer their speech and text features to a lightweight student model. Combined with contrastive learning and cross-attention, CMD achieves fine-grained emotion classification [].
Ablation Experiment Design
Ablation experiments were conducted on the cross-modal multihead attention model based on HuBERT and RoBERTa. In the unimodal audio model, all components related to text feature processing were removed, and the model relied exclusively on audio features for prediction. In the unimodal text model, all components related to audio feature processing were removed, and the model relied exclusively on text features for prediction. In the weighted model fusion with dynamic gating strategy, the audio and text networks were trained independently, and their respective logits were combined through learnable weights via a dynamic gating fusion strategy. This setting aimed to assess the contribution of the multihead attention mechanism. In the multihead attention mechanism-only model, the dynamic gating fusion strategy was removed to independently assess the effectiveness of the multihead attention mechanism. Finally, in the model without pretrained weights, random weights were applied during model initialization instead of pretrained parameters to validate the contribution of powerful pretrained language models to emotion recognition.
Instance-Based Validation
To comprehensively assess the practical applicability of the proposed model in authentic clinical communication, an instance-based validation experiment was conducted. Real-world physician-patient dialogues were collected from complete and uninterrupted recordings in outpatient consultation settings, ensuring that the linguistic expressions, emotional fluctuations, and contextual dependencies closely reflected actual medical interactions. The dataset comprised 8674 seconds (approximately 2.4 hours) of audio, covering diverse consultation topics and varying levels of emotional intensity.
These audio segments were directly fed into the model as test inputs. After applying a unified preprocessing pipeline, the model generated emotion predictions in real time, simulating an online decision-support scenario. In parallel, experienced medical professionals independently listened to the same recordings and annotated the emotional state of each utterance. To ensure reliability, annotations followed a predefined guideline, and ambiguities were resolved through discussion until consensus was reached.
A subsequent comparison between machine-generated predictions and human expert labels was performed to evaluate the model’s emotion perception capability in real clinical communication. This step provides critical evidence regarding the model’s robustness, interpretability, and potential utility for supporting emotion-aware medical dialogue systems.
Ethical Considerations
This study was approved by the Ethics Committee of Capital Medical University (application number 2025SY042). Prior to participating in the study, all participants were fully informed of the research objectives, recording procedures, and the intended scope of data usage. Written informed consent was obtained from all participants prior to data collection.
To protect participant privacy and confidentiality, all recorded doctor-patient conversations underwent a deidentification process before analysis. The recordings and corresponding transcripts were manually reviewed by the data collectors and clinical physicians to remove personally identifiable information and other sensitive content. Only deidentified data were used for subsequent analysis, model development, and evaluation.
No personally identifiable information was included in the manuscript or supplementary materials. All results are reported in an aggregated form, and no images, audio samples, transcripts, or other materials that could reveal participant identities are presented. Therefore, individual participants cannot be identified from any content reported in this study.
Participants received no financial compensation for participation in this study.
Results
The baseline model’s performance evaluation employed accuracy, precision, recall, and macroaverage-F1-score as assessment metrics. presents a comparison of classification performance between traditional learning methods and pretrained models.
compares the classification performance of traditional learning methods and pretrained models. It is evident that in the complex setting of doctor-patient communication, traditional unimodal machine learning and deep learning approaches, such as SVM, CNN, and LSTM, yielded poor classification results. Under these conditions, relying solely on these methods was insufficient for accurate emotion recognition, thereby limiting their practical applicability.
Emotion recognition models based on pretrained architectures significantly outperformed traditional methods. Among the single-modal pretrained models used in this study, models using audio modality features achieved classification accuracies exceeding 70%. HuBERT demonstrated the highest classification accuracy at 79.21%, with a macroaverage-F1-score of 0.7816, indicating superior performance over other audio modality models. Text modality models achieved classification accuracies of 66.12% and 65.16%, respectively. In summary, among single-modal pretrained models, audio modality models generally outperformed their text modality counterparts and exhibited robust discriminative ability in recognizing emotions within doctor-patient interactions.
presents a comparison of the predictive performance across various multimodal fusion models.
| Method | Accuracy, % | Precision, % | Recall, % | F1-score, % | Macroaverage-F1-score, % |
| SVMa | 60.40 | 61.53 | 58.88 | 60.72 | 59.48 |
| CNNb | 55.58 | 56.81 | 55.27 | 56.08 | 55.36 |
| LSTMc | 55.14 | 55.21 | 54.56 | 54.63 | 53.85 |
| wav2vec 2.0 | 75.05 | 75.22 | 75.05 | 74.69 | 73.79 |
| MMSd | 74.90 | 76.00 | 74.90 | 73.80 | 70.20 |
| HuBERTe | 79.21 | 79.50 | 79.21 | 78.79 | 78.16 |
| RoBERTaf | 66.12 | 66.20 | 66.12 | 65.75 | 64.46 |
| WavLMg | 75.16 | 75.52 | 74.20 | 75.10 | 74.47 |
| BERTh | 65.16 | 65.48 | 65.16 | 65.07 | 63.60 |
aSVM: support vector machine.
bCNN: convolutional neural network.
cLSTM: long short-term memory.
dMMS: massively multilingual speech.
eHuBERT: hidden-unit BERT.
fRoBERTa: robustly optimized BERT pretraining approach.
gWavLM: waveform-based language model.
hBERT: bidirectional encoder representations from transformers.
| Method | Accuracy, % | Precision, % | Recall, % | F1-score, % | Macroaverage-F1-score, % |
| HuBERTa + RoBERTab + CMHA-DGFc | 82.39 | 82.92 | 81.32 | 82.40 | 81.78 |
| HuBERT + BERTd + CMHA-DGF | 80.96 | 81.68 | 79.44 | 80.91 | 80.19 |
| HuBERT + RoBERTa + LFe | 81.18 | 79.78 | 80.03 | 80.55 | 79.40 |
| HuBERT + BERT + LF | 80.09 | 79.42 | 78.80 | 79.61 | 78.53 |
| HuBERT + RoBERTa + EFf | 76.91 | 75.78 | 76.25 | 76.60 | 75.63 |
| WavLMg + RoBERTa + CMHA-DGF | 79.10 | 79.20 | 77.92 | 78.73 | 77.98 |
| WavLM + BERT + CMHA-DGF | 78.67 | 79.55 | 77.82 | 79.01 | 78.33 |
| WavLM + RoBERTa + EF | 70.79 | 71.05 | 68.67 | 70.88 | 69.26 |
| WavLM + RoBERTa + LF | 75.16 | 74.68 | 73.49 | 75.05 | 73.80 |
| wav2vec 2.0 + RoBERTa + CMHA-DGF | 79.65 | 79.05 | 78.63 | 79.54 | 78.74 |
| wav2vec 2.0 + BERT + LF | 78.45 | 78.77 | 77.02 | 78.45 | 77.45 |
aHuBERT: hidden-unit BERT.
bRoBERTa: robustly optimized BERT pretraining approach.
cCMHA-DGF: cross-modal multihead attention–dynamic gating fusion strategy hybrid model.
dBERT: bidirectional encoder representations from transformers.
eLF: trainable late weighted fusion model.
fEF: trainable early fusion concatenation model.
gWavLM: waveform-based language model.
Compared with the HuBERT single-modal baseline, both the late-stage fusion model and the hybrid fusion mechanism exhibited enhanced performance, whereas the early-stage fusion model demonstrated a performance reduction.
Among all models, the hybrid fusion mechanism based on HuBERT and RoBERTa achieved the highest performance, attaining 82.39% accuracy and a macroaverage-F1-score of 0.8178, which represents gains of 3.18 percentage points in accuracy and 0.0362 in macroaverage-F1-score over the HuBERT baseline, reflecting substantial improvements in both overall accuracy and individual emotion prediction.
presents a comparison between the models developed in this study and several recently published models.
Among the recently published models, the KoHMT model achieved the highest performance on this dataset, with an accuracy of 81.73%, whereas the deep learning–based multimodal model SMF obtained an accuracy of 75.60%. Compared with the unimodal deep learning approach LSTM, SMF showed a clear advantage; however, it did not surpass other multimodal models that leverage pretrained architectures. In comparison, the hybrid fusion mechanism model based on HuBERT and RoBERTa, proposed in this study, demonstrated superior predictive performance on medical audio datasets relative to similar models. Furthermore, a 2-tailed paired t test was conducted to compare the proposed model with KoHMT, the best-performing comparison model. The statistical analysis included the 3 runs used for the main performance evaluation and 7 additional paired runs, yielding 10 pairs in total. The training-test split and other experimental conditions were kept consistent across the paired runs. For each run, the average accuracy over 5 consecutive epochs in the stable-loss phase was calculated and used as 1 observation. The corresponding observations from the proposed model and KoHMT formed each pair. The paired t test yielded a P value of .05, indicating a statistically significant difference at the .05 level.
| Method | Accuracy, % | Precision, % | Recall, % | F1-score, % | Macroaverage-F1-score, % |
| HuBERTa + RoBERTab + CMHA-DGFc | 82.39 | 82.92 | 81.32 | 82.40 | 81.78 |
| HuBERT + RoBERTa + LFd | 81.18 | 79.78 | 80.03 | 80.55 | 79.40 |
| HuBERT + BERTe + CMHA-DGF | 80.96 | 81.68 | 79.44 | 80.91 | 80.19 |
| KoHMT | 81.73 | 81.63 | 80.63 | 81.76 | 80.98 |
| CMTf | 80.20 | 80.78 | 78.71 | 80.22 | 79.19 |
| CMDg | 79.21 | 78.81 | 78.29 | 78.95 | 78.36 |
| SMFh | 75.60 | 76.02 | 75.60 | 75.63 | 74.46 |
aHuBERT: hidden-unit BERT.
bRoBERTa: robustly optimized BERT pretraining approach.
cCMHA-DGF: cross-modal multihead attention–dynamic gating fusion strategy hybrid model.
dLF: trainable late weighted fusion model.
eBERT: bidirectional encoder representations from transformers.
fCMT: cross-modal transformer.
gCMD: cross-modal distillation.
hSMF: self-attention multiscale fusion.
The confusion matrices for the single-modal audio models (HuBERT and wav2vec 2.0), multimodal pretrained ensemble models (HuBERT-RoBERTa hybrid fusion model, wav2vec 2.0-RoBERTa hybrid fusion model, and KoHMT), and the multimodal deep learning model (SMF) are presented in .
It can be observed that all models exhibited relatively high prediction accuracy for emotions with pronounced acoustic features, such as anger, happiness, sadness, and calmness, where tonal differences are significant. Conversely, prediction performance was lower for emotions such as surprise and fear, which involve more complex and subtle acoustic patterns. The higher confusion rates of monomodal audio models on certain prominent emotions constitute a key reason for their difficulty in competing with hybrid models. Hybrid models demonstrated more stable and balanced prediction performance across all emotions. For per-emotion prediction across multimodal models, deep learning–based models were generally outperformed by pretrained multimodal models for all emotions except sadness.

presents the results of the ablation experiments conducted to validate the contribution of each model component.
The results demonstrate that the proposed cross-modal multihead attention mechanism combined with dynamic gating fusion significantly improved model performance. Following ablation, the prediction accuracy of the audio branch decreased substantially, becoming comparable to that of the text-only model. In contrast, the prediction accuracy of the text branch exhibited only a slight decline after ablation. These findings suggest that the audio branch contributed more substantially to the final prediction in the proposed framework, while the text branch provided additional complementary information. Together, both branches contributed to the overall improvement in model performance. Multimodal models without either the cross-modal multihead attention mechanism or the dynamic gating fusion strategy showed marked performance drops, confirming the essential roles of both components.
To further evaluate the effectiveness of the LW-WPCC denoising procedure, an additional ablation experiment was conducted specifically for the audio-only HuBERT model, with all other settings unchanged. In this audio-only configuration, the classification accuracy decreased from 79.20% to 77.57%, and the macroaverage-F1-score decreased from 78.16% to 76.66% after removing the LW-WPCC denoising step. This experiment was designed to independently assess the contribution of the LW-WPCC denoising procedure to the audio branch, and the observed performance degradation indicates that LW-WPCC improved the quality and discriminative capability of the audio representation, thereby supporting its contribution to the overall multimodal framework. Further analysis showed that the text-length-aware gating mechanism improved the classification accuracy of short-text samples (≤8 words) from 73.47% to 76.87% and that of long-text samples (>40 words) from 61.40% to 70.18%. These results confirm the effectiveness of the proposed mechanism in mitigating both insufficient semantic information in short texts and confusion caused by transcription errors in long texts.
For models without pretrained weights, emotion classification tasks could scarcely proceed effectively within a limited number of training iterations. Even with extended training, such models struggled to acquire the necessary representational capacity within a reasonable time frame. Compared with randomly initialized models and conventional deep learning models, pretrained models demonstrated substantial performance gains in low-resource scenarios. Consequently, for the domain-specific tasks addressed in this study, transfer learning using pretrained models was an essential component of the methodological framework.
presents the results of the instance-based validation conducted in this study. The upper timeline represents the temporal variation of emotions as identified by human annotators, whereas the lower timeline depicts the corresponding predictions generated by the model. Different colors indicate the recognized emotional states within each time segment.
For instance-level validation, long recordings were segmented using the same preprocessing strategy adopted during model development. Specifically, valid speech regions were identified and divided into clips with durations comparable to those of the training samples (5-10 seconds), and each clip was independently processed for emotion prediction. The resulting predictions were subsequently organized in chronological order to obtain the final emotional trajectory of the complete recording. Nonspeech intervals (no dialogue) were identified during the same preprocessing procedure and were used only to preserve the temporal continuity of the visualization timeline. Since these intervals were not subjected to emotion classification, they were excluded from the accuracy calculation. Meanwhile, model performance was evaluated by comparing the predicted labels with the manually annotated labels on a clip-by-clip basis, and accuracy was calculated as the proportion of correctly classified clips among all evaluated clips within each recording.
The first audio segment had a total duration of 4009 seconds, consisting of 1620 seconds of dialogue and 2389 seconds of silence. The patient’s speaking time was 1051.73 seconds, representing 64.92% of the total dialogue duration. The emotion classification accuracy for this segment was 77.27%. The second audio segment had a total duration of 4665 seconds, consisting of 1987 seconds of dialogue and 2678 seconds of silence. The patient’s speaking time was 1422.16 seconds, representing 71.57% of the total dialogue duration. The emotion classification accuracy for this segment was 78.52%. This instance-based validation demonstrates that the proposed model can maintain a reasonable level of emotion recognition performance on long-duration real-world doctor-patient conversations. In addition, inference efficiency was evaluated on the experimental platform, yielding an average real-time factor below 0.2, indicating that the processing speed was substantially faster than real time. These findings provide preliminary evidence supporting both the effectiveness and practical applicability of the proposed framework in clinical emotion recognition scenarios.
| Method | Accuracy, % | Precision, % | Recall, % | F1-score, % | Macroaverage-F1-score, % |
| Baseline | 82.39 | 82.92 | 81.32 | 82.40 | 81.78 |
| Audio-only CMHA-DGFa | 80.22 | 79.78 | 78.10 | 80.03 | 78.76 |
| Text-Only CMHA-DGF | 64.70 | 62.65 | 62.99 | 64.78 | 62.79 |
| CMHAb | 81.51 | 81.92 | 80.88 | 81.68 | 81.11 |
| LF-DGFc | 80.74 | 81.75 | 79.55 | 80.95 | 80.34 |
| Scratch-trained CMHA-DGF | 27.76 | 4.63 | 16.67 | 12.06 | 7.24 |
aCMHA-DGF: cross-modal multihead attention–dynamic gating fusion strategy hybrid model.
bCMHA: cross-modal multihead attention.
cLF-DGF: trainable late weighted fusion model–dynamic gating fusion strategy hybrid model.

Discussion
Principal Findings
Patient-physician communication, as a core component of health care services, plays a critical role in enhancing patient experience and fostering understanding and cooperation in diagnosis and treatment. However, the current health care system continues to exhibit deficiencies in communication effectiveness, such as difficulties in promptly identifying patient needs and recognizing emotional shifts, which can lead to diminished patient experiences and an increased risk of conflict. Against this backdrop, the rise of AI presents new opportunities and challenges for patient-physician interactions. Pretrained models and multimodal fusion approaches demonstrate strong potential for improving accuracy and enabling practical applications in emotion recognition. However, their application in the medical domain faces challenges, including specialized medical terminology, data privacy protection, and the constraints of few-shot learning. To capitalize on these opportunities and address these challenges, this study used in-field audio recordings of patient-physician interactions collected from hospitals to investigate multiple audio-text pretrained models. Ultimately, a hybrid fusion model based on the HuBERT-RoBERTa framework was selected. This model used a cross-modal multihead attention–dynamic gating fusion strategy to achieve real-time SER in clinical settings.
Experimental validation demonstrated that the proposed model achieved an overall prediction accuracy of 82.39%, with per-class accuracies of 90.84%, 89.73%, 80%, 88.72%, 75%, and 63.64%. These results substantially outperform most unimodal models and show clear advantages over existing multimodal models in emotion recognition for patient-physician interactions.
Overall accuracy was retained as the checkpoint-selection criterion because it showed consistent behavior with the other evaluation metrics in the final model. The overall accuracy (82.39%) was close to the macroaverage-F1-score (81.78%), while the weighted F1-score (82.40%) was almost identical to the overall accuracy, indicating consistent performance assessment at both the overall and class-averaged levels. Therefore, overall accuracy provided a reasonable primary criterion for checkpoint selection in this study, while macroaverage-F1-score was retained as an important complementary metric for assessing performance across emotion categories.
Although macroaverage-F1-score is particularly informative for assessing class-balanced performance, the final results showed no substantial divergence between overall accuracy and macroaverage-F1-score, suggesting that the choice of overall accuracy for checkpoint selection did not materially alter the model assessment in this study.
Model Performance Comparison
This study evaluated 3 audio models (wav2vec 2.0, HuBERT, and WavLM), 2 text models (BERT and RoBERTa), and 3 fusion strategies: early fusion, late fusion, and a hybrid fusion approach that integrates cross-modal multihead attention with a dynamic gating strategy. High-performing models were further subjected to comparative analyses against similar models and to ablation experiments.
In these experiments, traditional unimodal machine learning and deep learning models achieved prediction accuracies of 55% to 61%, with macroaverage-F1-scores consistently below 0.60. Compared with conventional audio data, patient-physician conversations typically involve environmental noise, complex emotional expressions, and highly specialized terminology. Traditional emotion recognition methods show limited robustness to such interference, making accurate emotion recognition particularly challenging in this domain. Consequently, the introduction of more advanced machine learning architectures or pretrained models is essential for accurate emotion recognition in medical communication.
Monomodal pretrained models substantially outperformed traditional emotion recognition methods on this dataset. Audio-based pretrained models achieved accuracies above 74%, whereas text-based pretrained models reached slightly lower levels, at 65% to 66%. Existing research indicates that speech outperforms text in short-duration, strongly expressed emotions, natural conversations, and real-time detection []. The audio clips used in this study were generally short, and each dialogue segment contained only limited textual information. The limited effectiveness of text-based recognition in identifying strongly expressed emotions, such as anger or sadness, contributed to this outcome. Among all audio-based pretrained models, the HuBERT model achieved the highest performance, with a prediction accuracy of 79.21%. HuBERT’s clustering procedure and its clearer, more consistent learning objectives were key factors underlying its superior performance [].
Given the relatively lower performance of the text-based models, the potential impact of transcription errors was further examined. Further analysis showed that more than 80% of the transcription errors were homophonic substitutions. Although these errors altered the surface form of the text, much of the contextual information remained preserved. RoBERTa could partially mitigate their influence through contextual representations, while the acoustic modality provided complementary emotional information when textual features were affected by transcription errors.
Most multimodal models exhibited substantial performance improvements over their baseline audio counterparts. Analysis of the confusion matrices of multimodal models and their baseline audio models revealed that audio models tended to overfit certain emotions in multiemotion classification, thereby reducing accuracy for specific emotions []. In contrast, multimodal models leveraged features from both audio and text, yielding more balanced predictions across all emotions and thereby improving overall accuracy.
However, due to inherent differences between audio and text features, the choice of fusion method has a critical impact on model performance. Inappropriate fusion approaches, such as the simple early feature fusion examined in this study, not only fail to exploit multimodal advantages but may also introduce cross-modal interference, thereby reducing prediction accuracy relative to stand-alone audio models. Conversely, appropriate fusion methods amplify the advantages of multimodal models over unimodal ones. The hybrid model using a cross-modal multihead attention–dynamic gating fusion strategy, proposed in this study, achieved relative improvements exceeding 4% over its baseline audio model when combined with RoBERTa, whereas the late fusion model yielded only 2% to 3% relative gains. The inherent performance of the baseline models strongly influenced the effectiveness of the fusion models. Models such as HuBERT and RoBERTa, which performed well in fusion settings, also exhibited strong baseline performance in their respective unimodal models. Thus, preliminary evaluation of unimodal models holds practical value for model selection.
In the low-resource setting of this study, the relatively large parameter scale of the pretrained multimodal model compared with the available dataset presents a potential risk of overfitting. In our work, we initialized the model with large-scale pretrained parameters, enriched data heterogeneity by incorporating samples from different sources and recording conditions, and strictly applied limited oversampling-based data augmentation to the training set. In subsequent evaluation, the results yielded relatively high overall accuracy and consistent performance across various metrics, indicating no clear evidence of substantial overfitting in the reported results. Although these findings are encouraging, they do not completely exclude the possibility of residual overfitting; therefore, the limited dataset size remains a constraint of this study.
Ablation experiments on the hybrid fusion model examined the impact of the text module, audio module, cross-modal multihead attention mechanism, dynamic gating fusion strategy, and pretraining parameters on model performance. The varying degrees of performance decline observed when either the audio or text module was removed suggest that the model primarily relied on the audio modality for prediction, with the text modality providing complementary support in emotion recognition. Removing the cross-modal multihead attention mechanism and the dynamic gating fusion strategy reduced accuracy by 1.65 and 0.88 percentage points, respectively. Resetting the pretrained parameters rendered the model unable to function effectively. The lower prediction accuracy of the SMF model compared with the multimodal pretrained model in this study further demonstrates that, under low-resource and domain-specific conditions, the representational capabilities of pretrained models play a crucial role in accelerating training and enhancing predictive accuracy.
Clinical Implications
In addition to validating the model’s performance, this study further demonstrates the application potential of multimodal SER technology in intelligent health care settings. The experimental results indicate that the proposed HuBERT-RoBERTa hybrid fusion model, using a cross-modal multihead attention–dynamic gating fusion strategy, could effectively enable real-time SER in clinical environments. By leveraging the complementary information provided by audio and text modalities, the model enables clinicians to better capture patients’ genuine needs and emotional changes, thereby providing timely support for patient-physician communication. As an auxiliary tool, the proposed model has the potential to improve the health care experience, strengthen trust between physicians and patients, reduce communication-related misunderstandings, and help ensure that patients fully understand their treatment plans.
Limitations
This study still has certain limitations. First, the overall dataset size was relatively limited, although patient-physician conversation data were collected from multiple hospitals and supplemented with publicly available datasets. However, due to the difficulty of acquiring patient-physician conversation data and the substantial dialectal variations across different regions of China, relevant data remained insufficient to fully capture the diversity of real-world clinical scenarios, which may limit the applicability of the model in broader clinical settings. In addition, although the ESD samples accounted for only a limited proportion of the overall dataset, using studio-recorded acted speech to supplement the relatively underrepresented fear and happiness categories may have resulted in differences in acoustic characteristics compared with spontaneous clinical dialogue. Such source-related differences may have had an influence on the model’s performance in recognizing the fear and happiness categories. Expanding the use of more diverse real-world medical audio data may be a potential approach to further reduce such source-related differences and improve the generalizability of the model.
Second, hospital data are inherently affected by background noise, device noise, and interference from multispeaker interactions. To mitigate the impact of noise on model performance, speaker diarization, silence-threshold calculation, and other preprocessing procedures were applied to the original recordings, together with data augmentation strategies to improve the model’s adaptability to noisy conditions. However, noise sources in real clinical environments are complex and highly variable, and these approaches cannot fully account for all possible noise conditions. Consequently, the model’s performance may still have been affected in certain complex scenarios.
Third, all audio labels in this study were manually annotated. To reduce bias introduced by individual subjective judgments, a multiannotator voting mechanism was adopted to determine the final labels and improve annotation consistency. However, there may have been differences in annotators’ professional backgrounds, experience levels, and judgment criteria. In addition, due to practical constraints, the number of annotators involved in this study was relatively limited, making it difficult to completely eliminate potential biases introduced during manual annotation.
Finally, due to incomplete speaker annotations in portions of the real-world recordings and the heterogeneous nature of the integrated datasets, although speaker independence was considered during dataset partitioning, a strictly speaker-independent evaluation could not be fully guaranteed. In addition, the result with the highest accuracy among the final 5 training epochs was selected based on test-set performance. Although this strategy was adopted to reduce the influence of fluctuations during the final stage of training, the use of test-set performance for result selection may have led to optimistic estimates of model performance.
Future Directions
In future research, we plan to train the model on larger datasets, enhance its generalization by incorporating data from multiple hospitals across different regions, and continue optimizing data augmentation strategies through additional rounds of data calibration. Additionally, we plan to adapt pretrained models to specific domains through continuous pretraining. We also intend to explore the integration of LLMs and advanced ASR correction techniques to reduce transcription errors in noisy clinical environments, improve transcription efficiency, and further enhance the quality of textual representations used for downstream emotion recognition tasks. By integrating lightweight transformers with real-time inference mechanisms, we aim to deploy this multimodal framework in intelligent patient-physician interaction systems and speech emotion monitoring platforms. This will support practical applications such as clinical diagnostic assistance and the enhancement of patient satisfaction.
Conclusions
Overall, the findings of this study indicate that pretrained models and multimodal architectures can be effectively applied to SER in patient-physician conversations. Compared with traditional emotion recognition methods, pretrained models demonstrated superior recognition performance on clinical communication data, while multimodal approaches further improved classification accuracy and prediction balance by integrating complementary information from audio and text modalities. Among all evaluated models, the HuBERT-RoBERTa hybrid fusion model using a cross-modal multihead attention–dynamic gating fusion strategy achieved the best overall performance. These findings provide new insights into improving patient experience, strengthening patient-physician trust, and advancing intelligent health care interaction systems.
Acknowledgments
The authors sincerely thank all participants for their involvement.
Funding
The authors declared no financial support was received for this work.
Data Availability
Data are available upon request from the corresponding author.
Generative AI Use
During the preparation of this manuscript, generative AI tools were used solely for language polishing and assistance with English translation and readability improvement. These tools were not used for generating, analyzing, or interpreting any scientific content. The authors take full responsibility for the integrity, accuracy, and originality of all scientific aspects of the manuscript, including study design, data collection, analysis, and conclusions.
Authors' Contributions
Conceptualization: QY
Data curation: YY, HT, GY
Funding acquisition: YG
Investigation: HT, GY
Methodology: YY, QY
Resources: HT
Software: YY
Supervision: HT
Validation: YY, GY
Writing – original draft: YY, QY
Writing – review & editing: YY, QY
Conflicts of Interest
None declared.
References
- Wan P, Huang Z, Tang W, Nie Y, Pei D, Deng S, et al. Outpatient reception via collaboration between nurses and a large language model: a randomized controlled trial. Nat Med. 2024;30(10):2878-2885. [CrossRef] [Medline]
- Ha JF, Longnecker N. Doctor-patient communication: a review. Ochsner J. 2010;10(1):38-43. [FREE Full text] [Medline]
- Du L, Xu J, Chen X, Zhu X, Zhang Y, Wu R, et al. Rebuild doctor-patient trust in medical service delivery in China. Sci Rep. 2020;10(1):21956. [FREE Full text] [CrossRef] [Medline]
- Antel R, Abbasgholizadeh-Rahimi S, Guadagno E, Harley JM, Poenaru D. The use of artificial intelligence and virtual reality in doctor-patient risk communication: a scoping review. Patient Educ Couns. 2022;105(10):3038-3050. [CrossRef] [Medline]
- Sauerbrei A, Kerasidou A, Lucivero F, Hallowell N. The impact of artificial intelligence on the person-centred, doctor-patient relationship: some problems and solutions. BMC Med Inform Decis Mak. 2023;23(1):73. [FREE Full text] [CrossRef] [Medline]
- Lombardo C, Esposito G, Carbone S, Serrano S, Mento C. Speech analysis and speech emotion recognition in mental disease: a scoping review. Front Psychol. 2025;16:1645860. [FREE Full text] [CrossRef] [Medline]
- Jordan E, Terrisse R, Lucarini V, Alrahabi M, Krebs M, Desclés J, et al. Speech emotion recognition in mental health: systematic review of voice-based applications. JMIR Ment Health. 2025;12:e74260. [FREE Full text] [CrossRef] [Medline]
- Stolcke A. Linguistic knowledge and empirical methods in speech recognition. AI Mag. 1997;18(4):25-31. [FREE Full text] [CrossRef]
- Chen LW, Rudnicky A. Exploring wav2vec 2.0 fine tuning for improved speech emotion recognition. 2023. Presented at: Proceedings of the 2023 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP); June 4-10, 2023:1-5; Rhodes Island, Greece. [CrossRef]
- Xiao H, Luo L. An automatic sentiment analysis method for short texts based on transformer-BERT hybrid model. IEEE Access. 2024;12:93305-93317. [CrossRef]
- Zhang Y, Xu H, Zhang D, Xu R. A hybrid approach to dimensional aspect-based sentiment analysis using BERT and large language models. Electronics. 2024;13(18):3724. [CrossRef]
- Ni Y, Ni W. A multi-label text sentiment analysis model based on sentiment correlation modeling. Front Psychol. 2024;15:1490796. [FREE Full text] [CrossRef] [Medline]
- Zou H, Wang Y. A novel large language model enhanced joint learning framework for fine-grained sentiment analysis on drug reviews. Neurocomputing. 2025;626:129589. [CrossRef]
- Makhmudov F, Kultimuratov A, Cho YI. Enhancing multimodal emotion recognition through attention mechanisms in BERT and CNN architectures. App Sci. 2024;14(10):4199. [CrossRef]
- Yi MH, Kwak KC, Shin JH. KoHMT: a multimodal emotion recognition model integrating KoELECTRA, HuBERT with multimodal transformer. Electronics. 2024;13(23):4674. [CrossRef]
- Khan M, Tran P, Pham NT, El Saddik A, Othmani A. MemoCMT: multimodal emotion recognition using cross-modal transformer-based feature fusion. Sci Rep. 2025;15(1):5473. [FREE Full text] [CrossRef] [Medline]
- Sigona F, Radicioni DP, Gili Fivela B, Colla D, Delsanto M, Mensa E, et al. A computational analysis of transcribed speech of people living with dementia: the Anchise 2022 Corpus. Comput Speech Lang. 2025;89:101691. [CrossRef]
- Huang Y, Xiao J, Tian K, Wu A, Zhang G. Research on robustness of emotion recognition under environmental noise conditions. IEEE Access. 2019;7:142009-142021. [CrossRef]
- Radford A, Kim J, Xu T, Brockman G, McLeavey C, Sutskever I. Robust speech recognition via large-scale weak supervision. 2023. Presented at: Proceedings of the 40th International Conference on Machine Learning; July 23-29, 2023:28492-28518; Honolulu, Hawaii.
- Hsu W, Bolte B, Tsai YH, 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-3460. [CrossRef]
- Chakhtouna A, Sekkate S, Adib A. Unveiling embedded features in Wav2vec2 and HuBERT msodels for speech emotion recognition. Procedia Comput Sci. 2024;232:2560-2569. [CrossRef]
- 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-1518. [CrossRef]
- Chen S, Dobriban E, Lee JH. A group-theoretic framework for data augmentation. J Mach Learn Res. 2020;21(245):1-71. [FREE Full text]
- Liu Y, Ott M, Goyal N, Du J, Joshi M, Chen D, et al. RoBERTa: a robustly optimized BERT pretraining approach. ArXiv. Preprint posted online on July 26, 2019. [CrossRef]
- Cortiz D. Exploring transformers models for emotion recognition: a comparison of BERT, DistilBERT, RoBERTa, XLNet, and ELECTRA. 2022. Presented at: Proceedings of the 2022 3rd International Conference on Control, Robotics and Intelligent System; August 26-28, 2022:230-234; Virtual event. [CrossRef]
- Vaswani A, Shazeer N, Parmar N. Attention is all you need. 2017. Presented at: Proceedings of the 31st International Conference on Neural Information Processing Systems; December 4-9, 2017:6000-6010; Long Beach, California. [CrossRef]
- Wang Y, Li Y, Liang P, Morency L, Bell P, Lai C. Cross-attention is not enough: incongruity-aware dynamic hierarchical fusion for multimodal affect recognition. ArXiv. Preprint posted online on May 23, 2023. [CrossRef]
- Zhou K, Sisman B, Liu R, Li H. Emotional voice conversion: theory, databases and ESD. Speech Commun. 2022;137:1-18. [CrossRef]
- Seehapoch T, Wongthanavasu S. Speech emotion recognition using support vector machines. 2013. Presented at: Proceedings of the 2013 5th International Conference on Knowledge and Smart Technology (KST); January 31-February 1, 2013:86-91; Chonburi, Thailand. [CrossRef]
- Sareen V, Seeja KR. Speech emotion recognition using mel spectrogram and convolutional neural networks (CNN). Procedia Comput Sci. 2025;258:3693-3702. [CrossRef]
- Mountzouris K, Perikos I, Hatzilygeroudis I. Speech emotion recognition using convolutional neural networks with attention mechanism. Electronics. 2023;12(20):4376. [CrossRef]
- Abdelhamid AA, El-Kenawy EM, Alotaibi B, Amer GM, Abdelkader MY, Ibrahim A, et al. Robust speech emotion recognition using CNN+LSTM based on stochastic fractal search optimization algorithm. IEEE Access. 2022;10:49265-49284. [CrossRef]
- Javanmardi F, Kadiri SR, Alku P. Pre-trained models for detection and severity level classification of dysarthria from speech. Speech Commun. 2024;158:103047. [CrossRef]
- Liu Y, Sun HQ, Guan WB, Xia Y, Zhao Z. Multi-modal speech emotion recognition using self-attention mechanism and multi-scale fusion framework. Speech Commun. 2022;139:1-9. [CrossRef]
- Kim D, Kang P. Cross-modal distillation with audio–text fusion for fine-grained emotion classification using BERT and Wav2vec 2.0. Neurocomputing. 2022;506:168-183. [CrossRef]
- Mobbs R, Makris D, Argyriou V. Emotion recognition and generation: a comprehensive review of face, speech, and text modalities. ArXiv. Preprint posted online on February 2, 2025. [CrossRef]
- Wang N, Yang D. Speech emotion recognition using fine-tuned wav2vec2.0 and neural controlled differential equations classifier. PLoS One. 2025;20(2):e0318297. [FREE Full text] [CrossRef] [Medline]
Abbreviations
| ASR: automatic speech recognition |
| BERT: bidirectional encoder representations from transformers |
| Bi-GRU: bidirectional gated recurrent unit |
| CMD: cross-modal distillation |
| CMT: cross-modal transformer |
| CNN: convolutional neural network |
| CTC: connectionist temporal classification |
| DS: decision score |
| ESD: Emotional Speech Dataset |
| HuBERT: hidden-unit BERT |
| LSTM: long short-term memory |
| LW-WPCC: long time frame analysis weighted wavelet packet cepstral coefficient |
| MFCC: mel-frequency cepstral coefficient |
| MMS: massively multilingual speech |
| RoBERTa: robustly optimized BERT pretraining approach |
| SER: speech emotion recognition |
| SMF: self-attention multiscale fusion |
| WavLM: waveform-based language model |
Edited by A Coristine; submitted 05.Mar.2026; peer-reviewed by K Chauhan, H Wierstorf; comments to author 06.May.2026; revised version received 25.Oct.2026; accepted 29.Oct.2026; published 02.Dec.2026.
Copyright©Yuxiao Yang, Huiling Tian, Geng Yu, Qiuying Yang, Yu Gu. Originally published in JMIR Medical Informatics (https://medinform.jmir.org), 02.Dec.2026.
This is an open-access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work, first published in JMIR Medical Informatics, is properly cited. The complete bibliographic information, a link to the original publication on https://medinform.jmir.org/, as well as this copyright and license information must be included.






























