Youssef Jedidi
← All work

Concordia Biomedical Engineering Club · Oct 2025–May 2026

Competition prototype · Oct 2025–May 2026

Smart Knee Sleeve: patient app, clinician portal and signal pipeline

A student team’s knee-rehab prototype: a patient app and a clinician portal, built against a mock sleeve while the hardware was still in development.

Role
Software Lead · five-contributor software effort
Status
Competition prototype
Smart Knee Sleeve clinician patient detail screen
Clinician portal. The Next.js portal, reading synced sessions from Firestore.

Background

The sleeve hardware wasn’t ready, so the patient app, the signal processing and the clinician portal had to be testable without it.

My role

I was the software lead, one of five contributors. I organised the sprints on a Kanban board and ran planning, weekly progress meetings and sprint reviews. I wrote the sprint planning and progress documents, the contributing guide and a 62-issue GitHub backlog of epics, user stories and estimated tasks. I also led integration across the patient app, clinician portal, data sync and sensor code.

A mock sleeve behind one connector interface

I put the sleeve behind one connector interface with a mock implementation, so the app, the signal code and the portal could be built and tested without hardware.

An Expo patient app, a Next.js clinician portal, SQLite on the phone with Firestore sync, parsing of the ESP32’s Bluetooth packets, and EMG filtering and feature extraction.

React Native · Expo · TypeScript · Next.js · Firebase · SQLite · ESP32 · BLE · DSP

HARDWARESleeve (ESP32)esp32_ble_sleeve.ino2 EMG inputs in an8-channel frame+ knee-angle encoderON THE PHONE (EXPO APP) · RAW SIGNALS STAY LOCALBLEBLE packets#93packetParsers.tsEMG 0xA1 · 22 bytesIMU 0xB1 · 12 bytesXOR checksumMock connector#70MockSleeveConnectorsynthetic frames,no sleeve hardware neededShared interfaceISleeveConnectorsame frames,real or mockBiquad filters#57#92SignalProcessor.tshigh-pass 5 Hzlow-pass 24 Hz50-frame warm-upFeatures#71FeatureExtractor.tsRMS and MAV per channel10-frame windowLive graph#70#72deviceSlice.tsRedux 500-point FIFOupdated every 100 ms≈ 50 s on screenRaw EMG frames stay on the phone during the session; nothing is uploaded while exercising.
Sleeve (ESP32)
BLE

or, without the sleeve

BLE packetsEMG + IMU frames
Mock connectorsynthetic frames
either one
Shared interface ISleeveConnectorsame frames, real or mock
On the phoneBiquad 5–24 Hz → RMS/MAV → live graph500-point FIFO · raw signals stay local
Figure 1. Live session: real and mock inputs share one interface on the phone. The Bluetooth connector for the ESP32 and MockSleeveConnector both implement ISleeveConnector, so filtering, feature extraction and live graphs run without hardware. Raw signals stay local; blue PR links open my merged pull requests.
ON THE PHONE · SESSION ENDSendSession() flushes the bufferSQLite on the phone#82services/Database.tssessions + emg_samplesraw EMG stored locallynew rows: synced = 0Sync service#99SyncService.tsuploads unsynced sessions’summaries and analytics,then marks them syncedRaw EMG samples remain in local SQLite and are not uploaded.CLOUD + CLINICIAN WEBsummariesonlyFirestoreusers/{uid}/sessions/{id}summaries + analytics only;Firestore rules controlwho can read sessionsClinician portal#100clinician-portal/Next.js web apponSnapshot listeners forpatients and sessionsPortal updates live as synced session summaries arrive.

On the phone · session ends

SQLiteraw EMG stays here
Sync serviceuploads, then marks synced
summaries only

Cloud + clinician web

Firestorerules control access
Clinician portalNext.js, updates live
Figure 2. After a session: saved locally in SQLite, summaries synced to the portal. Raw EMG stays on the phone; only summaries and analytics sync to Firestore for the Next.js clinician portal. Blue PR links open my merged pull requests.

Where it stands

The prototype was feature-complete for the competition, and the repository’s latest CI run, on May 12, 2026, passed.

An educational prototype, not a medical device. It wasn’t clinically tested or validated on a finished sleeve.

Smart Knee Sleeve patient mobile dashboard
Patient app. The Expo app’s home screen, before a measurement session starts.

Links