Revive is a production-grade, machine learning powered web application capable of predicting seven distinct diseases from patient medical data. Built on Flask, it integrates both classical machine learning models and convolutional neural networks to deliver fast, accurate, and interpretable medical predictions through a clean web interface.
The system was designed to reduce diagnostic friction for doctors, medical researchers, and patients by providing AI-assisted predictions based on validated medical datasets sourced from Kaggle and the UCI Machine Learning Repository.
| Disease | Model Type | Accuracy | Screenshot |
|---|---|---|---|
| Diabetes | Machine Learning | 98.25% | View |
| Breast Cancer | Machine Learning | 98.25% | View |
| Heart Disease | Machine Learning | 85.25% | View |
| Kidney Disease | Machine Learning | 99.00% | View |
| Liver Disease | Machine Learning | 78.00% | View |
| Malaria | CNN Deep Learning | 96.00% | View |
| Pneumonia | CNN Deep Learning | 95.00% | View |
A classical machine learning model trained on the PIMA Indian Diabetes dataset. Users input glucose levels, BMI, insulin, age, and other clinical markers to receive an immediate prediction.
Trained on the Wisconsin Breast Cancer dataset. The model analyzes cell nucleus features extracted from digitized fine needle aspirate images to classify tumors as malignant or benign.
A classifier trained on the Cleveland Heart Disease dataset from UCI. Accepts 13 clinical attributes including age, chest pain type, resting blood pressure, and electrocardiographic results.
Trained on the Chronic Kidney Disease dataset. Processes 24 medical features including blood urea, serum creatinine, haemoglobin, and packed cell volume to predict kidney disease presence.
Uses the Indian Liver Patient dataset (ILPD). Input features include age, total bilirubin, direct bilirubin, alkaline phosphatase, and albumin protein levels.
A Convolutional Neural Network trained on the NIH Malaria dataset containing 27,558 cell images. Users upload a blood smear image; the CNN classifies it as parasitized or uninfected.
A CNN trained on chest X-ray images from the Guangzhou Women and Children Medical Center dataset. The model distinguishes between normal lungs and pneumonia-affected lungs from a single uploaded X-ray.
User Browser
|
HTTP Request
|
Flask App (app.py)
/ \
GET / POST /predict
| |
Render HTML Receive Input
Template (Form / Image)
|
Load Trained Model
(.pkl / .h5)
|
Preprocess Input
(Scaler / Normalize)
|
Model Inference
|
Generate Prediction
|
Return Result
to HTML Template
Visual Flow Chart:
Revive/
│
├── app.py # Flask application entry point
├── requirements.txt # Python dependencies
│
├── models/ # Trained ML and DL model files
│ ├── diabetes_model.pkl
│ ├── breast_cancer_model.pkl
│ ├── heart_model.pkl
│ ├── kidney_model.pkl
│ ├── liver_model.pkl
│ ├── malaria_model.h5
│ └── pneumonia_model.h5
│
├── static/ # Static assets
│ ├── logo.png
│ ├── css/
│ └── js/
│
├── templates/ # HTML templates
│ ├── index.html
│ ├── diabetes.html
│ ├── breast_cancer.html
│ ├── heart.html
│ ├── kidney.html
│ ├── liver.html
│ ├── malaria.html
│ └── pneumonia.html
│
└── images/ # Documentation images
Prerequisites: Python 3.8 or higher, pip
Step 1 — Clone the repository
git clone https://github.com/codexshami/Revive.gitStep 2 — Navigate to the project directory
cd ReviveStep 3 — Install all dependencies
pip install -r requirements.txtStep 4 — Start the application
python app.pyor alternatively:
flask runStep 5 — Open in browser
http://127.0.0.1:5000
| Layer | Technology |
|---|---|
| Backend Framework | Flask (Python) |
| Machine Learning | scikit-learn |
| Deep Learning | TensorFlow / Keras (CNN) |
| Frontend | HTML5, Bootstrap 5 |
| Model Serialization | Pickle (.pkl), HDF5 (.h5) |
| Data Sources | Kaggle, UCI ML Repository |
- Seven disease prediction modules in a single unified application
- Dual modality input — structured clinical data for ML models, image upload for CNN models
- Sub-second inference time on trained model files
- Preprocessing pipelines baked into the prediction route for consistent results
- Responsive web interface accessible from any modern browser
Clinical diagnosis is demanding. Fatigue, time pressure, and cognitive load can introduce errors in manual assessment. Machine learning systems trained on thousands of validated patient records identify statistical patterns that complement clinical judgment — not replace it.
This project demonstrates that disease prediction models with high accuracy can be packaged into accessible, user-friendly tools that reduce barriers to early detection and support better health outcomes.
Copyright 2026 Mohd Shami
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.










