Anomalous Sound Detection Using Spectral-Temporal Information Fusion

Youde Liu, Jian Guan, Qiaoxi Zhu, Wenwu Wang

Abstract

Anomalous Sound Detection (ASD) is critical for industrial predictive maintenance, yet it faces challenges from data scarcity and performance instability across different machine units. This paper proposes STgram-MFN, a framework that integrates spectral features (log-Mel spectrograms) with temporal features extracted from raw waveforms using a novel TgramNet. By utilizing the ArcFace loss function, the model creates highly discriminative embeddings that enhance detection accuracy. Experimental results on the DCASE 2020 Challenge Task 2 dataset demonstrate that STgram-MFN significantly outperforms state-of-the-art methods, particularly in improving the minimum Area Under the Curve (mAUC) for the most challenging machine IDs.

Introduction

In industrial settings, Anomalous Sound Detection (ASD) serves as an automated "check engine light," identifying mechanical failures by listening to machine audio. However, the field struggles with two primary issues. First, "normal" data is abundant while "anomalous" data is rare, necessitating unsupervised or self-supervised approaches. Second, existing models often exhibit high instability, performing well on one machine unit but failing on another of the same type. Furthermore, standard features like log-Mel spectrograms may inadvertently filter out high-frequency temporal cues, such as clicks or hisses, which are vital for identifying mechanical anomalies.

Methodology: STgram-MFN

The proposed STgram-MFN (Spectral-Temporal gram MobileFaceNet) framework addresses these limitations through a multi-pronged approach.

The STgram-MFN architecture fuses spectral and temporal features for classification.

Feature Fusion (STgram)

The core innovation is the fusion of spectral and temporal information. While traditional methods rely solely on frequency-domain spectral data, STgram-MFN incorporates raw waveform data.

TgramNet

To process raw audio, the authors developed TgramNet, a specialized 1D Convolutional Neural Network (CNN). TgramNet is designed to extract temporal features such that the output dimensions match those of a standard log-Mel spectrogram. This allows for seamless concatenation into a unified "STgram" representation.

Classification and Loss

The framework uses MobileFaceNet (MFN), a lightweight architecture optimized for face recognition, as its backbone. To enhance the discriminative power of the learned embeddings, the authors employ ArcFace (Additive Angular Margin Loss). Unlike standard cross-entropy, ArcFace maximizes inter-class variance (between different machine IDs) and minimizes intra-class variance (for normal sounds of the same ID), making anomalies significantly easier to detect in the feature space.

Experimental Setup

The model was evaluated using the DCASE 2020 Challenge Task 2 dataset, which comprises:

  • MIMII Dataset: Industrial sounds from fans, pumps, sliders, and valves.
  • ToyADMOS Dataset: Sounds from toy cars and toy conveyors. The evaluation focused on performance consistency across multiple individual machine units (IDs) for each machine type.

Results and Discussion

The integration of temporal features provides a "stereo" view of the data. Visualizations indicate that certain anomalies invisible in the spectral domain become distinct when temporal information is included.

Comparison of mAUC (%) across different machine types and methods.

As shown in the results table above, STgram-MFN (ArcFace) achieves substantial improvements over previous state-of-the-art models like Glow_Aff. Notably, the average mAUC reached 84.86%, compared to 70.32% for Glow_Aff. The most significant gains were observed in "worst-case" scenarios, with mAUC improvements of 31.79% for fans and 21.13% for valves. This reduction in the performance gap between the best and worst machine units makes the system far more robust for real-world industrial deployment.

Conclusion

STgram-MFN demonstrates that fusing spectral and temporal information, combined with discriminative loss functions like ArcFace, provides a more stable and accurate solution for ASD. While temporal features are powerful, they can be sensitive to environmental noise, suggesting that future work should focus on noise robustness and further optimization of the TgramNet architecture for edge devices.

Summary updated

Abstract

Unsupervised anomalous sound detection aims to detect unknown abnormal sounds of machines from normal sounds. However, the state-of-the-art approaches are not always stable and perform dramatically differently even for machines of the same type, making it impractical for general applications. This paper proposes a spectral-temporal fusion based self-supervised method to model the feature of the normal sound, which improves the stability and performance consistency in detection of anomalous sounds from individual machines, even of the same type. Experiments on the DCASE 2020 Challenge Task 2 dataset show that the proposed method achieved 81.39%, 83.48%, 98.22% and 98.83% in terms of the minimum AUC (worst-case detection performance amongst individuals) in four types of real machines (fan, pump, slider and valve), respectively, giving 31.79%, 17.78%, 10.42% and 21.13% improvement compared to the state-of-the-art method, i.e., Glow_Aff. Moreover, the proposed method has improved AUC (average performance of individuals) for all the types of machines in the dataset. The source codes are available at https://github.com/liuyoude/STgram_MFN
BibTeX
@inproceedings{liu2022anomalous,
  author = {Youde Liu and Jian Guan and Qiaoxi Zhu and Wenwu Wang},
  title = {{Anomalous Sound Detection Using Spectral-Temporal Information Fusion}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2022},
  url = {https://openreview.net/forum?id=NbS7elesCh},
}
Figure