Abstract
Deep learning models for lung nodule detection in Chest X-rays (CXR) are often limited by the scarcity of labeled data. This paper proposes a local feature augmentation technique that utilizes generative inpainting to isolate nodules from their anatomical backgrounds. By subtracting an inpainted "healthy" version of a patch from the original nodule-containing patch, isolated nodule features are extracted. These features are then implanted into various locations within healthy lung fields, creating a diverse set of synthetic training examples. Experimental results on the ChestX-ray14 and JSRT datasets demonstrate that this method significantly improves nodule classification performance, particularly in low-data regimes.
Introduction
Detecting lung nodules in Chest X-rays is a challenging "needle in a haystack" problem due to the subtle nature of nodules and their potential confusion with overlapping anatomical structures like ribs or blood vessels. While deep learning has shown promise, these models typically require vast amounts of labeled data, which is difficult to acquire in the medical domain. Traditional data augmentation techniques, such as rotation or flipping, are global and do not alter the underlying relationship between the nodule and its background. This paper introduces a local feature augmentation approach to address this limitation by placing isolated nodules into diverse anatomical contexts.
Methodology
The proposed pipeline consists of three primary stages:
- Nodule Inpainting: A generative "Context Encoder" is trained to predict the background of a nodule-containing patch as if the nodule were absent. A spatially discounted reconstruction loss ensures seamless blending with the surrounding image.
- Feature Extraction: The isolated "nodule feature" is obtained by subtracting the inpainted healthy patch from the original nodule patch. This effectively "peels" the nodule away from the background tissue.
- Local Augmentation: These extracted features are randomly transformed (rotated, flipped) and implanted into anatomically plausible lung regions of healthy CXR images, guided by a lung segmentation mask.
A pre-trained classifier is used to verify the quality of the inpainting; a significant drop in confidence after inpainting indicates successful nodule removal, ensuring high-quality features for augmentation.
Experimental Results
The method was evaluated using the ChestX-ray14 (NIH) and JSRT datasets. The local feature augmentation consistently outperformed baseline models and standard global augmentation.
- Performance Gains: On the full dataset, the Area Under the Curve (AUC) for nodule classification improved from 0.792 (baseline) to 0.805.
- Data Efficiency: The impact was most pronounced in low-data scenarios. When training on only 5% of the data, the method achieved an AUC of 0.669, compared to the baseline's 0.649.
Qualitative analysis (Figure 2) shows that the inpainting process effectively removes nodules without introducing artifacts or "ghosting," allowing for the creation of realistic synthetic training samples.
Conclusion
By using generative inpainting to define "normal" lung tissue, this research provides a robust framework for isolating and re-contextualizing pathological features. This local augmentation strategy effectively increases the variance of training data, leading to more generalized and accurate nodule classification models. Future work will explore higher-resolution processing and the application of this technique to 3D CT data.
Summary updated