Compact CNN and CNN-Transformer Models for PneumoniaMNIST+ Chest Radiograph Classification

Main Article Content

Elric Donnelly

Abstract

This revised study compares compact convolutional and CNN-Transformer classifiers on public pediatric chest radiographs. Experiments were rerun in November 2026 using the 64 by 64 PneumoniaMNIST+ release, with pneumonia as the positive class. Exact-pixel duplicate removal, performed before model fitting, retains 4,690 training, 516 validation, and 621 test images. Both models use a three-stage convolutional stem and are trained from random initialization for 30 epochs using the same optimizer settings. Three fixed seeds are evaluated per architecture. Checkpoints and classification thresholds are selected using validation data; all six models are frozen before test evaluation. Mean test ROC AUC is 0.9704 for the CNN and 0.9537 for the CNN-Transformer. Mean test accuracy is 92.22% and 88.84%, respectively, at validation-selected thresholds. Per-seed metrics, confusion matrices, learning curves, and image-level bootstrap intervals are reported together with reproducibility files. The CNN has the higher mean test AUC in this comparison; adding attention does not provide a consistent advantage. The findings describe retrospective benchmark classification and require separate patient-level and external validation before clinical interpretation.

Article Details

Section

Articles