Noise Supervised Contrastive Learning and Feature-Perturbed for Anomalous Sound Detection

Shun Huang, Zhihua Fang, Liang HearXiv 2025 · DOI

Abstract

This paper introduces One-Stage Supervised Contrastive Learning (OS-SCL), a novel training framework for detecting machine anomalies from sound. By intentionally introducing "label noise" during training and using a new feature called TFgram, the authors achieved state-of-the-art performance on the DCASE 2020 benchmark. The resulting model is significantly smaller and more efficient than existing large-scale pre-trained alternatives, proving that high-accuracy industrial monitoring can be achieved with lightweight architectures.

Introduction

Anomalous Sound Detection (ASD) serves as an essential "canary in the coal mine" for industrial environments, using microphones to identify machine failures. Since actual failure sounds are rare, ASD is typically treated as an unsupervised problem where models learn only from "normal" sounds.

The primary challenge is the false alarm problem. Normal sounds from different machines of the same type (e.g., two distinct conveyor belts) can be acoustically similar. Standard self-supervised models often struggle to establish clear decision boundaries between these IDs, leading to frequent false positives. Furthermore, the prevailing belief that high-frequency audio components are mandatory for detection often results in heavy, complex models that are difficult to deploy on-site.

Methodology

The authors propose three main innovations to address these challenges:

  1. One-Stage Supervised Contrastive Learning (OS-SCL): Unlike traditional two-stage processes (pre-training followed by fine-tuning), OS-SCL optimizes feature embeddings and classification simultaneously. This prevents the "wash out" effect where fine-tuning can weaken learned contrastive features.
  2. Feature Perturbation Head (FPH): This module applies perturbations to features in the embedding space, forcing the model to prioritize the direction of the feature vector over its absolute magnitude, enhancing robustness to subtle variations.
  3. Noise-Supervised Contrastive Loss: Utilizing MixUp, the authors intentionally retain the original label even when a sample is predominantly composed of a different "shuffled" audio segment. This "label noise" compels the model to find deeper, more discriminative features to resolve the contradiction.
  4. TFgram: A new time-frequency feature extracted directly from raw audio using a modified PANN (Pretrained Audio Neural Networks) structure. It captures critical information across both time and frequency domains more effectively than standard Log-Mel spectrograms.
Overview of the OS-SCL framework featuring TFgram extraction and the Feature-Perturbed Project Head (FPH).

Experimental Setup

The method was evaluated using the DCASE 2020 Challenge Task 2 dataset, which includes the MIMII Dataset (Fans, Pumps, Sliders, and Valves) and the ToyADMOS Dataset (ToyCars and ToyConveyors). The combined dataset encompasses 41 different machine IDs, providing a rigorous test for distinguishing between similar machine types.

Key Results

The OS-SCL framework demonstrated superior performance on the DCASE 2020 development set, achieving a 95.71% AUC and 90.23% pAUC.

Performance comparison across different machine types on the DCASE 2020 dataset.

Key highlights include:

  • State-of-the-Art Performance: The model outperformed the previous SOTA (TASTgram) by 1.63% in AUC.
  • ToyConveyor Breakthrough: The model achieved approximately 83.5% AUC on the ToyConveyor subset, a category where previous ID-based models typically failed due to high inter-ID similarity.
  • Efficiency: With only 1.38 million parameters, the model outperformed the 90M-parameter BEATs model, making it roughly 65 times smaller while remaining more accurate.

Discussion and Insights

The research yields several counter-intuitive insights. First, embracing noise via label contradiction actually improves stability by preventing over-reliance on simple labels. Second, the results challenge the assumption that high-frequency data is paramount; the model's success suggests the temporal-spectral relationship is the more critical factor.

However, limitations remain. Improvements on Valve data were less pronounced, and performance degrades if the compression dimension in the FPH is reduced below 16. Future work will explore applying this one-stage approach to domain adaptation tasks where "normal" sounds shift over time.

Summary updated

BibTeX
@misc{huang2025noise,
  author = {Shun Huang and Zhihua Fang and Liang He},
  title = {{Noise Supervised Contrastive Learning and Feature-Perturbed for Anomalous Sound Detection}},
  year = {2025},
  eprint = {2509.13853},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.13853},
}
Figure