Skip to content

About

No description, website, or topics provided.

Resources

Contributing

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

Auralis VFS v2.0: Vocal Fatigue Scoring & Virtual Electroglottography

PyPI Python License HuggingFace


What is New in Auralis-VFS v2.0?

Auralis-VFS v2.0 advances objective clinical voice evaluation by physiologically grounding contrastive vocal health representations (ECAPA-TDNN-VHE) in physical vocal fold contact mechanics using the Saarbrücken Voice Database (SVD; Zenodo: 16874898).

Major Scientific & Algorithmic Upgrades in v2.0:

  1. Resolution of the Phonatory Task Manifold Shift via Task-Conditioned Centroid Calibration ($C_h^{(t)}$):

    • In continuous passage reading (v1.0), deep speech embeddings map onto a separate manifold than sustained vowels. Uncalibrated connected-speech models misclassified healthy sustained vowels with elevated strain scores (>120 points).
    • v2.0 defines Task-Conditioned Normative Reference Centroids $\mathbf{C}_h^{(t)}$ for Modal Vowels (/a/_n), Low-Pitch Vowels (/a/_l), High-Pitch Vowels (/a/_h), Pitch Glissandos (/a/_lhl), and Connected Sentences (phrase).
    • Restores normative healthy baselines (29 to 31 points) and enhances diagnostic discrimination ($d = +0.81$, AUC = 0.711).
  2. Within-Speaker Dynamic Pitch-Loading Calibration (Phonatory Stress Index, $PSI$):

    • Dynamic pitch glissandos act as a non-invasive laryngeal stress test for the cricothyroid and thyroarytenoid muscle complexes.
    • The $PSI$ measures modal-anchored trajectory divergence relative to normative variance in embedding space: $$PSI(j, t) = \sqrt{\left(\Delta \mathbf{e}{j,t} - \boldsymbol{\mu}\Delta^{(t)}\right)^\top \left(\boldsymbol{\Sigma}\Delta^{(t)}\right)^{-1} \left(\Delta \mathbf{e}{j,t} - \boldsymbol{\mu}_\Delta^{(t)}\right)}$$
    • Unmasks latent neuromuscular paresis and structural mass lesions ($d = 1.65$ separation between healthy controls and neurogenic RLN paralysis).
  3. Cross-Modal Virtual Electroglottography (Virtual EGG):

    • Synchronized 50 kHz acoustic and electroglottographic ground truth proves that ECAPA-TDNN-VHE representations directly track physical contact mechanics (canonical $r = 0.8586, p < .0001$).
    • A lightweight distilled projection head predicts cycle-resolved glottal contact parameters purely from microphone audio without physical neck electrodes:
      • Glottal Contact Quotient ($CQ$) and Open Quotient ($OQ$)
      • Cycle-to-cycle Contact Quotient Perturbation ($CQP$, %)
      • EGG Speed Quotient ($SQ_{\text{EGG}}$)
      • Derivative Peak Ratio ($R_{\text{dEGG}}$)
      • Peak Closure Sharpness ($dEGG_{\text{norm}}$)
      • Glottal fundamental frequency ($F_0$), jitter, and shimmer.

Installation

pip install auralis-vfs

Or install the latest development version directly from GitHub:

git clone https://github.com/Khubaib8281/auralis-vfs.git
cd auralis-vfs
pip install -e .

Quickstart

1. v2.0 Task-Conditioned Scoring & Virtual EGG Prediction

import numpy as np
from auralis import score_v2, score_task_conditioned, predict_virtual_egg

# Load or record raw audio (16 kHz)
waveform = np.random.randn(80000) # 5 seconds of 16 kHz audio

# Full v2.0 assessment pipeline for modal vowel
result = score_v2(waveform, task="a_n")

print("Task-Conditioned Strain Score:", result["task_conditioned_score"])
print("Virtual EGG Biomechanical Parameters:")
for biomarker, val in result["virtual_egg_biomarkers"].items():
    print(f"  {biomarker}: {val:.4f}")

2. Computing the Within-Speaker Phonatory Stress Index ($PSI$)

from auralis import score_v2

# Evaluate dynamic pitch glissando anchored to speaker's own modal vowel baseline
modal_wav = np.random.randn(80000)
glissando_wav = np.random.randn(80000)

result = score_v2(
    glissando_wav,
    task="a_lhl",
    baseline_modal_waveform=modal_wav
)

print(f"Glissando Strain Score: {result['task_conditioned_score']:.2f}")
print(f"Within-Speaker Phonatory Stress Index (PSI): {result['psi_score']:.2f}")
# Normative healthy PSI: ~14.12
# Pathological laryngeal breakdown PSI: >20.0

3. Classic v1.0 Backward Compatibility

from auralis import score_audio, score_waveform

# Direct file scoring
score = score_audio("path/to/recording.wav")
print(f"Auralis Vocal Fatigue Score: {score:.2f} / 100")

Model Zoo & Architecture

  • Encoder Architecture: ECAPA-TDNN (192-dimensional bottleneck, Squeeze-and-Excitation, multi-scale residual aggregation).
  • Training Strategy: Supervised contrastive learning on health-state clusters (Healthy, Strained, Stressed) with speaker-identity suppression.
  • Model Weights: Available on Hugging Face (Khubaib01/ECAPA-TDNN-VHE).
  • v2 Calibration Files:
    • task_conditioned_centroids_v2.npz: Normative anchors across 5 clinical phonatory tasks.
    • psi_calibrator_v2.npz: Covariance inverses and normative pitch-loading shifts.
    • virtual_egg_head_v2.npz: Distilled acoustic-to-glottal contact projection matrix.

Experimental Replication

Complete scripts to replicate all experiments, canonical correlations, partial correlation probes, and 5-fold cross-validated diagnostic benchmarks on the Saarbrücken Voice Database are provided in the replication/ directory.

cd replication
python run_experiments.py

Citation

If you use Auralis-VFS v2.0 or the ECAPA-TDNN-VHE weights in your research, please cite:

@article{xiangyu2026automated,
  title={Automated Vocal Fatigue Screening in Professional Voice Users: Development and Occupational Validation of an Automated Assessment System},
  author={Xiangyu, Zheng and Ahmad, Muhammad Khubaib},
  journal={Journal of Voice},
  year={2026},
  publisher={Elsevier},
  doi={10.1016/j.jvoice.2026.07.042},
  note={Article PII: S0892-1997(26)00395-4}
}

@article{ahmad2026glottal,
  title={From Perceptual Strain to Glottal Contact Mechanics: Electroglottographic Grounding, Dynamic Pitch-Loading Calibration, and Cross-Modal Distillation of Contrastive Vocal Health Embeddings Across Laryngeal Pathologies},
  author={Ahmad, Muhammad Khubaib and Xiangyu, Zheng},
  journal={Journal of Voice},
  year={2026}
}

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Contributing

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages