A small 1D-CNN trained from scratch on AudioMNIST (10-class spoken
digit recognition, 8000-sample mono audio at 8 kHz). Released as a
real-pretrained-weights demo for xaitalk's cross-framework XAI on
1D-conv audio architectures.
Training: 30 epochs on the AudioMNIST training split (Becker et al.
2018). Final test accuracy: 48.1% (training script is in the
xaitalk repo at examples/training/train_audionet_audiomnist.py).
The accuracy is intentionally moderate — the model is small enough to
train quickly and large enough that the per-layer attribution maps
are visually meaningful, which is what the XAI demo needs.
Includes gradient family (9), LRP variants (8), DeepLIFT, smoothgrad
family (smoothgrad, smoothgrad_sq, vargrad). Full results:
xaitalk method matrix.
1from xaitalk.hub import ensure_model
2
3# Full Keras model (architecture + weights):
4keras_path = ensure_model('audionet/keras')
5# Weights-only (you supply the architecture):
6h5_path = ensure_model('audionet/h5')
7
8# Load full model
9import tensorflow as tf
10model = tf.keras.models.load_model(keras_path)
11
12# Run XAI
13import xaitalk
14import numpy as np
15x = np.random.randn(1, 8000, 1).astype(np.float32)
16expl = xaitalk.explain(model, x, method='lrp_epsilon', target_class=5)
AudioMNIST — a spoken-digit
recognition dataset by Sören Becker et al. (Free Spoken Digit
Dataset). 30000 recordings of digits 0-9 spoken by 60 speakers.
Apache 2.0. AudioMNIST is released under MIT (see upstream).
1@misc{becker2018audiomnist,
2 author = {Becker, Sören and Ackermann, Marcel and Lapuschkin, Sebastian
3 and Müller, Klaus-Robert and Samek, Wojciech},
4 title = {Interpreting and Explaining Deep Neural Networks for
5 Classification of Audio Signals},
6 year = {2018},
7 eprint = {1807.03418}
8}
1@software{paul2026xaitalk,
2 author = {Paul, Alexander},
3 title = {xaitalk: Cross-Framework Explainable AI Library},
4 year = {2026},
5 url = {https://xaitalk.com}
6}