Paper Feed

Issue 44 · Project 05 GitHub Non-invasive BCI ✓ read

joeblau/subvox

TL;DR: Subvox is a tiny macOS prototype that asks a sharp question: does the head-tracking IMU in AirPods Pro (exposed via CMHeadphoneMotionManager) carry enough information to decode silently mouthed words? It answers with a per-user DTW template classifier — no language model, no neural net — plus a leave-one-out evaluation and a 500× label-permutation test so you can tell whether what you're seeing is signal or self-deception. It's a commodity-hardware silent-speech interface experiment rig, honestly scoped, and unusually well-instrumented for a hobby project.

Why this is interesting

Silent-speech interfaces usually need EMG electrodes on the jaw (AlterEgo-style), ultrasound, or at least a dedicated accelerometer on the skin. The provocative bet here is that the ~25 Hz processed motion stream Apple already ships for spatial audio — acceleration, rotation rate, attitude — picks up enough jaw and head articulation during mouthing to separate words. The author is explicit that this is not vocal vibration: Apple doesn't expose the speech-detecting accelerometer or the inward-facing mic, so the signal is gross articulator motion coupled through the skull to the ear canal. That framing is correct and refreshingly honest. If even a small vocabulary separates reliably above chance on consumer earbuds with zero extra hardware, that's a data point worth having for anyone thinking about ear-worn neurotech or subvocal input.

The second thing worth noting is methodological hygiene. Most hobby BCI/silent-speech demos show a cherry-picked video. This one bakes in leave-one-out cross-validation, a shuffled-label permutation null, a confusion matrix, and feature-ablation checkboxes (acceleration / rotation / attitude independently toggleable) so you can find out which channels carry information. That's the right skeleton for any small-N wearable decoding experiment, and it's rare to see it in a weekend-sized Swift app.

How it works

AirPods Pro IMU ~25 Hz motion Segmentation Space / energy 9-D features accel · rot · attitude mean-centered DTW 1-NN Sakoe–Chiba band Evaluate: leave-one-out vs 500× shuffled labels p-value + confusion matrix + feature ablation
No learned model anywhere: per-user templates matched by DTW, with a permutation-test null to verify the signal is real.

The pipeline: segments are captured via space-hold or an energy trigger over a calibrated noise floor (with pre-roll/hangover). Per frame you get 9 dims — user acceleration (3), rotation rate (3), attitude change since segment start (3) — mean-centered and silence-trimmed. Channels are z-scaled across the training set, then classified by 1-nearest-neighbor DTW with a Sakoe–Chiba band, with distance and margin rejection thresholds. Training is "pick a word, hold Space, mouth it" — a few takes per word become templates.

The app also doubles as a data-collection rig: sessions dump motion.csv, time-aligned audio.caf, events.csv, and meta.json, with a suggested protocol (same 5-word script under normal speech / whisper / silent mouthing, 10 reps each). That makes it directly usable as a corpus collector for training something better than DTW.

What's actually there — and what isn't

Swift app, MIT licensed, macOS 14+, needs AirPods Pro (or other head-tracking headphones) connected as audio output. Three screens: live sensor plots, train/evaluate, and decode with a parallel mic transcript for comparison.

What's missing: any reported accuracy numbers. The README describes the evaluation machinery but gives no results — no vocabulary size tested, no accuracy-vs-chance figure, no ablation outcome. The stated limits are also real constraints: ~25 Hz sampling is far below what articulation dynamics would ideally need, templates are user- and session-specific (re-seating the earbuds shifts the signal), and using AirPods as mic drops them to the lossy HFP Bluetooth profile. So treat this as a well-built experimental apparatus, not a demonstrated capability. The honest framing ("expect jaw and head movement, not vocal vibration") suggests the author knows the ceiling is low — this is closer to "silent gesture-word classification via jaw motion" than true subvocal speech decoding.

Try it

brew install xcodegen        # once
git clone https://github.com/joeblau/subvox && cd subvox
xcodegen generate
open Subvox.xcodeproj        # ⌘R, grant Motion permission

The interesting experiment is the one the README suggests: record 5 words × 10 reps under silent mouthing, run Evaluate with each feature set toggled, and see whether the permutation test rejects the null — then re-seat the AirPods and test whether your templates survive. If they do, that's the surprising result.