Skip to content

This is a Python project called Heart Stoke Detection Using ML. We examined several algorithms and came to the conclusion as to which one produced highest accuracy resullts.

Notifications You must be signed in to change notification settings

charan7105/Heart-Stroke-Detection-Using-ML

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 

Repository files navigation

Heart Stoke Detection Using ML ๐Ÿ’”๐Ÿง 

Welcome to the wacky world of Heart Stoke Detection! This Python project is all about predicting strokes and having a heart-stoking good time with machine learning. ๐ŸŽข๐Ÿ’ป

Table of Contents ๐Ÿ“š

About ๐Ÿ’ก

In this eccentric project, we dived headfirst into the realm of machine learning to detect strokes. We explored a dataset with attributes like age, gender, hypertension, heart disease, and more to unravel the secrets of stroke prediction. Prepare yourself for a thrilling journey through the twists and turns of data analysis and model training! ๐ŸŽข๐Ÿ”

Attribute Details ๐Ÿ“

Let's take a moment to appreciate the eccentric attributes we encountered on this wild ride. Here's a table to showcase the quirkiest details:

Attribute Description
id Unique identifier
gender "Male", "Female", or "Other"
age Age of the patient
hypertension 0 if the patient doesn't have hypertension, 1 otherwise
heart_disease 0 if the patient doesn't have any heart diseases, 1 otherwise
ever_married "No" or "Yes"
work_type "Children", "Govt_job", "Never_worked", "Private", or "Self-employed"
Residence_type "Rural" or "Urban"
avg_glucose_level Average glucose level in blood
bmi Body mass index
smoking_status "Formerly smoked", "Never smoked", "Smokes", or "Unknown"
stroke 1 if the patient had a stroke, 0 otherwise (Class Label)

These attributes definitely kept us on our toes! ๐Ÿ˜„

Algorithms ๐Ÿงช

To tackle this heart-pounding challenge, we unleashed the power of three incredible algorithms. Hold onto your hats as we introduce them:

  1. Logistic Regression ๐Ÿ“ˆ - This algorithm slithered its way into our hearts with an accuracy of 95.62%! It knows how to curve those predictions just right.

  2. Decision Tree ๐ŸŒณ - With its branching logic, the Decision Tree algorithm wowed us with an accuracy of 91.75%! It definitely knows how to make a calculated choice.

  3. Random Forest ๐ŸŒฒ - The forest was alive with the sound of accurate predictions! The Random Forest algorithm secured an accuracy of 95.41%. It's like a magical forest full of accurate decisions.

Results ๐Ÿ“Š

After an adrenaline-fueled journey through data analysis and model training, we're thrilled to share the final accuracy results of our algorithms:

  • Logistic Regression: 95.62% accuracy! ๐ŸŽ‰๐Ÿ“ˆ
  • Decision Tree: 91.75% accuracy! ๐ŸŒณโœจ
  • Random Forest: 95.41% accuracy! ๐ŸŒฒ๐Ÿ”ฎ

These results had our hearts racing with excitement! The algorithms did an impressive job of predicting strokes and left us in awe of their capabilities. ๐Ÿ’“๐Ÿ’ฅ

Contributing ๐Ÿค

We believe that the wackier, the better! If you have any wild ideas to enhance this project or want to share your stroke-detection adventures, feel free to join the fun. Open an issue or submit

a pull request, and let's collaborate on this heart-pumping project together! ๐Ÿ‘ฉโ€๐Ÿ’ป๐Ÿ‘จโ€๐Ÿ’ป

License ๐Ÿ“œ

This repository is licensed under the MIT License. You're free to use the code, laugh at the jokes, and even dance to the beat of machine learning. Just remember to embrace the madness and keep the fun spirit alive! ๐Ÿ•บ๐Ÿ’ƒ

Thank you for joining us on this whimsical journey through Heart Stoke Detection Using ML. Let's continue spreading smiles and laughter with the power of technology! ๐Ÿ˜„โœจ

About

This is a Python project called Heart Stoke Detection Using ML. We examined several algorithms and came to the conclusion as to which one produced highest accuracy resullts.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published