Introduction
Unsupervised Anomalous Sound Detection (ASD) aims to identify "broken" or "abnormal" machine sounds when only "normal" operating data is available for training. This task is significantly complicated by Domain Generalization, where a machine's acoustic signature changes due to different operating environments or hardware (source vs. target domains). Traditional methods often separate feature extraction from anomaly scoring. This paper proposes a "Variational Classifier" that unifies these steps into a single probabilistic framework, improving robustness and performance.
The Variational Classifier Architecture
The core innovation is transforming a standard deterministic classifier into a variational one. Instead of mapping an input sound $x_i$ to a fixed embedding vector, the network outputs the parameters—mean ($\mu$) and variance ($\sigma$)—of a Gaussian distribution.
As shown in the architecture diagram, the model samples an embedding $z_i$ from this distribution during training. This probabilistic approach allows the model to account for the inherent "spread" of normal sounds, making it more resilient to domain shifts.
Orthogonal Distribution Design
To maximize the discriminative power of the embeddings, the authors enforce an Orthogonal Distribution Design. The means of different classes (e.g., different machine types or sections) are forced to be mathematically orthogonal. This separation ensures that normal sounds from different categories do not overlap in the embedding space, which naturally makes outliers—anomalies—stand out more clearly.
The model is trained using a hybrid loss function combining standard Cross-Entropy for classification and Kullback-Leibler (KL) divergence to ensure the learned embeddings follow the prescribed Gaussian distributions.
Dual Anomaly Scoring
Because the model provides a full distribution rather than a point estimate, it enables two distinct methods for calculating anomaly scores:
- Cosine Distance: Measures the angular distance between a test sample and the average training sample.
- Negative Log-Likelihood (NLL): Quantifies how "unlikely" a specific embedding is given the learned normal distribution.
Experimental Results
The system was evaluated using the DCASE 2022 Task 2 dataset, which includes recordings from seven machine types (e.g., ToyCar, Fan, Gearbox). Performance was measured using the $\Omega$ metric, a composite of Area Under the Curve (AUC) and partial AUC (pAUC).
The results demonstrate that the Variational Classifier consistently outperforms "vanilla" models trained with standard Cross-Entropy or ArcFace. Notably, the "Best per machine" configuration achieved highly competitive results compared to top-tier challenge entries. While complex ensembles might reach higher absolute scores, this monolithic approach offers a much more efficient alternative suitable for real-time industrial deployment.
Conclusion
By integrating probabilistic modeling directly into the classification process, the Variational Classifier provides a robust solution for anomalous sound detection under domain shift. The use of orthogonal class means and dual scoring mechanisms allows for high detection accuracy within a single, efficient architecture. Future work will explore automatic hyperparameter tuning and non-Gaussian distribution assumptions to further refine the model's sensitivity.
Summary updated