ADHD self-screening app
Three-person PD-semester team project. I built two of the cognitive tests and the RAG chatbot and co-designed the risk scoring model.
An Android app where six Unity cognitive tests measure reaction time in milliseconds and a FastAPI + FAISS RAG chatbot explains the results.
What this project gave me
- Reading clinical test paradigms and turning them into software metrics
- Normalising several indicators and weighting them into one verdict
- A first LLM application, a RAG chatbot wired end to end with FAISS and LangChain
- Period
- Sep 2025 – Dec 2025
- Team
- 3 people · PD semester
- Role
- Two cognitive tests · RAG chatbot · scoring model
- Status
- Done · campus award · outstanding team
- Highlights
- Excellence Award, 2025 Hanshin AI·SW Festival general contest; selected as an outstanding PD-semester team
- Zero missing, duplicate or malformed records across all 20 student testers' logs
- All six tests held 58–60 FPS on real devices
- Stack
- Unity
- C#
- Python
- FastAPI
- MySQL
- FAISS
- LangChain
- OpenAI API
- Pandas
Test 5 intro: hear the target sound first, then press when it plays among five sounds
Test 1: respond to the shape on screen with the red button
Test 1 result: hits, errors, misses, average reaction time and score
Background and goal
Questionnaire-based ADHD self-checks carry the respondent’s bias. Clinical testing is expensive and far away. In between, we wanted a tool that measures reaction speed and error patterns objectively on a phone. It is a non-medical screening aid for looking at your own state in numbers, not a diagnosis.
Main features
- Six cognitive tests adapted from clinical paradigms: sustained attention, selective attention, Go/No-Go inhibition, rule switching, N-back working memory, response consistency
- Reaction time, omission errors, commission errors and reaction-time standard deviation logged as JSON
- Indicators normalised to 0–3, weighted and combined into four levels: stable, mild, caution, risk
- A RAG chatbot that answers questions like “my reaction is slow, what does that mean?” from ADHD guideline documents
Architecture
The Unity (C#) client records stimulus timing and touch input frame by frame; a game engine was chosen because browser timers cannot guarantee millisecond precision. Results go over REST to a FastAPI server, into MySQL, and through Pandas and SciPy for statistics. The chatbot splits guideline documents into 900-character chunks (150 overlap), embeds them with OpenAI into FAISS, and passes the top four chunks to GPT-4o as context.
What I owned
I built the N-back working-memory test and the response-consistency test and aligned the result structure with the other four. I also built the RAG chatbot. I also took part in designing the scoring model that produces the final risk level.
Results
- All 20 student testers’ log files verified: zero missing fields, duplicates or structural mismatches
- 58–60 FPS on Galaxy S10 and newer devices across every test
- Chatbot user-acceptance score 4.5 / 5.0
- Excellence Award at the 2025 Hanshin AI·SW Festival general contest, selected as an outstanding PD-semester team
Looking back
We designed an adaptive-difficulty (CAT) algorithm but shipped fixed difficulty so users could be compared. Data first, adaptation later: I would make the same call again.