Back to search

Nanyang Technological University

Evaluating lightweight deep neural networks for chest X‑ray pneumonia detection on limited data

Abstract

dc:description.abstract

Pneumonia is one of the leading causes of death worldwide among children and adults, and early accurate diagnosis is crucial for patient prognosis. Chest X-ray imaging is a commonly used diagnostic method for pneumonia, but manual interpretation suffers from subjectivity, high workload, and uneven distribution of medical resources. Deep learning techniques have made significant progress in medical image analysis, providing new solutions for computer-aided diagnosis. This study builds on existing work that applies deep learning models to chest X-ray classification and that compares different model designs on the same public pneumonia dataset. Here, six existing models with different sizes—ResNet18, ResNet50, MobileNetV2, MobileNetV3-Large, DenseNet121, and DenseNet169—are compared on a chest X-ray pneumonia detection task using the Chest X-Ray Images (Pneumonia) dataset, which contains about 5,216 training images (1,341 normal and 3,875 pneumonia) and 624 test images. All models are trained using the same data splits and training settings, so that differences in results mainly reflect differences in model size and design. What is new in this study is the focused comparison between smaller and larger models within the same family (ResNet, MobileNet, DenseNet) on a small dataset and the explicit analysis of how model size relates to performance in this setting. What is not new is the use of standard public data, widely used model architectures, and common training techniques. Experimental results show that, within the DenseNet family, DenseNet121 correctly classifies 93.4% of the test images, slightly outperforming the larger DenseNet169, which correctly classifies 90.7% of the test images. Within the MobileNet family, the smaller MobileNetV2 correctly classifies 91.2% of the test images, while the larger MobileNetV3-Large correctly classifies 88.5% of the test images, even though it is particularly strong at detecting pneumonia cases. Within the ResNet family, the smaller ResNet18 correctly classifies 91.2% of the test images, whereas the larger ResNet50 only correctly classifies 88.3% of the test images and performs much worse on new test images than on the data used to tune it. Taken together, these results illustrate that, on this small dataset, carefully chosen small- and medium-sized models can match or exceed the performance of larger models. Further analysis suggests that the balance between how large a model is and how much data it is trained on has a strong effect on performance. ResNet50 is much larger than the other models and is not well suited for a dataset of only a few thousand training images, and this mismatch leads it to fit the training and validation data too closely while performing poorly on new images. In contrast, the smaller and medium-sized models (such as MobileNetV2, ResNet18, DenseNet121, and DenseNet169) are more appropriately sized for this dataset and therefore generalize better. Unlike many previous studies that either focus on a single model or do not discuss model size in relation to dataset size, this work offers a controlled comparison of several commonly used models under the same conditions and highlights, in a medical imaging context, the practical importance of choosing a model whose size matches the available data. The study does not introduce new network designs or training methods; instead, its contribution is to show that, for this small dataset, well-chosen smaller models can be preferable to a much larger one and to provide practical guidance for similar applications.

Degree

thesis:*
College dc:contributor.school
School of Electrical and Electronic Engineering
Grantor dc:publisher
Nanyang Technological University
Year dc:date.issued
2026

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Shan, Wentao
Advisor dc:contributor.supervisor
  • Wong Liang Jie

Subjects

dc:subject × 1

Rights

Language dc:language.iso
en

Identifiers

dc:identifier.*
Handle dc:identifier.uri
https://hdl.handle.net/10356/214561

Chain of custody

source
Harvested from
Nanyang Technological University
Base URL
dr.ntu.edu.sg/oai/request
Last updated
2026-11-27
Source record
OAI-PMH GetRecord
citation

Shan, Wentao. Evaluating lightweight deep neural networks for chest X‑ray pneumonia detection on limited data. Nanyang Technological University, 2026. https://hdl.handle.net/10356/214561