Spaces:
Sleeping
A newer version of the Gradio SDK is available:
5.46.0
title: Astral.AI
emoji: π
colorFrom: pink
colorTo: red
sdk: gradio
sdk_version: 5.37.0
app_file: app.py
pinned: false
license: afl-3.0
short_description: An AI Powered Tracker
π©Ί Pediatric Respiratory Triage Assistant (NLP-Powered)
An intelligent, interactive assistant that helps parents and caregivers triage common pediatric respiratory symptoms.
Built using interpretable machine learning, custom NLP pipelines, and deployed with a friendly Gradio chatbot interface.
β οΈ This tool provides non-diagnostic guidance only. It is not a substitute for medical advice.
π Live Demo
Try the app on Hugging Face Spaces
(replace with actual URL when deployed)
π― Project Objective
- Enable users to describe symptoms in natural language
- Use an ML model to classify input into one of four triage levels
- Return a safe, easy-to-understand recommendation
- Support early triage decisions, especially in low-resource or high-volume contexts
π§ How It Works
- User enters a free-text symptom description
- The text is processed via
TF-IDF
vectorization - A Decision Tree classifier predicts the triage category
- A friendly chatbot message is displayed based on the prediction
Triage Labels:
Label | Guidance |
---|---|
π’ Monitor at Home | Mild symptoms, low risk. Watch and observe. |
π‘ Consult GP | Suggests seeing a doctor for further evaluation. |
π« Use Inhaler | Asthma-like symptoms. Use prescribed inhaler and monitor closely. |
π΄ Visit Emergency | Serious symptoms. Seek urgent medical attention. |
π§ͺ Model Summary
- Vectorizer:
TfidfVectorizer
with bigrams - Best model:
DecisionTreeClassifier
(Accuracy: 96%) - Other tested models: Linear SVM, XGBoost, LightGBM, Random Forest
ποΈ Files in This Repo
βββ app.py # Gradio app entry point
βββ best_model_decision_tree.joblib # Trained ML model
βββ requirements.txt # All required libraries
βββ README.md # You're reading it
π§° Tech Stack
Gradio
β chatbot interfaceScikit-learn
β model training + TF-IDF pipelineXGBoost
,LightGBM
,Random Forest
β tested alternatesJoblib
β model persistenceMatplotlib
,Seaborn
β EDA & diagnostics
π§ Limitations
- Not a diagnostic system β designed only for low-risk triage advice
- Based on synthetic and heuristic-labeled data from medical education text
- Requires expansion for multilingual or multi-condition support
π§ Future Plans
- Integrate BERT for deeper semantic understanding
- Add class weighting or active learning
- Train on verified clinical text or real-world triage logs
- Publish as an embeddable widget or API
β οΈ Disclaimer
This project is for educational and research purposes only. It is not a certified medical device or diagnostic tool.
Always consult a licensed healthcare provider for professional medical advice.
π License
MIT License β feel free to modify, fork, and improve responsibly.
π Credits
Built with β€οΈ by SilverDragon9
Inspired by pediatricians, caregivers, and the need for accessible, responsible healthcare AI.