https://github.com/halyusa16/diabetes-prediction-using-machine-learning
This project focuses on predicting diabetes using machine learning techniques. Various preprocessing steps such as handling imbalanced data (SMOTE, RandomUnderSampler), feature selection (RFE), and outlier removal (Z-score) were applied to improve model performance.
https://github.com/halyusa16/diabetes-prediction-using-machine-learning
data-mining data-science machine-learning
Last synced: over 1 year ago
JSON representation
This project focuses on predicting diabetes using machine learning techniques. Various preprocessing steps such as handling imbalanced data (SMOTE, RandomUnderSampler), feature selection (RFE), and outlier removal (Z-score) were applied to improve model performance.
- Host: GitHub
- URL: https://github.com/halyusa16/diabetes-prediction-using-machine-learning
- Owner: halyusa16
- Created: 2025-02-02T08:47:31.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-23T10:09:31.000Z (over 1 year ago)
- Last Synced: 2025-02-23T11:20:23.387Z (over 1 year ago)
- Topics: data-mining, data-science, machine-learning
- Language: Jupyter Notebook
- Homepage:
- Size: 4.08 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# π©Ί Diabetes Prediction using Machine Learning
## π Overview
This project explores health-related indicators to classify individuals into three categories:
- **0:** No Diabetes
- **1:** Prediabetes
- **2:** Diabetes
Various preprocessing steps such as handling imbalanced data (SMOTE, RandomUnderSampler), feature selection (RFE), and outlier removal (Z-score) were applied to improve model performance.
## π Dataset
- **Name:** `diabetes_012_health_indicators_BRFSS2015.csv`
- **Description:** A dataset containing health indicators associated with diabetes classification.
## π οΈTechnologies Used
- π **Python**
- π **Pandas, NumPy** (Data Handling)
- π¨ **Seaborn, Matplotlib** (Data Visualization)
- π€ **Scikit-learn** (Machine Learning)
- βοΈ **Imbalanced-learn** (SMOTE, RandomUnderSampler)
## π Project Steps
### 1οΈβ£ Data Loading π₯
- Read and explore the dataset.
- Identify missing values and compute basic statistics.
### 2οΈβ£ Exploratory Data Analysis (EDA) π
- Visualized feature distributions.
- Checked for class imbalance in target labels.
### 3οΈβ£ Data Preprocessing π
- **Outlier detection & removal** using **Z-score**.
- **Feature selection** with **Recursive Feature Elimination (RFE)**.
- **Class balancing** via **SMOTE (oversampling) & RandomUnderSampler (undersampling)**.
### 4οΈβ£ Machine Learning Models π€
Tested multiple models to compare their effectiveness:
β
**Logistic Regression**
β
**Gradient Boosting**
β
**Decision Tree**
### 5οΈβ£ Results & Insights π
- **Compared model performance** under different preprocessing techniques.
- Assessed the impact of **feature selection** and **outlier removal** on accuracy.
π **Evaluated using:**
- β
Accuracy
- β
Precision
- β
Recall
- β
F1-score
## Future Improvements
- Experiment with deep learning models.
- Implement additional feature engineering techniques.
- Deploy the model using a web app.
---
β¨ *Created by Halyusa Ard Wahyudi as part of a data science portfolio.* π