A reproducible benchmark for formant trackers. Run any tracker on any speech dataset that has hand-verified formant measurements, and compare all of them with the same metrics, alignment rules, and reports.
Formant trackers are usually compared on different data, with different settings and with different definitions of "error". This framework puts dataset ingestion, tracker execution, and evaluation behind common interfaces. Adding a new dataset or tracker requires writing one adapter.
Built at the Montréal Computational & Quantitative Linguistics Lab. It evaluates trackers on public corpora and on the lab's own gold dataset (English, French, Japanese, Uyghur, ...), which was annotated with formant-annotation-tool.
- Two plug-in points. Dataset adapters turn each source format into one prepared schema: items, intervals, gold tracks, metadata and splits, stored as Parquet with a content fingerprint. Tracker wrappers run each tracker in its own environment and exchange data through a small JSON protocol. Everything in between is shared.
- Expensive work is never repeated. Each tracking run is keyed by a digest of everything that affects its predictions: dataset fingerprint, tracker version, resolved config, parameter layers, and inputs. Experiments with matching conditions reuse existing predictions, and interrupted runs can resume from checkpoints.
- Configuration errors fail before tracking starts. Override rules are checked against real metadata fields before any tracking runs, so a typo like
gendrstops the run immediately. - Clear evaluation definitions. Predictions are aligned to gold at the frame level, and each metric (MAE, RMSE, formant detection rate and coverage) has one written definition. Results are reported per evaluation unit, so you can break them down by speaker, vowel or gender.
- Reports.
formant-benchmark reportproduces tracker × dataset heatmaps, confidence intervals bootstrapped over speakers, error ECDFs, error by position in the vowel, and vowel-space plots.
| Datasets | Gold type |
|---|---|
| Hillenbrand et al. (1995) | static (vowel nucleus + 10–80%) |
| MSR-UCLA VTR-Formant | full trajectories |
| MCQLL formants | full trajectories, 4+ languages |
| Trackers |
|---|
| Praat (Burg) |
| FastTrackPy |
| FormantsTracker |
uv sync --extra dev
source .venv/bin/activate
pytest # 168 tests, using synthetic data fixturesEach tracker runs in its own environment. See setup: docs/environments (Praat Burg, FastTrackPy, FormantsTracker).
Run all commands from the repository root.
- Raw data goes in
data/raw/(Hillenbrand, MCQLL, VTR). - Prepare each dataset once into
prepared/<dataset>. - Run an experiment. It tracks into
runs/<experiment>and evaluates intoevaluations/<experiment>.
formant-benchmark dataset prepare --config hillenbrand
formant-benchmark experiment run hillenbrand-praat_burg
formant-benchmark reportAn experiment is a YAML file in configs/experiments/ that names a dataset, a
tracker, how to track and how to evaluate. Start from the template:
cp configs/experiments/template.yaml configs/experiments/my_experiment.yaml
formant-benchmark experiment run my_experimentExperiments with the same tracking settings reuse existing predictions instead of tracking again. See docs/experiments.md.
| Command | What it does |
|---|---|
formant-benchmark dataset list |
List dataset adapters |
formant-benchmark dataset prepare --config <name> |
Prepare configs/datasets/<name>.yaml into prepared/<name> |
formant-benchmark dataset inspect <name> |
Summarise a prepared dataset |
formant-benchmark tracker list |
List trackers |
formant-benchmark tracker inspect <tracker> |
Show a tracker's capabilities |
formant-benchmark tracker check <tracker> |
Check that a tracker's environment works |
formant-benchmark experiment run <name> |
Track and evaluate one experiment |
formant-benchmark track ... |
One-off tracking run without an experiment file |
formant-benchmark evaluate ... |
One-off evaluation of a run |
formant-benchmark report |
Plot all evaluations into reports/ (needs uv sync --extra analysis) |
formant-benchmark examples |
Plot example vowels' gold and predicted tracks into reports/examples/ |
Add --help to any command for its options. For track, evaluate, tracker
parameters and run outputs, see docs/trackers/infrastructure.md.