TrAIT rehabilitation game — patient-facing gameplay view with hand-tracked reaching targets

TrAIT


Context

TrAIT turns upper-limb stroke rehabilitation into a game, because conventional therapy sessions produce few therapeutic reaches and motor relearning needs many more. The original version ran on a Microsoft Kinect and was evaluated in a published trial (Neurorehabilitation and Neural Repair, 2024). As the sole engineer, I rebuilt it from the ground up in Unity with Ultraleap hand tracking, replacing an early prototype; it is the software the research team updated for its follow-up work.

Decision

I structured the app as a small service architecture (a game manager with eleven core services and seventeen scene controllers) so calibration, gameplay, telemetry and export could change independently. The tracked wrist drives an on-screen cursor and selection works by dwell rather than gestures; a multi-stage calibration maps each patient's reachable workspace to the full screen, with protection against bad captures and a redo path. Progression runs over ten streak-based levels, with a daily session cap rebuilt from on-device logs so a restart cannot bypass it. Sessions write per-frame research telemetry that the lab receives as a zipped email export, and editor tooling turns configuration schemas into generated accessors, so the team's designer tuned all ten levels without code changes.

Outcome

A working rebuild delivered end to end as the only engineer, from calibration to research data export. The trial results belong to the earlier Kinect version, not to this build.