DiabeticAI is a machine learning-powered web application that predicts the risk of diabetes using clinical health indicators. The system integrates a trained ML model with a Django REST API and a React frontend to provide real-time predictions.
The goal of this project is to demonstrate end-to-end ML system development, including data preprocessing, model training, API integration, and interactive prediction interfaces.
https://diabetes-model-mhzi.vercel.app/
- Machine learning model for diabetes risk prediction
- Data preprocessing and feature engineering pipeline
- Real-time predictions through REST API
- React frontend for user input and result visualization
- Modular backend architecture using Django REST Framework
- Python
- Django
- Django REST Framework
- scikit-learn
- Pandas
- NumPy
- React
- Vite
- TailwindCSS
- Git
- REST APIs
- Model Serialization (Pickle / Joblib)
The ML workflow includes:
- Data preprocessing
- Handling missing values
- Feature scaling and normalization
- Model training using supervised classification
- Model evaluation using accuracy and ROC metrics
- Model serialization and deployment via API
Example pipeline:
Raw Data
↓
Preprocessing
↓
Feature Engineering
↓
Model Training
↓
Evaluation
↓
Django REST API
↓
React Frontend Prediction
project/
│
├── backend/
│ └── diabetes/
│ ├── models
│ ├── views
│ ├── serializers
│ └── settings
│
├── src/ # React frontend
├── public/
│
├── analysis.csv
├── offline-analysis.ipynb
└── README.md
- User enters health parameters in the frontend.
- Data is sent to the Django API endpoint.
- Backend preprocesses the input data.
- The trained ML model predicts diabetes risk.
- Prediction is returned to the frontend and displayed to the user.
Clone the repository
git clone https://github.com/deepmhatre13/diabetes_model
cd diabetes_model
Create virtual environment
python -m venv venv
source venv/bin/activate
Install dependencies
pip install -r requirements.txt
Run backend
python manage.py runserver
Run frontend
npm install
npm run dev
- Designed end-to-end ML prediction pipeline from preprocessing to deployment
- Integrated trained ML model into Django REST APIs for real-time inference
- Built React frontend to interact with ML prediction service
- Structured project for modular backend and scalable API development