Spaces:
Sleeping
Sleeping
| title: Diabetes Readmission | |
| emoji: π¬ | |
| colorFrom: yellow | |
| colorTo: purple | |
| sdk: gradio | |
| sdk_version: 5.42.0 | |
| app_file: app.py | |
| pinned: false | |
| hf_oauth: true | |
| hf_oauth_scopes: | |
| - inference-api | |
| An example chatbot using [Gradio](https://gradio.app), [`huggingface_hub`](https://huggingface.co/docs/huggingface_hub/v0.22.2/en/index), and the [Hugging Face Inference API](https://huggingface.co/docs/api-inference/index). | |
| # π©Ί Diabetes Readmission Prediction Web App | |
| 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. | |
| π **Live Space:** | |
| https://huggingface.co/spaces/Parishri07/Diabetes_readmission | |
| --- | |
| ## π Project Overview | |
| 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. | |
| The application is designed for: | |
| - Educational purposes | |
| - Healthcare analytics demonstrations | |
| - Machine learning deployment practice | |
| --- | |
| ## β¨ Key Features | |
| - π **Readmission Prediction** | |
| Predicts whether a diabetic patient is likely to be readmitted. | |
| - π₯οΈ **Interactive Web Interface** | |
| Clean and simple UI built using **Gradio**. | |
| - β‘ **Real-Time Inference** | |
| Instant predictions based on user inputs. | |
| - π§© **Modular Codebase** | |
| Easy to extend with new models or features. | |
| --- | |
| ## π Project Structure | |
| Diabetes_readmission/ | |
| βββ app.py # Main application file | |
| βββ requirements.txt # Python dependencies | |
| βββ README.md # Project documentation | |
| βββ .python_version # Python version for Hugging Face Space | |
| βββ data/ | |
| βββ models/ | |
| βββ notebooks/ | |
| --- | |
| ## π How the App Works | |
| 1. User enters patient clinical information through the UI. | |
| 2. Input data is processed and passed to a trained ML model. | |
| 3. The model predicts readmission risk. | |
| 4. Results are displayed instantly on the interface. | |
| --- | |
| ## π§ Machine Learning Approach | |
| The prediction system may use supervised ML models such as: | |
| - Logistic Regression | |
| - Random Forest | |
| - Gradient Boosting / XGBoost | |
| Model performance is evaluated using: | |
| - Accuracy | |
| - Precision | |
| - Recall | |
| - ROC-AUC | |
| --- | |
| ## π οΈ Technologies Used | |
| - **Python** | |
| - **Gradio** | |
| - **Scikit-learn** | |
| - **Pandas & NumPy** | |
| - **Hugging Face Spaces** | |
| --- |