All Projects → rednafi → Urban Sound Classification

rednafi / Urban Sound Classification

Licence: mit
Urban sound source tagging from an aggregation of four second noisy audio clips via 1D and 2D CNN (Xception)

Projects that are alternatives of or similar to Urban Sound Classification

Tensorflow Book
Accompanying source code for Machine Learning with TensorFlow. Refer to the book for step-by-step explanations.
Stars: ✭ 4,448 (+11305.13%)
Mutual labels:  jupyter-notebook, classification
Bayesian Neural Networks
Pytorch implementations of Bayes By Backprop, MC Dropout, SGLD, the Local Reparametrization Trick, KF-Laplace, SG-HMC and more
Stars: ✭ 900 (+2207.69%)
Mutual labels:  jupyter-notebook, classification
Breast cancer classifier
Deep Neural Networks Improve Radiologists' Performance in Breast Cancer Screening
Stars: ✭ 614 (+1474.36%)
Mutual labels:  jupyter-notebook, classification
Ner Bert
BERT-NER (nert-bert) with google bert https://github.com/google-research.
Stars: ✭ 339 (+769.23%)
Mutual labels:  jupyter-notebook, classification
Satellite imagery analysis
Implementation of different techniques to find insights from the satellite data using Python.
Stars: ✭ 31 (-20.51%)
Mutual labels:  jupyter-notebook, classification
Transformers Tutorials
Github repo with tutorials to fine tune transformers for diff NLP tasks
Stars: ✭ 384 (+884.62%)
Mutual labels:  jupyter-notebook, classification
Skin Cancer Image Classification
Skin cancer classification using Inceptionv3
Stars: ✭ 16 (-58.97%)
Mutual labels:  jupyter-notebook, classification
Audio cat dog classification
Classification of WAV files from cats and dogs
Stars: ✭ 16 (-58.97%)
Mutual labels:  classification, audio-processing
The Deep Learning With Keras Workshop
An Interactive Approach to Understanding Deep Learning with Keras
Stars: ✭ 34 (-12.82%)
Mutual labels:  jupyter-notebook, classification
Prediciting Binary Options
Predicting forex binary options using time series data and machine learning
Stars: ✭ 33 (-15.38%)
Mutual labels:  jupyter-notebook, classification
Tianchi Medical Lungtumordetect
天池医疗AI大赛[第一季]:肺部结节智能诊断 UNet/VGG/Inception/ResNet/DenseNet
Stars: ✭ 314 (+705.13%)
Mutual labels:  jupyter-notebook, classification
Mlj.jl
A Julia machine learning framework
Stars: ✭ 982 (+2417.95%)
Mutual labels:  jupyter-notebook, classification
Pycaret
An open-source, low-code machine learning library in Python
Stars: ✭ 4,594 (+11679.49%)
Mutual labels:  jupyter-notebook, classification
Food Recipe Cnn
food image to recipe with deep convolutional neural networks.
Stars: ✭ 448 (+1048.72%)
Mutual labels:  jupyter-notebook, classification
Demo Chinese Text Binary Classification With Bert
Stars: ✭ 276 (+607.69%)
Mutual labels:  jupyter-notebook, classification
Tensorflow cookbook
Code for Tensorflow Machine Learning Cookbook
Stars: ✭ 5,984 (+15243.59%)
Mutual labels:  jupyter-notebook, classification
Machine Learning With Python
Practice and tutorial-style notebooks covering wide variety of machine learning techniques
Stars: ✭ 2,197 (+5533.33%)
Mutual labels:  jupyter-notebook, classification
Timeseries fastai
fastai V2 implementation of Timeseries classification papers.
Stars: ✭ 221 (+466.67%)
Mutual labels:  jupyter-notebook, classification
Servenet
Service Classification based on Service Description
Stars: ✭ 21 (-46.15%)
Mutual labels:  jupyter-notebook, classification
Ml Classification Algorithms Poverty
A comparative assessment of machine learning classification algorithms applied to poverty prediction
Stars: ✭ 36 (-7.69%)
Mutual labels:  jupyter-notebook, classification

Urban Sound Classification

Urban sound source tagging from an aggregation of four second noisy audio clips via 1D and 2D CNN (Xception)

Dataset made-with-python MIT license stability-experimental Code style: black

Dataset Description

The Urban Sound Classification dataset contains 8732 labeled sound excerpts (<=4s) of urban sounds from 10 classes,namely:

  • Air Conditioner
  • Car Horn
  • Children Playing
  • Dog bark
  • Drilling Engine
  • Idling Gun Shot
  • Jackhammer
  • Siren
  • Street Music

The attributes of data are mapped as follows:

  • ID – Unique ID of sound excerpt and Class – type of sound

air_conditioner air_conditioner

Project Organization

Folder Structure

.
├── data
│   ├── img
│   │   ├── audio-features.png
│   │   ├── sound.png
│   │   └── time_freq.png
│   ├── test
│   │   └── Test
|   |       ├── 1.wav
|   |       ├── 2.wav
|   |       ├── .............
│   ├── test.csv
│   ├── train
│   │   └── Train
|   |       ├── 1.wav
|   |       ├── 2.wav
|   |       ├── ............
|   |
│   └── train.csv
├── LICENSE
├── notebooks
│   ├── eda_plots
│   │   ├── amplitude_vs_time
│   │   │   ├── air_conditioner.svg
│   │   │   ├── car_horn.svg
|   |   |   ├── ............
│   │   └── mel_spectrum
│   │       ├── air_conditioner.png
│   │       ├── car_horn.png
|   |       ├── ............
│   └── Exploratory Data Analysis.ipynb
├── README.md
├── requirements.txt
├── results
│   ├── acc_model_1d.png
│   ├── acc_model_2d.png
│   ├── loss_model_1d.png
│   ├── loss_model_2d.png
│   ├── pred_1d.csv
│   └── pred_2d.csv
└── src
    ├── test_1d.py
    ├── test_2d.py
    ├── train_1d.py
    ├── train_2d.py
    ├── utils_1d.py
    └── utils_2d.py

Workflow

Exploratory Data Analysis:

  • Frequency normalization and amplitude vs time plot
  • Mel spectogram plot

Audio Tagging:

  • Normalizing the audio clips and passing them through stacks of 1D convolution layers for feature extraction. Then the usual dense layer stacks were used to do the final categorization.

  • Extracting features in the form of mel-spectogram and passing them through stacks of 2D convolution layers for additional feature pulling. Dense layer stack does the final classification. In this case, we trained an Xception model from scratch to achieve better generalization capability.

Result

We achieved 89% validation accuracy in the second approach. xception_val_acc

Requirements

pip install -r requirements.txt
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].