This project aims to classify environmental sounds into one of 10 categories. Whether itβs the sound of a dog barking π, a car horn blaring ππ’, or even the rhythmic hum of a jackhammer π§π¨, our model is here to figure it all out!
Dataset: The famous UrbanSound8k ππ
- 8,732 labeled sound excerpts (each β€ 4 seconds)
- 10 classes:
- βοΈ air_conditioner
- π¨ car_horn
- πΆ children_playing
- π dog_bark
- π drilling
- π engine_idling
- π« gun_shot
- β jackhammer
- π siren
- πΆ street_music
We built a hand-designed CNN π§ with a fraction of the parameters used in larger models like ResNet18 but still packs quite the punch! π₯
- Feature Extraction: π The CNN helps pull meaningful features out of the sound clips.
- Classification: π· Using a few linear layers, the model classifies the sound into one of the 10 categories. Boom! π€
- Efficient π: Designed with far fewer parameters than ResNet18.
- Lightweight π: Smaller model = Faster predictions!
- Trained on a high-quality urban sound dataset. ππ§
- Clone the repo: git clone https://github.com/yourname/sound-classifier.git π¨βπ»
- Install dependencies: pip install -r requirements.txt π
- Run the training script: python train.py πͺ
- Classify some sounds! π
- π Fine-tune the model for improved accuracy.
- πΆ Add more sound classes.
- π Train on a larger dataset for world domination! (Just kiddingβ¦ or are we? π)
Feel free to contribute, test, or even just play around with the code. Letβs make some noise! π