Skip to content

cheeann13/Heart-Attack-APP

Repository files navigation

A Heart Attack Prediction APP for Clinicians

Streamlit App

Problem Statement

With just a tiny dataset of 303 entries, can we craft a model that accurately predicts patients at high risk of heart attacks? Such a model could be a game-changer, helping doctors intervene earlier and potentially save lives!

Invalid Inputs in Small Dataset

image

It appears that there were errors during data collection, resulting in invalid inputs in 7 of the records. Given the dataset's limited size, it's advisable to sidestep imputation to prevent potential distortions in the original data distribution.

Model Comparison

model_comparison

Upon evaluation, the combination of Standard Scaler and Logistic Regression yielded the highest accuracy score of 0.85.

Classification Reports

classification_report_0 84

Considering the dataset's constraints, the results are commendable! We're now set to transition into the app development phase.

Streamlit App

Screenshot 2022-07-25 at 10 43 30 PM

Screenshot 2022-07-25 at 10 46 57 PM

Screenshot 2022-07-25 at 10 47 25 PM

Why Some Mistakes Are Costlier Than The Others?

Clinicians require robust evidence before integrating new tools into their practice. A critical concern raised was the potential ramifications of the app incorrectly classifying high-risk patients as low-risk. Such misclassifications could lead to a false sense of security, delaying essential treatments.

Putting Our Model to Test

A separate dataset, consisting of 10 entries, was provided by clinicians for model validation.

classification_report_test_data_0 9

Yeah!

The results were promising! The model's 100% sensitivity in detecting heart attack patients reassured clinicians of its reliability, particularly in minimizing False Negative outcomes.

Acknowledgments

About

Machine Learning Model Comparison, Logistic Regression, Streamlit Cloud

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors