{"id":28738523,"url":"https://github.com/omari-kd/heart-stroke-prediction","last_synced_at":"2026-04-29T19:33:39.640Z","repository":{"id":295970497,"uuid":"991862132","full_name":"omari-kd/Heart-Stroke-Prediction","owner":"omari-kd","description":"The dataset used in this project contains information necessary to predict the occurrence of a stroke.","archived":false,"fork":false,"pushed_at":"2025-07-06T17:58:35.000Z","size":1109,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-06T18:45:04.383Z","etag":null,"topics":["datascience","datascience-machinelearning","python"],"latest_commit_sha":null,"homepage":"","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/omari-kd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2025-05-28T09:01:15.000Z","updated_at":"2025-07-06T17:58:38.000Z","dependencies_parsed_at":"2025-05-28T10:29:21.010Z","dependency_job_id":"04d516b8-b742-46a4-8d08-30549ec6323d","html_url":"https://github.com/omari-kd/Heart-Stroke-Prediction","commit_stats":null,"previous_names":["omari-kd/heart-stroke-prediction"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/omari-kd/Heart-Stroke-Prediction","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omari-kd%2FHeart-Stroke-Prediction","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omari-kd%2FHeart-Stroke-Prediction/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omari-kd%2FHeart-Stroke-Prediction/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omari-kd%2FHeart-Stroke-Prediction/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/omari-kd","download_url":"https://codeload.github.com/omari-kd/Heart-Stroke-Prediction/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omari-kd%2FHeart-Stroke-Prediction/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32441172,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T18:12:22.909Z","status":"ssl_error","status_checked_at":"2026-04-29T18:11:33.322Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["datascience","datascience-machinelearning","python"],"created_at":"2025-06-16T04:17:16.948Z","updated_at":"2026-04-29T19:33:39.635Z","avatar_url":"https://github.com/omari-kd.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Heart-Stroke-Prediction\n\nThis data science project aims to predict the likelihood of a patient experiencing a stroke based on various input parameters such as gender, age, presence of diseases and smoking status. The dataset provides relevant information about each patient, enabling the development of a predictive model.\n\nAccording to the World Health Organization (WHO), stroke is the second leading cause of death worldwide, responsible for approximately 11% of total deaths. This project aims to leverage machine learning techniques to build a predictive model that can identify individuals at risk of stroke based on their demographic and health-related features. By detecting high-risk individuals early, appropriate preventive measures can be taken to reduce the incidence and impact of stroke.\n\n# About the dataset\n\nThe dataset used in this project contains information necessary to predict the occurrence of a stroke. Each row in the dataset represents a patient, and the dataset includes the following attributes:\n\n- id: Unique identifier\n- gender: \"Male\", \"Female\" or \"Other\"\n- age: Age of the patient\n- hypertension: 0 if the patient doesn't have hypertension, 1 if the patient has hypertension\n- heart_disease: 0 if the patient doesn't have any heart diseases, 1 if the patient has a heart disease\n- ever_married: \"No\" or \"Yes\"\n- work_type: \"Children\", \"Govt_job\", \"Never_worked\", \"Private\" or \"Self-employed\"\n- Residence_type: \"Rural\" or \"Urban\"\n- avg_glucose_level: Average glucose level in the blood\n- bmi: Body mass index\n- smoking_status: \"Formerly smoked\", \"Never smoked\", \"Smokes\" or \"Unknown\"\n- stroke: 1 if the patient had a stroke, 0 if not\n\n# Data Visualisation\n\n![Image](https://github.com/user-attachments/assets/1f7a9a4e-6d27-4273-b7fc-1ec61e6e9c12)\n\n# Running the Streamlit App\n\nThis project includes an interactive web app for predicting stroke risk using a trained machine learning model.\n\n### Requirements\n\nMake sure you have installed the required packages:\n\n```bash\npip install -r requirements.txt\n```\n\n### Running the App\n\n```bash\nstreamlit run app.py\n```\n\nApp is available at `https://omari-heartstrokeprediction.streamlit.app/`.\n\n# Tools \u0026 Technologies\n\n- **Python**: Core language for data analysis and modeling\n  - `pandas`, `NumPy` — for data manipulation and numerical operations\n  - `Matplotlib`, `Seaborn` — for data visualization\n  - `scikit-learn` — for machine learning modeling and evaluation\n- **Jupyter Notebook**: For interactive development, analysis and documentation of the data science workflow\n- **Streamlit**: For deploying the model as a simple web app\n- **VS Code**: Code editing and project management\n- **Git \u0026 GitHub**: Version control and collaboration\n\n# Contribution\n\nOpen to suggestions and improvements! Submit issues or pull requests.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomari-kd%2Fheart-stroke-prediction","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fomari-kd%2Fheart-stroke-prediction","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomari-kd%2Fheart-stroke-prediction/lists"}