MedInsight is a modern AI-powered web application designed to assist users and healthcare professionals in screening health risks, analyzing patient data, and visualizing health trends using machine learning and public health datasets. The platform provides general guidance (not diagnosis) and supports both individual patient analysis and bulk dataset insights.
- AI-Assisted Health Risk Screening:
- Analyze individual patient symptoms and receive general health guidance (no diagnosis or drug names).
- Dataset Analysis:
- Upload CSV files with patient data to get summary statistics and risk predictions.
- Interactive Visualizations:
- View mean values and trends from your dataset with beautiful charts.
- Secure Authentication:
- Sign up, log in, and use Google authentication (Firebase-based).
- Conversational AI Chatbot:
- Ask health-related questions and get brief, friendly responses via the floating chat widget.
- Healthcare Map Visualization:
- Explore a map showing healthcare facilities and risk patterns (feature planned, not yet implemented).
- Modern UI/UX:
- Responsive, accessible, and visually appealing interface.
├── backend.py # FastAPI backend (API, AI, CSV analysis)
├── csv_ai.py # CSV analysis logic (pandas)
├── index.html # Main frontend (HTML)
├── script.js # Frontend logic (auth, API calls, chatbot)
├── chart.js # Chart rendering (Chart.js)
├── style.css # Custom styles
├── requirements.txt # Python dependencies
├── medical-data.csv # Sample dataset
├── serviceAccountKey.json # Firebase credentials (not included)
├── ... (ML model files, assets)
git clone <https://github.com/ananyascodes/MedsInsight/tree/main/medsinsight>
cd med_apppython -m venv .venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate
pip install -r requirements.txt- Open
index.htmlin your browser (or use Live Server in VS Code).
uvicorn backend:app --reload- The API will run at
http://127.0.0.1:8000/
- Place your
serviceAccountKey.jsonin the project root for authentication. - Configure Firebase project settings in
script.jsif needed.
- Authentication: Sign up or log in (email/password or Google).
- Patient Analysis: Enter patient details and symptoms to get AI-generated general guidance.
- Dataset Analysis: Upload a CSV file (see
medical-data.csvfor format) to view summary statistics and risk assessment. - Chatbot: Use the floating chat widget for quick health-related queries.
- Map: (Planned) Visualize healthcare facilities and risk patterns on an interactive map.
age,gender,symptoms,disease
25,Male,fever cough cold,Flu
34,Female,headache nausea,Migraine
... (see medical-data.csv)
MedInsight does NOT provide medical diagnosis or drug recommendations. All responses are for general informational purposes only. Always consult a qualified healthcare professional for medical advice.
Pull requests are welcome! For major changes, please open an issue first to discuss what you would like to change.
This project is licensed under the MIT License.
- Healthcare Map Visualization:
- Planned feature to show healthcare facilities and risk patterns on an interactive map.
- Advanced AI Chatbot:
- Future improvements for more personalized and context-aware health advice.
For questions or suggestions, please open an issue!