RESEARCH

Music structure & human intention

Current questions, research prototypes, and clearly scoped pilot evidence.

RESEARCH

Research

Current focus — 2026

Symbolic music structure analysis · Musicology-informed machine learning · Human–AI creative systems

How can musical intent become editable constraints while form, sound, and authorship remain in the creator’s hands?

I begin with musical questions and build tools that make creative decisions visible and revisable. My research connects symbolic musical structure with interactive composition and local revision.

Research interests

  • Human–AI music co-creation
  • Computational music theory
  • Symbolic music representation

Research interests continued

  • Controllable music & multimodal generation
  • Music information retrieval
  • Interactive composition & creative support systems

Methods / Research Toolkit
Symbolic music processing · MusicXML · Representation learning · Transformer / attention · Graph-based modelling · MIR evaluation · Human-in-the-loop systems

MUSIC STRUCTURE / ONGOING RESEARCH

Musicology-Guided Structural Attention (MGSA)

Measure-Level Boundary Detection in Symbolic Music

Independent research · Manuscript in preparation · Preliminary validation
RESEARCH QUESTION

Can explicit musicological priors improve measure-level boundary detection in symbolic scores?

MUSICOLOGICAL PRIORS

Metric + Motif + Harmony + Cadence + Repetition − Boundary

A = softmax(QKᵀ / √d + ∑ λᵣ Bᵣ − λᵦ Bᵦ); H = AV

The sum covers Metric, Motif, Harmony, Cadence and Repetition. Nonnegative weights control each bias; Boundary enters as a separate subtractive term.

MGSA research architectureView architecture ↗
MusicXML→Measure Encoder→MGSA→Measure-Level Boundary Prediction

Current prototype · Boundary / phrase-ending pilot on Mozart symbolic scores, with baseline and prior-ablation experiments.

Research targets · Independently supervised section relations and global form decoding remain to be completed.

Data & annotation pipeline. The pilot uses sonata-grouped splits from the DCML Mozart piano-sonata corpus, with phrase-boundary projections and cadence supervision from its annotations. Score-derived input features are separated from annotation supervision. Preprocessing records grouped splits, annotation audits, and data fingerprints. These are derived research assets, not a newly authored corpus.

Real-score pilot · Mozart K.283, movement I

Exploratory case study / preliminary visualisations
Transformer and MGSA attention matrices on Mozart K.283 movement I
Last-layer attention averaged over heads, using the same colour scale. Visual structure alone does not establish improved boundary prediction.
Transformer and MGSA learned embedding self-similarity matrices for K.283-1
Learned embedding cosine similarity; lines show projected phrase annotations. Pairwise similarity ground truth is not available.

Research method & evaluation

Updated 25 October 2026 · existing saved pilot runs · no new training

Data. DCML Mozart: 18 sonatas / 54 movements. Fold 0 is grouped by sonata: 10 / 4 / 4 sonatas, or 30 / 12 / 12 movements, for train / validation / test.

Metrics. Test event micro F1 with one-to-one boundary matching: exact gap or ±1 measure. Reference phrase-ending onsets are projected to inter-measure gaps. Checkpoint and threshold are selected on validation. F1 is not per-gap accuracy.

Baseline comparison
MGSA and matched control boundary F1. Exact: 0.3332 and 0.3297. Within one measure: 0.4569 and 0.4588.
Five-seed means and sample standard deviations on Mozart Fold 0.

Learned models use five seeds and five epochs. The matched control keeps learned pooling, the encoder, decoder and auxiliary cadence supervision; it disables attention priors.

Mozart Fold 0 · mean ± seed sample SD; novelty is a single run
Method / configurationExact F1±1-measure F1
Novelty (single deterministic run)0.2639 (single run)0.3624 (single run)
Mean-pooling Transformer0.3133 ± 0.01640.4324 ± 0.0109
Matched pooling / no priors0.3297 ± 0.01350.4588 ± 0.0136
Full MGSA0.3332 ± 0.01560.4569 ± 0.0317
Baseline comparison on exact and tolerant boundary F1
Mean ± sample SD across five seeds; not confidence intervals. Zoomed F1 axes.

MGSA minus matched control: exact F1 +0.35 percentage points; ±1-measure F1 -0.19 percentage points.

Ablation study

Each leave-one-prior-out variant is retrained with the same fold, seeds, pooling and five-epoch budget. Removing cadence bias does not remove auxiliary cadence supervision.

Retrained ablations · five seeds · mean ± seed sample SD
Method / configurationExact F1±1-measure F1
Full MGSA0.3332 ± 0.01560.4569 ± 0.0317
− Metric0.3293 ± 0.00530.4462 ± 0.0254
− Motif0.3319 ± 0.00960.4538 ± 0.0188
− Harmony0.3346 ± 0.00850.4528 ± 0.0199
− Cadence0.3353 ± 0.01990.4477 ± 0.0155
− Repetition0.3365 ± 0.01480.4501 ± 0.0140
− Boundary0.3346 ± 0.01110.4514 ± 0.0214
Retrained leave-one-prior-out MGSA ablations
Dashed line: Full MGSA mean. Error bars: sample seed SD. No significance claim.

All removals lower mean tolerant F1 in this pilot; exact F1 changes are mixed. These observations do not prove a reliable contribution from every prior.

Multi-seed stability
Exact and tolerant F1 for seeds 42, 123, 2026, 3407 and 8888
Same held-out fold. Seeds are categorical; connecting lines are not training curves.

