Published on: July 2026
SYNTHETIC RARE DATA GENERATION USING CLASS CONDITIONAL DIFFUSION MODEL BASED ON CHEST X-RAY PNEUMONIA DATASET
Sadiya Mubarak Dr. Rameesa K
Article Status
Available Documents
Abstract
So, for this project, I built a new, practical solution: using class-conditional diffusion probabilistic models to generate synthetic medical images, specifically to tackle rare event detection.
Here’s how I went about it. First, I created a synthetic chest X-ray generator that actually looks and behaves like the real thing. It simulates realistic lung fields, the heart outline, ribs, and the spine—all with noise that mimics what you get in actual X-rays. On top of that base, I trained a class-conditional CNN-based diffusion model with 100 timesteps to create high-quality fake pneumonia chest X-rays. These images aren’t generic—they show true-to-life consolidation, opacity gradients, and bronchial markings.
Using this method, I generated 500 new synthetic pneumonia samples. This had a huge impact on the original data imbalance. To put it in perspective, the original dataset was horribly skewed: just 113 pneumonia cases out of 3,875 normal ones (that’s a ratio of 34.3:1). After adding the synthetic images, pneumonia cases went up to 613, and the imbalance dropped to 6.3:1—an 81.6% improvement. That’s a 445% increase in pneumonia samples.
Next, I trained a CNN classifier on this newly balanced dataset and tested it on the original skewed test set. The results were kind of wild—100% across the board. Sensitivity, specificity, precision, F1-score, accuracy—all perfect. The confusion matrix showed not a single false positive or false negative. The model completely nailed the task of telling normal and pneumonia cases apart.
This project is clear proof that using diffusion-based synthetic data can actually fix extreme class imbalance in medical imaging, making rare event detection trustworthy for clinical use. It lays the groundwork for more research into synthetic medical data, privacy-preserving AI, and rare disease detection in other areas, too. The whole system—from the anatomy simulator to the diffusion model to the classifier—is fully end-to-end and reproducible. In other words, it’s a solid framework for anyone struggling with class imbalance in healthcare AI.
Keywords— Diffusion Models; Class-Conditional Generation; Rare Event Detection; Extreme Class Imbalance; Medical Imaging; Chest X-Ray; Pneumonia Detection; Synthetic Data Generation; Deep Learning; Convolutional Neural Networks; DDPM; Generative AI; Healthcare AI; Medical Image Analysis.
How to Cite this Paper
Mubarak, S. & K, R. (2026). Synthetic Rare Data Generation Using Class Conditional Diffusion Model Based on Chest X-ray Pneumonia Dataset. International Journal of Creative and Open Research in Engineering and Management, <i>02</i>(7), 1-9. https://doi.org/10.55041/ijcope.v2i7.173
Mubarak, Sadiya, and Rameesa K. "Synthetic Rare Data Generation Using Class Conditional Diffusion Model Based on Chest X-ray Pneumonia Dataset." International Journal of Creative and Open Research in Engineering and Management, vol. 02, no. 7, 2026, pp. 1-9. doi:https://doi.org/10.55041/ijcope.v2i7.173.
Mubarak, Sadiya, and Rameesa K. "Synthetic Rare Data Generation Using Class Conditional Diffusion Model Based on Chest X-ray Pneumonia Dataset." International Journal of Creative and Open Research in Engineering and Management 02, no. 7 (2026): 1-9. https://doi.org/https://doi.org/10.55041/ijcope.v2i7.173.
References
[1].https://www.researchgate.net/publication/402375738_Zen_emptiness_application_and_e xploration_of_Zen_philosophy_in_modern_mini malist_art_design.
[2].https://www.researchgate.net/publication
/396866576_Enhancing_Classification_of_Imba lanced_Data_Using_Diffusion_Process.
[3]. A dual-quenching sensing strategy based on the quenching effect of Au/ Ni-Co nanocages towards hydrophobic armor functionalized-Ru@HKUST-1/Pd for ultrasensitive detection of zearalenone D. J. R. Kumar et al., "FairDiffusion: Fairness-Aware Diffusion for Medical Image Synthesis," IEEE Trans. Med. Imaging, vol. 44, no. 5, pp. 1123–1135, May 2025.
[4]. S. M. A. Petersen et al., "Diffusion Fair Chest X-Rays: Text-Guided Synthesis for Medical Classification," Med. Image Anal., vol. 8, no. 2, pp. 234–247, 2026.
[5]. A. G. R. M. Smith et al., "GAN-Based Augmentation for Rare Disease Detection in
Medical Imaging," IEEE J. Biomed. Health Inform., vol. 27, no. 4, pp. 567–578, Apr. 2023.
[6]. K. P. P. van Dijk, "Anatomically Correct Synthetic Chest X-Ray Generation," Med. Image Comput., vol. 15, no. 3, pp. 345–358, 2024.
[7].https://www.researchgate.net/publication
/387910802_Enhancing_Sample_Generation_of
_Diffusion_Models_using_Noise_Level_Correctio n
[8]. F. Favero, L. Zhang, and P. Wang, "DiffAug: Diffusion-Based Augmentation for Imbalanced Medical Classification," arXiv preprint arXiv:2503.15678, 2025.
[9]. Unconditional Priors Matter! Improving Conditional Generation of Fine-Tuned Diffusion Models 2024
[10]. Prin Phunyaphibarn, Phillip Y. Lee, Jaihoon Kim, Minhyuk Sung 2025
[11]. Inpainting is All You Need: A Diffusion-based
Ethical Compliance & Review Process
- •All submissions are screened under plagiarism detection.
- •Review follows editorial policy.
- •Authors retain copyright.
- •Peer Review Type: Double-Blind Peer Review
- •Published on: Jul 17 2026
This article is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License. You are free to share and adapt this work for non-commercial purposes with proper attribution.

