Skip to content

Latest commit

ย 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŽง Urban Sound Classification System An AI-based system that classifies environmental sounds using machine learning. This project processes audio files and predicts categories such as sirens, dog barking, drilling, and street noise using the UrbanSound8K dataset.

๐Ÿ“Œ Overview Urban environments contain a variety of sounds that can be analyzed for smart applications. This project builds a sound classification model that: Takes an audio file as input Extracts meaningful audio features Uses a trained model to classify the sound

Outputs the predicted category ๐Ÿš€ Features ๐ŸŽต Accepts .wav audio input ๐Ÿ” Feature extraction using MFCC and spectral features ๐Ÿค– Machine Learning model (Random Forest / CNN) ๐Ÿ“Š Accurate classification of 10 sound categories ๐Ÿ“ˆ Easy to extend for real-time applications

๐Ÿง  Technologies Used

Python Librosa (Audio Processing) NumPy & Pandas Scikit-learn / TensorFlow / Keras Matplotlib

๐Ÿ“‚ Dataset UrbanSound8K Dataset 8732 labeled sound clips 10 Classes: Air Conditioner Car Horn Children Playing Dog Bark Drilling Engine Idling Gun Shot Jackhammer Siren Street Music

โš™๏ธ Project Workflow Audio Input Load .wav audio file Preprocessing Noise reduction Normalization Feature Extraction MFCC (Mel Frequency Cepstral Coefficients) Chroma Features Spectral Contrast Model Training Train using Random Forest / CNN Prediction Output predicted sound label

๐Ÿ› ๏ธ Installation Bash git clone https://github.com/your-username/urban-sound-classifier.git cd urban-sound-classifier pip install -r requirements.txt โ–ถ๏ธ Usage Bash python predict.py --file example.wav

Output:

Predicted Sound: Siren Confidence: 92%

๐Ÿ“ Project Structure

urban-sound-classifier/ โ”‚โ”€โ”€ data/ โ”‚โ”€โ”€ models/ โ”‚โ”€โ”€ src/ โ”‚ โ”œโ”€โ”€ preprocess.py โ”‚ โ”œโ”€โ”€ feature_extraction.py โ”‚ โ”œโ”€โ”€ train_model.py โ”‚ โ”œโ”€โ”€ predict.py โ”‚โ”€โ”€ requirements.txt โ”‚โ”€โ”€ README.md

๐Ÿ“Š Model Details Algorithm: Random Forest / Convolutional Neural Network Input: Extracted MFCC features Output: Sound class label Evaluation Metrics: Accuracy Confusion Matrix

๐Ÿ“Œ Applications Smart City Monitoring Traffic Sound Detection Industrial Noise Analysis Emergency Sound Recognition

๐Ÿ”ฎ Future Improvements Real-time sound detection Mobile application integration Deep learning improvements (LSTM, CNN tuning) Web deployment using Flask / Streamlit

๐Ÿ‘จโ€๐Ÿ’ป Author Mohamed Ansari

โญ Contributing Contributions are welcome! Feel free to fork the repository and submit a pull request.

๐Ÿ“œ License This project is licensed under the MIT License.

About

An AI-powered system that classifies environmental sounds from audio files using machine learning techniques. This project leverages the UrbanSound8K dataset to identify and categorize real-world sounds such as traffic, sirens, drilling, dog barking, and more.

Resources

Stars

6 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages