Predict a heart attack in a human being using ML.
Overview:
This project aims to predict whether a patient is prone to heart failure using machine learning techniques. It is a binary classification problem based on a dataset containing various numerical and categorical features related to cardiovascular health. The dataset is sourced from publicly available medical data and focuses on early detection to aid in managing cardiovascular diseases (CVDs), which are a leading cause of global mortality.
The analysis is performed in a Jupyter Notebook (heart.ipynb), where data exploration, preprocessing, model training, and evaluation are demonstrated. Logistic Regression is used as the primary model, achieving solid performance metrics.
Dataset:
The dataset (heart.csv) contains 918 entries with 12 attributes. It includes patient information such as age, sex, chest pain type, and other clinical metrics, with the target variable being HeartDisease (1: heart disease, 0: normal).
The dataset is loaded and explored in the notebook.
Installation:
- Clone the repository. git clone https://github.com/Manishnm10/heart-failure-prediction.git
cd heart-failure-prediction - Install the required libraries in Python.
pip install -r requirements.txtIf requirements.txt is no available, install manually.pip install pandas numpy matplotlib seaborn scikit-learn - Install Jupyter notebook.
pip install notebook