TL;DR
Most multi-stage Optical Music Recognition (OMR) systems train their notation assembly models assuming flawless music symbol detection—an assumption that quickly breaks down in the real world. This paper introduces a modernized pipeline combining an adapted YOLOv8 detector with an assembly model trained directly on noisy detector outputs and soft class probabilities. Paired with a new bipartite-matching evaluation metric (Match+AUC), the unified approach substantially improves end-to-end score reconstruction robustness.
What Problem Does This Paper Address?
Standard multi-stage OMR splits the reading of musical scores into distinct phases: preprocessing, music symbol detection, notation assembly (grouping symbols into syntactic relationships, like connecting noteheads to stems or beams), and downstream encoding.
Historically, researchers have isolated the notation assembly stage by training and evaluating models on ground-truth symbol annotations ("gold bounding boxes"). In practice, however, real object detectors output inaccurate bounding boxes, miss symbols, produce duplicate detections, and misclassify elements. When an assembly model trained on perfect inputs encounters these messy real-world predictions, its performance degrades severely. Furthermore, existing end-to-end evaluation schemes rely on rigid, greedy matching thresholds (e.g., requiring an exact class match and >50% IoU), failing to capture how well the downstream assembly model tolerates detector mistakes.
Methods
The authors modernize both the detection and assembly stages, tightly coupling them during training and evaluation:
- Music Symbol Detection via YOLOv8: The authors adapt YOLOv8-large to handwritten sheet music. Because raw score pages are massive (~3500 × 2000 pixels) and contain tiny symbols (like augmentation dots), the model is trained on random $1216 \times 1216$ crops resized to $640 \times 640$. Inference uses overlapping crops with extra margin context to detect symbols split across boundaries.
- Pipelined Assembly Training: To teach the notation assembler (a 4-layer MLP) to handle real detector noise, it is trained directly on the detector's raw outputs rather than ground-truth boxes.
- Soft Class Conditioning: Instead of passing discrete one-hot/embedding vectors for predicted classes into the MLP, the authors feed the detector’s soft probability distribution through a linear layer. This allows the assembly model to factor in detector uncertainty when predicting edges.
- Match+AUC Metric: To align predicted symbols with ground-truth symbols without brittle heuristics, the authors formulate a bipartite graph where edge weights combine bounding-box IoU and the predicted class probability ($w_{ij} = \text{IoU} \times p_{i, c_j}$). They compute a global maximum-weight matching, transfer ground-truth edges onto matched predicted nodes, and calculate the Area Under the Precision-Recall Curve (AUC) across varying edge-prediction thresholds.
Score Image ──> [YOLOv8 + Crops] ──> Bounding Boxes & Soft Labels
│
▼
[Bipartite Matching (M)]
│
▼
[Notation Assembler (MLP)] ──> Match+AUC Evaluation
Datasets
The authors use MUSCIMA++ v2.0, a standard handwritten music recognition benchmark consisting of 140 high-resolution pages (derived from CVC-MUSCIMA) with staff lines removed. It contains 91,254 symbol annotations and 82,247 pairwise relations across 163 symbol classes.
Evaluations are conducted on three splits:
- Full 163 classes: The complete dataset taxonomy (note: 48 classes have zero instances).
- 73 "Essential" classes: A curated subset excluding never-appearing and extremely rare symbols that do not affect replayability.
- 20 "Primitive" classes: A standard subset from prior literature used for apples-to-apples detector comparisons.
Key Insights and Ideas
- Exposure to detector flaws is a feature, not a bug: Training the assembly model on actual detector outputs forces it to learn to ignore redundant detections and handle spatial misalignments.
- Soft labels convey essential ambiguity: Passing the full softmax distribution instead of hard category IDs provides an uncertainty channel. If a detector confuses an accent mark with an augmentation dot, the downstream assembler can use context (e.g., spatial layout relative to a notehead) to resolve the ambiguity.
- Global bipartite matching beats greedy thresholds: Greedy IoU filtering penalizes near-misses harshly. Framing prediction-to-ground-truth mapping as a maximum-weight matching problem provides a balanced, continuous metric for end-to-end evaluation.
Key Results
- Detection Performance: YOLOv8 outperforms the previous state of the art (YOLOv4 + CBAM) on the 20-primitive-class benchmark, achieving 94.22% mAP vs. 91.8% mAP (+2.4% absolute improvement). On the 73 essential classes, it achieves 85.67% mAP (89.96% weighted mAP).
- End-to-End Notation Assembly: Evaluated via Match+AUC, training on detector output outperforms models trained on ground truth:
- On the 73 essential classes, the baseline scores 92.44%. Pipelined training increases this to 93.09%, and incorporating soft class labels boosts performance to 95.00%.
- On the full 163 classes, soft pipelined training improves Match+AUC from 83.97% (baseline) to 87.10%.
Limitations and Future Work
- Omission of the Encoding Stage: The pipeline stops at constructing the music notation graph; converting these graphs into standard downstream interchange formats (such as MusicXML or MEI) remains an unsolved challenge not addressed in this paper.
- Lack of Joint End-to-End Optimization: While notation assembly is trained on detector predictions, the two modules are still trained sequentially. The authors suggest incorporating Match+AUC directly into an end-to-end differentiable loss function to train detection and assembly jointly.
- Reliance on Preprocessed Staff Removal: The study assumes clean, staff-line-removed images as provided by MUSCIMA++, leaving real-world raw page artifacts to earlier preprocessing steps.
Summary updated