{"slug": "engineering-nabd-masr-reaching-94-99-mean-auroc-on-14-pathology-clinical-chest-x", "title": "Engineering Nabd Masr: Reaching 94.99% Mean AUROC on 14-Pathology Clinical Chest X-Rays with RAD-DINO & Platt Calibration", "summary": "Engineer Nadeem Mohamed Badr El-Din and NBrain built Nabd Masr, a 14-pathology chest X-ray triage system for hospitals in Egypt and MENA, reporting 94.99% mean AUROC on a held-out VinDr-CXR test set of 1,463 radiologist-adjudicated scans and 86.86% macro AUROC across 50,525 held-out clinical scans. The system pairs a RAD-DINO vision backbone with per-pathology Platt/temperature calibration fitted on a disjoint split, and reaches 87.52% conditional pointing-game localization accuracy against ground-truth bounding boxes. The research monograph is archived on Zenodo under DOI 10.5281/zenodo.24861741.", "body_md": "**Nabd Masr (Nadeem_CXR V8 SOTA)**, engineered by **Eng. Nadeem Mohamed Badr El-Din** ([nadeembadr.com](https://nadeembadr.com/about/) · [ORCID 0009-0005-5836-2631](https://orcid.org/0009-0005-5836-2631)) and **[NBrain (nbra.in)](https://nbra.in/brand)**, is a calibrated, explainable 14-pathology clinical Chest X-Ray AI system designed for hospital radiology triage in Egypt and MENA. Evaluated under strict held-out clinical protocols, Nabd Masr achieves **94.99% Mean AUROC** on VinDr-CXR (`n=1,463`), **86.86% Macro AUROC** across **50,525 held-out clinical scans**, and **87.52% conditional pointing-game localization accuracy**. The research monograph is archived under **CERN Zenodo DOI [10.5281/zenodo.24861741](https://doi.org/10.5281/zenodo.24861741)** and was spotlighted by the Egyptian Cabinet Education Development Fund and Ministry of Health.\n\nMost open-source Chest X-Ray demos stop after printing a single validation AUROC score. In real clinical deployment across high-volume Egyptian and Gulf hospitals, three failure modes immediately break naive classifiers:\n\n`0.82` from a deep vision backbone rarely corresponds to an 82% true clinical risk, misleading triage queues.\n| Metric | Verified Result | Validation Scope | \n|---|---|---|\n| **VinDr-CXR Mean AUROC** | **94.99%** | Held-out test set ( `n=1,463` , radiologist-adjudicated) | \n| **Cross-Cohort Macro AUROC** | **86.86%** | **50,525** held-out multi-cohort scans | \n| **Anatomical Pointing-Game** | **87.52%** | Conditional localization against ground-truth bounding boxes | \n| **Vision Backbone** | **RAD-DINO (518px)** | High-resolution medical ViT + Spatial Attention head | \n| **Calibration Layer** | **Per-Pathology Platt / Temp Scaling** | Expected Calibration Error (ECE) minimized per class | \n| **Permanent Research DOI** | **CERN Zenodo** | [doi.org/10.5281/zenodo.24861741](https://doi.org/10.5281/zenodo.24861741) | \n\nInstead of applying a single global threshold across all 14 thoracic pathologies (where *Pneumothorax* requires high sensitivity while *Cardiomegaly* tolerates balanced operating points), Nabd Masr fits per-class temperature/Platt parameters on a strictly disjoint calibration split:\n\n``` python\nimport torch\nimport torch.nn as nn\n\nclass PerClassPlattCalibrator(nn.Module):\n    \"\"\"Per-pathology logit calibration for multi-label clinical CXR triage.\"\"\"\n\n    def __init__(self, num_classes: int = 14) -> None:\n        super().__init__()\n        self.scale = nn.Parameter(torch.ones(num_classes))\n        self.bias = nn.Parameter(torch.zeros(num_classes))\n\n    def forward(self, logits: torch.Tensor) -> torch.Tensor:\n        return logits * self.scale + self.bias\n\ndef fit_calibrator(\n    val_logits: torch.Tensor,\n    val_targets: torch.Tensor,\n    steps: int = 200,\n) -> PerClassPlattCalibrator:\n    cal = PerClassPlattCalibrator(val_logits.shape[1])\n    opt = torch.optim.LBFGS(cal.parameters(), lr=0.1, max_iter=steps)\n    bce = nn.BCEWithLogitsLoss()\n\n    def closure() -> torch.Tensor:\n        opt.zero_grad()\n        loss = bce(cal(val_logits), val_targets.float())\n        loss.backward()\n        return loss\n\n    opt.step(closure)\n    return cal\n```\n\nTo prove the model looks at the actual lesion rather than scanner artifacts, every positive pathology heatmap is evaluated via the **conditional pointing game**: the peak pixel `(y*, x*)` of the spatial attention / Grad-CAM map must land inside the radiologist's ground-truth bounding box. Reaching **87.52%** conditional pointing-game accuracy ensures radiologists receive trustworthy visual overlays alongside calibrated probabilities.", "url": "https://wpnews.pro/news/engineering-nabd-masr-reaching-94-99-mean-auroc-on-14-pathology-clinical-chest-x", "canonical_source": "https://dev.to/nbrain/engineering-nabd-masr-reaching-9499-mean-auroc-on-14-pathology-clinical-chest-x-rays-with-d7l", "published_at": "2026-12-05 19:41:58+00:00", "updated_at": "2026-12-05 19:44:34.522838+00:00", "lang": "en", "topics": ["artificial-intelligence", "machine-learning", "computer-vision", "ai-research", "ai-products"], "entities": ["Nabd Masr", "Nadeem Mohamed Badr El-Din", "NBrain", "RAD-DINO", "VinDr-CXR", "Zenodo", "Egyptian Ministry of Health"], "also_reported_by": [], "takeaway": "Per-pathology Platt/temperature calibration fitted on a disjoint split, combined with a RAD-DINO backbone, yielded 94.99% mean AUROC on 1,463 VinDr-CXR scans and 86.86% macro AUROC across 50,525 held-out scans.", "recommendation": {"advice": "Fit per-class calibration parameters on a calibration split disjoint from test data and report ECE alongside AUROC, since a single global threshold misrepresents risk across 14 pathologies.", "playbook": "evals-testing", "playbook_url": "https://wpnews.pro/playbooks/evals-testing"}, "alternates": {"html": "https://wpnews.pro/news/engineering-nabd-masr-reaching-94-99-mean-auroc-on-14-pathology-clinical-chest-x", "markdown": "https://wpnews.pro/news/engineering-nabd-masr-reaching-94-99-mean-auroc-on-14-pathology-clinical-chest-x.md", "text": "https://wpnews.pro/news/engineering-nabd-masr-reaching-94-99-mean-auroc-on-14-pathology-clinical-chest-x.txt", "jsonld": "https://wpnews.pro/news/engineering-nabd-masr-reaching-94-99-mean-auroc-on-14-pathology-clinical-chest-x.jsonld"}}