ML tool for identification of VF dynamics in Adductor Spasmodic Dysphonia This repository implements a context-aware transformer architecture for detecting four classes of laryngeal dysfluencies:
Micro motion: Brief irregular movements (10-30ms) Motion irregularity: Sustained irregular patterns (50-150ms) Tremor: Rhythmic oscillations (500-2000ms) Oscillatory break: Cyclic interruptions (10-70ms)
The system integrates acoustic features and physiological measurements via cross-attention. At the same time, a temporal convolutional network explicitly captures the multi-scale temporal structure, enabling event-level detection across both short and extended time spans.
Python >= 3.8
CUDA >= 11.0 (for GPU support)
git clone https://github.com/mimo1999/asd_detector.git
cd asd_detector
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
Organize your data as follows:
dataset/
├── meta_data.csv # Patient metadata and diagnoses
├── raw/
│ └── patient_id/
│ ├── audio/
│ │ └── recording.wav # 16kHz audio files
│ ├── gaw/
│ │ └── recording.gaw # 1kHz GAW files (CSV format)
│ └── recording_annotate.json # Clinical annotations
└── augmented/ # Auto-generated augmented data
└── patient_id/
├── audio/
└── gaw/
{
"video_sample_rate": 1000,
"annotations": [
{
"start_time": 1.234,
"end_time": 1.456,
"tag": "Tremor"
}
],
"rois": [
{"start": 100, "end": 500}
]
}
Quick Start
# Train on continuous speech data for tremor detection
python main_parser.py --data_type cs --target_class 2 --model transformer --extractor unified
