Abstract
Speech applications dealing with conversations require not only recognizing the spoken words, but also determining who spoke when. The task of assigning words to speakers is typically addressed by merging the outputs of two separate systems, namely, an automatic speech recognition (ASR) system and a speaker diarization (SD) system. The two systems are trained independently with different objective functions. Often the SD systems operate directly on the acoustics and are not constrained to respect word boundaries and this deficiency is overcome in an ad hoc manner. Motivated by recent advances in sequence to sequence learning, we propose a novel approach to tackle the two tasks by a joint ASR and SD system using a recurrent neural network transducer. Our approach utilizes both linguistic and acoustic cues to infer speaker roles, as opposed to typical SD systems, which only use acoustic cues. We evaluated the performance of our approach on a large corpus of medical conversations between physicians and patients. Compared to a competitive conventional baseline, our approach improves word-level diarization error rate from 15.8% to 2.2%.
What Problem Does This Paper Address?
In a typical conversation—like a doctor’s appointment or a business meeting—we don't just need to know what was said; we need to know who said it. Traditionally, this is handled by two separate systems:
- Automatic Speech Recognition (ASR): Transcribes audio into text.
- Speaker Diarization (SD): Segments audio into chunks and clusters them by speaker.
These systems are usually "reconciled" in a messy, post-processing step. Because traditional diarization systems only look at the acoustic properties of the voice (the "sound"), they often ignore word boundaries and fail to use the most obvious clue available: the context of the conversation. For example, in a medical setting, the person asking about symptoms is almost certainly the doctor, while the person describing pain is the patient. This paper aims to bridge that gap by creating a unified model that learns from both sound and language.
Methods
The authors use a Recurrent Neural Network Transducer (RNN-T), a popular architecture for end-to-end speech recognition.
The "Joint" Innovation
Instead of just outputting words, the authors augmented the model's vocabulary with special speaker tokens, such as <spk:dr> (doctor) and <spk:pt> (patient). The model is trained to insert these tokens into the transcript whenever a speaker switch occurs.
The Architecture
The RNN-T architecture consists of three main components:
- Transcription Network (Encoder): Uses a combination of Time Delay Neural Networks (TDNN) and Bi-directional LSTMs. It processes raw audio features (log-mel filterbanks) and reduces the time resolution to make the model more efficient.
- Prediction Network: Acts like a language model, predicting the next symbol based on previous ones. It uses "morphemes" (sub-word units) as its basic vocabulary.
- Joint Network: Combines the outputs of the encoder and the prediction network to decide which word or speaker tag to output next.
By training this as one system, the model naturally learns that certain phrases are more likely to be spoken by specific roles, effectively using linguistic cues to help identify the speaker.
Datasets
The model was trained and evaluated on a massive, specialized dataset:
- Clinical Conversations: Approximately 100,000 hours (~15,000 hours of audio) of manually transcribed medical visits between physicians and patients.
- VoxCeleb2: While not used for the joint model (as it lacks long-form transcripts), it was used to train the "strong baseline" speaker embedding system for comparison.
Key Insights and Ideas
- Linguistic Cues Matter: Traditional diarization is "deaf" to the meaning of words. This paper proves that knowing what is being said is a massive advantage for identifying who is speaking, especially in role-based scenarios.
- Eliminating the "Ad Hoc" Step: By outputting speaker tags directly in the word stream, the system avoids the errors that usually happen when trying to align a separate transcript with a separate diarization timeline.
- WDER Metric: The authors emphasize the Word Diarization Error Rate (WDER). Unlike traditional metrics that measure time-based overlaps, WDER measures the percentage of words assigned to the wrong speaker, which is a much more practical metric for real-world transcription services.
Key Results
The results were a landslide victory for the joint approach:
- Diarization Accuracy: The WDER dropped from 15.8% (baseline) to just 2.2% (proposed). This represents an 86% relative improvement.
- Consistency: The joint model was far more stable. While the baseline system had a wide spread of errors across different conversations, the joint model consistently kept errors under 4% for the vast majority of cases.
- ASR Trade-off: There was a very slight "tax" on transcription accuracy. The Word Error Rate (WER) increased slightly from 18.7% to 19.3%, likely because the model is now multitasking.
Limitations and Future Work
- Role-Based Constraints: This system is currently optimized for scenarios with a limited number of well-defined roles (like Doctor/Patient). It is unclear how well it would scale to a 10-person boardroom meeting where roles are fluid.
- Data Requirements: Training this model requires transcripts that are already decorated with speaker labels. Such high-quality data is much harder to find than plain audio or plain text.
- The "Black Box" of Cues: The authors acknowledge they haven't yet quantified exactly how much of the improvement comes from the audio vs. the text.
- Future Directions: The team plans to expand the model to handle more speakers and include other "decorations" like punctuation, capitalization, and even non-verbal emotional cues.
Summary updated