Code Monkey home page Code Monkey logo

cardio-care's Introduction

Cardio-Care

Cardio-Care is a comprehensive project aimed at detecting heart disease using machine learning algorithms. The project implements three different algorithms to predict the presence of heart disease: Logistic Regression, K-Nearest Neighbors (KNN), and Decision Tree. Each of these algorithms has been fine-tuned to provide the best possible accuracy:

  • Logistic Regression: Achieved an accuracy of 83.69%. This algorithm is suitable for binary classification tasks and is known for its efficiency and performance in distinguishing between two classes.
  • K-Nearest Neighbors (KNN): Achieved an accuracy of 67.75%. KNN is a simple, non-parametric, and lazy learning algorithm that classifies data points based on their proximity to other data points.
  • Decision Tree: Achieved an accuracy of 78.98%. This algorithm uses a tree-like model of decisions and their possible consequences, making it useful for both classification and regression tasks.

Features

  • Heart Disease Detection: Uses machine learning algorithms to predict the likelihood of heart disease.
  • User Input Form: Collects necessary patient information for the prediction.
  • Algorithm Comparison: Displays the performance of different algorithms used.
  • Responsive Design: Optimized for various devices, ensuring a seamless experience on mobile phones, tablets, and desktops.

Technologies Used

  • Python: Core programming language for implementing machine learning algorithms.
  • Jupyter Notebook: For interactive development and testing of machine learning models.
  • HTML, CSS, JavaScript: For creating the front-end of the web application.
  • Streamlit: For building and deploying the web application.
  • Scikit-learn: For implementing machine learning algorithms.

Installation

To get a local copy up and running, follow these steps:

  1. Clone the repository:

    git clone https://github.com/your-username/cardio-care.git
  2. Navigate to the project directory:

    cd cardio-care

Running the Jupyter Notebook

  1. Install Python dependencies:

    pip install -r requirements.txt
  2. Run the Jupyter Notebook:

    jupyter notebook Cardio_Care.ipynb

Running the Detection Script

  1. Install Python dependencies:

    pip install -r requirements.txt
  2. Run the detection script:

    python detection.py

Usage

  1. Input Patient Data: Use the provided form to input patient details such as age, gender, chest pain type, resting BP, cholesterol, fasting BP, resting ECG, max heart rate, exercise angina, old peak, and ST slope.
  2. Run Prediction: Submit the form to run the prediction model and get results based on the input data.
  3. View Results: The application will display the predicted outcome along with the probabilities from different algorithms.

Contributing

Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project.
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature).
  3. Commit your Changes (git commit -m 'Add some AmazingFeature').
  4. Push to the Branch (git push origin feature/AmazingFeature).
  5. Open a Pull Request.

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Your Name - @your-twitter-handle - [email protected]

Project Link: https://github.com/your-username/cardio-care

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.