[Paper Review] Flow-based Self-supervised Density Estimation for Anomalous Sound Detection
This paper proposes a flow-based self-supervised density estimation method for anomalous sound detection that improves normalizing flow models by training them to assign higher likelihood to target machine sounds and lower likelihood to sounds from other machines of the same type. The approach boosts AUC by 5.8% on average using Glow and 4.6% using MAF on the DCASE 2020 Challenge Task2 dataset, outperforming both unsupervised and self-supervised classification baselines with greater stability.
To develop a machine sound monitoring system, a method for detecting anomalous sound is proposed. Exact likelihood estimation using Normalizing Flows is a promising technique for unsupervised anomaly detection, but it can fail at out-of-distribution detection since the likelihood is affected by the smoothness of the data. To improve the detection performance, we train the model to assign higher likelihood to target machine sounds and lower likelihood to sounds from other machines of the same machine type. We demonstrate that this enables the model to incorporate a self-supervised classification-based approach. Experiments conducted using the DCASE 2020 Challenge Task2 dataset showed that the proposed method improves the AUC by 4.6% on average when using Masked Autoregressive Flow (MAF) and by 5.8% when using Glow, which is a significant improvement over the previous method.
Motivation & Objective
- To address the instability and performance drop of self-supervised classification-based anomaly detection in machine sound monitoring.
- To improve the robustness of normalizing flow-based anomaly detection by incorporating self-supervised contrastive learning with in-distribution and out-of-distribution data.
- To achieve higher and more stable anomaly detection performance compared to unsupervised and existing self-supervised approaches.
- To enable effective out-of-distribution detection using only normal sound data from multiple machines of the same type.
Proposed method
- The method uses normalizing flows (Glow and MAF) to model the likelihood of sound data, with a novel loss function that maximizes likelihood for target machine data and minimizes it for outlier data from other machines of the same type.
- The loss function is defined as a weighted sum of negative log-likelihoods: L = (1/N_D) Σ NLL(x) - (1/N_OOD) Σ NLL(x) · I[NLL(x) < c], where c is a threshold hyperparameter per machine type.
- The model is trained in a self-supervised manner by treating the distinction between target and outlier machine IDs as an auxiliary task, improving generalization without requiring labeled anomalies.
- Hyperparameters c are tuned per machine type using validation data, with values ranging from -800 to -750 for MAF and 5.53 to 5.75 for Glow.
- The method leverages the exact likelihood estimation of normalizing flows while making it more sensitive to structural differences between machines.
- The approach is evaluated on six machine types from the DCASE 2020 Challenge Task2 dataset, comparing against VAE, VIDNN, and self-supervised MobileNetV2 baselines.
Experimental results
Research questions
- RQ1Can a self-supervised contrastive learning objective improve the anomaly detection performance of normalizing flows in sound-based machine monitoring?
- RQ2Does assigning higher likelihood to target machine sounds and lower likelihood to other machines of the same type lead to more stable and accurate detection than pure self-supervised classification?
- RQ3How does the method perform across different machine types, especially those where previous self-supervised methods failed?
- RQ4Is the performance gain dependent on the structural similarity between target and outlier data?
Key findings
- The proposed method improved AUC by 5.8% on average over the unsupervised baseline when using Glow, and by 4.6% when using MAF on the DCASE 2020 Task2 dataset.
- The method achieved a total AUC of 85.2% with Glow and 84.7% with MAF using the proposed loss (eq. 5), significantly outperforming the self-supervised MobileNetV2 baseline (AUC 66.1% on average).
- For the machine ID with the minimum AUC, the proposed method achieved 87.8% (Glow aff. (5)), compared to 55.7% for MobileNetV2 and 64.2% for the unsupervised Glow aff. baseline.
- The method showed no performance gain when outlier data came from a different machine type (e.g., pump ID 0 with outlier data from valve or fan), indicating that structural similarity is essential.
- The method maintained high performance across all machine types, with the minimum AUC across types being 70.0% for pump ID 0 when using same-type outlier data, compared to 52.9% for the self-supervised baseline.
- The model using the proposed loss (eq. 5) achieved a total AUC of 85.0% with Glow, outperforming the unsupervised Glow aff. baseline (79.4%) and the self-supervised MobileNetV2 (66.1%) on average.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.