{"id":25256778,"url":"https://github.com/onome-joseph/heart-attack-prediction","last_synced_at":"2025-04-06T00:28:18.193Z","repository":{"id":264245150,"uuid":"892814276","full_name":"Onome-Joseph/Heart-Attack-Prediction","owner":"Onome-Joseph","description":"This project estimates the likelihood of a heart attack for a patient based on their health parameters. ","archived":false,"fork":false,"pushed_at":"2025-01-25T00:06:03.000Z","size":1239,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-12T06:39:09.167Z","etag":null,"topics":["classification-model","data-science","flask-application","healthcare","machine-learning","random-forest-classifier"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Onome-Joseph.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-22T20:41:21.000Z","updated_at":"2025-01-25T00:06:07.000Z","dependencies_parsed_at":"2025-02-12T06:36:37.541Z","dependency_job_id":"fc116895-c493-4f77-9a67-2bee9527d6d7","html_url":"https://github.com/Onome-Joseph/Heart-Attack-Prediction","commit_stats":null,"previous_names":["onome-joseph/heart-attack-probability"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Onome-Joseph%2FHeart-Attack-Prediction","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Onome-Joseph%2FHeart-Attack-Prediction/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Onome-Joseph%2FHeart-Attack-Prediction/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Onome-Joseph%2FHeart-Attack-Prediction/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Onome-Joseph","download_url":"https://codeload.github.com/Onome-Joseph/Heart-Attack-Prediction/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247419637,"owners_count":20936009,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["classification-model","data-science","flask-application","healthcare","machine-learning","random-forest-classifier"],"created_at":"2025-02-12T06:27:33.157Z","updated_at":"2025-04-06T00:28:18.161Z","avatar_url":"https://github.com/Onome-Joseph.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Heart Attack Prediction Model\n## Overview\nThis project implements a Heart Attack Prediction Machine Learning Model that estimates the likelihood of a heart attack for a patient based on their health parameters. The model uses the **Random Forest algorithm** and achieves very high accuracy, making it a reliable tool for medical analysis and decision-making.\n## Applications\n- Healthcare Providers: Aid in early diagnosis and risk assessment for heart disease.\n- Hospitals: Prioritize patients based on their likelihood of a heart attack, optimizing emergency care.\n- Insurance Companies: Assist in risk profiling for health insurance policies.\n- Preventive Health Programs: Identify high-risk individuals for targeted interventions.\n\n# Heart Attack Risk Prediction Flask App\nThis project is a Flask-based web application that predicts the risk of a heart attack based on user input. The prediction is powered by a machine learning model.\n---\n![Screenshot of the Heart Attack Prediction Model](https://github.com/Onome-Joseph/Heart-Attack-Prediction/blob/main/App%20preview.jpeg)\n\n## Features\n- Interactive form to input patient details.\n- Machine learning-based prediction for heart attack risk.\n- Easy-to-use interface with a clean design.\n---\n## Installation\n1. **Clone the repository:**\n   ```bash\n   git clone https://github.com/Onome-Joseph/Heart-Attack-Prediction.git\n   ```\n2. **Create a virtual environment (recommended):**\n   ```bash\n   python -m venv venv\n   ```\n   Activate the virtual environment:\n   - On Windows:\n     ```bash\n     venv\\Scripts\\activate\n     ```\n   - On macOS/Linux:\n     ```bash\n     source venv/bin/activate\n     ```\n\n3. **Install required dependencies:**\n   ```bash\n    python\n    !pip install Flask\n    !pip install numpy\n    !pip install scikit-learn\n    !pip install pandas\n   ```\n---\n\n## Running the Application\n\n1. **Ensure the `classifier.pkl` file is in the root directory.**\n   This file contains the trained machine learning model. If it's missing, the app will not work.\n\n2. **Start the Flask server:**\n   ```bash\n   python Heart_attack_FLASK.py\n   ```\n3. **Access the web application:**\n   Open your browser and go to:\n   ```\n   http://127.0.0.1:5000/\n   ```\n\n4. **Fill in the form and get the prediction!**\n---\n## Project Structure\n\n```\nyour-repository-name/\n│\n├── Heart_attack_FLASK.py        # Flask application script\n├── classifier.pkl               # Pre-trained machine learning model\n├── requirements.txt             # List of Python dependencies\n├── templates/\n│   └── front.html               # HTML template for the web app (plain design)\n│   └──front2.html               # HTML template for the web app (better design)\n├── App preview                  # Layout of the frontend design (front2)\n└── README.md                    # Project documentation\n```\n---\n### Contributions\nContributions are welcome! Feel free to fork the repository, suggest improvements.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonome-joseph%2Fheart-attack-prediction","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonome-joseph%2Fheart-attack-prediction","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonome-joseph%2Fheart-attack-prediction/lists"}