A Multi-Source Harmonization Pipeline for Chest X-ray, Computed Tomography, and Brain MRI to Construct a Plausibility-Constrained Training Corpus for Medical Image Synthesis

Keywords: Medical image harmonization, Data preprocessing pipeline, Generative adversarial networks, Medical image synthesis, multi-site neuroimaging, Reproducible research

Abstract

Background: Generative adversarial networks for medical image synthesis can produce images that look realistic yet are anatomically implausible. Constraining a generator against this failure requires a reference distribution of tissue composition, which in turn requires a harmonized, leakage-free, multi-modality training corpus that public archives do not provide, because each was released with its own format, intensity convention, labelling taxonomy and partitioning policy.

Aims: The objective of this study is to design, implement and validate the data-engineering stage of the IntrinsicX programme: a reproducible pipeline that converts five public archives (NIH ChestX-ray14, NIH DeepLesion, BraTS-Africa, LIDC-IDRI and OpenBHB) into one analysis-ready corpus with compositional reference statistics.

Methods: The pipeline restores Hounsfield-Unit intensities and applies DICOM or lung windowing for computed tomography, normalizes magnetic resonance slices by percentile, extracts informative axial slices, resamples to 256x256, partitions strictly at the patient level and stores everything in one HDF5 schema; four-class k-means clustering of reference slices yields mean and covariance statistics. It produced 841,739 harmonized images (25.49 GB) from 57 acquisition sites, with realized partition ratios within 2.07 percentage points of the 70/15/15 target for the volumetric sources.

Results: Resampling preserved structural similarity of 0.9233 for LIDC-IDRI and 0.9923 and 0.9917 for the two brain sources, whereas percentile normalization saturated 4.872% and 2.992% of foreground pixels in BraTS-Africa and OpenBHB without moving the reference composition by more than 0.016. The four-cluster partition was reproducible (Adjusted Rand Index 0.988 and 0.910). The scientific contribution is an auditable, regenerable corpus whose limits are measured and reported; its practical value is a ready training substrate that spares other groups the preprocessing.

Conclusion: This study evaluates the corpus only: the effect on generative synthesis is untested and reserved for the companion IntrinsicX-GAN study.

Downloads

Download data is not yet available.

References

I. J. Goodfellow, J. Pouget-Abadie, M. Mirza, B. Xu, D. Warde-Farley, S. Ozair, A. Courville, and Y. Bengio, "Generative adversarial nets," in Proc. Adv. Neural Inf. Process. Syst. (NeurIPS), vol. 27, 2014, pp. 2672-2680.

P. Isola, J.-Y. Zhu, T. Zhou, and A. A. Efros, "Image-to-image translation with conditional adversarial networks," in Proc. IEEE Conf. Comput. Vis. Pattern Recognit. (CVPR), 2017, pp. 1125-1134, doi: 10.1109/CVPR.2017.632.

J.-Y. Zhu, T. Park, P. Isola, and A. A. Efros, "Unpaired image-to-image translation using cycle-consistent adversarial networks," in Proc. IEEE Int. Conf. Comput. Vis. (ICCV), 2017, pp. 2223-2232, doi: 10.1109/ICCV.2017.244.

X. Yi, E. Walia, and P. Babyn, "Generative adversarial network in medical imaging: A review," Medical Image Analysis, vol. 58, Art. no. 101552, 2019, doi: 10.1016/j.media.2019.101552.

S. Kazeminia, C. Baur, A. Kuijper, B. van Ginneken, N. Navab, S. Albarqouni, and A. Mukhopadhyay, "GANs for medical image analysis," Artificial Intelligence in Medicine, vol. 109, Art. no. 101938, 2020, doi: 10.1016/j.artmed.2020.101938.

M. Frid-Adar, I. Diamant, E. Klang, M. Amitai, J. Goldberger, and H. Greenspan, "GAN-based synthetic medical image augmentation for increased CNN performance in liver lesion classification," Neurocomputing, vol. 321, pp. 321-331, 2018, doi: 10.1016/j.neucom.2018.09.013.

K. Armanious, C. Jiang, M. Fischer, T. Küstner, T. Hepp, K. Nikolaou, S. Gatidis, and B. Yang, "MedGAN: Medical image translation using GANs," Computerized Medical Imaging and Graphics, vol. 79, Art. no. 101684, 2020, doi: 10.1016/j.compmedimag.2019.101684.

