The 302-neuron nervous system of C. elegans, simulated by OpenWorm, wired into a physical piano model — each body wall muscle contraction triggers a hammer strike. NAML algorithms close the gap to F1 = 0.933 matching Chopin.
C. elegans has exactly 302 neurons and 96 body wall muscles — the simplest animal with a fully mapped connectome (White et al. 1986). v1.x turns that connectome into a composer: NAML algorithms align the worm's body wave to Chopin's nocturne (best F1 = 0.933). v2.0.0 inverts the pipeline: Chopin's patterns are extracted via RSVD + K-means, ranked by Pearson excitability, and mapped onto 96 muscles — the worm dances to the music in real time in your browser.
Chopin's Nocturne in C# minor is decomposed into K*=8 recurring patterns via RSVD (Eckart-Young) + K-means (silhouette criterion), ranked by biological Pearson excitability, and mapped to 96 body-wall muscles via least-squares regression. Body wave, neural circuit panel, locomotion trail, and pattern timeline — all live.
Each module targets a different PoliMi course and a different layer of the pipeline. Presentations open in-browser (Reveal.js · CDN-only · works anywhere). Notebooks open in nbviewer — no install required.
v2.0.0 (inverse): Chopin → RSVD (Eckart-Young, k=12) →
K-means (K*=8) → Pearson excitability → lstsq → 96-muscle worm dance.
Live browser demo above ↑
v1.x (forward): 10-step Worm→Music journey:
SVD → K-means → Ridge → MLP → Adam → L-BFGS → RF → PINN →
Worm+Time hybrid MLP (F1=0.933) → full-piece 229 s WAV.
Boyle 4×24 model · 96-cell simulation · Karplus-Strong piano synthesis.
Applied Statistics pipeline for worm-music data:
PCA + t-SNE + UMAP on neural activity →
K-means / DBSCAN / GMM clustering of motor states →
OLS + Ridge diagnostics (VIF · Breusch-Pagan · Durbin-Watson) →
Logistic regression + Random Forest classification →
ROC/AUC for onset detection quality →
Statistical validation of the NAML pipeline.
C++ Sibernetic wrapper (RAII · shared-library ABI) →
OpenWorm Docker integration (Sibernetic SPH + C302 neural) →
MPI distributed parameter search →
Azure NC24-A100 GPU acceleration of the PINN training loop →
Piano FEM modal synthesis upgrade (Chabassier 2014).
Presentation and notebooks in a future release.
Note on audio:
The NAML presentation includes HTML5 audio players that stream directly from
GitHub Releases v1.0.0
— no download required. To generate the audio locally, run Step 10 in
03_pyannow_naml_progression.ipynb
which produces step_outputs/worm_mlp_full.wav and chopin_synth_full.wav.
All slides, equations, and code are fully functional online.
Each step introduces one new method from the NAML course and measures its impact on musical F1 (onset timing accuracy, ±50 ms tolerance). Step 0 deterministic body-wave is the floor; Step 9 Worm+Time MLP is the best.
Open in nbviewer (rendered, no install needed) or
view directly on GitHub (native .ipynb rendering).
Run locally: clone the repo and
pip install pyannow && jupyter lab
| Notebook | Module | Key topics | Open |
|---|---|---|---|
|
06_chopin_patterns_worm_dance_v2 v2.0.0 inverse pipeline · Chopin → worm dance · fully executed |
NAML | Piano-roll M∈ℝ^{56×11711} · RSVD (Eckart-Young, k=12) · K-means K*=8 · Pearson excitability · lstsq W_nm · synthetic body wave · worm dance JS viz | |
|
03_pyannow_naml_progression Main PyANNOW notebook · Steps 0-10 · fully executed |
NAML | SVD · K-means · Ridge · MLP · Adam · L-BFGS · RF · PINN (ODE+PDE) · Worm+Time MLP · NB04+Step9b full-piece · F1=0.933 | |
|
05_pyannow_step9b_audio Step 9b · full 229s Chopin piece · Karplus-Strong piano synthesis |
NAML | Step 9b · full-piece (229 s) · Karplus-Strong piano · physics-residual MLP · audio render pipeline · F1=0.933 | |
|
04_chopin_score_net NB04 · pure Fourier time-net · F1=0.858 ceiling |
NAML | Fourier positional encoding · full-piece training · NB04 recipe · onset detection · worm biology headroom proof | |
|
02_chopin_worm_optimizer Parameter optimiser for the Boyle worm model |
NAML | Boyle 4×24 model · ion-channel parameters · Nelder-Mead · Adam · onset loss surface | |
|
01_appstat_lecture_audit AppStat methods applied to worm-music data |
AppStat | PCA · t-SNE · UMAP · clustering (K-means/DBSCAN/GMM) · OLS + VIF · RF · ROC/AUC · statistical validation | |
|
scientific_foundation_demo Mathematical foundations · cross-system equivalence |
docs | Worm ODE ↔ piano PDE structural correspondence · PINN residual · Boyle model derivation · 20-row equivalence table |