How to evaluate speech recognition for accents and code-switching
Plan representative speech data, consistent transcripts, and subgroup error checks for accented and mixed-language ASR.
An accent is a normal variation in pronunciation and rhythm; code-switching is alternating between languages within a conversation or utterance. To handle both, evaluate speech systems on the speaker groups and language combinations they will actually serve. The goal is accurate, consistent recognition, not removing an accent. Survey of accented speech recognition
Set data and transcript rules first
Include the accents, dialects, speaking rates, and recording conditions that match the intended use. Work with speakers from those groups to establish transcription conventions. Label switches between sentences separately from words or phrases mixed inside a sentence. Split training, validation, and test data by recording and speaker to avoid the same voice leaking across sets.
Specify how to write language-switch points, borrowed words, names, hesitations, punctuation, numbers, and scripts. For example, decide whether an English word in a Korean sentence stays in English spelling or uses Korean transliteration, then apply that rule to every reference.
Inspect subgroup results, not only the average
Report word error rate (WER) separately by accent, language pair, and switching frequency. A strong overall average can hide concentrated errors in one group. Include sample counts and recording conditions, and review names, numbers, and words near language switches. DECM, a German-English spontaneous-speech benchmark, used test splits with different amounts of code-switching. It is evidence for that language pair and dataset, not every pair. DECM benchmark
Validate the transcript policy with an example
Suppose a speaker says, “Check the logs before tomorrow’s deploy.” Decide in advance whether “deploy” should remain in English spelling or be transliterated. Then classify whether the recognizer misses the switch, substitutes the English word, or joins it incorrectly to neighboring text. This is an illustrative workflow, not a result from a particular system.
WER alone may be too strict when multiple scripts or transliterations are acceptable for the task. PolyWER proposed evaluating Arabic-English mixed speech against alternative transliterations and translations and comparing with human judgments. Treat it as a research proposal for that setting; define alternatives suited to your own task. PolyWER study
Improve by error type
Check whether each accent and language pair has enough representative examples and whether the test set resembles real use.
Have fluent transcribers review switch points and proper names.
Locate errors around switch boundaries, specific accents, or specialist terms.
If corrected examples are used for training, measure gains on a separate, untouched test set.
Short clips can make automatic language identification uncertain; if supported, let users specify the language pair or preferred spelling.
Limits
Accents vary across regions and speakers, and one speaker may pronounce words differently across situations. A survey reports that generalizing ASR across accents is difficult in both data collection and modeling. Code-switching research also notes limited language-pair coverage. Do not assume a benchmark score transfers to every speaker; keep checking the language combinations and recording conditions in actual use. Accent survey · 2026 code-switching review