Skip to content
FlowState

FlowState

FlowState — catching the moment a mind wanders, fr

Created on 14th June 2026

•

FlowState

FlowState

FlowState — catching the moment a mind wanders, fr

The problem FlowState solves

Ever read a whole page and realized you absorbed nothing? Your eyes kept moving, but your brain had checked out. This "zoning out" happens constantly while studying, in online classes, and on long drives — and the problem is you almost never notice it in the moment. There's no outside signal of what's happening inside your head, so the lapse just silently costs you: wasted study hours, missed lecture content, or — behind the wheel — your life.

FlowState fixes the "you don't know you've drifted" problem. It reads your brain activity from a forehead EEG sensor, turns it into a live focus score, and alerts you the instant your attention drops — so you can catch the lapse and refocus while it's happening, not after.

What people can use it for:

Studying & self-learning — get nudged the moment you start reading without comprehending, and see exactly when you focused or faded during a session.
Online classes — give students and instructors real visibility into engagement, which webcams can't capture (you can stare blankly at a screen and look perfectly "present").
Late-night & long-haul driving 🚗 — drowsy, zoned-out driving is a leading cause of fatal crashes, and drivers rarely realize they're drifting until it's too late. The same detection that nudges a student could wake a drifting driver and save a life.
Any high-stakes focus job — pilots, machinery operators, security/monitoring roles, surgeons in long procedures — anywhere one lapse in attention is dangerous.
Focus & ADHD training — biofeedback that helps people learn to recognize and rebuild their own attention.
Why it's different: most attention trackers use a webcam and only see your gaze — easily fooled by a blank stare. FlowState measures a physiological signal of engagement directly, which is much harder to fake. We're honest that it's a relative, personalized proxy, not a medical device — but it makes an invisible mental state visible in real time, which is the thing no one else does.

Studying is just the use case we built and demo today. The core capability — detecting the exact moment a human brain stops paying attention — generalizes to almost any task where staying focused matters. From there, the only limit is imagination.

Challenges we ran into

  1. Pulling a real brain signal out of a wall of noise. A single dry electrode on the forehead picks up way more 50 Hz powerline hum than actual microvolt-level EEG — raw, the brain signal is basically buried. I built a cleanup chain: a 50 Hz notch filter plus its 100 Hz harmonic, then a 1–40 Hz bandpass, all using zero-phase filtfilt so the wave peaks don't shift in time. We wrote a separate analyze_csv.py tool that prints band power before vs. after filtering — it confirmed the 50 Hz peak drops by orders of magnitude and real theta/alpha/beta survive underneath.

  2. A random crash under load: OpenBLAS error: Memory allocation still failed after 10 retries. This one was brutal because it was intermittent. The cause: NumPy/SciPy's BLAS backend allocates a memory pool per thread, and we were calling it from two threads at once (the Flask server + a background compute loop), exhausting the pool. The fix was non-obvious — pin BLAS/OpenMP to a single thread by setting OPENBLAS_NUM_THREADS=1 (and OMP/MKL) before NumPy is ever imported. Our FFT windows are tiny, so single-threaded costs us nothing, and the crash disappeared.

  3. Real-time updates without freezing the dashboard. Reading the sensor, filtering, running FFTs, and scoring 20 times a second can easily block the web server. We split it into background threads (one reads the data source, one runs the analysis loop) and push results to the browser over Server-Sent Events, downsampling the waveform for display so the stream stays light. The UI now updates smoothly at 20 Hz while the heavy math runs out of the way.

Tracks Applied (2)

Gemini

FlowState uses Google Gemini (gemini-2.5-flash) as an AI Focus Coach. After each session we feed Gemini the real EEG-der...Read More
Major League Hacking

Major League Hacking

IoT and Embedded System

FlowState is a wearable brain-computer interface: a BioAmp EXG Pill sensor + Arduino UNO R4 that samples forehead EEG on...Read More

HackPrix

Discussion

Builders also viewed

See more projects on Devfolio