D. Nie, R. Trullo, J. Lian, L. Wang, C. Petitjean, S. Ruan, Q. Wang, and D. Shen, "Medical image synthesis with deep convolutional adversarial networks," IEEE Transactions on Biomedical Engineering, vol. 65, no. 12, pp. 2720-2730, 2018, doi: 10.1109/TBME.2018.2814538.

S. U. Dar, M. Yurt, L. Karacan, A. Erdem, E. Erdem, and T. Çukur, "Image synthesis in multi-contrast MRI with conditional generative adversarial networks," IEEE Transactions on Medical Imaging, vol. 38, no. 10, pp. 2375-2388, 2019, doi: 10.1109/TMI.2019.2901750.

H.-C. Shin, N. A. Tenenholtz, J. K. Rogers, C. G. Schwarz, M. L. Senjem, J. L. Gunter, K. P. Andriole, and M. Michalski, "Medical image synthesis for data augmentation and anonymization using generative adversarial networks," in Simulation and Synthesis in Medical Imaging (SASHIMI), Lecture Notes in Computer Science, vol. 11037, Cham, Switzerland: Springer, 2018, pp. 1-11, doi: 10.1007/978-3-030-00536-8_1.

J. Ho, A. Jain, and P. Abbeel, "Denoising diffusion probabilistic models," in Proc. Adv. Neural Inf. Process. Syst. (NeurIPS), vol. 33, 2020, pp. 6840-6851.

R. Rombach, A. Blattmann, D. Lorenz, P. Esser, and B. Ommer, "High-resolution image synthesis with latent diffusion models," in Proc. IEEE Conf. Comput. Vis. Pattern Recognit. (CVPR), 2022, pp. 10684-10695, doi: 10.1109/CVPR52688.2022.01042.

W. H. L. Pinaya, P.-D. Tudosiu, J. Dafflon, P. F. da Costa, V. Fernandez, P. Nachev, S. Ourselin, and M. J. Cardoso, "Brain imaging generation with latent diffusion models," in Deep Generative Models (DGM4MICCAI), Lecture Notes in Computer Science, vol. 13609, Cham, Switzerland: Springer, 2022, pp. 117-126, doi: 10.1007/978-3-031-18576-2_12.

A. Kazerouni, E. K. Aghdam, M. Heidari, R. Azad, M. Fayyaz, I. Hacihaliloglu, and D. Merhof, "Diffusion models in medical imaging: A comprehensive survey," Medical Image Analysis, vol. 88, Art. no. 102846, 2023, doi: 10.1016/j.media.2023.102846.

G. Müller-Franzes, J. M. Niehues, F. Khader, et al., "A multimodal comparison of latent denoising diffusion probabilistic models and generative adversarial networks for medical image synthesis," Scientific Reports, vol. 13, Art. no. 12098, 2023, doi: 10.1038/s41598-023-39278-0.

A. DuMont Schütte, J. Hetzel, S. Gatidis, T. Hepp, B. Dietz, S. Bauer, and P. Schwab, "Overcoming barriers to data sharing with medical image generation: A comprehensive evaluation," npj Digital Medicine, vol. 4, Art. no. 141, 2021, doi: 10.1038/s41746-021-00507-3.

Y. Chu, C. Yang, G. Luo, Z. Qiu, and X. Gao, "Anatomic-constrained medical image synthesis via physiological density sampling," in Medical Image Computing and Computer Assisted Intervention (MICCAI), Lecture Notes in Computer Science, vol. 15011, Cham, Switzerland: Springer, 2024, pp. 69-79, doi: 10.1007/978-3-031-72120-5_7.

M. Heusel, H. Ramsauer, T. Unterthiner, B. Nessler, and S. Hochreiter, "GANs trained by a two time-scale update rule converge to a local Nash equilibrium," in Proc. Adv. Neural Inf. Process. Syst. (NeurIPS), vol. 30, 2017, pp. 6626-6637.

Y. Skandarani, P.-M. Jodoin, and A. Lalande, "GANs for medical image synthesis: An empirical study," Journal of Imaging, vol. 9, no. 3, Art. no. 69, 2023, doi: 10.3390/jimaging9030069.

