#023: Running Edge AI in Their Sleep: How Elemind Built Embedded Firmware for On-Demand Rest
David Wang, CTO of Elemind, explains how his company built a wearable headband that uses real-time EEG sensing and closed-loop audio stimulation to help users fall asleep faster. The device achieves a critical 2-millisecond latency loop by optimizing embedded firmware on a Cortex-M33 processor, avoiding expensive FPGAs while handling signal processing and edge AI for sleep staging. Wang details the 5-year development journey, including the shift from uncomfortable hair-penetrating electrodes to comfortable dry carbon-graphite sensors and the discovery that alpha wave suppression is more effective than boosting delta waves. The team is now developing an 'AI sleep tailor' to personalize stimulation for the 24% of users who do not initially respond to the standard protocol.