Exploring Self-Supervised Audio Models for Generalized Anomalous Sound Detection

Bing Han, Anbai Jiang, Xinhu Zheng, Wei-Qiang Zhang, Jia Liu, Pingyi Fan, Yanmin Qian

TL;DR

This paper demonstrates how large-scale, self-supervised audio pre-trained models can be successfully adapted to detect industrial machine anomalies, even when trained on entirely different audio distributions. By introducing a fully connected multi-branch LoRA, a machine-aware group adapter, and a novel dual-level contrastive loss, the authors achieve state-of-the-art generalization performance across five consecutive years of DCASE challenge benchmarks (2020–2024).

What Problem Does This Paper Address?

Machine Anomalous Sound Detection (ASD) is crucial for industrial safety and predictive maintenance, helping identify whether a machine (like a fan, pump, or gearbox) is operating normally or failing. However, building reliable ASD systems is notoriously difficult due to three main challenges:

  1. Data Scarcity: Anomalous samples are rare and hard to collect, forcing models to operate in an unsupervised or one-class learning paradigm using only normal sounds.
  2. Acoustic Complexity & Domain Shifts: Environmental noise changes, and models must generalize to unseen machine types or operational conditions.
  3. Missing Metadata: Real-world datasets often lack specific attribute labels (like operational status or machine ID), making discriminative learning difficult.

While large pre-trained foundation models have revolutionized speech and natural language processing, their application to generalized machine anomaly detection has remained largely unexplored due to the massive domain mismatch between general audio/speech and industrial machine sounds.

Methods

The authors propose a unified framework that fine-tunes a self-supervised audio foundation model using three novel components designed to preserve pre-trained knowledge while adapting to machine-specific characteristics:

Fig. 1: Overview of our proposed framework, which fine-tunes audio or speech pre-trained models using the proposed Fully- Connected Multi-Branch LoRA (Sec. III-B), Machine-Aware Group Adapter (Sec. III-C), and Dual-Level Contrastive Loss (Sec. III-D) for the anomalous sound detection task. The fire icon indicates modules that are optimized through backpropagation. The Attention Module and Feed-Forward Network refer to the multi-head attention mechanism and the position-wise feed- forward network, respectively, as introduced in the Transformer architecture [18]. During inference, if the query e falls within the normal distribution (represented by the green dotted circle), it is classified as normal; otherwise, it is identified as anomalous.
  • Fully-Connected Multi-Branch LoRA: Standard Low-Rank Adaptation (LoRA) uses a single bottleneck layer to update weights efficiently. To prevent "knowledge forgetting" and increase adaptation capacity, the authors introduce multiple parallel LoRA branches interconnected via a fully connected layer structure. This allows better modeling of complex anomalous features while keeping the massive base model frozen.
  • Machine-Aware Group Adapter: Inserted into the multi-head attention layers, this module automatically clusters instance-level audio features into distinct groups. It dynamically weights a set of learnable group representations, embedding machine-specific contextual information into the unified framework without requiring explicit machine labels during inference.
  • Dual-Level Contrastive Loss (DLCL): To handle datasets missing attribute labels, the authors design an online clustering method using a vector quantizer. Unlabeled data is optimized at both the instance level (maximizing distance from a memory bank of known machines) and the prototype level (minimizing distance to dynamically assigned pseudo-labels).

Datasets

The framework was comprehensively evaluated on all benchmark datasets from the DCASE Challenge Task 2 (2020–2024). These datasets incorporate audio from real and miniature industrial machines via subsets like ToyADMOS, ToyADMOS2, MIMII, MIMII DG, and IMAD-DS. Notably, the 2023 and 2024 challenges explicitly test generalization by evaluating on entirely unseen machine types.

Key Insights and Ideas

  • Audio vs. Speech Pre-training: Audio-based pre-trained models (like BEATs) vastly outperform speech-based models (like Wav2Vec 2.0 or HuBERT) for ASD. Speech models focus on frame-level semantic information, whereas audio models capture patch-level acoustic textures, which align much better with the continuous, mechanical nature of machine sounds.
  • The Power of Pre-training: Through ablation studies, the authors found that randomly initializing the same transformer architectures led to a severe performance drop. The gains are explicitly driven by the representations learned during large-scale self-supervised pre-training, proving that general audio knowledge transfers surprisingly well to niche industrial tasks.
  • Parameter Freezing Mitigates Overfitting: Full fine-tuning of large models on small ASD datasets causes severe overfitting. Freezing the base weights and tuning only the multi-branch LoRA and adapters yields significantly better generalization on unseen machine types.

Key Results

The authors' framework achieved state-of-the-art (SOTA) or highly competitive performance across all five DCASE benchmarks:

  • On the DCASE 2024 Evaluation set (unseen machine types), the self-supervised BEATs model achieved the highest baseline performance (64.46% Hmean) compared to other foundation models.
  • When equipped with the proposed multi-branch LoRA and group adapters, the single-model system achieved an overall harmonic mean (Hmean) of 65.50% on DCASE 2024, matching or outperforming complex multi-system ensembles from top challenge participants.
  • On the DCASE 2020 dataset, the system achieved an overall mean AUC/pAUC of 93.05%, outperforming all previously published single-system architectures.

Limitations and Future Work

While the proposed framework demonstrates exceptional generalization across diverse machine types, the authors note that domain adaptation strategies could be further refined. Future work will explore more advanced self-supervised learning techniques and specialized domain adaptation methods to make ASD systems even more robust against severe acoustic environment shifts in real-world factories.

Summary updated

BibTeX
@article{han2025exploring,
  author = {Bing Han and Anbai Jiang and Xinhu Zheng and Wei-Qiang Zhang and Jia Liu and Pingyi Fan and Yanmin Qian},
  title = {{Exploring Self-Supervised Audio Models for Generalized Anomalous Sound Detection}},
  journal = {IEEE Transactions on Audio, Speech and Language Processing},
  year = {2025},
  url = {https://openreview.net/forum?id=2IBQRc1IFv},
}
Figure