AI + Health TechResearch projectMedical imaging

Does a GAN make a pneumonia classifier better? Here, it made it worse.

Sean Joe Lee compared five setups for detecting pneumonia on chest X-rays. A ResNet50 with traditional augmentation scored best: 0.993 AUROC, 0.889 specificity, 0.964 F1. Adding CycleGAN synthetic images lowered every metric, and the CycleGAN-based detectors fell to 0.53–0.65 AUROC. He then showed why: the GAN darkened images and changed bones and edges instead of lung tissue.

ConcentrationAI + Health Tech
FormatPBL presentation
When2025 · Individual project
Project LeadResearcher in Medical Imaging and Machine Learning
InputDataCLAHE + focal loss1 · Prepare X-raysModels5ResNet50 / CycleGAN2 · Train 5 setupsAnalysisWhyGrad-CAM, intensity3 · Explain failure
Illustration of the study design, drawn from the final presentation.
0.993AUROC with traditional augmentation
0.980AUROC after adding CycleGAN images
0.53–0.65AUROC of the CycleGAN-based detectors
5Setups compared
Abstract

Generative models are often proposed to create extra training images for medical AI. This project tested whether that helps pneumonia detection on chest X-rays. Five setups were compared: a ResNet50 baseline with no augmentation, ResNet50 with traditional augmentation, ResNet50 with CycleGAN synthetic images plus traditional augmentation, and two CycleGAN-based detectors (an identity Normal→Normal mapping and a Normal→Pneumonia mapping). Images were preprocessed with CLAHE and training used focal loss. Traditional augmentation gave the best overall result (AUROC 0.9927, specificity 0.8889, F1 0.9639). Adding CycleGAN images lowered every metric slightly, and the CycleGAN-based detectors reached only 0.5298–0.6513 AUROC. Intensity analysis and Grad-CAM showed why: synthetic images were systematically darker, collapsed into a narrow intensity range, and changed ribs, heart borders and the spine more than the lung fields where pneumonia appears.

Keywords · pneumonia detection · chest X-ray · CycleGAN · data augmentation · Grad-CAM · failure analysis

The team

Who did this work

Sean Joe Lee
Individual project · Sean Joe Lee
Sean Joe Lee
Sean Joe Lee
National University of Singapore · Singapore
On this project
Did the whole project alone: modeling, experiments and analysis.

Students named here agreed to be featured. Role notes come from the Project Lead's feedback.

Background

1Why test GAN augmentation at all

Pneumonia affects hundreds of millions of people a year, and many countries have far fewer radiologists than recommended. Automated screening could help, and generative models are often proposed as a way to create more training images.

In deployed clinical pipelines, GAN-generated pathology is rarely used, partly because synthetic images can introduce subtle errors. This project tested whether CycleGAN images actually help, and if not, why.

Method

2Five setups, same evaluation

  1. Preprocessed. Applied CLAHE contrast enhancement and trained with focal loss to handle class imbalance.
  2. Trained five setups. ResNet50 without augmentation; with traditional augmentation; with CycleGAN images plus traditional augmentation; a CycleGAN identity mapping; and a CycleGAN Normal→Pneumonia mapping.
  3. Measured the same way. Sensitivity, specificity, AUROC, F1 and precision for every setup.
  4. Looked inside. Compared intensity distributions of real and synthetic images, and used Grad-CAM to see where the models looked.
Results

3Simpler won, and the failure has a mechanism

SetupSensitivitySpecificityAUROCF1
1 · ResNet50, no augmentation1.0000.7690.9930.902
2 · ResNet50 + traditional augmentation0.9920.8890.9930.964
3 · + CycleGAN synthetic images0.9720.8820.9800.951
4 · CycleGAN identity mapping0.9270.2570.6510.782
5 · CycleGAN Normal→Pneumonia0.8600.3800.5300.694
Table 1. Classification results, rounded to three decimals. From the final presentation.
  1. Images got darker. Synthetic images shifted intensity down, by about 8% according to the analysis.
  2. Outputs collapsed. Synthetic intensities squeezed into a narrow range, losing the difference between normal and pneumonia.
  3. Wrong regions changed. The GAN altered ribs, heart borders and the spine most, and the central lung fields least.
The useful finding. CycleGAN learned to fool its discriminator by changing high-contrast edges, not the subtle opacity that signals pneumonia.
From the presentation

4Selected slides

Slides from the final presentation.

Slide: overall results table for five models
Figure 1. Overall results for the five setups.
Slide: regional analysis of where CycleGAN changes the image
Figure 2. Where CycleGAN changes the X-ray.
Slide: conclusions
Figure 3. Conclusions and failure modes.
Limitations

5What this does not show

  • Results come from one public chest X-ray dataset; no confidence intervals or repeated runs are reported.
  • CycleGAN training was unstable; different settings might behave differently.
  • The finding is about this setup, not proof that generative augmentation never helps.
Skills and fit

6What this work shows

Medical image classificationGenerative models (CycleGAN)Controlled experiment designModel interpretability (Grad-CAM)Failure analysisClear research communication
Project Lead
PL

Researcher in Medical Imaging and Machine Learning

Senior Imaging Scientist at Novartis. MIT PhD in ultrasound imaging and medical robotics. Co-founded two medical startups.

The student ran the experiments and built the analysis. The Project Lead guided the research direction and reviewed the work.

Good fit for applications in

Medical imaging AI · Machine learning research

A careful negative result with a clear mechanism is a strong research writing sample.

Project Lead review

7What the Project Lead observed

The Project Lead wrote feedback on the project and rated the demonstrated capability on a four-level scale.

Demonstrated capability

System-Level Insight

  1. 1Foundational Application
  2. 2Applied Reasoning
  3. 3Independent Problem Solving
  4. 4System-Level Insight

Level 4 of 4: anticipates broader implications, risks or downstream effects, and connects technical decisions to real-world impact.

Framing the problem
Challenged the assumption that more complex generative methods improve medical classifiers.
Evidence and testing
Ran systematic, controlled comparisons and chose methods on evidence rather than assumed superiority.
Explaining failure
Identified mode collapse and loss of diagnostic contrast, and backed conclusions with interpretability tools.
Ownership
The Academic Coordinator noted Sean's ownership, analytical depth and clear communication, and his support for peers.

Source: the Project Lead's and Academic Team's written feedback, 2025.

References

References

  1. Zhu, J.-Y. et al. (2017). Unpaired image-to-image translation using cycle-consistent adversarial networks. ICCV.
  2. He, K. et al. (2016). Deep residual learning for image recognition. CVPR.
  3. Selvaraju, R. R. et al. (2017). Grad-CAM: Visual explanations from deep networks via gradient-based localization. ICCV.
  4. Lin, T.-Y. et al. (2017). Focal loss for dense object detection. ICCV.
Lee, S. J. (2025). When complexity fails: why simple augmentation outperforms CycleGAN for pneumonia detection in chest X-rays. AI and Computer Vision in BioTech – Novo Nordisk Project, PBL presentation. blendedlearn.org/outcome-pneumonia-augmentation-vs-cyclegan
Build work like this

Join the AI and Computer Vision in BioTech – Novo Nordisk Project

Work with a medical imaging scientist on a real question and leave with research you can defend.