Technology

Character error rate (CER)

Karsten B. Kreh Karsten B. Kreh Updated on

Also known as: CER

The character error rate (CER) is a metric that states how many characters a transcript renders wrongly, omits or adds when compared with a reference text. It is calculated from the sum of substitutions, deletions and insertions at letter level, divided by the number of characters in the reference text.

How it works

The character error rate compares two strings of characters: the reference text, meaning the verified wording of a recording, and the hypothesis, meaning the transcript of the speech recognition. The basis is the Levenshtein distance, the smallest number of single-character operations that turn the hypothesis into the reference text (Levenshtein, 1966). OCR-D distinguishes the same three operations as for the word error rate, applied to characters instead of words: a substitution (SS), a deletion (DD) and an insertion (II) (OCR-D, n.d.). The formula is:

CER=S+D+IN\text{CER} = \frac{S + D + I}{N}

NN is the number of characters in the reference text, spaces included. An example: the reference text “StPO” has four characters. If the speech recognition writes “St.PO”, a full stop has been inserted, so S=0, D=0, I=1. CER = 0+0+14=0.25\frac{0 + 0 + 1}{4} = 0{.}25. OCR-D represents a character as a grapheme cluster, which is one or more Unicode code points that form one written character. So “ß”, for example, counts as a single character.

Relevance for transcripts in a forensic context

A transcript from an interview or a telephone surveillance contains abbreviations, case reference numbers and numbers whose exact spelling matters for the case file. The character error rate shows whether a high word error rate stems from missing content or only from spelling.

In the memozero measurement series (Kreh, 2026), a test with the abbreviations StPO, BKA, DNA and MRT had a word error rate of 0.39 but a character error rate of only 0.086. The model had recognised the terms correctly and had only written them differently, for example with full stops or spaced apart. In the test with numbers and dates, the picture reversed: word error rate 0.41, character error rate 0.56. The spoken German “vierzehnter März” became “14. März”, correct in content but entirely different at letter level.

A third case appeared with deep dialect. The Alsatian clips from the same measurement series had a word error rate of 0.82 but a character error rate of only 0.37 (Kreh, 2026). There the model falls back on standard German words and matches individual sounds, without matching the spelling of the dialect itself. For the editor this means that a single value is not enough. Only the comparison of both measures shows whether an error changes the meaning of a transcript or only its spelling.

The word error rate (WER) applies the same approach at word level instead of character level (Morris, Maier & Green, 2004). A misspelled abbreviation counts as a whole error for the word error rate, but only as the differing letters for the character error rate. The word error rate shows how many words the editor has to check, and the character error rate shows whether the content of these words is right.

The Levenshtein distance is the calculation rule behind the character error rate. It is the smallest number of substitutions, deletions and insertions that turn one string of characters into another (Levenshtein, 1966). The character error rate divides this distance by the number of characters in the reference text, which makes it comparable between texts of different length. Without this normalisation, a short sentence with one typing error could not be compared with a long record with ten typing errors.

Frequently asked questions

Does a low character error rate mean a transcript is correct?

No. The character error rate assesses only the spelling. It does not assess the speaker assignment, or whether a single wrong word changes the meaning of a sentence. A transcript with few but serious errors in content can have a lower character error rate than one with many harmless deviations in punctuation.

Why can the character error rate be lower than the word error rate?

A single misspelled word weighs fully on the word error rate, while the character error rate rises only by the differing letters. In the test with abbreviations from the memozero measurement series (Kreh, 2026), the word error rate was 0.39 and the character error rate only 0.086, because the model had recognised the terms and had only written them differently.

Can the character error rate rise above 1.0?

Yes, if a speech recognition system inserts more characters than the reference text contains, for example in a repetition loop. OCR-D counters this effect with a normalised variant that divides by the sum of errors and correct characters instead of the number of characters in the reference text, and therefore stays in the range from 0 to 1 (OCR-D, n.d.).

Sources

  1. OCR-D (n.d.): Quality Assurance in OCR-D. https://ocr-d.de/en/spec/ocrd_eval.html
  2. Levenshtein, V. I. (1966): Binary codes capable of correcting deletions, insertions, and reversals. Soviet Physics Doklady, vol. 10, no. 8, pp. 707 to 710. https://ui.adsabs.harvard.edu/abs/1966SPhD…10..707L/abstract
  3. Morris, A. C., Maier, V., Green, P. (2004): From WER and RIL to MER and WIL: improved evaluation measures for connected speech recognition. Interspeech 2004, pp. 2765 to 2768, doi:10.21437/Interspeech.2004-668. https://www.isca-archive.org/interspeech_2004/morris04_interspeech.html
  4. Kreh, K. B. (2026): Speech recognition in 2026: what actually works on your own computer. memozero blog, 10 August 2026. https://memozero.io/en/blog/speech-recognition-2026-on-device/