Evaluating Multimodal Fusion and Representation Disentanglement for Cross-Corpus Dysarthria Detection

Clean public code, raw experimental logs/CSVs, figures, and compiled preprint PDF for:

Jainam Dedhia, Rujuta Salvi, Bhakti Sonawane
Department of Computer Engineering, Shah & Anchor Kutchhi Engineering College (SAKEC), Mumbai, India
Preprint submitted to Biomedical Signal Processing and Control (Elsevier, November 2026)
Compiled Paper: paper/Evaluating_Multimodal_Fusion_and_Representation_Disentanglement_for_Cross_Corpus_Dysarthria_Detection.pdf (26 pages; no LaTeX source files distributed)


Overview

Automatic dysarthria detectors often perform strongly inside their source corpus (even under speaker-independent LOSO splits) yet degrade sharply on unseen patient cohorts. This repository pairs:

  1. Handcrafted spectral representations: 60-D MFCC (+$\Delta$, $+\Delta^2$) and 40-D CQCC ($+\Delta$) encoded via 1D-CNN branches (AcousticCNNEncoder in src/q1_pipeline.py).
  2. Self-supervised speech representations: Frozen facebook/wav2vec2-base embeddings (mean-pooled across valid non-padded frames).
  3. Multimodal fusion & disentanglement variants: Concatenation fusion, Gated fusion, Gradient Reversal Layer (GRL) speaker-invariance training, and orthogonality-regularized Subspace Disentanglement ($z_d$ pathology vs. $z_s$ speaker).
  4. Cross-corpus diagnostics: Speaker-identity linear/MLP probes, prediction-score calibration monitoring, 1-D Wasserstein feature drift (scipy.stats.wasserstein_distance), and linear corpus-ID probes across TORGO (N = 15 speakers, 15-fold LOSO $\times$ 3 seeds = 45 runs/condition) and zero-shot Toronto NeuroFace (ALS & post-stroke).

Key Verified Results

1. Multi-Seed TORGO 15-Fold LOSO & Zero-Shot Toronto NeuroFace (results/q1_journal_results.csv, Seeds 42/43/44)

Condition TORGO Acc TORGO Bal. Acc TORGO Macro-F1* TORGO ROC-AUC NeuroFace ZS Acc NeuroFace ZS AUC
w2v2_only 0.632 Β± 0.015 0.580 Β± 0.012 0.581 Β± 0.013 0.620 Β± 0.017 0.583 Β± 0.005 0.510 Β± 0.002
acoustic_only 0.626 Β± 0.031 0.612 Β± 0.018 0.603 Β± 0.024 0.662 Β± 0.020 0.403 Β± 0.005 0.567 Β± 0.010
concat_fusion 0.670 Β± 0.015 0.649 Β± 0.005 0.643 Β± 0.009 0.719 Β± 0.016 0.360 Β± 0.009 0.551 Β± 0.016
gated_baseline 0.628 Β± 0.030 0.610 Β± 0.020 0.602 Β± 0.024 0.639 Β± 0.044 0.378 Β± 0.031 0.559 Β± 0.019
invariant (GRL) 0.651 Β± 0.023 0.636 Β± 0.025 0.627 Β± 0.024 0.676 Β± 0.053 0.392 Β± 0.011 0.576 Β± 0.019
disentangled 0.649 Β± 0.048 0.632 Β± 0.036 0.624 Β± 0.041 0.677 Β± 0.058 0.370 Β± 0.025 0.544 Β± 0.023

*See Disclosure D3 below regarding macro-F1 values logged directly in results/q1_journal_results.csv vs. manuscript Table 1.

2. Speaker-Identity Bottleneck Ablations (results/ablation_results.txt, Holdout F01, 15 Epochs)

Model Dim TORGO F01 Acc Linear Speaker Probe MLP Speaker Probe NeuroFace ZS Acc
Model A: Wav2Vec2-only 128D 81.3% 76.4% 85.8% 58.2%
Model B: Acoustic-only 128D 100.0% 83.7% 82.2% 42.9%
Model C: Concat Fusion 256D 100.0% 91.1% 90.9% 38.8%
Model D: Gated Fusion 128D 98.5% 85.9% 82.4% 45.9%
Model E: 16D Bottleneck 16D 98.5% 64.3% 65.1% 32.7%

(Note: TORGO AUC on holdout F01 prints nan because speaker F01 contains only positive dysarthric samples.)

3. Distributional Shift & Calibration Collapse (results/final_results.txt, Holdout F01, 15 Epochs)

Model Dim TORGO Acc NeuroFace ZS Acc TORGO Mean Score NeuroFace Mean Score Mean 1-D Wasserstein Shift Corpus Probe Acc
Wav2Vec2-only 128D 79.9% 61.2% 0.732 0.596 0.122 97.9%
Acoustic-only 128D 100.0% 40.8% 0.999 0.177 2.439 95.7%
Concat Fusion 256D 97.0% 36.7% 0.969 0.096 1.400 97.9%
Gated Fusion 128D 100.0% 36.7% 0.995 0.100 2.848 97.9%
16D Bottleneck 16D 98.5% 35.7% 0.983 0.084 13.162 93.6%
Asymmetric SSL 128D 99.3% 37.8% 0.992 0.167 1.007 100.0%

Repository Structure

