๐Ÿš‘ MedAssist AI โ€“ A Full-Stack AI Symptom Checker Using Cohere LLM & Machine Learning

CodeReacherCodeReacher
2 min read

๐Ÿ” Overview

MedAssist AI is a full-stack web application that leverages both Supervised Machine Learning and Generative AI (Cohere) to help users understand potential medical conditions based on their symptoms.

This project was developed as part of the Microsoft AICTE AI & Edunet Foundation Internship, and it's now deployed with a React frontend (Vercel) and FastAPI backend (Render).

๐Ÿง  What Does It Do?

  • Users input symptoms, age, and gender.

  • The system provides:

    • ML-based predictions using a Random Forest Classifier.

    • LLM-based care tips using Cohere AI.

  • Toggle between ML and AI outputs with real-time results.

๐ŸŽฏ Problem Statement

With growing reliance on search engines for self-diagnosis, users often face fear or misinformation. MedAssist AI aims to:

  • Simplify symptom analysis

  • Offer reliable AI-driven suggestions

  • Improve accessibility to basic healthcare insights

โš™๏ธ System Development Approach

Data Collection & Preprocessing

  • Public symptom-disease datasets

  • Encoded inputs: age, gender, symptom vectors

  • Text vectorization: TF-IDF

ML Model

  • Type: Supervised Learning

  • Algorithm: Random Forest

  • Features: Age, Gender, Symptom Vectors

  • Labels: Disease Categories

Generative AI

  • LLM: Cohere API

  • Used for generating contextual care tips

Deployment

  • Frontend: Vercel (React + Material UI)

  • Backend: Render (FastAPI)

๐Ÿ› ๏ธ Tech Stack

LayerTechnology
FrontendReact, Material UI
BackendFastAPI (Python)
ML ModelRandom Forest (sklearn)
AI ModelCohere LLM
DeploymentVercel + Render

๐Ÿ“ˆ Evaluation

  • Accuracy measured using cross-validation

  • Cohere responses evaluated based on clarity, relevance

  • Seamless toggle between ML/LLM improves user trust

๐Ÿ”ฎ Future Scope

  • Add user authentication for medical history tracking

  • Expand to multilingual support

  • Integrate symptom severity scoring

๐Ÿ‘จโ€๐Ÿ’ป What I Learned

  • Building and deploying full-stack AI applications

  • Model training and vectorization techniques

  • Using LLMs for real-world use cases

๐Ÿ“Œ GitHub Repo

๐Ÿ‘‰ GitHub โ€“ MedAssist AI

๐Ÿ”— Try it Live

๐Ÿ‘‰ Live Site โ€“ Vercel

0
Subscribe to my newsletter

Read articles from CodeReacher directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

CodeReacher
CodeReacher

Hi, I'm CodeReacher, a budding technical content writer with a passion for simplifying complex tech concepts. I come from a Computer Science background and love creating clear, engaging content around topics like Web development, DevOps, or cloud. I recently started Code Reacher, a blog dedicated to sharing practical, reference-rich tech articles for developers and learners. I'm eager to grow in the field and contribute meaningful content to the tech community.