Infant Cry Classification is a machine learning project that uses a Siamese Neural Network (SNN) to classify infant crying sounds into categories such as:
- Belly Pain
- Hungry
- Tired
- Discomfort
- Burping
- Asphyxia
- Deaf
- Normal
- Pain
The model is trained on a dataset of infant cry audio recordings and extracts MFCC (Mel-Frequency Cepstral Coefficients) features to determine the similarity between different cry sounds. This system helps in identifying the reason behind an infant's cry based on audio patterns.
✅ Siamese Neural Network (SNN) for one-shot learning
✅ Audio feature extraction using MFCC
✅ Dataset processing and batch audio classification
✅ Trained on infant cry recordings
✅ Real-time classification for new audio files
infant_cry_classification/
│-- dataset/ # Folder containing infant cry audio files (.wav)
│-- models/ # Saved trained models
│-- snn1.py # SNN Model for Donate-a-cry dataset
│-- snn2.py # SNN Model for BabyChillanto Dataset
│-- README.md # Project documentation
git clone https://github.com/KaRTiK0821/infant_cry_classification.gitMake sure you have Python 3.10+ installed. Install the required libraries:
pip install -r requirements.txtPlace the infant cry audio files inside the dataset/ folder. Ensure the structure follows the mentioned format.
Run the training script to train the Siamese Neural Network:
python train_snn.pyThis will generate a trained model in the models/ directory.
To classify a new infant cry audio file:
python test_snn.py --audio path/to/audio.wav- Feature Extraction: MFCC (Mel-Frequency Cepstral Coefficients)
- Neural Network: Siamese Neural Network
- Loss Function: Contrastive Loss
- Optimizer: Adam
- Dataset: Infant Cry Audio Dataset (Manually Labeled)
- 🔹 Improve classification accuracy with a larger dataset
- 🔹 Implement a mobile app for real-time infant cry detection
- 🔹 Add spectrogram-based feature extraction
This project is open-source and licensed under the MIT License.
👨💻 Developed by Kartik Samnotra | GitHub 📚 Used in IEEE Research by IIT Jammu named "Infant Cry Scene Detection and Classification Using High-Frequency Wavelet Scattering Transform and Convolutional Recurrent Neural Network" 🚀 Feel free to contribute, fork, and improve this project!