---
title: 'MedSpeak: Medical ASR Correction'
url: https://www.emergentmind.com/topics/medspeak
type: topic
---

# MedSpeak: Medical ASR Correction

MedSpeak is a knowledge graph–aided error correction and question-answering (QA) framework designed to address the persistent failure modes of automatic speech recognition (ASR) in the medical domain. By leveraging a structured medical knowledge graph (KG) with explicit semantic and phonetic relationships, MedSpeak refines noisy ASR transcripts and improves downstream medical spoken QA by incorporating large language model (LLM)–driven reasoning. The approach systematically resolves domain-specific misrecognitions, particularly for specialized terminology and phonetic confusions, and delivers state-of-the-art accuracy for both ASR correction and clinical multiple-choice QA scenarios [2602.00981].

## 1. Background and Motivation

Spoken medical QA systems, including LLM-based clinical dialogue agents, rely heavily on ASR outputs as their textual substrate. However, general-purpose ASR models exhibit substantially higher error rates on medical terms compared to non-domain speech, leading to:

- Substitution errors between clinically distinct entities (e.g., "hypoplasia" misrecognized as "hyperplasia").
- Phonetic confusion between near-homophones with different semantics ("hypertension" vs. "hypotension").
- Propagation of recognition errors into downstream QA, resulting in wrong diagnoses or decision support.

Prior attempts at fine-tuning ASR on limited medical audio have yielded only modest improvements, remaining data hungry and incapable of systematically resolving phonetic near-miss errors. Retrieval-augmented pipelines and KG-based techniques typically neglect phonetic ambiguities, instead relying on textual snippets or semantic edges alone, which is insufficient for high-stakes domains with dense, confusable terminology. MedSpeak's innovation is the integration of both semantic and phonetic relationships within a unified KG–LLM correction pipeline, targeting domain-specific ASR error modes [2602.00981].

## 2. System Architecture

MedSpeak is realized as a modular five-stage pipeline:

1. **Noisy ASR Input:** Initial transcript ($\hat t$) produced by a state-of-the-art ASR model (e.g., Whisper) from raw medical audio.
2. **Knowledge Graph Integration:** Identification of candidate medical terms in $\hat t$; retrieval of semantic ($\mathcal K_{\mathrm{sem}}$) and phonetic ($\mathcal K_{\mathrm{phon}}$) subgraphs for correction.
3. **Phonetic Encoder:** Embedding of both original and candidate tokens via a phonetic encoder, parameterized to capture spelling–pronunciation correspondences (e.g., Double Metaphone+CMUdict lexicon).
4. **LLM-Based Reasoning:** Concatenation of system instructions, user block (noisy transcript, options, retrieved KG context) as prompt; input to a fine-tuned LLaMA-derived large language model.
5. **Final Prediction:** Joint output of the corrected transcript ($\tilde t$) and QA answer ($o^*$) by the LLM.

Pipeline summary:  
Audio → ASR → Noisy Transcript → KG Retrieval → Encoder + Scoring → Candidate Reranking → Corrected Transcript → LLM (with options + KG) → Answer & Final Transcript [2602.00981].

## 3. Medical Knowledge Graph Representation

The MedSpeak KG is formally defined as $G = (V, E)$:

- $V$: medical concepts (e.g., "hypoplasia," "cerebral atrophy").
- $E$: edges typed by relation ("classifies", "due_to", "phonetic").

Each node $v \in V$ is assigned an embedding $h_v \in \mathbb{R}^d$ (pretrained via translational KG objectives such as TransE or GAT over UMLS). Edges are likewise embedded—either as learned matrices $W_r \in \mathbb{R}^{d\times d}$ by relation $r$, or via vector representations. For semantic proximity of terms $w_i, w_j$ within KG, MedSpeak defines:
\[
s_{sem}(w_i, w_j) = \sigma\bigl(h_{w_i}^T W_r h_{w_j}\bigr)
\]
where $\sigma(\cdot)$ is the sigmoid and $W_r$ is relation-specific [2602.00981].

