{"id":26166279,"url":"https://github.com/coding-for-it/diabetes-prediction-system","last_synced_at":"2026-04-19T08:33:46.798Z","repository":{"id":298823412,"uuid":"994530015","full_name":"coding-for-it/Diabetes-Prediction-System","owner":"coding-for-it","description":"A machine learning-based system to predict diabetes using Logistic Regression, Decision Tree, and Random Forest with up to 85% accuracy. Includes EDA, model evaluation, and feature selection on a Kaggle-sourced dataset.","archived":false,"fork":false,"pushed_at":"2025-06-13T04:12:21.000Z","size":1883,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-13T05:20:41.833Z","etag":null,"topics":[],"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/coding-for-it.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,"zenodo":null}},"created_at":"2025-06-02T04:48:04.000Z","updated_at":"2025-06-13T04:12:24.000Z","dependencies_parsed_at":"2025-06-13T05:32:05.240Z","dependency_job_id":null,"html_url":"https://github.com/coding-for-it/Diabetes-Prediction-System","commit_stats":null,"previous_names":["coding-for-it/diabetes-prediction-system"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/coding-for-it/Diabetes-Prediction-System","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coding-for-it%2FDiabetes-Prediction-System","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coding-for-it%2FDiabetes-Prediction-System/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coding-for-it%2FDiabetes-Prediction-System/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coding-for-it%2FDiabetes-Prediction-System/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coding-for-it","download_url":"https://codeload.github.com/coding-for-it/Diabetes-Prediction-System/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coding-for-it%2FDiabetes-Prediction-System/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32000414,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-03-11T16:40:26.365Z","updated_at":"2026-04-19T08:33:46.792Z","avatar_url":"https://github.com/coding-for-it.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿# Diabetes Prediction System\r\n\r\nThis project implements a machine learning-based **Diabetes Prediction System** using the PIMA Indian Diabetes dataset. It explores various classification models to predict whether a patient is likely to have diabetes based on diagnostic measurements.\r\n\r\n## 📊 Dataset\r\n\r\nThe dataset includes the following health-related features:\r\n- Pregnancies\r\n- Glucose\r\n- Blood Pressure\r\n- Skin Thickness\r\n- Insulin\r\n- BMI\r\n- Diabetes Pedigree Function\r\n- Age\r\n- Outcome (Target: 1 = diabetic, 0 = non-diabetic)\r\n\r\n## 🧰 Libraries Used\r\n\r\n- `pandas` – for data manipulation\r\n- `numpy` – for numerical operations\r\n- `matplotlib`, `seaborn` – for data visualization\r\n- `scikit-learn` – for data preprocessing, model training, and evaluation\r\n\r\n## 🔹 Features\r\n\r\n✅ **Comprehensive Exploratory Data Analysis (EDA)**  \r\n✅ **Clean and Preprocessed Data** (handled missing values, duplicates, and scaling)  \r\n✅ **Model Evaluation:** Logistic Regression, Decision Tree, and Random Forest  \r\n✅ **Performance Metrics:** Accuracy, Classification Report, and Confusion Matrix  \r\n✅ **Visualizations:** Distribution, Pairplot, Heatmap of correlations, and Model Evaluation charts  \r\n\r\n## 🔍 Project Workflow\r\n\r\n### 1. Data Cleaning\r\n- Zeros in certain health-related fields are replaced with median values to handle invalid entries.\r\n\r\n### 2. Exploratory Data Analysis (EDA)\r\n- Visualizations such as heatmaps and class distribution charts help understand relationships and feature importance.\r\n\r\n### 3. Feature Scaling\r\n- StandardScaler is used to normalize the feature set for improved model performance.\r\n\r\n### 4. Model Training\r\nThree different models are trained:\r\n- Logistic Regression\r\n- Decision Tree Classifier\r\n- Random Forest Classifier\r\n\r\n### 5. Model Evaluation\r\n- Evaluation is done using:\r\n  - Accuracy Score\r\n  - Confusion Matrix\r\n  - Classification Report\r\n \r\n\r\n### Tech Stack\r\n\r\n- **Python 3**\r\n- **Pandas**, **Numpy**\r\n- **Scikit-learn**\r\n- **Matplotlib**, **Seaborn**\r\n- **Jupyter Notebook**\r\n\r\n## 🧪 How to Run\r\n\r\n1. Clone the repository:\r\n   ```bash\r\n   git clone https://github.com/coding-for-it/Diabetes-Prediction-System.git\r\n   cd Diabetes-Prediction-System\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoding-for-it%2Fdiabetes-prediction-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoding-for-it%2Fdiabetes-prediction-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoding-for-it%2Fdiabetes-prediction-system/lists"}