A Novel Dataset and Framework for Schenkerian Optical Music Recognition
Organizations: Duke University · Independent Researcher, Denton, USA · Chinese University of Hong Kong, Shenzhen
Abstract
Music theory enables performers, composers, and listeners to engage more deeply with music. Schenkerian analysis (SchA) is a particularly illustrative and widely used approach for modeling tonal structure, organizing music into hierarchical layers of harmonic and voice-leading relationships. Despite its importance in pedagogy and scholarship, producing well-formatted Schenkerian graphs remains difficult. A typical workflow might involve writing the Schenkerian analysis on paper, and then manually, painstakingly, entering each symbol by hand into music software, exporting to vector graphics, and manually refining layouts in graphical editors. Existing optical music recognition (OMR) systems for handwritten common western music notation (CWMN) can be leveraged for their ability to recognize small-scale symbols common to those in SchA. However, CWMN OMR models generally fail to recognize large symbols such as phrase slurs, struggle with dense notation, and do not recognize Schenkerian analysis markings. Thus, these models do not extend well to digitizing SchA. This paper introduces a novel framework for optical music recognition of both CWMN and SchA. Our novel contributions include (1) an ensemble model in which each individual model follows a different image-cropping scheme for improved object detection, (2) a topological neural network architecture for notation assembly, where candidate hyperedges attend to one another and perform hierarchical message passing, (3) the first dataset of labeled handwritten SchAs, gathered with novel model integration to the OMR-annotation software, MuNG Studio, and (4) the first algorithm for converting semantic Schenkerian graphs into typeset format.
Figures & tables
| Symbol recognition | Syntax links | Time groups | Precedence links | |
|---|---|---|---|---|
| Pages | 47 | 36 | 37 | 44 |
| Annotations | 30,780 | 22,138 | 2,309 | 11,038 |
| Split | Symbol recognition | Syntax links | Time groups | Precedence links |
|---|---|---|---|---|
| Random splits | 30/7/10 | 23/5/8 | 24/5/8 | 28/7/9 |
| Held-out | 33/7/7 | 26/5/5 | 25/5/7 | 30/7/7 |
| Feature group | Definition | Dim. |
| Box geometry | ||
| Box corners | 4 | |
| Center | 2 | |
| Size | 2 | |
| Symmetric pair geometry | ||
| Center offsets | 2 | |
| All symbols | Large symbols pixels | Very large symbols pixels | ||||||
|---|---|---|---|---|---|---|---|---|
| Method | mAP 50 | w-mAP 50 | mAP 50:95 | w-mAP 50:95 | mAP 50 | w-mAP 50 | mAP 50 | w-mAP 50 |
| Eight random splits | ||||||||
| Baselines | ||||||||
| Faster R-CNN + Inception-ResNet-v2 [ 49 ] | 58.37 3.12 | 87.13 2.21 | 33.94 2.06 | 47.92 2.60 | 30.84 2.80 | 55.96 3.51 | 31.87 2.82 | 44.05 3.35 |
| completeOMR [ 28 ] | 55.25 2.21 | 87.77 1.03 | 40.41 1.58 | 60.62 0.86 | 44.00 3.84 | 69.97 2.61 | 40.30 4.65 | 54.52 4.84 |
| MuSViT + Faster R-CNN [ 31 ] | 62.81 2.89 | 91.03 1.31 | 37.93 1.84 | 54.02 0.89 | 49.20 2.54 | 71.13 2.20 | 45.28 5.64 | 52.70 4.68 |
| All symbols | Large symbols pixels | Very large symbols pixels | ||||||
|---|---|---|---|---|---|---|---|---|
| Method | mAP 50 | w-mAP 50 | mAP 50:95 | w-mAP 50:95 | mAP 50 | w-mAP 50 | mAP 50 | w-mAP 50 |
| Baselines | ||||||||
| Faster R-CNN + Inception-ResNet-v2 [ 49 ] | 70.94 1.82 | 90.65 0.13 | 46.88 0.86 | 58.03 0.46 | 40.14 9.64 | 34.19 3.13 | 15.86 1.07 | 5.81 0.82 |
| completeOMR [ 28 ] | 84.24 0.55 | 96.73 0.09 | 69.86 0.28 | 72.38 0.92 | 79.19 2.16 | 87.47 0.16 | 62.41 1.49 | 72.00 1.32 |
| MuSViT + Faster R-CNN [ 31 ] | 84.53 0.72 | 95.28 0.46 | 59.67 1.57 | 67.05 0.34 | 79.62 7.19 | 80.35 2.80 | 60.36 0.35 | 61.87 0.55 |
| Ours | ||||||||
| MUSCIMA++ | DoReMi | ||
| Method | All links | Non-staff links | All links |
| Baselines | |||
| Efficient NA–MLP32 [ 39 ] | |||
| Efficient NA–MLP64–512 [ 39 ] | |||
| completeOMR–MLP [ 28 ] | |||
| General-purpose models | |||
| Method | Mean of eight random splits | Held-out work |
|---|---|---|
| Baselines | ||
| Efficient NA–MLP32 [ 39 ] | ||
| Efficient NA–MLP64–512 [ 39 ] | ||
| completeOMR–MLP [ 28 ] | ||
| General-purpose models | ||
| Logistic regression | ||
| Method | Mean of eight random splits | Held-out work |
|---|---|---|
| Alignment rule, page-height tolerance | 94.57 | |
| Alignment rule, stem and pitch cues | 93.73 | |
| Pair MLP | ||
| Target-node attention | ||
| Ours, connected components | ||
| Ours |
| Method | Mean of eight random splits | Held-out work |
|---|---|---|
| Nearest same-family rule | 50.04 | |
| Pair MLP | ||
| Target-node attention | ||
| Ours, single threshold | ||
| Ours |
| Task | Annotated symbols | Detected symbols |
|---|---|---|
| Syntax links (directed-edge F1) | ||
| Time groups (pair F1) | ||
| Precedence links (directed-edge F1) |
| Setting | YOLOv8L branch (ours) | RF-DETR branch (ours) |
|---|---|---|
| Training crops | tiles, stride 960 | Full-width strips of height 768, stride 384 (HandSchA), whole pages (MUSCIMA++) |
| Training targets | Fully contained targets | , visible area at least 90% |
| Optimizer | AdamW | AdamW |
| Learning rate | (detector), (encoder) | |
| Batch size | 16 | 9 |
| Training length | At most 120 epochs | At most 120 epochs |
| Ours | Pair MLP / GraphSAGE | |
|---|---|---|
| Class embedding | 32 | 24 |
| Hidden width | 128 | 96 |
| Layers | 2 incidence-attention, channels | 2 GraphSAGE |
| Dropout | 0.1 | 0.1 |
| Crop height width, margin | , 15% of the union box (at least 8 pixels) | – |
| Optimizer, learning rate | AdamW, | AdamW, |