IDSIA's Exosuit AI Predicts Walking Modes With Just Two Sensors
A temporal convolutional network reads two thigh-mounted IMUs to classify stairs and level ground, forecast intent, and self-label data to adapt to new wearers.
ProTakeaways
- New TCN classifies stair ascent, descent, and level walking from only two thigh IMUs.
- Model predicts a 4-second window (2s past, 2s future) in a single pass, not just the current step.
- TCN reached 0.962 AUROC versus 0.925 for a Random Forest baseline across five users.
- Past predictions serve as pseudo-labels, letting the model adapt to new wearers without ground truth.
- Deployed on a 2.7 kg hip exosuit with Jetson Orin Nano inference in a closed-loop trial.
- Built on the open-source pytorch-tcn library; paper here.
Soft exosuits promise to make walking easier, but they carry a stubborn engineering tension: they need to be light enough to wear all day, which means very few sensors, yet smart enough to adapt their assistance to whatever the user is doing. A team from IDSIA (USI-SUPSI) and the Technical University of Munich has published a perception module that squeezes surprisingly rich information out of only two inertial measurement units, and it can retrain itself on a new wearer without any human labeling.
The paper introduces a temporal convolutional network (TCN) that classifies three walking modes: Stair Ascent (SA), walking on the Level Ground (LG), and Stair Descent (SD). The unusual twist is that the model does not just predict the current mode. It emits an entire window of predictions spanning two seconds into the past and two seconds into the future.
Why sensor-starved hardware is a hard ML problem
Assistive exosuits typically apply torque at the hip or knee during specific phases of the gait cycle. Stair climbing needs a different push than level walking, so the controller has to know which mode is happening. Prior systems relied on pressure insoles, load cells, or cameras, but each brings weight, wiring, or failure modes like occlusion and poor lighting. IMUs are cheap and light, though their raw orientation signals drift and look noisy.
The reference approach the authors compare against, from Zhang et al., used a Random Forest on handcrafted features from three IMUs. The new work cuts that to two sensors mounted laterally on the thigh harnesses, drops the handcrafted feature engineering, and lets a TCN chew directly on the raw temporal signal.

Predicting the past to teach the future
The clever piece is the target window. For each timestep k, the model outputs class probabilities for every step from k-N to k+N, with N=60 samples at 30 Hz, meaning 2 seconds in each direction. Future estimates help the controller pre-modulate motor assistance before the user actually starts climbing. Past estimates serve a different purpose: they become pseudo-labels.
The self-supervised trick works like this. When the exosuit meets a new user, the model runs inference in real time. A few seconds later, it has seen enough context around a given moment to produce a much more confident estimate for that moment in hindsight. That retrospective label is paired with the original sensor snippet and dropped into a new training set. The authors pick the offset δ=-10, the timestep where the classifier's AUROC peaks, as the pseudo-label source. No manual switch, no supervisor, no ground truth needed.
What the numbers show
Under a leave-one-user-out cross-validation on data from five participants, the results were clear:
- Average AUROC across users was 0.925 for the Random Forest baseline and 0.962 for the TCN.
- A Wilcoxon signed-rank test confirmed the TCN's advantage was systematic across users (p = 0.03125).
- The TCN's future predictions stayed above 0.9 AUROC across the full two-second forecast horizon, and beat the trivial baseline of just repeating the current prediction forward.
- A Transformer variant matched the TCN's accuracy but was ten times slower to train (1 second per epoch versus 10 seconds on a consumer-grade GPU), which matters for on-device fine-tuning.

The self-labeling loop was tested by simulating three days of use per new wearer. Adding each day's self-labeled data to the training set improved next-day accuracy, though not quite as much as adding ground-truth labeled data. The gap is small, and the pseudo-labeled version requires zero user effort.
Running on the actual hardware
The team deployed the system on a 2.7 kg tendon-driven hip exosuit. Real-time control runs on an Arduino MKR 1010 WiFi at 100 Hz, while the perception model runs inference on a Jetson Orin Nano. Hip kinematics come from two Bosch BNO055 IMUs speaking Bluetooth Low Energy. In a closed-loop trial with one subject walking a course of stairs and level ground, motor reference amplitudes were correctly modulated up during ascent and down during descent, tracking the ground-truth mode changes.
The implementation builds on an existing PyTorch TCN library. The architecture is compact: three residual blocks with dilation factors of 1, 2, and 4, a kernel size of 5, and an input window of 57 samples giving a receptive field of about 2 seconds.
Where the approach still falls short
This is a proof of concept for gait-adaptive assistance, not a general locomotion classifier. The honest limitations, spelled out by the authors:
- Only five healthy young participants in the main dataset, plus one subject in the closed-loop test. Generalization to elderly users or people with mobility impairments is not yet demonstrated.
- Only three modes. Ramps, uneven terrain, and running are out of scope, though the framework could extend.
- The self-supervised fine-tuning was validated offline. Onboard retraining on the Jetson has not been shown yet.
- The paper does not measure whether the modulated assistance actually reduces metabolic cost or improves comfort, only that it fires at the right times.
For anyone building wearable robotics, gait analytics, or on-device time-series classifiers, the useful takeaway is architectural. Predict a window instead of a point. Use the later end of the window to label the earlier end. That yields both a controller-friendly forecast and a free supervision signal, from the same forward pass. It is a neat pattern that generalizes well beyond exosuits, to any streaming sensor problem where the recent past is more knowable than the present.