MGSA exceeds matched pooling on exact F1 in 4/5 seeds, but on ±1-measure F1 in only 1/5 seeds. Tolerant seed SD is larger for MGSA (0.0317) than for the control (0.0136).

Held-out example · Mozart K.283, movement I

This retained pilot figure shows the Transformer and MGSA gap probabilities, DCML-derived reference positions and the model’s cadence probabilities. Gap indices use the original figure’s zero-based convention.

Mozart K.283 first movement, predicted boundary probabilities and reference gaps
Fixed held-out example from the saved MGSA pilot. The phrase-ending target belongs to this research model. See the separate Xunpu Studio form boundary test ↗
Per-seed results
Exact F1 · original saved runs
SeedMean poolingMatched poolingFull MGSA
420.29130.33270.3235
1230.30350.31240.3222
20260.32370.33000.3355
34070.31540.32390.3255
88880.33280.34950.3595
±1-measure F1 · original saved runs
SeedMean poolingMatched poolingFull MGSA
420.41340.44480.4338
1230.43510.45330.4402
20260.43880.46200.4485
34070.43460.45340.4497
88880.44020.48050.5124

Current conclusion: no consistent advantage over the matched control has been established. One composer, one fold and short training limit the interpretation. Seed SD is not a cross-work confidence interval; no statistical-significance claim is made. Full form and independent section-relation metrics are unavailable. OMR is evaluated separately.

Next: longer training, additional folds and a frozen comparison protocol.

Future Directions

Creative practice and long-term research

Creative Practice & Professional ToolsInteractive music prototypes demonstrated through original musical works

Visual, Symbolic & Auditory UnderstandingScore recognition / musical structure / audio-boundary review

Real-Time Performance UnderstandingScore following / gesture / phrasing / timing

Adaptive Musical AccompanimentLong-term exploration of human–AI co-performance

Visual and symbolic score understanding → auditory understanding → interactive musical practice → performance understanding → adaptive accompaniment and human–AI co-creation

Xunpu GraphOMR architecture: score perception, typed symbol graph, relation reasoning and music-aware decoding

Xunpu GraphOMR: Explainable Optical Music Recognition

Research prototype · Typed symbol graphs + rule-based decoding

Score images become typed symbol graphs; geometric relations and musical consistency checks support inspectable reconstruction into MusicXML, MIDI, and diagnostics.

The validated baseline covers printed single-staff melodies in treble clef, C major and 4/4. Current evaluation uses 16 variants of two synthetic fixtures.

From printed notation to a symbolic score

I implemented typed symbol graphs, geometric reconstruction and MusicXML export. The baseline detects and relates printed noteheads, stems and staff geometry, then applies score rules to decode pitches and durations. The overlay makes the recovered symbols available for inspection.

Clean synthetic single-staff duration fixture used by the GraphOMR test
Input · clean synthetic duration fixture.
GraphOMR overlay of the clean duration fixture
Output · symbol overlay for the clean duration fixture.

Regression results and retained failures

Two generated fixtures were tested under eight image conditions each. Fourteen of sixteen sequences matched exactly. The duration fixture at 0.75× scale retained correct pitch matches but only 33.3% duration match. Under the recorded noise condition it retained 50.0% pitch match and 75.0% duration match. These cases expose failure modes within the synthetic baseline.

The melody fixture matched under all eight conditions. The durations fixture had errors at 0.75× scale and noise 12.
Pitch and duration matches for all 16 synthetic cases. The two non-exact cases are highlighted.
Recognition overlay on the synthetic melody score
GraphOMR · synthetic score recognition overlay

Read the per-case evaluation and reproduction command ↗

Xunpu Studio · Harmony annotation

Two systems of a piano score with Roman-numeral annotations
Additional harmony annotation example. The 12-event review concerns a separate F-major score.

ReCoP & Shaanbei folk-song annotation

Reranking with Consensus-Gated Profiles for Shaanbei Folk-Song Lyrics Retrieval is a research submission to Transactions of the International Society for Music Information Retrieval (TISMIR). The editor decision recorded on 8 September 2026 was “Send to Review”.

Third author (Zhao, J., Guan, Q., Dai, X., Li, S., Ban, Y., & Zhang, Y.). I was responsible for the AI audio algorithm component and built database, annotation, calibration and review interfaces supporting the wider folk-song workflow.

Visit the folk-song database ↗

Folk-song audio segmentation

This related macOS research tool explores audio structure and supports human boundary review. It analyses waveform, energy, spectral, timbral, rhythmic and harmonic changes; lyric timing can assist boundary calibration. The related implementation uses acoustic features and lyric-assisted boundary refinement. These figures document that workflow and are not results of the lyrics-retrieval experiment.

The figures cover different samples and analyses. Counts describe their stated review or processing scope, not general accuracy. The reference in one comparison comes from a screenshot; its authorship and whether annotation was blind are unconfirmed.

Recordings and batch review

Annotation and reference methods

Agreement, ablations and failure cases

Runtime and boundary decisions

The original figures preserve their own methods, sample sizes, limitations and failure cases. Select any image to view it at full resolution.

Selected Research Outputs

  • MGSAOngoing research · Manuscript in preparation
  • ReCoPSubmitted to TISMIR · Editor decision: Send to Review · Co-author · 2026Reranking with Consensus-Gated Profiles for Shaanbei Folk-Song Lyrics Retrieval
  • Xunpu GraphOMRSource-available research prototype
  • Patent / Software IPApplication and software records listed below

Open full image ↗