Toward Faithful Explanations in Acoustic Anomaly Detection

TL;DR

The study compares standard and masked autoencoders for audio anomaly detection, finding masked autoencoders provide more precise explanations.

cs.SD 🟡 Intermediate 2026-01-19 40 views
Maab Elrashid Anthony Deschênes Cem Subakan Mirco Ravanelli Rémi Georges Michael Morin
Explainable AI Audio Anomaly Detection Autoencoders Masked Autoencoders Industrial Applications

Key Findings

Methodology

The study employs standard autoencoder (AE) and masked autoencoder (MAE) for audio anomaly detection, using attribution methods like error maps, saliency maps, SmoothGrad, Integrated Gradients, GradSHAP, and Grad-CAM. The MAE training strategy involves reconstructing masked input regions to enhance semantic feature learning.

Key Results

  • MAE shows slightly lower detection performance with an AUC of 0.902 compared to AE's 0.916, but provides more precise anomaly localization.
  • In interpretability evaluation, MAE's saliency map achieved the highest F1 score of 0.63 at the 98th percentile, compared to AE's best of 0.55 from the error map at the 96th percentile.
  • MAE error maps yield higher faithfulness scores at higher percentiles (95-98%), indicating more reliable explanations.

Significance

The study highlights the importance of incorporating interpretability into anomaly detection pipelines, particularly in industrial settings. MAE enhances model transparency and user trust by improving explanation quality, despite a slight drop in detection performance.

Technical Contribution

Technical contributions include the application of an adaptive training strategy for MAE to improve anomaly localization precision and the proposal of a perturbation-based faithfulness metric to validate explanation relevance.

Novelty

This study is the first to apply MAE to spectrogram-based audio anomaly detection, prioritizing interpretability over detection accuracy.

Limitations

  • MAE shows slightly lower detection performance than AE in some scenarios, potentially impacting real-time applications.
  • The model may misidentify anomalies in noisy industrial environments.

Future Work

Future research directions include optimizing MAE's detection performance, exploring applications in more complex industrial environments, and developing more efficient interpretability methods.

AI Executive Summary

Audio anomaly detection is crucial in industrial monitoring, but the black-box nature of deep learning models limits their application in safety-critical environments.

This study compares standard autoencoder (AE) and masked autoencoder (MAE) in audio anomaly detection, evaluating their interpretability. While MAE shows slightly lower detection performance, it provides more precise anomaly localization and reliable explanations.

Experimental results demonstrate that MAE excels in interpretability evaluation, particularly at higher percentiles, where its error maps and saliency maps outperform AE in F1 and faithfulness scores. This suggests MAE's potential for generating meaningful explanations, making it suitable for industrial applications requiring trust and actionable insights.

Deep Analysis

Background

Audio anomaly detection is vital in industrial monitoring, especially in fields like wood processing. Traditional methods rely on manual calibration and limited real-time feedback, while acoustic monitoring with low-cost microphones offers an alternative. However, detecting anomalies is challenging in noisy industrial environments.

Core Problem

Deep learning models excel in audio anomaly detection but their black-box nature limits application in safety-critical environments. Models may exploit spurious features correlating with anomalies, threatening user trust.

Innovation

This study introduces masked autoencoder (MAE) to enhance anomaly detection interpretability. MAE reconstructs masked input regions, promoting semantic feature learning and providing more precise anomaly localization.

Methodology

  • �� Compare standard autoencoder and masked autoencoder
  • �� Apply attribution methods like error maps, saliency maps, SmoothGrad
  • �� Propose perturbation-based faithfulness metric to validate explanation relevance

Experiments

Experiments use a public dataset with 7,562 10-second mono recordings. The training set contains only normal recordings, while the test set includes normal and anomalous samples. Models are trained by minimizing mean squared error between input and reconstructed output.

Results

MAE excels in interpretability evaluation, with its error maps and saliency maps outperforming AE in F1 and faithfulness scores at higher percentiles.

Applications

The method can be directly applied in industrial monitoring, especially in scenarios requiring real-time anomaly detection and explanation, such as wood processing and manufacturing.

Limitations & Outlook

MAE shows slightly lower detection performance than AE in some scenarios, potentially impacting real-time applications. Additionally, the model may misidentify anomalies in noisy industrial environments.

Plain Language Accessible to non-experts

Imagine a factory with a machine making various sounds. Our task is to identify which sounds are abnormal. It's like finding someone whispering at a noisy party. A standard autoencoder is like an ear focusing on overall sounds, while a masked autoencoder focuses on specific sounds. With a masked autoencoder, we can better identify abnormal sounds, just like pinpointing the whisperer at the party.

ELI14 Explained like you're 14

Imagine you're playing a game where you need to find abnormal sounds. A standard autoencoder is like regular headphones, while a masked autoencoder is like super headphones that filter out background noise and focus on important sounds. This way, you can find abnormal sounds faster and win the game! Isn't that cool? That's what a masked autoencoder does in audio anomaly detection.

Glossary

Autoencoder

A neural network used to learn compact data representations by minimizing reconstruction error between input and output.

Used in audio anomaly detection to identify anomalies through reconstruction error.

Masked Autoencoder

A variant of autoencoder that promotes semantic feature learning by reconstructing masked input regions.

Used to improve anomaly localization precision.

Saliency Map

An interpretability method that identifies important input regions by calculating their impact on the output.

Used to analyze model decision-making in audio anomaly detection.

Faithfulness

A metric that evaluates whether an explanation method accurately reflects the model's decision.

Used to assess the reliability of explanations.

Error Map

Identifies anomalous regions by calculating the error between input and reconstructed output.

Used to localize audio anomalies.

Open Questions Unanswered questions from this research

  • 1 How to improve MAE's detection performance in noisier environments?
  • 2 Can MAE be applied to other types of anomaly detection, such as image or text?

Applications

Immediate Applications

Industrial Monitoring

Real-time detection of equipment failures in manufacturing, improving efficiency and safety.

Wood Processing

Enhancing maintenance and fault detection capabilities of wood processing equipment through audio monitoring.

Long-term Vision

Smart Manufacturing

Achieving comprehensive automated monitoring and fault detection in future smart factories.

Abstract

Interpretability is essential for user trust in real-world anomaly detection applications. However, deep learning models, despite their strong performance, often lack transparency. In this work, we study the interpretability of autoencoder-based models for audio anomaly detection, by comparing a standard autoencoder (AE) with a mask autoencoder (MAE) in terms of detection performance and interpretability. We applied several attribution methods, including error maps, saliency maps, SmoothGrad, Integrated Gradients, GradSHAP, and Grad-CAM. Although MAE shows a slightly lower detection, it consistently provides more faithful and temporally precise explanations, suggesting a better alignment with true anomalies. To assess the relevance of the regions highlighted by the explanation method, we propose a perturbation-based faithfulness metric that replaces them with their reconstructions to simulate normal input. Our findings, based on experiments in a real industrial scenario, highlight the importance of incorporating interpretability into anomaly detection pipelines and show that masked training improves explanation quality without compromising performance.

cs.SD cs.LG eess.AS