Speech transformer models for extracting information from baby cries

Guillem Bonafos, Jérémy Rouch, Lény Lego, David Reby, Hugues Patural, Nicolas Mathevon, Rémi EmonetarXiv 2025 · DOI

Abstract

Infant cry analysis is a vital clinical diagnostic tool, serving as a biomarker for various disorders and a direct indicator of pain or discomfort. This paper evaluates the ability of five state-of-the-art speech transformer models—Wav2Vec2, HuBERT, Whisper, Unispeech, and AST—to extract meaningful information from baby cries. By probing the latent representations of these models across eight diverse datasets, we find that models pre-trained on adult speech effectively encode baby identity, age, and acoustic markers of physical pain. Our results suggest that self-supervised learning models provide a robust framework for neonatal monitoring, even when the target domain differs significantly from the training data.

Introduction

The "gold standard" in modern audio processing has shifted toward Self-Supervised Learning (SSL), where models like transformers learn rich representations from massive amounts of unlabeled speech. However, a significant gap remains: can models trained on adult human speech generalize to the non-speech, highly non-linear acoustic properties of a baby’s cry? This research addresses whether these models capture the biological "individual signature" of a baby or the specific acoustic markers of distress.

Methodology

The researchers employed a probing methodology, using pre-trained transformer models as fixed feature extractors rather than fine-tuning them. Audio samples were fed into five models: Wav2Vec2, HuBERT, Whisper, Unispeech, and AST (Audio Spectrogram Transformer). The resulting latent representations—internal mathematical vectors describing the sound—were used to train a simple Random Forest classifier (150 trees). This classifier performed 23 different tasks, such as identifying the baby, their age, or the cause of the cry. To ensure generalizability, a "leave-one-baby-out" cross-validation approach was used.

Datasets

The study consolidated eight datasets, totaling 115 hours of audio from 960 babies. These included established sets like EnesBabyCries2 and CryCeleb, crowdsourced data from Donate A Cry, and previously unpublished datasets like Lefkir and Vial. These datasets vary in recording duration (0.9s to 51s) and labeling, covering age, sex, identity, and cause of cry.

Key Insights

Identity and Developmental Markers

All models excelled at identifying individual babies, with Unispeech showing particularly strong performance. This suggests that the "individual signature" in a cry shares acoustic similarities with the phonetic-aligned parameters Unispeech uses to signal identity in speech. Furthermore, models successfully captured developmental shifts; as babies grow, their cries become more tonal and melodic, a change the transformers reliably detected.

The "Roughness" of Pain

A key finding was the models' ability to distinguish "pain cries" (e.g., during a vaccination) from "discomfort cries" (e.g., during a bath). This success indicates that transformers are sensitive to vocal source instability—the chaotic vibrations of vocal folds perceived as "roughness."

Accuracy results for the Koutseff dataset, demonstrating model performance on pain and vaccine-related tasks.

Model Architecture and Training

Interestingly, Whisper, despite its massive 680k-hour supervised training set, did not always outperform SSL models like HuBERT. The authors suggest that Whisper's supervised training on Indo-European languages creates "tighter," more speech-specific representations. In contrast, SSL models learn "looser," more generalized representations that transfer more effectively to non-speech sounds. The AST model also performed well, likely benefiting from the inclusion of baby cry data in its AudioSet training corpus.

Results

Across 23 tasks, the models exceeded chance in 14. HuBERT and Whisper surpassed chance in over 92% of successful tasks, while Unispeech achieved the highest overall accuracy in 7 of the 23 tasks. Notably, no model could reliably predict the sex of a baby, aligning with biological research stating that sexual dimorphism in vocalizations does not emerge until puberty.

Comprehensive performance of five transformer models across eight datasets and 23 classification tasks. Dashed lines indicate chance level.

Conclusion

This study demonstrates that speech-trained transformers are powerful tools for extracting diagnostic information from infant vocalizations. While some "cause" labels may act as proxies for distress intensity rather than specific sounds, the robust encoding of identity and pain markers opens the door for automated neonatal monitoring systems. Future work involving fine-tuning on cry-specific data could further enhance diagnostic accuracy.

Summary updated

BibTeX
@misc{bonafos2025speech,
  author = {Guillem Bonafos and Jérémy Rouch and Lény Lego and David Reby and Hugues Patural and Nicolas Mathevon and Rémi Emonet},
  title = {{Speech transformer models for extracting information from baby cries}},
  year = {2025},
  eprint = {2509.02259},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.02259},
}
Figure