Abstract
Understanding the meaning of infant cries is a significant challenge for young parents in caring for their newborns. The presence of background noise and the lack of labeled data present practical challenges in developing systems that can detect crying and analyze its underlying reasons. In this paper, we present a novel data-driven framework, "InfantCryNet," for accomplishing these tasks. To address the issue of data scarcity, we employ pre-trained audio models to incorporate prior knowledge into our model. We propose the use of statistical pooling and multi-head attention pooling techniques to extract features more effectively. Additionally, knowledge distillation and model quantization are applied to enhance model efficiency and reduce the model size, better supporting industrial deployment in mobile devices. Experiments on real-life datasets demonstrate the superior performance of the proposed framework, outperforming state-of-the-art baselines by 4.4% in classification accuracy. The model compression effectively reduces the model size by 7% without compromising performance and by up to 28% with only an 8% decrease in accuracy, offering practical insights for model selection and system design.
Introduction
For new parents, an infant’s cry is a vital but often undecipherable "language." While experienced pediatricians can often distinguish between a cry triggered by hunger versus one triggered by sleepiness, parents frequently struggle to make these distinctions quickly. Developing an automated system to assist in this task faces three primary hurdles: environmental noise in real-world settings, the scarcity of expert-labeled datasets, and the hardware constraints of mobile devices or baby monitors that require low-latency, local processing.
InfantCryNet addresses these challenges through a two-stage deep learning framework designed for both high-performance audio classification and mobile-friendly deployment.
Methodology
The InfantCryNet framework operates in two distinct stages: Infant Cry Detection (determining if a baby is crying) and Infant Cry Analysis (identifying the underlying reason for the cry).
Feature Extraction and Transfer Learning
To process audio data, the system converts raw waveforms into Log-Mel spectrograms. This transformation allows the framework to treat audio classification as a vision-based task, leveraging powerful Convolutional Neural Networks (CNNs).
To overcome the lack of large-scale labeled infant data, the framework utilizes Transfer Learning. Models such as CNN-10 and CNN-14, pre-trained on the massive AudioSet dataset (comprising 2 million audio clips), are fine-tuned on infant-specific recordings. This approach allows the model to leverage general acoustic knowledge before specializing in the nuances of a nursery environment.
Advanced Pooling Techniques
Standard CNN architectures typically use max or average pooling, which can discard subtle temporal details. InfantCryNet introduces two sophisticated alternatives:
- Statistic Pooling: This layer calculates both the mean and the variance of features. By capturing the "spread" of the sound frequency, it better represents the periodic and prosodic nature of infant cries.
- Multi-head Attention Pooling: This mechanism learns to weight different segments of an audio clip by importance, focusing the model's "attention" on the most informative parts of the signal.
Model Optimization for Mobile Deployment
To ensure the model can run efficiently on edge devices without relying on cloud servers, the researchers employed two compression strategies:
- Knowledge Distillation: A large, high-performance "teacher" model (CNN-14) is used to train a smaller, more efficient "student" model (ResNet22), transferring its predictive power into a lighter architecture.
- Dynamic Quantization: The model’s weights are converted from 32-bit floating-point numbers to 8-bit integers. This significantly reduces the memory footprint with minimal impact on classification accuracy.
Experimental Results
The framework was evaluated using a Detection Dataset (6,600 clips) and a Classification Dataset (835 clips) categorized into six reasons: awake, hug, sleepy, uncomfortable, diaper, and hungry.
- Detection Performance: The system achieved a near-perfect 99.8% accuracy in identifying cries, even in noisy environments.
- Classification Accuracy: InfantCryNet reached 74.73% accuracy in identifying the reason for the cry, a 4.4% improvement over existing state-of-the-art baselines.
- Compression Efficiency: The combination of distillation and quantization reduced the model size from 81MB to 58MB (a 28% reduction). While the full model is ideal for high-resource environments, the compressed version maintains a respectable 67.42% accuracy for resource-constrained devices.
Discussion and Key Insights
A critical finding of the study was that Statistic Pooling outperformed Attention-based methods. This suggests that for infant cries, the variance of the signal over time is more informative than specific localized peaks. Furthermore, the necessity of pre-training was confirmed: without it, the CNN-14 model's accuracy dropped from ~75% to ~65%, highlighting that prior acoustic knowledge is essential when working with small, specialized datasets.
Conclusion
InfantCryNet provides a robust roadmap for the intelligent analysis of infant vocalizations. By combining transfer learning with novel pooling and compression techniques, the framework balances the need for high accuracy with the practicalities of mobile deployment. Future work will explore hybrid models that integrate traditional machine learning (such as SVMs) and Federated Learning to improve privacy by allowing models to learn from local data without uploading sensitive audio to central servers.
Summary updated