Skip to content

Mohanpavankumar/HeartDiseasePrediction

Repository files navigation

Heart Disease Prediction Web Application

This is a web application for predicting the likelihood of heart disease based on various medical features. The app utilizes machine learning models (SVM, Decision Tree, Logistic Regression, Random Forest, KNN) to provide prediction accuracy based on user input.

Features

  • Predict heart disease probability using different classifiers.
  • Display individual model predictions and the overall prediction.
  • Interactive web interface built using HTML, CSS, and JavaScript.
  • Backend powered by Flask, running various machine learning models.

Technologies Used

  • Frontend: HTML, CSS, JavaScript (Fetch API).
  • Backend: Python, Flask.
  • Machine Learning Models: Scikit-learn, joblib.
  • Other Libraries: Numpy, Pandas, Matplotlib.

Setup Instructions

1. Clone the repository

Clone this repository to your local machine.

2. Install Dependencies

pip install -r requirements.txt

3. Run the Flask app

python app.py

Once the Flask server is running, open your browser and go to http://127.0.0.1:5000/ to access the heart disease prediction app.

Example Form Data

Age: 50
Sex: Male
Chest Pain Type: Typical Angina
Resting Blood Pressure: 120 mm Hg
Serum Cholesterol: 240 mg/dl
Fasting Blood Sugar: No
Resting Electrocardiographic Result: Normal
Maximum Heart Rate Achieved: 150 bpm
Exercise Induced Angina: Yes
Oldpeak (ST Depression): 1.5
Slope of Peak Exercise ST Segment: Flat
Number of Major Vessels Colored by Fluoroscopy: 1
Thalassemia: Normal

Screenshot

Prediction Screen
Quiz Screen

Contributions

If you would like to contribute to this project, feel free to submit a pull request. Contributions are welcome for improvements, bug fixes, or new features!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages