Overfitting: why a model that aces the test can fail in real life

Overfitting explained: why an emotion AI model that aces its test sets can struggle on real speech, and how to spot it.

Two schematic panels using the same dots. In the left panel, a looping line passes through every solid dot while three dashed new dots sit off the line, and an empty box marks it as not carrying over. In the right panel, a smooth line runs close to the solid dots and through the dashed new ones, and a checked box marks it as carrying over. There are no axes, scale or values.

By Jordan Hale

Two men step into a voice-activated elevator in a Scottish town and ask for the eleventh floor. “Eleven.” The elevator does not understand. They try again, louder, then in other accents, and it never does. We wrote about that sketch, from Burnistoun on BBC Scotland, in Eleven! Why voice AI has to hear how people actually speak. (Credit: Burnistoun, BBC Scotland. The clip includes some strong language.)

To be plain about it: the sketch is about accent and speech recognition. The elevator fails to recognize a word, and that is not, strictly speaking, overfitting. But it is a vivid picture of what overfitting leads to: a system that works on the speech it was tuned for, and falls apart on the speech people actually bring to it. That is the subject of this post.

What overfitting means

A model learns from examples. The goal is for it to learn patterns that carry over to examples it has never seen. Overfitting is what happens when it learns the examples themselves instead: their quirks, their particular voices, their recording conditions. It then scores very high on what it has already seen, and poorly on anything new.

The documentation for scikit-learn, a widely used machine learning library, puts it bluntly. A model “that would just repeat the labels of the samples that it has just seen would have a perfect score but would fail to predict anything useful on yet-unseen data. This situation is called overfitting” (scikit-learn).

For emotion AI, this means a model can learn to recognize particular actors, particular sentences or a particular studio sound, rather than how emotion shows up in a voice. On a test that shares those features, it looks excellent. On a phone call from someone it has never heard, it does not.

How test scores get inflated

There are three common routes. None of them requires bad intent.

Training on the test set. This is the plainest one. Test clips, or clips very like them, end up in the training data, and the test then measures memory rather than skill. It can happen by accident, when datasets are merged, copied or re-released. The team behind MSP-Podcast warns that because some speakers appear in more than one test set, those sets “should never be used to train models if speaker-independent results are to be reported” (MSP-Podcast). There is a quieter version too: tuning a model again and again against the same test set. The scikit-learn guide notes that this way “knowledge about the test set can ‘leak’ into the model.”

The same speakers in training and test. If a test speaker’s voice also appears in training, a model can lean on recognizing the person instead of the emotion. A 2023 paper by members of our team with our cofounder Shri makes the point directly. Without speaker independence, “the system may deceptively appear to be highly performing, whereas in reality it may be the case that it only learns to exploit spurious correlations” (Antoniou et al., ICASSP 2023).

Acted, prototypical data. Clear, acted portrayals are easier to classify than everyday speech. The organizers of the 2009 Interspeech Emotion Challenge noted that earlier four-class results on their own corpus rose noticeably when only very prototypical cases were kept. They noted that keeping only clear, prototypical cases is “not only a clever move to push classification performance,” but also follows from the lack of an unequivocal ground truth (Schuller, Steidl and Batliner, 2009). A model tuned on that kind of data learns the textbook version of each emotion, and real people rarely speak in textbook. Small acted corpora also repeat the same few actors and the same lines. The twelve sentences in CREMA-D include, as it happens, “It’s eleven o’clock.” A model can end up learning those lines rather than the emotion behind them.

How to spot it

You cannot see inside someone else’s training data. You can still look for warning signs.

  • Big gaps between test sets. A model that scores very high on one or two sets and much lower on others, especially on real speech, deserves questions. A model that has learned emotion should lose some ground when the recordings change. It should not collapse.
  • Scores that look too good on acted data. Human listeners do not always hear what the actor intended either. In CREMA-D, individual raters who heard only the audio matched the intended emotion well under half the time on average (Cao et al., 2014). A model that scores close to perfect against the intended labels of an acted set is worth a second look. Has it seen these clips, these speakers or these sentences before?
  • No reproducible protocol. If you cannot find which clips were used, how they were split, which labels and classes were scored, and how missing answers were counted, you cannot tell real progress from a lucky or leaky setup.

None of these proves overfitting on its own. Together, they are a good reason to ask more. We are describing a general pattern across the field here, not any particular system.

What honest evaluation looks like

The fixes are not exotic. They are mostly about discipline and openness.

  • Test on several different sets. Use acted and real speech, different speakers, different recording conditions and different sources. A model’s ability to generalize only shows up across sets.
  • Keep test speakers out of training. Use speaker-independent splits, and never train on a test set.
  • Report which set each number came from, along with the answer key and the measure.
  • Publish the protocol: the clip lists, the answer keys and the scoring rules, so that others can rerun the test and get the same result.
  • Keep the uncomfortable numbers in. If a model does worse on one set, that result belongs in the report next to the good ones.

That is the standard we would suggest asking of any emotion AI number, including ours.

Back to the elevator. It was built to hear one narrow version of a word, and it failed the moment real people spoke to it. An emotion model tuned too closely to a few test sets fails in a similar way, just more quietly: a fine score on paper, and confusion on a real call. The rest of this series looks at the test sets themselves, so you can judge what a score on each one does and does not tell you.

This post is part of the series How emotion AI is benchmarked.

Next in the series: IEMOCAP: the acted conversations behind many emotion AI scores.

Sources for this post (each link checked on 1 December 2026)

  1. Behavioral Signals, “Eleven! Why voice AI has to hear how people actually speak” (credit: Burnistoun, BBC Scotland; linked, not embedded): https://behavioralsignals.com/eleven-why-voice-ai-has-to-hear-how-people-speak/
  2. scikit-learn, “Cross-validation: evaluating estimator performance”: https://scikit-learn.org/stable/modules/cross_validation.html
  3. MSP-Podcast corpus page, MSP Lab (test-set warning): https://www.lab-msp.com/MSP/MSP-Podcast.html
  4. Antoniou et al., ICASSP 2023 (speaker independence): https://arxiv.org/abs/2304.00860
  5. Schuller, Steidl and Batliner, Interspeech 2009 (prototypical subsets): https://www.isca-archive.org/interspeech_2009/schuller09_interspeech.html
  6. Cao et al., CREMA-D, 2014 (rater recognition rates; sentence list): https://pmc.ncbi.nlm.nih.gov/articles/PMC4313618/

← All posts