# Interactive Machine Learning & Gesture–Sound Mapping

**Packet:** movement-capture-and-networked-musical-expression · **Date:** 2026-08-16
**Verification:** live-web-verified · **Lane model class:** Claude Sonnet 5

## Why this field grounds the work

`packages/movement-conductor/src/sink.ts`'s `WekinatorSink` and `src/frame.ts`'s constants (`WEK_INPUTS_ADDRESS = "/wek/inputs"`, `WEKINATOR_INPUT_PORT = 6448`) are not arbitrary defaults — they are Wekinator's own documented OSC input contract, unchanged since Rebecca Fiebrink's system shipped in 2009 [fiebrink-2009-nime][weki-org]. The nine floats this repo sends per frame are exactly the shape a Wekinator "project" configured for nine inputs expects, and Wekinator's three learning-task types (continuous regression, classification, dynamic time warping) name the three different things those nine channels could become downstream. The 5.01 Hz Episode 083 field capture and its `*.summary.json` sidecar sit inside a question interactive machine learning (IML) has asked since 2003: what a human-trained model can learn from a small, noisy, real-world demonstration rather than a curated dataset. `src/replay.ts`'s `ScoreReplaySource` — a recorded JSONL score re-emitted as a live `MovementSource` — is the concrete form of what this literature calls "mapping by demonstration": the same gesture stream that trains a model is the stream the model was built to hear.

## Canonical concepts

- **Wekinator** — Rebecca Fiebrink's system for real-time, interactive supervised learning applied to music: a user demonstrates input↔output pairs (e.g. sensor pose → synth parameter), Wekinator trains a model live, and the model runs in the performance loop. Originated as a 2009 NIME "meta-instrument" and became the basis of Fiebrink's 2011 Princeton PhD thesis [fiebrink-2009-nime][fiebrink-2011-thesis].
- **Interactive machine learning (IML)** — coined by Fails & Olsen at IUI 2003, whose "Crayons" system let non-experts train a pixel classifier by iteratively marking regions and immediately seeing/correcting results. IML is defined by the *rapid demonstrate-train-evaluate-correct loop*, not by any specific algorithm [fails-olsen-2003].
- **Power to the People** — Amershi, Cakmak, Knox & Kulesza's 2014 AI Magazine synthesis of what makes ML "interactive": tight coupling between system and end-user, where the user's role in shaping the model (not just consuming its output) is a first-class design concern [amershi-2014].
- **Parameter mapping as the essence of a digital instrument** — Hunt, Wanderley & Paradis (NIME 2002) argue the mapping between gestural input and sound-generation parameters — not the synthesis engine — defines an instrument's expressive character, and name one-to-one, one-to-many, many-to-one, and many-to-many mapping strategies [hunt-wanderley-paradis-2002].
- **Mapping by demonstration / motion-sound mapping** — Jules Françoise & Frédéric Bevilacqua's IRCAM ISMM work: a probabilistic, hierarchical framework (Gaussian Mixture Models and hierarchical Hidden Markov Models, released as the **XMM** library) that learns a gesture-to-sound mapping directly from a performer's demonstrated examples rather than hand-authored rules [francoise-bevilacqua-2018-tiis][xmm-github].
- **GRT — Gesture Recognition Toolkit** — Nicholas Gillian & Joseph A. Paradiso's cross-platform open-source C++ library (JMLR 2014) for real-time gesture classification/regression aimed at non-specialists; it underlies several later Max/Pd tools [gillian-paradiso-2014-jmlr].
- **ml.lib / ml.star** — Ali Momeni & Jamie Bullock's NIME 2015 wrapper of GRT for Max and Pure Data, bringing the same "robust, fast-training" ML objects into live-coding/patching environments [momeni-bullock-2015-nime].
- **RAPID-MIX API** — an EU Horizon 2020 project (2015–2018) producing an easy-to-use ML API for rapid prototyping of gesture/biosignal-driven creative technology, usability-tested with 12 developers via a cognitive-dimensions questionnaire [bernardo-2020-frontiers].
- **Machine learning as creative tool / HCI interface** — Fiebrink & Caramiaux's chapter reframes learning algorithms themselves as human-computer interfaces, arguing their value in music is in how their affordances intersect with a musician's goals, not their raw predictive accuracy [fiebrink-caramiaux-2018-oxford].
- **Small-data, remapping-over-retraining** — Charles Martin's 2026 NIME paper on intelligent musical instruments explicitly scopes Wekinator-style systems *out* of "intelligent musical instruments" (they map performer input, they don't generate independent musical action) and argues that flexible I/O remapping, not retraining, is what actually accelerates iterative design with small on-device models [martin-2026-arxiv].

