Autoencoder with Group-based Decoder and Multi-task Optimization for Anomalous Sound Detection

Yifan Zhou, Dongxing Xu, Haoran Wei, Yanhua LongarXiv 2023 · DOI

Abstract

Anomalous sound detection (ASD) in industrial environments is challenging due to the scarcity of anomalous data and the tendency of standard autoencoders to learn trivial identity mappings. We propose AEGM (AutoEncoder with Group-based decoder and Multi-task optimization), a framework that incorporates an auxiliary classifier to regularize the latent space and a group-based decoder architecture to handle domain shifts. Evaluated on the DCASE 2021 Task 2 dataset, AEGM achieves a 13-15% relative improvement in AUC over standard baselines, demonstrating superior robustness and feature quality across various machine types.

Introduction

In industrial settings, detecting machine malfunctions through sound is critical for predictive maintenance. However, collecting examples of anomalies is difficult as they are rare and diverse. Most systems rely on unsupervised Autoencoders (AEs) trained only on normal sounds, using reconstruction error as an anomaly score. Standard AEs often suffer from the "shortcut" problem, where they learn to reconstruct any input perfectly, including anomalies, and struggle with domain shifts caused by varying operating conditions.

The AEGM Framework

The proposed AEGM framework addresses these limitations through a multi-task optimization strategy and a specialized architecture inspired by the concept of "stirring the muddy water" to reveal underlying structures.

Architecture and Components

The model consists of a shared encoder and multiple specialized decoders.

  • Auxiliary Classifier (AC): A linear layer is integrated at the encoder's bottleneck. It is trained to identify the specific machine "section" or "ID," forcing the encoder to extract discriminative features rather than performing a simple identity mapping.
  • Group-based Decoders: Instead of a single decoder, the framework uses $M$ separate decoders, each corresponding to a specific machine section. This allows each decoder to specialize in a particular acoustic domain, enhancing robustness against non-stationary signals and domain shifts.
The AEGM framework architecture, including the auxiliary classifier and group-based decoder structure.

Multi-task Optimization

The training objective combines reconstruction loss with classification loss. An adaptive weighting scheme is applied to the reconstruction loss to prioritize decoders that are harder to optimize, ensuring balanced learning across different machine states. This process prevents the model from taking shortcuts and creates clearer boundaries for normal sound distributions in the latent space.

Experimental Setup

The framework was evaluated using the DCASE 2021 Task 2 development set, which includes:

  • ToyADMOS2: Simulated toy machine sounds.
  • MIMII DUE: Real-world industrial sounds from fans, gearboxes, pumps, sliders, and valves. The dataset covers seven machine types, each with three sections. Models were trained exclusively on normal segments and tested on both normal and anomalous clips.

Results and Discussion

The AEGM framework significantly outperforms standard baselines across all machine types.

Performance comparison (AUC/pAUC) of AEGM variants against DCASE 2021 baselines and other state-of-the-art methods.

As shown in the results table, the AEGM-ensemble method achieved an average AUC of 71.67%, a relative improvement of 13.11% over the standard AE baseline (63.36%) and 15.20% over the MobileNetV2 baseline (62.21%).

Key observations include:

  • Classification as Regularization: Forcing the model to classify machine IDs improves its ability to detect anomalies by maximizing the separation between normal categories in the latent space.
  • Domain Specialization: The group-based decoders proved particularly effective for complex, non-stationary signals like those from "Valves," where standard models often fail.
  • Latent Space Visualization: t-SNE analysis confirms that AEGM produces tighter, more distinct clusters for different machine sections compared to baseline AEs, which often show significant overlap.

Conclusion

AEGM effectively mitigates the "shortcut" problem in anomalous sound detection by combining auxiliary classification with a domain-specialized decoder architecture. While the framework shows substantial gains, future work will focus on developing a more unified model that maintains high performance across all machine types without requiring task-specific tuning.

Summary updated

BibTeX
@misc{zhou2023autoencoder,
  author = {Yifan Zhou and Dongxing Xu and Haoran Wei and Yanhua Long},
  title = {{Autoencoder with Group-based Decoder and Multi-task Optimization for Anomalous Sound Detection}},
  year = {2023},
  eprint = {2311.08829},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.08829},
}
Figure