Spaces:
Sleeping
Sleeping
| title: TB Detection with AST | |
| emoji: π« | |
| colorFrom: blue | |
| colorTo: purple | |
| sdk: gradio | |
| sdk_version: 5.49.1 | |
| app_file: app.py | |
| pinned: true | |
| license: mit | |
| tags: | |
| - tuberculosis | |
| - medical-ai | |
| - chest-xray | |
| - adaptive-sparse-training | |
| - explainable-ai | |
| - gradcam | |
| - healthcare | |
| - energy-efficient | |
| # π« Tuberculosis Detection with Adaptive Sparse Training | |
| **Advanced AI for TB screening from chest X-rays - 99.3% accuracy with 89% energy savings!** | |
| ## π Features | |
| - β‘ **Real-time TB Detection** from chest X-rays | |
| - π¬ **Grad-CAM Visualization** - See what the AI focuses on | |
| - π **Confidence Scores** with clinical interpretation | |
| - π¨ **Modern UI/UX** - Mobile-responsive design | |
| - π **Energy Efficient** - Uses only 10% of traditional computational resources | |
| - π **Built for Global Health** - Runs on low-power devices | |
| ## π― Model Performance | |
| | Metric | Value | | |
| |--------|-------| | |
| | **Accuracy** | 99.29% | | |
| | **Energy Savings** | 89.52% | | |
| | **Activation Rate** | 9.38% | | |
| | **Inference Time** | <2 seconds | | |
| ## π How to Use | |
| 1. **Upload** a chest X-ray image (PNG, JPG, JPEG) | |
| 2. **Enable Grad-CAM** to see AI explanations (recommended) | |
| 3. **Click "Analyze X-Ray"** to get results | |
| 4. **Review** prediction, confidence, and clinical interpretation | |
| 5. **Examine** Grad-CAM heatmaps to understand the AI's decision | |
| ## β οΈ Medical Disclaimer | |
| This is an AI screening tool designed to **assist** healthcare providers. It is NOT a substitute for professional medical diagnosis, laboratory confirmation, or clinical evaluation by qualified healthcare providers. | |
| Always consult with healthcare professionals for proper diagnosis and treatment. | |
| ## π¬ Technology | |
| - **Architecture**: EfficientNet-B0 | |
| - **Training Method**: Adaptive Sparse Training (AST) with Sundew algorithm | |
| - **Dataset**: TB Chest X-Ray Database (~3,500 images) | |
| - **Framework**: PyTorch + Gradio | |
| ## π Learn More | |
| - [GitHub Repository](https://github.com/oluwafemidiakhoa/Tuberculosis) | |
| - [Malaria Detection (Sister Project)](https://huggingface.co/spaces/mgbam/Malaria) | |
| ## π¨βπ» Developer | |
| **Oluwafemi Idiakhoa** | |
| - GitHub: [@oluwafemidiakhoa](https://github.com/oluwafemidiakhoa) | |
| - Hugging Face: [@mgbam](https://huggingface.co/mgbam) | |
| --- | |
| **Built with β€οΈ for sustainable AI in global health** ππ |