Y. Chen, X.-H. Yang, Z. Wei, A. A. Heidari, N. Zheng, Z. Li, H. Chen, H. Hu, Q. Zhou, and Q. Guan, "Generative adversarial networks in medical image augmentation: A review," Computers in Biology and Medicine, vol. 144, Art. no. 105382, 2022, doi: 10.1016/j.compbiomed.2022.105382.

X. Wang, Y. Peng, L. Lu, Z. Lu, M. Bagheri, and R. M. Summers, "ChestX-ray8: Hospital-scale chest X-ray database and benchmarks on weakly-supervised classification and localization of common thorax diseases," in Proc. IEEE Conf. Comput. Vis. Pattern Recognit. (CVPR), Honolulu, HI, USA, 2017, pp. 3462-3471, doi: 10.1109/CVPR.2017.369.

K. Yan, X. Wang, L. Lu, and R. M. Summers, "DeepLesion: Automated mining of large-scale lesion annotations and universal lesion detection with deep learning," Journal of Medical Imaging, vol. 5, no. 3, Art. no. 036501, 2018, doi: 10.1117/1.JMI.5.3.036501.

M. Adewole, J. D. Rudie, A. Gbadamosi, et al., "Brain tumor segmentation in Sub-Saharan Africa patient population: The BraTS-Africa challenge," Neuro-Oncology Advances, vol. 8, no. 1, Art. no. vdag082, 2026, doi: 10.1093/noajnl/vdag082.

S. G. Armato III, G. McLennan, L. Bidaut, et al., "The Lung Image Database Consortium (LIDC) and Image Database Resource Initiative (IDRI): A completed reference database of lung nodules on CT scans," Medical Physics, vol. 38, no. 2, pp. 915-931, 2011, doi: 10.1118/1.3528204.

K. Clark, B. Vendt, K. Smith, et al., "The Cancer Imaging Archive (TCIA): Maintaining and operating a public information repository," Journal of Digital Imaging, vol. 26, no. 6, pp. 1045-1057, 2013, doi: 10.1007/s10278-013-9622-7.

B. Dufumier, A. Grigis, J. Victor, C. Ambroise, V. Frouin, and E. Duchesnay, "OpenBHB: A large-scale multi-site brain MRI data-set for age prediction and debiasing," NeuroImage, vol. 263, Art. no. 119637, 2022, doi: 10.1016/j.neuroimage.2022.119637.

J. Yang, R. Shi, D. Wei, Z. Liu, L. Zhao, B. Ke, H. Pfister, and B. Ni, "MedMNIST v2: A large-scale lightweight benchmark for 2D and 3D biomedical image classification," Scientific Data, vol. 10, Art. no. 41, 2023, doi: 10.1038/s41597-022-01721-8.

X. Mei, Z. Liu, P. M. Robson, et al., "RadImageNet: An open radiologic deep learning research dataset for effective transfer learning," Radiology: Artificial Intelligence, vol. 4, no. 5, Art. no. e210315, 2022, doi: 10.1148/ryai.210315.

J. Irvin, P. Rajpurkar, M. Ko, et al., "CheXpert: A large chest radiograph dataset with uncertainty labels and expert comparison," in Proc. AAAI Conf. Artificial Intelligence, vol. 33, no. 1, 2019, pp. 590-597, doi: 10.1609/aaai.v33i01.3301590.

A. E. W. Johnson, T. J. Pollard, S. J. Berkowitz, N. R. Greenbaum, M. P. Lungren, C. Deng, R. G. Mark, and S. Horng, "MIMIC-CXR, a de-identified publicly available database of chest radiographs with free-text reports," Scientific Data, vol. 6, Art. no. 317, 2019, doi: 10.1038/s41597-019-0322-0.

A. Bustos, A. Pertusa, J.-M. Salinas, and M. de la Iglesia-Vaya, "PadChest: A large chest x-ray image dataset with multi-label annotated reports," Medical Image Analysis, vol. 66, Art. no. 101797, 2020, doi: 10.1016/j.media.2020.101797.

W. E. Johnson, C. Li, and A. Rabinovic, "Adjusting batch effects in microarray expression data using empirical Bayes methods," Biostatistics, vol. 8, no. 1, pp. 118-127, 2007, doi: 10.1093/biostatistics/kxj037.

