Skip to content

ZeeshanHaider16/Heart-Failure-Prediction-Model

Repository files navigation

❤️ Heart Failure Prediction using Machine Learning

Project Overview

This project builds a Machine Learning model to predict the likelihood of heart failure based on clinical and health-related attributes. The objective is to analyze patient data, identify important risk factors, and develop a predictive model that can assist in early diagnosis and preventive healthcare.

The project follows a complete ML pipeline including data preprocessing, exploratory data analysis (EDA), feature selection, model training, and evaluation.


Dataset Overview

The dataset contains medical attributes such as:

  • Age
  • Sex
  • Chest Pain Type
  • Resting Blood Pressure
  • Cholesterol
  • Fasting Blood Sugar
  • Resting ECG Results
  • Maximum Heart Rate Achieved
  • Exercise Induced Angina
  • ST Depression
  • Target Variable (Heart Disease Presence)

The target variable indicates whether a patient is at risk of heart failure.


Objectives

  • Perform Exploratory Data Analysis (EDA)
  • Identify important health indicators
  • Build classification models
  • Evaluate model performance
  • Interpret results and extract insights

Technologies Used

  • Python
  • Pandas
  • NumPy
  • Matplotlib
  • Seaborn
  • Scikit-learn
  • Jupyter Notebook

Machine Learning Workflow

  1. Data Cleaning & Preprocessing
  2. Handling Missing Values
  3. Feature Encoding
  4. Data Visualization
  5. Train-Test Split
  6. Model Training (SVM, ANN)
  7. Model Evaluation (Accuracy, Confusion Matrix, etc.)

Model Performance

  • Evaluation Metrics Used:
    • Accuracy
    • Precision
    • Recall
    • F1 Score
    • Confusion Matrix

Accuracy-84.9 (ANN) Accuracy-80 (SVM)


How to Run

  1. Download the repository.
  2. Install dependencies:
pip install -r requirements.txt
  1. Open Heart_Rate_Failure_Prediction.ipynb
  2. Run all cells.

Project Type

This is an end-to-end Machine Learning classification project focused on healthcare analytics.


Author

Zeeshan Ali
AI & Data Science Student
Aspiring Machine Learning Engineer

About

This project builds a Machine Learning model to predict heart failure risk using clinical and health-related attributes. It includes data preprocessing, exploratory analysis, feature engineering, model training, and performance evaluation using Scikit-learn, providing insights into key medical risk factors.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors