Skip to content

Latest commit

Β 

History

History
47 lines (35 loc) Β· 1.72 KB

File metadata and controls

47 lines (35 loc) Β· 1.72 KB

🎢 Environmental Sound Classifier

πŸ“– Project Overview

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!

🎯 Features:

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

πŸ” How It Works:

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! 🎀

πŸ‹οΈβ€β™€οΈ Model Strengths:

  • Efficient 🏎: Designed with far fewer parameters than ResNet18.
  • Lightweight 🎈: Smaller model = Faster predictions!
  • Trained on a high-quality urban sound dataset. πŸŒ†πŸŽ§

πŸ›  How to Use

  • 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! πŸ”Š

πŸš€ Future Plans

  • πŸ”„ 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! πŸŽ‰