/Heart-Failure-Prediction

A logistic classification algorithm for the detection of heart failure.

Primary LanguageJupyter Notebook

Heart-Failure-Prediction

A logistic classification algorithm for the detection of heart failure.

Libraries used

SckitLearn, Pandas, Matplotlib

Details of dataset

Dataset was an imbalanced one such that the number of positive cases is way less than the negative cases to the ratio 1:2. However, considering the cases of heart failure in a random population is hardly ever in the majority, the datasets weren't balanced as this will mess with real-life performance of the algorithm.

Performance

Screenshot 2021-11-06 at 17 08 27

Web link to view performance:

http://192.168.8.100:8501

Possible way forward

Because it's a health-related algorithm, it's sensible to want to improve recall to somewhere around upwards of 90%. Possible methods might be to:

  1. change the threshold of the decision function of the classifier
  2. changing the algorithm all together
  3. adding new features
  4. upsampling the positive cases