An Explainable Vision-Language Model Framework with Adaptive PID-Tversky Loss for Lumbar Spinal Stenosis Diagnosis
Organizations: Department of Computer Science and Engineering, , Dhaka, 1212, , Bangladesh. · Department of Electrical and Computer Engineering, , College Park, 20742, Maryland, USA.
Abstract
Lumbar Spinal Stenosis (LSS) diagnosis remains a critical clinical challenge, with diagnosis heavily dependent on labor-intensive manual interpretation of multi-view Magnetic Resonance Imaging (MRI), leading to substantial inter-observer variability and diagnostic delays. Existing vision-language models simultaneously fail to address the extreme class imbalance prevalent in clinical segmentation datasets while preserving spatial accuracy, primarily due to global pooling mechanisms that discard crucial anatomical hierarchies. We present an end-to-end Explainable Vision-Language Model framework designed to overcome these limitations, achieved through two principal objectives. We propose a Spatial Patch Cross-Attention module that enables precise, text-directed localization of spinal anomalies with spatial precision. A novel Adaptive PID-Tversky Loss function by integrating control theory principles dynamically further modifies training penalties to specifically address difficult, under-segmented minority instances. By incorporating foundational VLMs alongside an Automated Radiology Report Generation module, our framework demonstrates considerable performance: a diagnostic classification accuracy of 90.69%, a macro-averaged Dice score of 0.9512 for segmentation, and a CIDEr score of 92.80%. Furthermore, the framework shows explainability by converting complex segmentation predictions into radiologist-style clinical reports, thereby establishing a new benchmark for transparent, interpretable AI in clinical medical imaging that keeps essential human supervision while enhancing diagnostic capabilities.
Figures & tables
| Model | Evaluation Metric | Grade A | Grade B&C | Grade D | Macro Average | Accuracy |
| LLaVA-Med | Precision | 0.9366 | 0.8495 | 0.9387 | 0.9083 | 90.69% |
| Recall | 0.8892 | 0.8890 | 0.9425 | 0.9069 | ||
| F1-Score | 0.9123 | 0.8688 | 0.9406 | 0.9072 | ||
| BiomedCLIP | Precision | 0.9225 | 0.7867 | 0.9407 | 0.8833 | 87.77% |
| Recall | 0.9124 | 0.8740 | 0.8468 | 0.8777 | ||
| F1-Score | 0.9175 | 0.8280 | 0.8913 | 0.8789 |
| Model | Dice Score (CI) | IoU | Precision | Recall | Specificity |
| LLaVA-Med | 0.9624 (0.951-0.973) | 0.9288 | 0.9655 | 0.9610 | 0.9412 |
| BiomedCLIP | 0.9512 (0.938-0.964) | 0.9147 | 0.9570 | 0.9574 | 0.9279 |
| SmolVLM | 0.8603 (0.841-0.879) | 0.7566 | 0.8402 | 0.8841 | 0.8567 |
| Model | Metric | Grade A | Grade B&C | Grade D |
| LLaVA-Med | Dice Score | 0.9650 | 0.9422 | 0.9800 |
| IoU | 0.9310 | 0.8954 | 0.9600 | |
| Sensitivity | 0.9650 | 0.9380 | 0.9800 | |
| BiomedCLIP | Dice Score | 0.9754 | 0.8965 | 0.9816 |
| IoU | 0.9056 | 0.8705 | 0.9680 | |
| Sensitivity | 1.0000 | 0.8955 | 0.9765 |
| Model | BLEU-1 | BLEU-2 | BLEU-3 | BLEU-4 | ROUGE-1 | ROUGE-2 | ROUGE-L | METEOR | CIDEr | Jaccard | TF-IDF | Dist-1 | Dist-2 |
| LLaVA-Med | 88.15% | 87.50% | 86.85% | 86.10% | 90.50% | 88.95% | 90.45% | 91.05% | 92.80% | 88.10% | 88.50% | 0.0032 | 0.0065 |
| BiomedCLIP | 84.78% | 84.00% | 83.40% | 82.82% | 87.26% | 84.83% | 87.02% | 87.22% | 89.38% | 84.25% | 85.34% | 0.0029 | 0.0059 |
| SmolVLM | 86.90% | 86.12% | 85.44% | 84.84% | 89.14% | 86.82% | 88.91% | 89.13% | 90.94% | 86.34% | 86.85% | 0.0028 | 0.0057 |
| Model | Metric | Grade A | Grade B&C | Grade D |
| BiomedCLIP | Precision | 0.8908 | 0.7968 | 0.9234 |
| Recall | 0.9261 | 0.8219 | 0.8577 | |
| F1-score | 0.9081 | 0.8092 | 0.8894 | |
| Dice Score | 0.9833 | 0.8147 | 0.9543 | |
| IoU | 0.8960 | 0.7505 | 0.9200 | |
| SmolVLM | Precision | 0.8969 | 0.7682 | 0.8426 |
| Model | Loss Function | Dice | IoU | Prec. | Recall | Spec. |
| LLaVA-Med | Standard Cross-Entropy | 0.8512 | 0.7620 | 0.8120 | 0.8950 | 0.8500 |
| Adaptive PID-Tversky | 0.9624 | 0.9288 | 0.9655 | 0.9610 | 0.9412 | |
| BiomedCLIP | Standard Cross-Entropy | 0.7411 | 0.7133 | 0.7496 | 0.7470 | 0.9221 |
| Adaptive PID-Tversky | 0.9512 | 0.9147 | 0.9570 | 0.9574 | 0.9279 | |
| SmolVLM | Standard Cross-Entropy | 0.8464 | 0.7357 | 0.8082 | 0.8924 | 0.8261 |
| Adaptive PID-Tversky | 0.8603 | 0.7566 | 0.8402 | 0.8841 | 0.8567 |
Radiology VLMs
Radiology vision-language models (VLMs) align medical images and text to support grounded diagnosis, reporting, retrieval, and clinical reasoning.
See all 109 papers