J.-P. Fortin, N. Cullen, Y. I. Sheline, et al., "Harmonization of cortical thickness measurements across scanners and sites," NeuroImage, vol. 167, pp. 104-120, 2018, doi: 10.1016/j.neuroimage.2017.11.024.

R. Pomponio, G. Erus, M. Habes, et al., "Harmonization of large MRI datasets for the analysis of brain imaging patterns throughout the lifespan," NeuroImage, vol. 208, Art. no. 116450, 2020, doi: 10.1016/j.neuroimage.2019.116450.

N. K. Dinsdale, M. Jenkinson, and A. I. L. Namburete, "Deep learning-based unlearning of dataset bias for MRI harmonisation and confound removal," NeuroImage, vol. 228, Art. no. 117689, 2021, doi: 10.1016/j.neuroimage.2020.117689.

B. Glocker, R. Robinson, D. C. Castro, Q. Dou, and E. Konukoglu, "Machine learning with multi-site imaging data: An empirical study on the impact of scanner effects," arXiv:1910.04597, 2019, doi: 10.48550/arXiv.1910.04597.

F. Isensee, P. F. Jaeger, S. A. A. Kohl, J. Petersen, and K. H. Maier-Hein, "nnU-Net: A self-configuring method for deep learning-based biomedical image segmentation," Nature Methods, vol. 18, no. 2, pp. 203-211, 2021, doi: 10.1038/s41592-020-01008-z.

M. J. Cardoso, W. Li, R. Brown, et al., "MONAI: An open-source framework for deep learning in healthcare," arXiv:2211.02701, 2022, doi: 10.48550/arXiv.2211.02701.

F. Pérez-García, R. Sparks, and S. Ourselin, "TorchIO: A Python library for efficient loading, preprocessing, augmentation and patch-based sampling of medical images in deep learning," Computer Methods and Programs in Biomedicine, vol. 208, Art. no. 106236, 2021, doi: 10.1016/j.cmpb.2021.106236.

M. Roberts, D. Driggs, M. Thorpe, et al., "Common pitfalls and recommendations for using machine learning to detect and prognosticate for COVID-19 using chest radiographs and CT scans," Nature Machine Intelligence, vol. 3, pp. 199-217, 2021, doi: 10.1038/s42256-021-00307-0.

G. Varoquaux and V. Cheplygina, "Machine learning for medical imaging: Methodological failures and recommendations for the future," npj Digital Medicine, vol. 5, Art. no. 48, 2022, doi: 10.1038/s41746-022-00592-y.

S. Kaufman, S. Rosset, C. Perlich, and O. Stitelman, "Leakage in data mining: Formulation, detection, and avoidance," ACM Transactions on Knowledge Discovery from Data, vol. 6, no. 4, Art. no. 15, 2012, doi: 10.1145/2382577.2382579.

M. D. Wilkinson, M. Dumontier, I. J. Aalbersberg, et al., "The FAIR Guiding Principles for scientific data management and stewardship," Scientific Data, vol. 3, Art. no. 160018, 2016, doi: 10.1038/sdata.2016.18.

M. J. Willemink, W. A. Koszek, C. Hardell, J. Wu, D. Fleischmann, H. Harvey, L. R. Folio, R. M. Summers, D. L. Rubin, and M. P. Lungren, "Preparing medical imaging data for machine learning," Radiology, vol. 295, no. 1, pp. 4-15, 2020, doi: 10.1148/radiol.2020192224.

G. N. Hounsfield, "Computerized transverse axial scanning (tomography): Part 1. Description of system," British Journal of Radiology, vol. 46, no. 552, pp. 1016-1022, 1973, doi: 10.1259/0007-1285-46-552-1016.

W. D. Bidgood Jr., S. C. Horii, F. W. Prior, and D. E. Van Syckle, "Understanding and using DICOM, the data interchange standard for biomedical imaging," J. Am. Med. Inform. Assoc., vol. 4, no. 3, pp. 199-212, 1997, doi: 10.1136/jamia.1997.0040199.

R. C. Gonzalez and R. E. Woods, Digital Image Processing, 4th ed. New York, NY, USA: Pearson, 2018.

L. G. Nyúl and J. K. Udupa, "On standardizing the MR image intensity scale," Magnetic Resonance in Medicine, vol. 42, no. 6, pp. 1072-1081, 1999, doi: 10.1002/(SICI)1522-2594(199912)42:6<1072::AID-MRM11>3.0.CO;2-M.

