MP44's picture
Update README.md
7b91feb verified

A newer version of the Gradio SDK is available: 6.6.0

Upgrade
metadata
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, huggingface_hub, and the Hugging Face Inference API.

🩺 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