π©» ChestXray-BLIP Report Generator
AI-powered Chest X-ray β Radiology Report Generation
π Overview
ChestXray-BLIP Report Generator is a VisionβLanguage deep learning model fine-tuned to automatically generate radiology-style chest X-ray reports from medical images.
The model is trained on the large-scale NIH ChestX-ray14 dataset (~45GB) and designed for medical AI research, education, and experimentation.
It is also integrated into an end-to-end medical application with an AI chatbot interface.
β οΈ Disclaimer: This model is not clinically approved and must not be used for real-world diagnosis.
π Key Features
π©Ί Automated chest X-ray report generation
π§ VisionβLanguage architecture (BLIP-based)
πΌοΈ Image β Text medical understanding
π¬ Compatible with AI medical chatbots (Qwen-based systems)
β‘ FP16 / mixed-precision support
Trained on kagggle 2 T4 GPUs
π§ Model Details
| Attribute | Description |
|---|---|
| Task | Chest X-ray β Radiology Report Generation |
| Model Type | Vision-Language Model |
| Base Architecture | BLIP (Bootstrapped Language-Image Pretraining) |
| Framework | PyTorch + Hugging Face Transformers |
| Vision Encoder | ViT (BLIP) |
| Text Decoder | Transformer-based |
| Training Dataset | NIH ChestX-ray14 (~45GB) |
| Training Epochs | 3 |
| Precision | FP16 supported |
| Language | English |
𧬠Architecture Overview
Chest X-ray Image β Vision Encoder (ViT / BLIP) β Cross-Modal Attention β Text Decoder β Radiology-Style Report
π¦ Model Files
best_model/ βββ config.json βββ model.safetensors βββ generation_config.json βββ preprocessor_config.json βββ tokenizer.json βββ tokenizer_config.json βββ vocab.txt βββ special_tokens_map.json
π₯ Usage
π§ Load the Model
from transformers import BlipProcessor, BlipForConditionalGeneration
processor = BlipProcessor.from_pretrained(
"anassaifi8912/chestxray-blip-report-generator"
)
model = BlipForConditionalGeneration.from_pretrained(
"anassaifi8912/chestxray-blip-report-generator"
)
πΌοΈ Generate a Report
inputs = processor(image, return_tensors="pt")
outputs = model.generate(**inputs, max_length=128)
report = processor.decode(outputs[0], skip_special_tokens=True)
print(report)
π Evaluation Metrics
Evaluated on unseen test data only.
Metric Score
BLEU-1 0.1019
BLEU-2 0.0692
BLEU-3 0.0341
BLEU-4 0.0189
METEOR 0.1692
ROUGE-L 0.1803
π₯ Clinical Accuracy 0.3159
π§ͺ Intended Use
β
Medical AI research
β
Academic & educational projects
β
Prototyping healthcare applications
β Not for clinical diagnosis or treatment
β οΈ Limitations
Generated reports may be synthetic or incomplete
No disease localization or bounding boxes
Single-image input only
Performance varies across disease categories
Requires expert human verification
π Ethical Considerations
Outputs are AI-generated
May contain hallucinations or inaccuracies
Trained on publicly available medical data
Not evaluated for demographic or clinical bias
π₯ Medical Disclaimer
This model is not a medical device and is not FDA-approved.
It must not be used for real-world clinical diagnosis, treatment, or medical decision-making.
π Dataset
NIH ChestX-ray14 Dataset
Publicly available via NIH & Kaggle
Over 112,000 chest X-ray images
14 disease labels
π€ Author
Anas Saifi
AI / Data Scientist
π GitHub: https://github.com/anassaifi775
π Hugging Face: https://huggingface.co/anassaifi8912
π LinkedIn : https://www.linkedin.com/in/mohd-anas-6570a6290/
β Acknowledgements
NIH Clinical Center
Kaggle
Hugging Face π€
PyTorch Community
β If you find this model useful, please give it a star on Hugging Face
- Downloads last month
- 100