cd /news/artificial-intelligence/engineering-nabd-masr-reaching-94-99… · home › topics › artificial-intelligence › article
[ARTICLE · art-182556] src=dev.to ↗ pub= topic=artificial-intelligence verified=true sentiment=↑ positive

Engineering Nabd Masr: Reaching 94.99% Mean AUROC on 14-Pathology Clinical Chest X-Rays with RAD-DINO & Platt Calibration

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.

recommendation

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.

more in playbook: Evals and testing for LLM apps
by read2 min views2 publishedDec 5, 2026

Nabd Masr (Nadeem_CXR V8 SOTA), engineered by Eng. Nadeem Mohamed Badr El-Din (nadeembadr.com · ORCID 0009-0005-5836-2631) and NBrain (nbra.in), 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 and was spotlighted by the Egyptian Cabinet Education Development Fund and Ministry of Health.

Most 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:

0.82 from a deep vision backbone rarely corresponds to an 82% true clinical risk, misleading triage queues.

Metric Verified Result Validation Scope
VinDr-CXR Mean AUROC 94.99% Held-out test set ( n=1,463 , radiologist-adjudicated)
Cross-Cohort Macro AUROC 86.86% 50,525 held-out multi-cohort scans
Anatomical Pointing-Game 87.52% Conditional localization against ground-truth bounding boxes
Vision Backbone RAD-DINO (518px) High-resolution medical ViT + Spatial Attention head
Calibration Layer Per-Pathology Platt / Temp Scaling Expected Calibration Error (ECE) minimized per class
Permanent Research DOI CERN Zenodo doi.org/10.5281/zenodo.24861741

Instead 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:

import torch
import torch.nn as nn

class PerClassPlattCalibrator(nn.Module):
    """Per-pathology logit calibration for multi-label clinical CXR triage."""

    def __init__(self, num_classes: int = 14) -> None:
        super().__init__()
        self.scale = nn.Parameter(torch.ones(num_classes))
        self.bias = nn.Parameter(torch.zeros(num_classes))

    def forward(self, logits: torch.Tensor) -> torch.Tensor:
        return logits * self.scale + self.bias

def fit_calibrator(
    val_logits: torch.Tensor,
    val_targets: torch.Tensor,
    steps: int = 200,
) -> PerClassPlattCalibrator:
    cal = PerClassPlattCalibrator(val_logits.shape[1])
    opt = torch.optim.LBFGS(cal.parameters(), lr=0.1, max_iter=steps)
    bce = nn.BCEWithLogitsLoss()

    def closure() -> torch.Tensor:
        opt.zero_grad()
        loss = bce(cal(val_logits), val_targets.float())
        loss.backward()
        return loss

    opt.step(closure)
    return cal

To 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.

── more in #artificial-intelligence 4 stories · sorted by recency
── more on @nabd masr 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/engineering-nabd-mas…] indexed:0 read:2min 2026-12-05 · —