Abstract: In this work, we thoroughly evaluate the efficacy of pretrained neural networks as feature extractors for anomalous sound detection. In doing so, we leverage the knowledge that is contained in these neural networks to extract semantically rich features (representations) that serve as input to a Gaussian Mixture Model which is used as a density estimator to model normality. We compare feature extractors that were trained on data from various domains, namely: images, environmental sounds and music. Our approach is evaluated on recordings from factory machinery such as valves, pumps, sliders and fans. All of the evaluated representations outperform the autoencoder baseline with music based representations yielding the best performance in most cases. These results challenge the common assumption that closely matching the domain of the feature extractor and the downstream task results in better downstream task performance.
Introduction
In industrial environments, the early detection of mechanical failures—known as Anomalous Sound Detection (ASD)—is a critical task for predictive maintenance. Identifying a malfunctioning machine through its acoustic signature can prevent catastrophic failures and significant financial losses. A primary challenge in ASD is the scarcity of anomalous data; while "normal" operating sounds are abundant, "abnormal" sounds are rare and often unpredictable.
Traditionally, researchers have relied on Deep Autoencoders (AEs) trained exclusively on normal sounds. The premise is that the AE will learn to reconstruct normal patterns with low error but will fail to reconstruct anomalies, thereby flagging them. This paper challenges this "train-from-scratch" paradigm by investigating the efficacy of Transfer Learning. The authors explore whether neural networks pretrained on massive, diverse datasets (such as music or images) can provide more robust feature representations for industrial sound analysis than task-specific models.
Methodology
The proposed approach utilizes a modular pipeline that leverages the rich semantic knowledge embedded in pretrained neural networks.
The ASD Pipeline
The detection process follows a four-stage workflow:
- Preprocessing: Raw audio signals are converted into Mel-spectrograms, providing a time-frequency representation of the sound.
- Feature Extraction: The spectrograms are passed through a pretrained neural network to extract high-level feature vectors (embeddings).
- Dimensionality Reduction: Principal Component Analysis (PCA) is applied to these embeddings to retain 98% of the variance while reducing computational complexity.
- Density Estimation: A Gaussian Mixture Model (GMM) is fitted to the reduced features of the normal training data. During testing, the GMM assigns a likelihood score to new sounds; low-probability samples are classified as anomalies.
Evaluated Representations
The study compares feature extractors from three distinct domains: Image, Environmental Sound, and Music. This selection tests the hypothesis that domain-specific pretraining is necessary for downstream task success.
Experimental Setup
The methodology was evaluated using the MIMII dataset, a benchmark for industrial machine health monitoring. The dataset includes 10-second recordings of four machine types: Fans, Pumps, Slide Rails, and Valves. To simulate realistic factory conditions, recordings were mixed with background noise at three Signal-to-Noise Ratios (SNR): 6dB, 0dB, and -6dB (where -6dB represents the highest noise level).
Key Insights and Results
The experimental results yielded several surprising conclusions that challenge common assumptions in transfer learning:
- The Domain Mismatch Surprise: Contrary to expectations, models trained on music (MusiCNN and L3music) consistently outperformed those trained on environmental sounds. Music-based representations achieved the best performance in 8 out of 12 experimental categories. This suggests that the features required to distinguish musical elements (like timbre and pitch) are highly transferable to the nuances of industrial machinery sounds.
- Superiority of Transfer Learning: Every pretrained representation tested outperformed the traditional Autoencoder baseline. This indicates that the general-purpose features learned from large-scale datasets are more discriminative than features learned from small, task-specific datasets.
- Stationarity and Noise: The system performed best on machines with steady, stationary sounds, such as fans and pumps. Non-stationary sounds, like the intermittent clicks of valves, proved more difficult to model. While increased background noise (lower SNR) reduced overall performance (AUC), it did not alter the relative superiority of the music-based feature extractors.
Conclusion and Future Work
This research demonstrates that pretrained neural networks are powerful tools for anomalous sound detection, even when the pretraining domain differs significantly from the target task. The success of music and image models suggests that "richness" of representation is often more important than domain alignment.
However, the current approach has limitations. The GMM-based density estimator treats sound windows independently, ignoring the temporal "rhythm" or sequence of machine operations. Future work should explore combining these high-quality features with sequence-modeling architectures like LSTMs or Transformers to better capture the temporal dynamics of non-stationary industrial sounds.
Summary updated