## Key findings

1. `WekinatorSink`'s defaults (`/wek/inputs`, port 6448) are exactly Wekinator's own documented OSC input address and default listening port — no reconfiguration is needed on the Wekinator side beyond declaring a 9-input project [weki-org][weki-input-helper-github].
2. Wekinator supports three task types with distinct algorithm families: continuous regression (neural network, linear/polynomial regression), classification (k-NN, SVM, decision tree, AdaBoost, Naive Bayes), and dynamic time warping for whole-gesture/temporal matching — the choice determines whether this repo's nine channels become discrete triggers, continuous control, or recognized gesture-phrases [weki-org].
3. **WekiInputHelper** is a separate companion Java tool (not part of Wekinator core) that sits between a feature extractor and Wekinator, doing windowed min/max/mean/standard-deviation and buffering before relaying to `/wek/inputs` — functionally, `src/summary.ts`'s per-channel `ChannelStats` (min/max/mean) is an offline, after-the-fact version of what WekiInputHelper does live [weki-input-helper-github].
4. IML is field-defined by the *loop* (demonstrate → train → evaluate → correct), not by algorithm choice — this is the explicit claim of both the founding Fails & Olsen paper and the later Amershi et al. survey, which is why fast-training small models dominate this literature over deep nets [fails-olsen-2003][amershi-2014].
5. Mapping strategy — not the synthesizer — is where a digital instrument's feel is decided (Hunt/Wanderley/Paradis); a `WekinatorSink` that forwards nine raw channels is implicitly deferring a many-to-many mapping decision entirely to whatever model gets trained downstream [hunt-wanderley-paradis-2002].
6. Published IML musical-mapping work consistently trains on very small numbers of demonstrated examples per class/gesture (single- to low-double-digit repetitions), which is the practical reason the field favors kNN/regression/GMM-HMM over deep learning — small models fit small, fast-iterated datasets [fiebrink-caramiaux-2018-oxford].
7. Sample rate and windowing matter more than raw channel count: typical gesture-recognition IMU work windows in the tens-to-low-hundreds-of-milliseconds range, commonly at ≥100 Hz. The Episode 083 field capture's 5.01 Hz — and the 2026-08-15 lane's unverified 9.9 Hz report — sit well below that norm, meaning a model trained directly on raw per-packet frames at this rate has far coarser temporal resolution than most published gesture models assume.
8. Evaluation in this field has shifted from held-out accuracy toward user-centered, creativity-support evaluation (participatory interviews with composers, Creativity Support Index-style instruments) precisely because a learned gesture-to-sound mapping usually has no independent ground truth to score against [fiebrink-caramiaux-2018-oxford][bernardo-2020-frontiers].
9. As of 2026, Wekinator has had no major architectural change since version 2.0 (2015); its GitHub repository (`fiebrink1/wekinator`) shows continued light maintenance (322 stars, 361 commits, 12 open issues, most recently touched 2024) but no active rewrite, and the official site describes it as "gently updated with bug fixes and feature requests" rather than under active research development [wekinator-github][weki-org].

## Cautions & contested ground

