Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,15 +1,84 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# π©Ί Diabetes Readmission Prediction Web App
|
| 2 |
+
|
| 3 |
+
An interactive machine learning application deployed on **Hugging Face Spaces** to predict the likelihood of hospital readmission for diabetic patients using clinical and demographic data.
|
| 4 |
+
|
| 5 |
+
π **Live Space:**
|
| 6 |
+
https://huggingface.co/spaces/Parishri07/Diabetes_readmission
|
| 7 |
+
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
## π Project Overview
|
| 11 |
+
|
| 12 |
+
Hospital readmission among diabetic patients is a critical healthcare challenge. This project provides a **web-based prediction system** that helps estimate the probability of readmission using machine learning models.
|
| 13 |
+
|
| 14 |
+
The application is designed for:
|
| 15 |
+
- Educational purposes
|
| 16 |
+
- Healthcare analytics demonstrations
|
| 17 |
+
- Machine learning deployment practice
|
| 18 |
+
|
| 19 |
+
---
|
| 20 |
+
|
| 21 |
+
## β¨ Key Features
|
| 22 |
+
|
| 23 |
+
- π **Readmission Prediction**
|
| 24 |
+
Predicts whether a diabetic patient is likely to be readmitted.
|
| 25 |
+
|
| 26 |
+
- π₯οΈ **Interactive Web Interface**
|
| 27 |
+
Clean and simple UI built using **Gradio**.
|
| 28 |
+
|
| 29 |
+
- β‘ **Real-Time Inference**
|
| 30 |
+
Instant predictions based on user inputs.
|
| 31 |
+
|
| 32 |
+
- π§© **Modular Codebase**
|
| 33 |
+
Easy to extend with new models or features.
|
| 34 |
+
|
| 35 |
+
---
|
| 36 |
+
|
| 37 |
+
## π Project Structure
|
| 38 |
+
|
| 39 |
+
Diabetes_readmission/
|
| 40 |
+
βββ app.py # Main application file
|
| 41 |
+
βββ requirements.txt # Python dependencies
|
| 42 |
+
βββ README.md # Project documentation
|
| 43 |
+
βββ .python_version # Python version for Hugging Face Space
|
| 44 |
+
βββ data/
|
| 45 |
+
βββ models/
|
| 46 |
+
βββ notebooks/
|
| 47 |
+
|
| 48 |
+
---
|
| 49 |
+
|
| 50 |
+
## π How the App Works
|
| 51 |
+
|
| 52 |
+
1. User enters patient clinical information through the UI.
|
| 53 |
+
2. Input data is processed and passed to a trained ML model.
|
| 54 |
+
3. The model predicts readmission risk.
|
| 55 |
+
4. Results are displayed instantly on the interface.
|
| 56 |
+
|
| 57 |
+
---
|
| 58 |
+
|
| 59 |
+
## π§ Machine Learning Approach
|
| 60 |
+
|
| 61 |
+
The prediction system may use supervised ML models such as:
|
| 62 |
+
|
| 63 |
+
- Logistic Regression
|
| 64 |
+
- Random Forest
|
| 65 |
+
- Gradient Boosting / XGBoost
|
| 66 |
+
|
| 67 |
+
Model performance is evaluated using:
|
| 68 |
+
- Accuracy
|
| 69 |
+
- Precision
|
| 70 |
+
- Recall
|
| 71 |
+
- ROC-AUC
|
| 72 |
+
|
| 73 |
+
---
|
| 74 |
+
|
| 75 |
+
## π οΈ Technologies Used
|
| 76 |
+
|
| 77 |
+
- **Python**
|
| 78 |
+
- **Gradio**
|
| 79 |
+
- **Scikit-learn**
|
| 80 |
+
- **Pandas & NumPy**
|
| 81 |
+
- **Hugging Face Spaces**
|
| 82 |
+
|
| 83 |
+
---
|
| 84 |
+
|