.
β”œβ”€β”€ README.md
β”œβ”€β”€ requirements.txt
β”œβ”€β”€ LICENSE
β”œβ”€β”€ .gitignore
β”œβ”€β”€ paper/
β”‚   └── Evaluating_Multimodal_Fusion_and_Representation_Disentanglement_for_Cross_Corpus_Dysarthria_Detection.pdf
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ q1_pipeline.py               # Main 15-fold LOSO Γ— 3 seeds pipeline (Tables 1 & 2)
β”‚   β”œβ”€β”€ grl_ablation_diagnostic.py   # Single-fold F01 speaker-probe ablation (Table 4)
β”‚   β”œβ”€β”€ final_diagnostic.py          # Single-fold F01 Wasserstein + corpus-ID probe (Table 5)
β”‚   β”œβ”€β”€ grl_diagnostic.py            # Epoch-level baseline vs GRL (lambda=0.2) probe logging
β”‚   └── plot_grl.py                  # GRL training curve plotting utility
β”œβ”€β”€ results/
β”‚   β”œβ”€β”€ q1_journal_results.csv       # Raw multi-seed LOSO + NeuroFace results (unmodified)
β”‚   β”œβ”€β”€ grl_diagnostic.csv           # Epoch-by-epoch GRL training log (unmodified)
β”‚   β”œβ”€β”€ ablation_results.txt         # Raw terminal log for Table 4 (unmodified)
β”‚   β”œβ”€β”€ final_results.txt            # Raw terminal log for Table 5 (unmodified)
β”‚   └── q1_run.log                   # Original training execution log (unmodified)
└── figures/
    β”œβ”€β”€ architecture_diagram.png     # Pipeline diagram (Branch C: frozen facebook/wav2vec2-base)
    └── tsne_subspaces.png           # Disentangled z_s vs z_d t-SNE projection (Control / ALS / CP)

Setup & Reproduction

conda create -n dysarthria python=3.10 -y
conda activate dysarthria
pip install -r requirements.txt

Obtain the original speech corpora from their respective maintainers (raw audio is not redistributed here):

Run Main 15-Fold LOSO + Zero-Shot Pipeline

python src/q1_pipeline.py \
    --torgo-dir /path/to/torgo_data \
    --neuroface-dir /path/to/neuroface_data \
    --cache-dir feature_cache \
    --output-dir .

Run Holdout F01 Diagnostics (After Caching .npz Features)

python src/grl_ablation_diagnostic.py --torgo-dir /path/to/torgo_data --neuroface-dir /path/to/neuroface_data --cache-dir feature_cache
python src/final_diagnostic.py --torgo-dir /path/to/torgo_data --neuroface-dir /path/to/neuroface_data --cache-dir feature_cache
python src/grl_diagnostic.py --torgo-dir /path/to/torgo_data --cache-dir feature_cache --output-csv grl_diagnostic.csv
python src/plot_grl.py --input-csv results/grl_diagnostic.csv --output grl_curves.png

(Note: During initial development, features were cached under feature_cache_q2/ as shown in logs; --cache-dir defaults cleanly to feature_cache.)


Methodology & Reproducibility Disclosures

To preserve complete scientific transparency, we document the exact discrepancies observed between the submitted BSPC manuscript text and the archived execution scripts/logs without altering any historical CSV outputs or fabricating missing scripts:

# Item Manuscript PDF States Code / Logs Show Impact & Handling
D1 Pretrained SSL checkpoint PDF p. 8 refers to facebook/wav2vec2-base-960h src/q1_pipeline.py, results/q1_run.log, and figures/architecture_diagram.png all load facebook/wav2vec2-base (pre-trained checkpoint without ASR CTC fine-tuning head) Text typo in PDF; all numeric experiments and released code use facebook/wav2vec2-base.
D2 Gated fusion formulation Eq. 6 writes convex interpolation z = gate * acoustic + (1 - gate) * ssl src/q1_pipeline.py (FeatureWiseGatedFusion, used for Tables 1–2) applies elementwise projection gating proj(x) * sigmoid(gate(x)), whereas src/grl_ablation_diagnostic.py and src/final_diagnostic.py (Tables 4–5) implement convex gate * acoustic + (1 - gate) * ssl Both modules are preserved unchanged mathematically so every table matches its generating script cleanly.
D3 Table 1 F1 values PDF Table 1 prints 0.620 (acoustic_only) and 0.661 (concat_fusion) src/q1_pipeline.py (average='macro') writes 0.603 (acoustic_only) and 0.643 (concat_fusion) into results/q1_journal_results.csv Acc, ROC-AUC, and ZS_Acc match results/q1_journal_results.csv identically; F1 discrepancy likely reflects binary vs. macro averaging and will be harmonized in revision.
D4 Table 3 $\lambda$-sweep script PDF Table 3 reports GRL sweep across $\lambda \in {0.2, 0.5, 1.0}$ plus 16D + GRL src/grl_diagnostic.py tracks only gated_baseline vs. invariant at $\lambda = 0.2$; the full multi-$\lambda$ sweep script was not retained in the recovered experiment archive results/grl_diagnostic.csv and src/grl_diagnostic.py reproduce the $\lambda = 0.2$ diagnostic cleanly; missing sweep code is disclosed openly rather than reconstructed post hoc.

Non-Mathematical Release Cleanups Applied

To make the recovered scripts portable without changing any model math, random seeds (42, 43, 44), or training outcomes:

  • Added argparse path arguments (--torgo-dir, --neuroface-dir, --cache-dir, --output-dir) preserving the original relative paths as defaults.
  • Added PyTorch 2.x-compatible torch.amp AMP helpers with fallback to torch.cuda.amp, removed dead out_features == 1 speaker-head branching, used unique temporary checkpoint paths with torch.load(..., map_location=cfg.device, weights_only=True) + cleanup, and avoided creating cache directories on module import.
  • Removed .tex, .docx, .pth, .npz, and corpus audio directories via .gitignore.

Citation & License

Released under the MIT License. Contact: jainamdedhia5@gmail.com / jainam.dedhia25@sakec.ac.in.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support