A modern full-stack HealthTech application that predicts heart disease risk using XGBoost, served through a FastAPI backend, and visualized via a beautifully designed Next.js + TypeScript frontend with glass-morphism UI and a heart-themed animated background.
💻 Next.js (Frontend) • ⚙️ FastAPI (Backend API) • 🤖 XGBoost (Machine Learning Model) 🎨 Tailwind CSS + Custom UI • 🧠 Real-time Inference
- Overview
- Features
- Tech Stack
- AI Model <<<<<<< HEAD
- Project Structure =======
e2696ac341c869a1fe65d5842d7dd79f05d1fa68
Healthful is an AI-driven web application that helps users understand whether they fall into a low, moderate, or high risk range for potential heart-related issues based on lifestyle and vitals data.
Users complete a guided multi-step form, and the model generates a prediction in real-time through a FastAPI backend.
This project showcases:
- Practical use of Machine Learning in HealthTech
- Modern UI/UX design with glass-morphism
- Full-stack integration between Next.js ↔ FastAPI ↔ ML model
- Real-world application of XGBoost for structured data
- Trained on structured health & lifestyle metrics
- Evaluated using Accuracy, Precision, Recall, ROC-AUC
- Optimized for real-time prediction
- Clean API endpoint for ML inference
- Handles preprocessing & validation
- Fast & production-ready
-
Step-by-step guided input form
-
Persistent values when navigating between steps
-
Clean, modern design with:
- Glass-morphism cards
- Gradient buttons
- Large health-themed icons
- Heart-animated background video
- Displays Low, Moderate, or High risk
- Offers helpful supportive guidance
- User-centered tone
➡️ XGBoost Classifier — chosen for its strong performance on structured/tabular data.
- Age
- BMI
- Smoking & Alcohol Intake
- Physical Activity
- Stress Level
- Hypertension / Diabetes / Hyperlipidemia
- Blood Pressure
- Blood Sugar
- Cholesterol
- Accuracy
- Precision & Recall
- F1 Score
- ROC-AUC
The model balances sensitivity and specificity to ensure reliable predictions.
- Next.js 16 (App Router)
- TypeScript
- Tailwind CSS
- custom glass styles
- Framer Motion (optional animations)
- FastAPI
- Uvicorn
- Pydantic (data validation)
- XGBoost
- scikit-learn
- pandas / numpy
- joblib (model saving)
📦 Healthful
├── backend/
│ ├── app/
│ ├── features_list.joblib
│ ├── imputer.joblib
│ ├── scaler.joblib
│ ├── xgb_clf.joblib
│ ├── requirements.txt
│ └── main.py
│
│
├── frontend/
│ ├── app/
│ │ ├── heart-check/
│ │ └── page.tsx
│ │
│ ├── public/
│ └── package.json
│
└── README.md
- Add user authentication
- Store user history securely
- Add charts & health analytics
- Deploy to cloud (Vercel + Railway)
- Add explainability (SHAP)
- Multi-language support
This project is built for demonstration purposes only. It is not a medical device and should not be used for clinical diagnosis or treatment decisions.