explaingit

yogeshrajkumar/cardiointel

21JavaScriptAudience · generalComplexity · 3/5Setup · moderate

TLDR

CardioIntel AI estimates your heart disease risk from clinical measurements like blood pressure and cholesterol, explains the results in plain language, and lets you ask follow-up questions about diet and lifestyle, all powered by three combined machine learning models and Google Gemini.

Mindmap

mindmap
  root((CardioIntel))
    What it does
      Risk assessment
      Plain-English reports
      Urgency level
      Printable summary
    AI Models
      Random Forest
      XGBoost
      LightGBM
      SHAP and LIME
    Chat and History
      Follow-up questions
      Saved assessments
      MongoDB storage
    Tech stack
      React frontend
      Flask backend
      Google Gemini
      MongoDB
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Things people build with this

USE CASE 1

Enter your blood pressure, cholesterol, and other readings to get an AI-generated cardiovascular risk estimate with a plain-English explanation.

USE CASE 2

Ask follow-up questions about diet, exercise, or lifestyle changes based on your personal risk results through a built-in chat interface.

USE CASE 3

Save and revisit past assessments over time, and generate a printable summary report to share with a healthcare provider.

USE CASE 4

Explore which clinical measurements most influenced the risk score using built-in explanations powered by SHAP and LIME.

Tech stack

ReactFlaskPythonGoogle GeminiMongoDBXGBoostLightGBMSHAP

Getting it running

Difficulty · moderate Time to first run · 1h+

Requires a Google Gemini API key, a running MongoDB instance, and Python dependencies for three ML libraries. React frontend and Flask backend must be started separately.

Educational and research use only, not for medical diagnosis or professional advice.

In plain English

CardioIntel AI is a web application that assesses a person's cardiovascular risk based on clinical measurements they enter. A patient or healthcare professional fills in values like blood pressure, cholesterol, and other biomarkers, and the tool produces a risk estimate along with an explanation written in plain language. The risk prediction comes from three machine learning models working together: Random Forest, XGBoost, and LightGBM. These models were trained to detect patterns in clinical data linked to heart disease. Combining their outputs through a soft-voting approach is intended to produce more reliable estimates than any single model alone. To help explain why a particular risk level was assigned, the tool uses two interpretability techniques called SHAP and LIME, which surface which measurements contributed most to the result and how much weight each one carried. The written explanations and chat responses are generated by Google Gemini. Gemini takes the raw risk scores and turns them into a clinical narrative: it describes how different factors interact (for example, how elevated blood pressure compounds the risk from high cholesterol), assigns an urgency level such as immediate, moderate, or routine, and suggests next steps. The app also includes a chat interface where a user can ask follow-up questions about diet, exercise, and lifestyle choices based on their specific results. Past assessments can be saved and revisited through a MongoDB database, and the tool can produce a printable summary report. The frontend is built with React and the backend runs on Flask. The README includes a disclaimer stating that CardioIntel is intended for educational and research purposes only and is not a substitute for professional medical advice or diagnosis.

Copy-paste prompts

Prompt 1
I'm using CardioIntel AI. My blood pressure is 145/92, cholesterol is 240, and I'm 58 years old. What does my risk output likely mean, and what lifestyle changes should I prioritize first?
Prompt 2
CardioIntel uses Random Forest, XGBoost, and LightGBM with soft voting. Help me understand in simple terms why combining three models gives a more reliable result than using just one.
Prompt 3
CardioIntel flagged my risk level as 'moderate urgency'. Based on elevated blood pressure and high cholesterol, what questions should I bring to my doctor at my next appointment?
Prompt 4
I want to extend CardioIntel AI to add a BMI and smoking status field to the risk form. The backend is Flask and the frontend is React. Walk me through what files I'd need to change.
Prompt 5
Explain what SHAP values mean in the context of a heart disease risk tool like CardioIntel. How do I read the output to understand which of my measurements matters most?
Open on GitHub → Explain another repo

← yogeshrajkumar on gitmyhub — every repo by this author, as a profile.

Verify against the repo before relying on details.