Skip to content

Utilizing machine learning and MongoDB, this system predicts heart disease based on user input. With a user-friendly interface and seamless integration, it offers accurate predictions and data storage.

Notifications You must be signed in to change notification settings

shivayapandey/heart_disease_prediction

Repository files navigation

📈 Heart Disease Prediction System 🩺

This project is a comprehensive heart disease prediction system that incorporates a machine learning model to predict heart disease based on user input. The system is built using Python and integrates with MongoDB for data storage and retrieval.

🚀 Features

  1. MongoDB Integration: The system establishes a connection with a MongoDB database to store user inputs and prediction results. 📂
  2. User Interface: A user interface is implemented using FastAPI, allowing users to submit their data for prediction. The interface is designed for versatility and performance. 🌐
  3. Model Prediction and Data Handling: After storing the user input data in the MongoDB database, the system retrieves this data to perform the prediction using the machine learning model. The prediction outcome is then saved back into the database. 🔮

📋 Requirements

  • Python 3.x 🐍
  • FastAPI 🚀
  • MongoDB 📂
  • Scikit-learn 🧠
  • Pandas 📊
  • NumPy 🔢
  • Joblib 📦

🚀 Installation

  1. Clone the repository:

git clone https://github.com/shivayapandey/heart-disease-prediction.git

css Copy code

  1. Navigate to the project directory:

cd heart-disease-prediction-system

markdown Copy code

  1. Install the required dependencies:

pip install -r requirements.txt

markdown Copy code

🏃‍♂️ Usage

  1. Start the MongoDB server. 🚀

  2. Run the FastAPI application:

uvicorn main:app --reload

markdown Copy code

  1. Access the user interface by navigating to http://localhost:8000 in your web browser. 🌐

  2. Submit your data through the user interface. 📝

  3. The system will store your input data in the MongoDB database, perform the prediction using the machine learning model, and save the prediction result back into the database. 💾

📸 Screenshots

MongoDB Input Files Saved

Screenshot 2024-04-03 at 5 58 30 PM

Model Graphs

Model achieved 83% accuracy Screenshot 2024-04-05 at 4 37 19 AM Screenshot 2024-04-05 at 4 37 24 AM Screenshot 2024-04-05 at 4 37 38 AM Screenshot 2024-04-05 at 4 37 40 AM Screenshot 2024-04-05 at 4 37 43 AM

🤝 Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request. 🙌

📄 License

This project is licensed under the MIT License. 📜

About

Utilizing machine learning and MongoDB, this system predicts heart disease based on user input. With a user-friendly interface and seamless integration, it offers accurate predictions and data storage.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published