About
## The problem it solves
This system solves the challenge of quantitative tracking during **post-stroke physical rehabilitation**. Patients and clinicians use the smart glove to monitor hand mobility, finger flexion, and gesture accuracy in real-time.
It makes therapy safer and more reliable through **Shannon entropy monitoring** and an automated **circuit breaker**. If movement becomes erratic or model confidence drops, instant visual alerts are triggered. This prevents improper form, protects against strain, and ensures clinicians receive dependable data, transforming subjective home exercises into a secure, objective, and data-driven recovery process.
## Challenges we ran into
Challenges We Ran Into Building an edge-AI gesture recognition and bio-feedback system on a resource-constrained microcontroller came with a few major hurdles:
- **The 1.25MB Partition Wall (Wi-Fi Bloat):**
- *The Hurdle:* When we first integrated the ESP32 Wi-Fi stack and HTTP client libraries (`WiFi.h` and `HTTPClient.h`) to stream telemetry to our dashboard, our compiled binary instantly swelled to **1.44 MB (110%)**, completely exceeding the default 1.25 MB application limit on our 4MB flash board and throwing a "text section exceeds available space" compilation error.
- *How We Overcame It:* Rather than dealing with custom partition scheme configurations or bulky network stacks, we pivoted the communication architecture to stream telemetry directly over a robust **USB Serial data cable** (and tested Bluetooth SPP alternatives). This stripped out the massive TCP/IP and wireless encryption overhead, instantly shrinking the firmware footprint and locking in ultra-low latency.
- **ESP32 Stack Overflows During 1D CNN Matrix Math:**
- *The Hurdle:* Early versions of our inference script threw **Guru Meditation Errors (Stack Overflow)** because local multi-dimensional arrays holding intermediate feature maps (`conv1_out`, `pool1_out`, `dense1_out`) were being pushed directly onto the tiny task stack during sliding window calculations.
- *How We Overcame It:* We optimized memory safety by declaring all intermediate neural network tensor buffers as **`static` arrays**. This successfully relocated them from the restricted call stack to the global static data segment in SRAM, providing stable memory allocation for continuous 100-frame sliding window tracking.
Team
From the public Devfolio project page. Votes, swipes and the judge score are hackfeed's own.





