projects

Tracking Cognitive Rigidity in OCD

Feb 2026

Five strangers met on the day with nothing in common but a shared interest. Hardware hackathons are harder than most; you cannot wire up an API and call it a demo. Neurotech compounds the difficulty because you need something grounded in the science. You need to understand what an ERN signal looks like before you can start building anything to measure it. First time I have ever read a research paper during a hackathon. That tells you what kind of weekend it was.

What we built

Flextra is a mobile app that pairs EEG signals from a gTec EEG cap with cognitive flexibility tasks. The goal: give clinicians a quantitative window into cognitive rigidity, one of the core features of OCD.

OCD brains produce an amplified error-related negativity (ERN) roughly 80ms after a mistake; your brain’s alarm bell stuck on full volume. The ERN is one of the most replicated findings in OCD neuroscience. Flextra captures that signal during structured tasks and tracks it over time, so changes in rigidity become visible rather than self-reported.

Why it matters

Cognitive rigidity is not just a symptom; it is an endophenotype. First-degree relatives of OCD patients show impaired cognitive flexibility even without a diagnosis. The ERN stays elevated in children with OCD even after successful CBT. Treatment quiets the compulsions, but the underlying signal persists.

The same error-monitoring signature appears across OCD, anxiety, and substance use disorders. A tool that tracks it could serve more than one condition.

Team

What to read at 3am in a hackathon

Some rabbit holes if the neuroscience caught your eye.