- **Wekinator's 2026 maintenance state**: stable, small-team, not actively evolving. Treat it as a mature, unglamorous, dependable tool rather than a live research platform — bug fixes continue, but no successor project has replaced it, and the 2026 NIME literature is starting to define "intelligent musical instrument" in a way that excludes it by category (mapping vs. generating) rather than by obsolescence [martin-2026-arxiv][wekinator-github].
- **A name conflation to avoid**: the mapping-taxonomy paper (Hunt, Wanderley & **Paradis**, NIME 2002) and the Gesture Recognition Toolkit paper (Gillian & **Paradiso**, JMLR 2014) have two different co-authors — Matthew Paradis (mapping strategies) and Joseph A. Paradiso (MIT Media Lab, sensor/gesture toolkits). They are not the same person and should not be cited interchangeably.
- **"MIMIC platform"**: no live source under that exact name surfaced this session in connection with RAPID-MIX. RAPID-MIX's documented, citable deliverable is the RAPID-MIX API (Frontiers in AI, 2020, usability study with 12 developers). Treat "MIMIC" as unconfirmed pending a primary source.
- **A live 2026 boundary dispute**: Martin's NIME 2026 paper explicitly defines "intelligent musical instruments" to *exclude* Wekinator-style mapping systems, reserving the term for systems that generate independent musical material on small on-device models, and argues remapping (not retraining) is the faster iteration loop. A reviewer in 2026 would reasonably say Wekinator sits outside where the field's current energy is (small embedded generative models), not that it is technically broken.
- **Overfitting is under-discussed in this literature**: one 2022 IML survey states plainly that "the risk of overfitting seems little discussed in the interactive machine learning literature," even as adjacent gesture-recognition work documents real environmental/sensor confounds (lighting, device placement, per-user bias) that can make a model "learn the room" instead of the gesture.
- **"How much training data is enough" has no canonical number**: small-N claims across NIME case studies are an observed design norm, not a derived statistical guarantee — the sufficient count is task-, model-, and channel-count dependent, and nothing in this literature licenses a fixed rule of thumb.

## Engineering implications for this repo

- `packages/movement-conductor/src/sink.ts`'s `WekinatorSink` and `src/frame.ts`'s `WEK_INPUTS_ADDRESS`/`WEKINATOR_INPUT_PORT` already match Wekinator's documented default OSC contract exactly — pointing the sink at a real Wekinator instance needs zero address/port change, only a Wekinator project declared with 9 inputs.
- Wekinator's three task types map onto three different future uses of a recorded score: classification if the belly capture should trigger discrete cues, continuous regression if it should drive continuous synthesis parameters, DTW if the goal is recognizing a whole gesture phrase rather than an instantaneous pose — this choice belongs in whatever package eventually authors the Wekinator project file, not in `movement-conductor` itself.
- `packages/movement-conductor/src/summary.ts`'s `ChannelStats` (min/max/mean per channel) and derived magnitudes are functionally an offline WekiInputHelper; if live windowed features (not raw per-packet floats) turn out to train a better model, that logic already exists here and could be adapted into a streaming pre-`WekinatorSink` stage rather than reimplemented.
- `packages/movement-conductor/src/replay.ts`'s `ScoreReplaySource` is the mapping-by-demonstration corpus mechanism made concrete: because it implements the same `MovementSource` interface as a live capture, a recorded JSONL score can be replayed through the exact same `WekinatorSink` used in performance — making every past practice session reusable as either live-Wekinator input or reproducible synthetic training data.
- Given the 5.01 Hz field-capture rate (and the unverified 9.9 Hz lane report), any future model — Wekinator-native or an external GRT/ml.lib pipeline — should treat sample rate as an explicit design constraint: train on raw per-packet values only if accepting coarse temporal resolution, or feed `summary.ts`-style windowed statistics as the actual model inputs, closer to how WekiInputHelper and GRT's feature-extraction stage are normally used.
- If a future need arises for classification/regression outside Wekinator's own GUI (e.g. a headless service), GRT/ml.lib is the standing open-source alternative sharing the same "few examples, fast retrain" philosophy — worth naming explicitly if such a package is ever proposed, rather than reinventing feature extraction from scratch.

## Lines worth carrying into voice chronicle

- Wekinator doesn't reason out a gesture — it learns it from a handful of times you showed it.
- Nine numbers a second aren't a recording yet, they're a lesson the model is still taking.
- The same walk that got recorded can come back and perform again — the corpus becomes the instrument.
- Nobody grades this model on accuracy — the only judge is whether the sound still feels like the gesture.
- Wekinator hasn't changed shape since 2015, but what the field now expects a model to do has.

## Sources

