๐ MedAssist AI โ A Full-Stack AI Symptom Checker Using Cohere LLM & Machine Learning


๐ 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
Layer | Technology |
Frontend | React, Material UI |
Backend | FastAPI (Python) |
ML Model | Random Forest (sklearn) |
AI Model | Cohere LLM |
Deployment | Vercel + 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
๐ Try it Live
๐ Live Site โ Vercel
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.