Back to projects

AI mental-health prevention app

BRAVER

Built in November 2026 with my team CTRL C (EHEI Oujda) for the first Nexus HealthTech Hackathon in Oujda. I led the team and built the models, the backend and the app. The idea: not a safe place that only reassures, but a “brave place” that helps people face what they can and accept what they can't.

BRAVER screenshot 1
BRAVER screenshot 2
BRAVER screenshot 3
BRAVER screenshot 4
BRAVER screenshot 5
BRAVER screenshot 6

Problem

Stress, panic and overthinking are common among young people, yet many suffer in silence: no one to talk to, no money for a professional, or an entourage that doesn't take it seriously. Most tools answer with reassurance (“don't worry, everything is fine”), which doesn't hold up, and few of them read Darija or notice a message in danger.

Objective

Help someone untangle a worry in a few minutes, in French or Darija, without diagnosing anything, and make sure a message in danger is caught first, even with no network.

Solution

The person writes what worries them, one line per worry. Two small models trained in Python and run in the browser (character TF-IDF + logistic regression) work on the phone: a safety model checks every line before any network call, and a zone model sorts it into scenario (a prediction to note and check later), action (one step under 15 minutes with a timer) or acceptance (acknowledge it and keep what still depends on you). An LLM only decides doubtful safety cases and refines the sorting; if the safety score stays high, the alert is kept. The public app runs on each person's own AI key: in Plus they paste a key from Groq (gpt-oss-20b by default), Google AI Studio, OpenAI, Claude, OpenRouter, Mistral, DeepSeek or any OpenAI-compatible API. The key stays on the phone and is sent only with a sort request; the server forwards it for that one call, never stores or logs it, and refuses custom addresses that point to private networks. Without a key, everything still runs on the phone, and a doubtful line opens the help screen, as with no network. A danger opens a help screen with Moroccan numbers and a ready message for someone close. Reassuring phrases are filtered in code. Measured on held-out test sentences: 95.81% of danger messages caught on the phone (F1 0.85, n = 406), and 90.76% of zones right (macro-F1 0.87, n = 249). Data stays on the device: no account, no database.

Main features

What the product includes.

  • Three-zone sorting of each worry: scenario, action, acceptance
  • On-device safety check before any network call, works offline
  • Help screen with Moroccan numbers and a ready message
  • Replay that compares predictions with what really happened
  • Mood check-in, 24 h / 7 d / 30 d progress, breathing, weekly GAD-7 score
  • Labo page that shows every measured number with n
  • Bring your own AI key across seven providers or any OpenAI-compatible API; works with no key too
  • French and Darija input, French / English interface
  • Scroll-driven landing with the Oujda sky from dawn to night

Technology

Built with the right tools for the job.

Next.js 16React 19TypeScriptTailwind CSSPythonscikit-learnGroqgpt-oss-20bGeminiOpenAIClaudeGSAPFramer MotionVitest

Challenges

Balancing the project’s technical requirements with a clear, responsive experience—and keeping the implementation maintainable as the scope grew.

What I learned

The project strengthened my ability to turn a broad idea into structured features, make deliberate technology choices, and communicate complex functionality through a polished interface.

Next project

Have a product that needs thoughtful execution?

Tell me what you are trying to build, who it is for, and what success should look like.

Start a conversation