[Paper Review] SwishNet: A Fast Convolutional Neural Network for Speech, Music and Noise Classification and Segmentation
SwishNet is a lightweight, fast 1D convolutional neural network designed for real-time speech, music, and noise classification and segmentation using MFCC features. It achieves over 97% clip-level accuracy and 93% frame-wise segmentation accuracy on the MUSAN corpus, with performance further boosted via knowledge distillation from a pretrained 2D ImageNet CNN, making it suitable for embedded systems with minimal computational overhead.
Speech, Music and Noise classification/segmentation is an important preprocessing step for audio processing/indexing. To this end, we propose a novel 1D Convolutional Neural Network (CNN) - SwishNet. It is a fast and lightweight architecture that operates on MFCC features which is suitable to be added to the front-end of an audio processing pipeline. We showed that the performance of our network can be improved by distilling knowledge from a 2D CNN, pretrained on ImageNet. We investigated the performance of our network on the MUSAN corpus - an openly available comprehensive collection of noise, music and speech samples, suitable for deep learning. The proposed network achieved high overall accuracy in clip (length of 0.5-2s) classification (>97% accuracy) and frame-wise segmentation (>93% accuracy) tasks with even higher accuracy (>99%) in speech/non-speech discrimination task. To verify the robustness of our model, we trained it on MUSAN and evaluated it on a different corpus - GTZAN and found good accuracy with very little fine-tuning. We also demonstrated that our model is fast on both CPU and GPU, consumes a low amount of memory and is suitable for implementation in embedded systems.
Motivation & Objective
- To develop a fast, lightweight deep learning model for real-time audio classification and segmentation into speech, music, and noise.
- To enable efficient deployment on resource-constrained systems such as embedded devices and mobile platforms.
- To improve performance through knowledge distillation from a pretrained 2D CNN (e.g., MobileNet) without requiring large-scale GPU parallelization.
- To ensure robustness across diverse audio datasets, including unseen music genres and noisy conditions.
- To eliminate the need for handcrafted feature engineering by leveraging general-purpose features like MFCCs and contextual temporal modeling.
Proposed method
- The network uses a 1D convolutional architecture with Swish activation functions to model temporal dependencies in MFCC sequences.
- It employs multiple residual blocks with batch normalization and dropout for stable training and generalization.
- A contextual window of 1 second is used to capture long-range temporal context, improving transition detection between audio classes.
- Knowledge distillation is applied using a pretrained ImageNet 2D CNN (MobileNet) to transfer high-level representations to the 1D SwishNet architecture.
- The model is trained end-to-end on the MUSAN corpus, which contains diverse speech, music, and noise samples, and fine-tuned on GTZAN for cross-dataset robustness.
- Median filtering is applied to segmentation outputs to reduce noise and improve temporal consistency.
Experimental results
Research questions
- RQ1Can a lightweight 1D CNN achieve high accuracy in classifying and segmenting speech, music, and noise without relying on task-specific feature engineering?
- RQ2How does knowledge distillation from a pretrained 2D ImageNet CNN improve the performance of a 1D audio classification network?
- RQ3To what extent is SwishNet robust when evaluated on a different corpus (e.g., GTZAN) after training on MUSAN?
- RQ4How does the model’s performance trade-off between speed, memory efficiency, and accuracy compare to conventional models like GMM and SNN?
- RQ5Can SwishNet generalize to unseen music genres and noisy conditions with minimal fine-tuning?
Key findings
- SwishNet-slim achieved 98.00% overall accuracy and 98.17% speech recall on 2s clips from the GTZAN corpus after fine-tuning on only 25% of the data.
- SwishNet-wide achieved 98.26% overall accuracy and 98.27% average recall on the same GTZAN test set, demonstrating strong generalization.
- The model achieved 97.14% clip-level accuracy and 93.42% frame-wise segmentation accuracy on the MUSAN corpus, with speech/non-speech discrimination exceeding 99% accuracy.
- Knowledge distillation from a pretrained MobileNet improved SwishNet-wide’s performance, showing that transfer learning from image data can benefit audio models.
- SwishNet-slim demonstrated excellent inference speed and low memory consumption, making it suitable for real-time and embedded deployment.
- The model maintained high performance on GTZAN despite significant background noise, indicating strong robustness to noisy and unseen audio conditions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.