A machine learning model built with Logistic Regression to predict the likelihood of heart failure based on clinical data.
- Accurate Predictions: Leverages Logistic Regression for reliable predictions.
- Interactive Interface: Accepts user inputs for clinical parameters and provides predictions.
- Kaggle Dataset: Trained on real-world heart failure data.
- Customizable: Easily adaptable for additional features or datasets.
- Python: Programming language.
- Logistic Regression: For prediction modeling.
- Pandas: Data manipulation.
- NumPy: Numerical computations.
- Scikit-learn: Machine learning library.
- Flask/Streamlit: (Specify) Used for deploying the model as a web application.
- Source: Kaggle Heart Failure Dataset
- Features Used:
- Age
- Anaemia
- Creatinine Phosphokinase
- Diabetes
- Ejection Fraction
- High Blood Pressure
- Platelets
- Serum Creatinine
- Serum Sodium
- Sex
- Smoking
- Time (Follow-up period)
HeartFailurePredictor/
├── data/ # Dataset files
├── model/ # Trained model files
├── app/ # Application files (Flask/Streamlit)
├── notebooks/ # Jupyter notebooks for EDA and training
├── requirements.txt # Dependencies
└── README.md # Project documentation
- Install Python (v3.8 or later).
-
Clone the repository:
git clone https://github.com/Abhii039/Heart-Failure-Predictor-Model.git cd Heart-Failure-Predictor-Model -
Install dependencies:
pip install -r requirements.txt
-
Run the application:
python app.py
-
Open your browser and navigate to
http://localhost:5000(or Streamlit URL).
- Accuracy: 85%
- Precision: 83%
- Recall: 80%
- AUC-ROC Score: 0.87
Check out the live application here: Heart Failure Predictor Demo
- Add support for other machine learning models.
- Enhance the user interface.
- Deploy to cloud platforms like AWS or Heroku.
- Integrate a larger dataset for improved accuracy.
This project is licensed under the MIT License.
- Fork the repository.
- Create a feature branch (
git checkout -b feature-name). - Commit your changes (
git commit -m "Add new feature"). - Push to the branch (
git push origin feature-name). - Open a Pull Request.
For any inquiries or suggestions, please contact:
- Name: Abhi Dobariya
- Email: [email protected]
- GitHub: Your GitHub Profile
Feel free to customize this as per your project! 😊