| id | title | author / venue | year | url or doi | verified |
|---|---|---|---|---|---|
| fiebrink-2009-nime | A Meta-Instrument for Interactive, On-the-fly Machine Learning | Fiebrink, Trueman, Cook — NIME'09 | 2009 | https://archives.ismir.net/ismir2010/latebreaking/000012.pdf (related ISMIR LBD) | true |
| fiebrink-2011-thesis | Real-time Human Interaction with Supervised Learning Algorithms for Music Composition and Performance | Fiebrink — PhD thesis, Princeton University | 2011 | https://www.cs.princeton.edu/~fiebrink/ | true |
| fiebrink-2011-chi | Human Model Evaluation in Interactive Supervised Learning | Fiebrink, Cook, Trueman — CHI 2011 | 2011 | https://research.gold.ac.uk/id/eprint/9426/1/FiebrinkCookTrueman_CHI2011.pdf | true |
| fails-olsen-2003 | Interactive Machine Learning | Fails, Olsen Jr. — IUI 2003 | 2003 | https://dl.acm.org/doi/10.1145/604045.604056 | true |
| amershi-2014 | Power to the People: The Role of Humans in Interactive Machine Learning | Amershi, Cakmak, Knox, Kulesza — AI Magazine 35(4) | 2014 | https://doi.org/10.1609/aimag.v35i4.2513 | true |
| hunt-wanderley-paradis-2002 | The Importance of Parameter Mapping in Electronic Instrument Design | Hunt, Wanderley, Paradis — NIME 2002 | 2002 | https://www.nime.org/proceedings/2002/nime2002_088.pdf | true |
| francoise-bevilacqua-2018-tiis | Motion-Sound Mapping through Interaction: An Approach to User-Centered Design of Auditory Feedback Using Machine Learning | Françoise, Bevilacqua — ACM TiiS 8(2) | 2018 | https://dl.acm.org/doi/10.1145/3211826 | true |
| xmm-github | XMM — Probabilistic Models for Motion Recognition and Mapping | ircam-ismm | n/a | https://github.com/ircam-ismm/xmm | true |
| gillian-paradiso-2014-jmlr | The Gesture Recognition Toolkit | Gillian, Paradiso — JMLR 15 | 2014 | https://www.jmlr.org/papers/v15/gillian14a.html | true |
| momeni-bullock-2015-nime | ml.lib: Robust, Cross-platform, Open-source Machine Learning for Max and Pure Data | Momeni, Bullock — NIME 2015 | 2015 | https://alimomeni.net/wordpress/wp-content/uploads/2015/05/NIME-2015-ml.lib-Momeni-Bullock.pdf | true |
| fiebrink-caramiaux-2018-oxford | The Machine Learning Algorithm as Creative Musical Tool | Fiebrink, Caramiaux — Oxford Handbook of Algorithmic Music / arXiv:1611.00379 | 2018 | https://arxiv.org/abs/1611.00379 | true |
| bernardo-2020-frontiers | Designing and Evaluating the Usability of a Machine Learning API for Rapid Prototyping Music Technology | Bernardo, Zbyszynski, Grierson, Fiebrink — Frontiers in AI, vol. 3 | 2020 | https://doi.org/10.3389/frai.2020.00013 | true |
| gillies-2019-tochi | Understanding the Role of Interactive Machine Learning in Movement Interaction Design | Gillies — ACM TOCHI 26(1) | 2019 | https://dl.acm.org/doi/10.1145/3287307 | true |
| martin-2026-arxiv | Opening the Design Space: Two Years of Performance with Intelligent Musical Instruments | Charles Patrick Martin — NIME 2026 / arXiv:2604.23583 | 2026 | https://arxiv.org/abs/2604.23583 | true |
| wekinator-github | fiebrink1/wekinator repository | Fiebrink — GitHub | accessed 2026 | https://github.com/fiebrink1/wekinator | true |
| weki-org | Wekinator — Detailed Instructions / Input Helper documentation | Fiebrink — wekinator.org / doc.gold.ac.uk | accessed 2026 | https://www.wekinator.org/ | true |
| weki-input-helper-github | fiebrink1/WekiInputHelper repository | Fiebrink — GitHub | accessed 2026 | https://github.com/fiebrink1/WekiInputHelper | true |
| overfitting-iml-review | Interactive Machine Learning: A State of the Art Review | Wondimu, Buche, Visser — arXiv:2207.06196 | 2022 | https://arxiv.org/abs/2207.06196 | true |
