mir_eval
mir_eval is an open-source Python library that implements the standard measures used to evaluate music information retrieval (MIR) systems, so that results from different researchers can be computed in the same way.[1:1][2:1] It was presented by Raffel and colleagues at the ISMIR conference in 2014.[2:1]
Motivation
MIR systems are usually judged by objective measures that compare their output with a reference annotation, since having people judge each output would be subjective and very time-consuming over a large corpus. The annual MIREX evaluations ran on the NEMA system; its code used several programming languages and proprietary dependencies such as Matlab, so it was rarely used outside MIREX. Researchers instead wrote their own implementations, which were not standardized and could differ in details or contain bugs that confounded comparisons.[2:2]
Design
mir_eval was meant to be community-developed and transparently implemented, so that its design decisions are open to discussion. Each task has its own submodule and each measure is a separate function, documented with example usage, input validation and a reference to the paper that defined it; outside Python's standard library, the first version depended only on SciPy and NumPy. It then covered beat detection, chord estimation, pattern discovery, structural segmentation, melody extraction and onset detection.[2:1]
By version 0.8.2 it had submodules for alignment, beats, chords, melody, multiple pitch, onsets, patterns, segmentation and hierarchical segmentation, source separation, tempo, note transcription with and without velocity, and key. Each has an evaluate() function that takes reference and estimated annotations and returns all of its scores. Other submodules plot annotations and synthesize them as sound for "evaluation by ear".[1:1]
Comparison with MIREX
To check its implementations, its authors compared mir_eval's scores with those reported in MIREX 2013, a comparison that can also find bugs in either system, and documented the differences in implementation wherever the scores diverged substantially.[2:1]
Note transcription
For automatic music transcription, mir_eval follows the MIREX note-tracking criteria. An estimated note counts as correct if its onset is within 50 milliseconds of a reference note's and its pitch within a quarter tone (50 cents by default). In a stricter setting, its offset must also lie within 20% of the reference note's duration or 50 milliseconds, whichever is larger. Precision, recall, F-measure and an overlap ratio are computed with and without offsets, and each reference note can be matched to at most one estimated note.[1:2]
The documentation lists three differences from the code MIREX used in 2015. mir_eval finds the best overall pairing of notes by bipartite graph matching, where MIREX matched greedily; MIREX rounded note times down to two decimal places and mir_eval to four; and MIREX's code left out the 50-millisecond minimum offset tolerance stated on its wiki. Together these make mir_eval's precision, recall and F-measure about 1 to 2% higher than MIREX's, and MIREX itself has used different scripts for the task over the years.[1:3]
The 50-millisecond onset window has itself been questioned: the developers of the Onsets and Frames transcription system argued that it allows too much timing error, while noting that scores fall as the window narrows, partly because reference timings are not precise enough.[3:1]
See also
- MIREX
- Evaluation in music information retrieval
- Automatic music transcription
- Beat tracking
- Pitch detection algorithm
- ^a ^b ↗ me-structure ^ ↗ me-transcription ^ ↗ me-mirex-diff mir_eval Documentation. mir_eval 0.8.2 documentation. https://mir-eval.readthedocs.io/stable/.
- ^a ^b ^c ^d ↗ ra-design ^ ↗ ra-motivation Raffel, Colin; McFee, Brian; Humphrey, Eric J.; Salamon, Justin; et al. (2014). mir_eval: A Transparent Implementation of Common MIR Metrics. Proceedings of the 15th International Society for Music Information Retrieval Conference (ISMIR 2014). https://doi.org/10.5281/zenodo.1416528 https://archives.ismir.net/ismir2014/paper/000320.pdf.
- ^ ↗ note-metrics-tolerance Hawthorne, Curtis; Elsen, Erich; Song, Jialin; Roberts, Adam; et al. (2018). Onsets and Frames: Dual-Objective Piano Transcription. Proceedings of the 19th International Society for Music Information Retrieval Conference. https://arxiv.org/abs/1710.11153.
Wikidata: Q120550391
Discussion
No threads yet.
Sign in to start threads and post replies.