The problem

Heart disease risk depends on many health measurements, and it is hard for a non-expert to see how those factors combine. I wanted to learn the full ML workflow on a real medical dataset.

The solution

A supervised classification model trained on tabular health data, served through a backend API and connected to a simple web frontend where users enter their parameters and get a risk prediction.

How it works

Architecture & flow

  1. 1

    Clean and explore the health dataset with Pandas

  2. 2

    Select features and train classification models with Scikit-learn

  3. 3

    Evaluate models and keep the best one

  4. 4

    Serve predictions from a backend deployed on Render

  5. 5

    Frontend deployed on Vercel sends user input and shows the result

Problems I hit

Challenges and how I solved them

Challenge 1

User input from the form did not match the format the model was trained on.

How I fixed it

Built a preprocessing step that converts form input into the exact model-ready feature order and types.

Challenge 2

Accuracy alone can be misleading on medical data.

How I fixed it

Compared models with multiple evaluation metrics instead of relying on a single score.

Results

  • End-to-end ML app usable from the browser
  • Separate frontend and backend deployments

What I learned

  • The complete ML lifecycle from raw data to deployed model
  • Why evaluation must be honest for health-related predictions
  • Connecting a trained model to a web API

Project Overview

A machine learning project that predicts heart disease risk from user-provided health parameters. The project is useful for explaining the complete ML workflow: data preprocessing, feature selection, model training, evaluation, and exposing predictions through a simple application interface.

Backend and ML workflow

  • Clean and prepare tabular health data.
  • Train a supervised classification model using Python ML libraries.
  • Accept user input, transform it into the model-ready format, and return a prediction.
  • Deploy the app so predictions can be tested from a browser.

Interview angle

The important part is not only the prediction result, but the workflow: understand the dataset, choose features, train a model, evaluate it honestly, and integrate it with an application users can interact with.

What's next

  • Show which features influenced each prediction
  • Add input validation ranges based on medical guidelines
Related

More machine learning projects

Machine Learning Completed

ZonePredict AI - PUBG Safe-Zone Prediction

Uses 438 real PUBG matches to test whether machine learning can guess where the next safe zone will be. Seven models are compared against a simple baseline, and the results can be explored on a clickable map.

PythonPandasScikit-learnXGBoostTensorFlow +3