## 4. Phonetic Error Correction via KG

A distinguishing component of MedSpeak is the explicit modeling of phonetic confusability. Each word $w$ and candidate term $t$ are mapped to phonetic embeddings by $f_{phon}$ (e.g., Double Metaphone features, encoded as vectors):
\[
d_{phon}(w, t) = \| f_{phon}(w) - f_{phon}(t) \|_2
\]
Candidates are ranked for possible correction in terms of a joint score:
\[
s(w, t) = \lambda s_{sem}(w, t) + (1 - \lambda)(1 - d_{phon}(w, t))
\]
with $\lambda \in [0, 1]$ controlling the semantic vs. phonetic tradeoff. This formulation ensures prioritization of candidates that are both semantically proximate and phonetically plausible, outperforming prior approaches that neglect either axis [2602.00981].

## 5. LLM Integration and Reasoning for Spoken QA

The LLM module is explicitly prompted to generate corrected transcripts alongside multiple-choice answers, using the following protocol:

- **System instruction:** "You must output exactly two lines:  
   Corrected Text: …  
   Correct Option: A/B/C/D."
- **User context:** comprises the noisy ASR output, choice set $\{A, B, C, D\}$, and the truncated KG context (containing candidate nodes and edges derived as above).

The LLM (LLaMA-derived, with in-domain fine-tuning) receives this structured prompt, enabling joint editing of the ASR transcript and downstream QA by leveraging both in-context semantic/phonetic cues and the candidate answer set [2602.00981].

Training is end-to-end, with a causal language modeling objective:
\[
\mathcal{L}(\theta) = -\sum_{i=1}^{|y|} \log P_\theta(y_i | x, y_{<i})
\]
where $y$ is the tokenized, two-line gold output, and $x$ is the concatenated instruction and user input, thus supervising both transcript correction and QA reasoning [2602.00981].

## 6. Evaluation and Benchmarks

Experiments are conducted on 47 hours of TTS-synthesized speech from MMLU Medical, MedQA (USMLE-based), and MedMCQA. Key metrics:

| Model              | QA Accuracy (%) | WER (%)  |
|--------------------|----------------|----------|
| ZS-ASR             | 50.2           | 77.2     |
| FT+Whisp           | 83.7           | 35.8     |
| MedSpeak           | 93.4           | 29.9     |
| FT-LLM (Oracle GT) | 92.5           | —        |

MedSpeak achieves nearly oracle-level QA accuracy (93.4% vs 92.5% for ground-truth LLM), despite being fed noisy ASR. The phonetic+semantic KG correction yields 5–7 percentage point WER reduction in challenging domains. The framework surpasses prior best systems that use only fine-tuned LLMs or retrieval-augmented prompts without explicit KG or phonetic integration [2602.00981].

## 7. Limitations and Future Directions

Analysis highlights residual errors on ultra-rare medical terms absent from the KG and long-tail phonetic errors. Notable limitations:

- Static KG: fails to capture emerging or novel clinical terminology (e.g., new drugs).
- KG truncation: constrained by input window, limiting the breadth of context the LLM can exploit.

Promising extensions include:

- Continual KG updates from real-time literature scraping.
- Joint training of ASR and KG representation layers.
- Dynamic (learnable) KG subgraph selection within a strict token budget.
- Multimodal augmentation (histopathology, imaging, labs) for further error correction and reasoning [2602.00981].

## 8. Significance and Impact

MedSpeak constitutes the first framework that jointly exploits a structured medical KG (encoding both semantic and phonetic associations) and a fine-tuned LLM for spoken QA error correction. This system sets a new state-of-the-art in both word error rate and medical QA accuracy for the domain, with a workflow and modular design adaptable to other high-risk speech-driven verticals requiring extreme robustness to domain-specific ASR failures [2602.00981].

Source: https://www.emergentmind.com/topics/medspeak