Inspiration ->

Mental health issues are very widespread, but screening and assistance are not readily available. Most individuals are reluctant to get in touch because of stigma, absence of resources, or inability to know their symptoms. Our vision was to develop a convenient, AI-based app, which enables the user to self-evaluate, get instant advice, and get connected to the relevant care.

What it does ->

MindMate is a mental health screening and support application that uses AI.

  1. Evidence-based questionnaires, such as PHQ-9 (depression) and GAD-7 (anxiety), can be taken by the users.
  2. Their answers are immediately assessed by the app and structured feedback is given.
  3. An included chatbot is an LLM-based system that one may use to ask questions and get sympathetic advice as well as know more about coping mechanisms.
  4. Assessment logic is securely implemented by the backend and the frontend is comprised of a clean interface.

How we built it ->

  1. Frontend: Built with Next.js + TailwindCSS for a responsive and modern user interface.
  2. Backend: A FastAPI server powers the RAG pipeline, managing embeddings, search, and AI calls.
  3. Database: Used TiDB with vector search support to store embeddings of educational resources and mental health knowledge.
  4. AI Models: Integrated OpenAI GPT-4o-mini for conversation and text-embedding-3-small for vector search.
  5. Deployment: Frontend deployed on Vercel, backend + database hosted via Render & TiDB Cloud.

Challenges we ran into ->

  1. Setting up vector search in TiDB and migrating from storing embeddings as raw blobs to using proper VECTOR columns.
  2. Handling API rate limits and ensuring consistent responses from the RAG pipeline.
  3. Maintaining a balance between empathy and accuracy in AI-generated responses.
  4. Deployment hurdles, especially ensuring that the frontend and backend communicated correctly across services (CORS, environment variables, ports).

Accomplishments that we're proud of ->

  1. Successfully building a full-stack AI app in a short time.
  2. Implementing retrieval-augmented AI so that responses are not only fluent but also grounded in reliable mental health resources.
  3. Creating an engaging chat interface that feels approachable and user-friendly.
  4. Overcoming backend scaling and database integration challenges.

What we learned ->

  1. How to implement AI + database integration using embeddings and vector indexes.
  2. The importance of system design when deploying full-stack AI apps (API handling, DB connections, caching).
  3. How to make AI interactions feel more empathetic and user-centric, rather than just technical.
  4. That deployment and infra are just as challenging (and rewarding) as building the core ML pipeline.

What's next for MindMate: AI-Powered Mental Health Screening & Support App ->

  1. Include additional tests (e.g. PTSD, bipolar, stress scales).
  2. Connect with telehealth to have a direct connection with therapists.
  3. Include multilingual service to cover more people.
  4. Enhance chatbot functionality through retrieval-augmented generation (RAG) on curated mental health resources.

Built With

Share this project:

Updates