An open API service indexing awesome lists of open source software.

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.

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.* πŸš€