Writing

When accurate decoding is not enough

Both controllers replay the same recorded EMG. The shaded interval is a simulated 500 ms decoder stall: the synchronous controller (left) holds its last pose; the non-blocking controller (right) switches to a fixed fallback.

High decoding accuracy doesn’t necessarily translate to reliable real-time control.

Today, I made progress on two related projects: improving EMG decoding for the EEG/EMG Foundation Challenge and building ADAPT (Adaptive Decoder Allocation and Performance Tuning), a new project focused on adaptive inference and real-time biosignal control.

For the challenge, I continued comparing a causal transformer and a temporal convolutional network (TCN) for predicting hand joint angles from EMG. The TCN tracked movement better and achieved lower validation error, including on the harder split with unseen users and movement conditions. Training on more users improved both models. The transformer improved more, but the TCN still had lower error.

For ADAPT, I made a little progress on the runtime infrastructure, starting with a simple experiment comparing how two controllers handle delayed inference. Both received the same recorded EMG and experienced the same simulated 500 ms decoder stall.

Watch the shaded interval in the demo. On the left, the synchronous controller waits for inference, holding its last commanded pose. On the right, the non-blocking controller continues publishing commands on schedule, switching to a fixed fallback pose when its previous prediction becomes too old.

I also tested a smaller decoder as a potential fallback, but it didn’t meet my accuracy criterion for replacing the fixed pose. Holding the last valid prediction actually produced lower error than the fixed fallback in this replay.

The longer-term goal with ADAPT is to investigate when spending more computation on inference is worthwhile, and when collecting new calibration data would be more effective.

For example, if an electrode shifts and the input distribution changes, a larger model may help less than a brief recalibration.

Eventually, I want to use prediction uncertainty, signal quality, and runtime measurements to guide decoder selection, compute allocation, and calibration requests, then evaluate how these policies affect control accuracy and recovery under fixed latency, compute, and user-time budgets.