Local Data Adaptation of a Deep Learning Model for Pneumonia Detection: A Controlled Study Using Chest Radiographs from a Nigerian Hospital
- Open access
- Peer reviewed
- CC BY 4.0
ISSN 2992-4383
Authors
- Nkiru Celine Mokwe Corresponding author
- Prof. K. A. Akpado
- Prof. A. N. Isizoh
Abstract
Deep learning models for pneumonia detection that are trained on public chest radiograph collections lose accuracy on radiographs from African hospitals, and the usual recommendation is to add local data. How little local data is enough to change a model's behaviour, and what exactly it changes, has rarely been measured. This paper reports a controlled, paired test at very small scale. A DenseNet121 classifier was trained on 13,891 public radiographs (RSNA and Kermany collections) and evaluated on radiographs photographed from printed films at a hospital in Awka, Nigeria. It was then retrained with 74 of those local radiographs added, each presented ten times per epoch so that local images formed about 5% of every epoch, and with greyscale input to remove a colour cast that tracked the class label. Both versions were scored on the same 33 held-out local radiographs. For the deployed models, pneumonia sensitivity rose from 6 of 19 (31.6%) to 12 of 19 (63.2%) (exact McNemar test, p = 0.031), and the same gain was found when the output head and decision rule were held identical across the two versions (5 of 19 to 11 of 19, p = 0.031). Neither result survives a Bonferroni correction for the five comparisons made. Specificity fell from 13 of 14 to 9 of 14 (p = 0.125) and the area under the ROC curve rose from 0.688 to 0.741 (DeLong test, p = 0.49). Balanced accuracy changed by 0.015 (95% confidence interval −0.145 to 0.175). Accuracy on two public test sets of 2,688 and 2,862 radiographs was unchanged. Part of the gain came from the greyscale step alone. A small number of local radiographs therefore moved the model towards detecting pneumonia on local images at no cost elsewhere, but did not demonstrably improve its overall discrimination, and sensitivity remained far below the 95% for which the decision threshold had been calibrated. Local radiographs should be used to calibrate the threshold as well as to train the model.