← Projects

Shonchalon: A Low-Cost Wearable for Stroke Rehabilitation Feedback

Ongoing · ESP32, TinyML, Flutter · HCI-DIAL Lab

After a stroke, getting an arm working again takes a lot of repetition, and most of that repetition is supposed to happen under a physiotherapist’s eye. In Bangladesh that is hard to arrange. Clinic-based rehabilitation costs far more per month than many households earn, and many patients are bedridden or live far from a centre. Shonchalon, which means “movement”, is a low-cost wearable we are building at the HCI-DIAL Lab so that patients can practise at home and still get some guidance.

I wrote the Flutter mobile app that gives patients live feedback during exercises, and I built the wearable itself: an ESP32 with an ICM20948 motion sensor, running the machine learning model on the device. This is ongoing work and the second version is in development.

What the first version taught us

The first version was simple. The wearable streamed every raw motion sample to a phone, and we analysed the recordings afterwards. We evaluated it with 28 participants, 13 of them post-stroke patients, and it could tell impaired movement from healthy movement. What it could not do was help in the moment. A patient finishes a repetition and has no idea whether it counted, and a device that only produces data for later is not much of a coach.

So the next version moved the recognition onto the wearable. It identifies five exercises, hand raise, wrist extension, wrist flexion, pronation and supination, plus a rest state, and it sends the phone a short message each time it sees a completed movement instead of a stream of raw samples. The rest class matters more than it sounds: without it, a classifier has to call every window one of the exercises, even when the patient is just sitting still.

The model is a small network with two branches. One looks at spectral features, which capture how a movement was performed. The other keeps the raw values, including the direction of gravity in the accelerometer signal. I needed the second branch because pronation and supination are the same rotation in opposite directions, so their spectra look almost identical, and only orientation separates them. After int8 quantization the model runs in about 1 ms and uses under 2 KB of RAM, which leaves plenty of room for everything else the firmware has to do. On the phone, each counted repetition animates a progress ring, plays a chime and vibrates, because stroke patients often have trouble with attention or sensation and one cue may not be enough.

Four Shonchalon app screens: a welcome screen, scanning for the sensor band, choosing an exercise, and a wrist-extension screen counting repetitions
The app: welcome, connecting to the sensor band, choosing an exercise, and counting repetitions live.

What comes next

The model was trained mostly on healthy movement, and it still recognises patients’ exercises less reliably than healthy people’s. That gap is expected, since impaired movement looks different, but it is the main problem the next version is working on, because the people who most need the device should be the ones it serves best. I will update this page as v2 takes shape.