Downloads · 30 days
0
hongtai91/medsiglip-tb-classifier
medsiglip-tb-classifier is a image classification model from hongtai91. Use it when you need a label for an image. The card lists the license as apache-2.0.
Fine-tuned MLP classifier head on top of Google's MedSigLIP-448 vision encoder for tuberculosis detection from chest X-rays.
Downloads · 30 days
0
Access
Public
Updated Feb 24, 2026
Repo size
2.6 MB
Likes
0
Public
Click a slice to open those files.
.pt2.6 MB · 100%
From the Hugging Face model README
Fine-tuned MLP classifier head on top of Google's MedSigLIP-448 vision encoder for tuberculosis detection from chest X-rays.
| Metric | Test Set |
|---|---|
| AUC | 0.9975 |
| Sensitivity | 96.2% |
| Specificity | 98.5% |
| F1 Score | 0.944 |
| PPV | 92.7% |
| NPV | 99.3% |
| Method | AUC | Sensitivity | Specificity |
|---|---|---|---|
| Random baseline | 0.231 | 0.0% | 100% |
| MedSigLIP zero-shot | 0.837 | 77.2% | 75.7% |
| Fine-tuned (this model) | 0.9975 | 96.2% | 98.5% |
from tbscan.classifier import TBClassifier
from PIL import Image
classifier = TBClassifier(
model_id="google/medsiglip-448",
classifier_path="classifier.pt"
)
classifier.load()
image = Image.open("chest_xray.png").convert("RGB")
result = classifier.classify(image)
print(f"TB Probability: {result['prob_tb']:.1%}")
Built for the MedGemma Impact Challenge 2026. TBScan is an AI-powered TB screening system for low-resource clinics.
⚠️ Research and educational purposes only. Not validated for clinical use.