D. Arthur and S. Vassilvitskii, "k-means++: The advantages of careful seeding," in Proc. 18th Annu. ACM-SIAM Symp. Discrete Algorithms (SODA), 2007, pp. 1027-1035.

S. P. Lloyd, "Least squares quantization in PCM," IEEE Transactions on Information Theory, vol. 28, no. 2, pp. 129-137, 1982, doi: 10.1109/TIT.1982.1056489.

J. Aitchison, The Statistical Analysis of Compositional Data. London, U.K.: Chapman and Hall, 1986.

R. Penrose, "A generalized inverse for matrices," Mathematical Proceedings of the Cambridge Philosophical Society, vol. 51, no. 3, pp. 406-413, 1955, doi: 10.1017/S0305004100030401.

J. J. Egozcue, V. Pawlowsky-Glahn, G. Mateu-Figueras, and C. Barceló-Vidal, "Isometric logratio transformations for compositional data analysis," Mathematical Geology, vol. 35, no. 3, pp. 279-300, 2003, doi: 10.1023/A:1023818214614.

B. Efron, "Bootstrap methods: Another look at the jackknife," The Annals of Statistics, vol. 7, no. 1, pp. 1-26, 1979, doi: 10.1214/aos/1176344552.

B. Efron and R. J. Tibshirani, An Introduction to the Bootstrap. New York, NY, USA: Chapman and Hall, 1993.

L. Hubert and P. Arabie, "Comparing partitions," Journal of Classification, vol. 2, no. 1, pp. 193-218, 1985, doi: 10.1007/BF01908075.

P. J. Rousseeuw, "Silhouettes: A graphical aid to the interpretation and validation of cluster analysis," Journal of Computational and Applied Mathematics, vol. 20, pp. 53-65, 1987, doi: 10.1016/0377-0427(87)90125-7.

T. Caliński and J. Harabasz, "A dendrite method for cluster analysis," Communications in Statistics, vol. 3, no. 1, pp. 1-27, 1974, doi: 10.1080/03610927408827101.

D. L. Davies and D. W. Bouldin, "A cluster separation measure," IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. PAMI-1, no. 2, pp. 224-227, 1979, doi: 10.1109/TPAMI.1979.4766909.

C. E. Shannon, "A mathematical theory of communication," Bell System Technical Journal, vol. 27, no. 3, pp. 379-423, 1948, doi: 10.1002/j.1538-7305.1948.tb01338.x.

Z. Wang, A. C. Bovik, H. R. Sheikh, and E. P. Simoncelli, "Image quality assessment: From error visibility to structural similarity," IEEE Transactions on Image Processing, vol. 13, no. 4, pp. 600-612, 2004, doi: 10.1109/TIP.2003.819861.

D. Mason, "SU-E-T-33: Pydicom: An open source DICOM library," Medical Physics, vol. 38, no. 6, p. 3493, 2011, doi: 10.1118/1.3611983.

F. Pedregosa, G. Varoquaux, A. Gramfort, et al., "Scikit-learn: Machine learning in Python," Journal of Machine Learning Research, vol. 12, pp. 2825-2830, 2011. [Online]. Available: https://jmlr.org/papers/v12/pedregosa11a.html

V. Bedei, M. Ostrovskyy, N. Dey, T. Kotyk, and R. S. Sherratt, "Radiomics dataset from chest CT of clinically healthy adults," Data in Brief, vol. 65, Art. no. 112556, 2026, doi: 10.1016/j.dib.2026.112556.

S. Laharraf and K. Addakiri, "Harmonized multi-modal medical imaging train/validation/test corpus and healthy-tissue reference statistics (chest X-ray, CT, brain MRI)," Mendeley Data, ver. 3, 2026, doi: 10.17632/6m4kb3vffg.3.

Published
2026-11-27
How to Cite
[1]
S. Laharraf and K. Addakiri, “A Multi-Source Harmonization Pipeline for Chest X-ray, Computed Tomography, and Brain MRI to Construct a Plausibility-Constrained Training Corpus for Medical Image Synthesis”, j.electron.electromedical.eng.med.inform, vol. 9, no. 1, pp. 156-180, Nov. 2026.
Section
Medical Informatics