Skip to main content
QUICK REVIEW

[Paper Review] A Machine Learning Driven IoT Solution for Noise Classification in Smart Cities

Yasser Alsouda, Sabri Pllana|arXiv (Cornell University)|Sep 1, 2018
Music and Audio ProcessingComputer Science9 references24 citations
TL;DR

This paper presents a low-cost, low-power IoT solution using Raspberry Pi Zero W for real-time environmental noise classification in smart cities. It employs Mel-frequency cepstral coefficients (MFCCs) for audio feature extraction and evaluates SVM and KNN classifiers, achieving 85–100% accuracy with inference times under one second on the device.

ABSTRACT

We present a machine learning based method for noise classification using a low-power and inexpensive IoT unit. We use Mel-frequency cepstral coefficients for audio feature extraction and supervised classification algorithms (that is, support vector machine and k-nearest neighbors) for noise classification. We evaluate our approach experimentally with a dataset of about 3000 sound samples grouped in eight sound classes (such as, car horn, jackhammer, or street music). We explore the parameter space of support vector machine and k-nearest neighbors algorithms to estimate the optimal parameter values for classification of sound samples in the dataset under study. We achieve a noise classification accuracy in the range 85% -- 100%. Training and testing of our k-nearest neighbors (k = 1) implementation on Raspberry Pi Zero W is less than a second for a dataset with features of more than 3000 sound samples.

Motivation & Objective

  • To develop a cost-effective and energy-efficient IoT solution for continuous environmental noise monitoring in smart cities.
  • To address the limitation of traditional noise level measurements (in dB) by classifying the type of noise, such as jackhammer or gunshots.
  • To implement and evaluate machine learning-based noise classification on a low-resource embedded platform (Raspberry Pi Zero W).
  • To optimize hyperparameters of SVM and KNN for maximum classification accuracy on a real-world urban sound dataset.
  • To demonstrate real-time performance of the system with training and testing times under one second for KNN (k=1)

Proposed method

  • Extract Mel-frequency cepstral coefficients (MFCCs) as audio features from environmental sound samples for robust representation of spectral characteristics.
  • Apply supervised learning using Support Vector Machine (SVM) and k-Nearest Neighbors (KNN) classifiers to categorize sounds into eight predefined classes.
  • Optimize SVM hyperparameters (C and γ) and KNN hyperparameters (k, distance metric: Euclidean, Manhattan, Chebyshev) through exhaustive parameter space exploration.
  • Implement the system on a Raspberry Pi Zero W, leveraging its low power and low cost for edge deployment.
  • Use a dataset of 3,042 environmental sound samples from UrbanSound8K and Sound Events, covering classes like car horn, jackhammer, street music, and gunshots.
  • Measure performance via confusion matrices, classification accuracy, and training/testing inference times on the embedded platform.

Experimental results

Research questions

  • RQ1Can a low-power IoT device like the Raspberry Pi Zero W achieve real-time noise classification using machine learning on real-world environmental audio?
  • RQ2What is the optimal configuration of SVM and KNN hyperparameters (C, γ, k, distance metric) for classifying urban noise types from MFCC features?
  • RQ3How does the classification accuracy of SVM and KNN vary across different noise classes in a real-world urban sound dataset?
  • RQ4What is the inference time performance of KNN and SVM on the Raspberry Pi Zero W for a dataset of 3,042 sound samples?
  • RQ5Can MFCC-based feature extraction combined with lightweight classifiers enable accurate noise type identification beyond simple dB level monitoring?

Key findings

  • The proposed system achieved a noise classification accuracy ranging from 85% to 100% across all eight sound classes using both SVM and KNN classifiers.
  • For KNN, the highest accuracy was achieved with k=1, and performance degraded as k increased, indicating that local neighborhood information is most effective for this dataset.
  • The optimal SVM hyperparameters for the dataset were found to be C=3 and γ=0.1, yielding the highest classification accuracy.
  • Training and testing of the KNN model with k=1 on the Raspberry Pi Zero W took less than one second for the full dataset of 3,042 samples.
  • The KNN model with k=1 had the fastest inference time (0.21 seconds for testing), while SVM training times ranged from 4.29 to 35.32 seconds depending on C and γ values.
  • Confusion matrices revealed that certain classes (e.g., street music and car horn) were more easily misclassified, but overall model performance remained strong across all classes.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.