Loading article...
Loading article...
Stream/Area:
-
Subject:
-
Paper ID:
IJSREM63949
Volume:
10 |
5 |
May 2026
Pages:
1-9
Publication Frequency:
Monthly (12 issues per year)
License:International Journal of Scientific Research in Engineering and Management follows the Creative Commons Attribution 4.0 (CC BY 4.0) License, allowing free use and distribution with proper attribution.

department of computer science
The Northcap University
department of computer science
The Northcap University
department of computer science
The Northcap University
department of computer science
The Northcap University
department of computer science
The Northcap University
This project started from a frustration. Brain MRI datasets that are actually usable for training are small, the class distribution is uneven, and getting more data is constrained by patient privacy on top of everything else. So we built NeuroGen, which tries to chip away at the data problem from one side — by generating new MRI samples that look real enough to be useful. The underlying model is WGAN-GP. We trained four of them, one per tumour class (Glioma, Meningioma, Pituitary Tumour, No Tumour), on the public BrainMRI GAN dataset from Kaggle. Output resolution is 128×128, grayscale. There is one detour worth flagging upfront — at some point during multi-class training the second, third and fourth class were just producing gray static. After a fair amount of head-scratching the cause turned out to be a @tf.function graph caching subtlety, and we describe the diagnosis and the fix (a class-wrapped trainer) in Section V-B. Checkpoint selection was, in the end, manual. We did not have a clean automated metric we trusted, so we ran each class for 500 epochs and visually inspected the saved grids. The generated MRIs at the picked epochs do show class-appropriate morphology — infiltrative shapes for glioma, peripheral masses for meningioma, and so on. To make any of this usable for people without a GPU, the system is wrapped in a small React + FastAPI app. Three contributions, then: a stable WGAN-GP pipeline at multi-class scale, the @tf.function bug write-up, and an end-to-end synthetic-MRI generator that runs in a browser.
KEYWORDS
This paper has presented NeuroGen, a WGAN-GP-based system for synthetic Brain MRI generation. Looking back at the work, the four pieces we would call out as concrete outputs are these. There is a training pipeline that produces stable convergence across all four diagnostic classes at 128×128 resolution, with anatomically plausible samples at the selected checkpoints. There is the @tf.function graph caching defect — silently corrupting any sequential multi-model TensorFlow training pipeline — which we identified, diagnosed in detail, and fixed using a class-encapsulated trainer. There is the manual visual checkpoint selection methodology, which we applied uniformly across 500 epochs per class with explicit visual criteria. And finally there is the deployed web application, which puts on-demand synthetic MRI generation behind a one-click interface for users without GPU access. The samples our models produce show the morphological signatures we would want for each diagnostic class — infiltrative texture for Glioma, peripheral masses for Meningioma, skull-base specificity for Pituitary — without mode collapse at the picked checkpoints. Of these four contributions, our suspicion is that the @tf.function failure mode is the most broadly portable. It is not a WGAN-GP issue specifically, nor a medical imaging issue. The same trap will catch any TensorFlow project that sequentially trains multiple independent models using module-scope decorated step functions, regardless of the application domain.
[1] Litjens, G., et al. (2017). A survey on deep learning in medical image analysis. Medical Image Analysis, 42, 60–88. [2] Ronneberger, O., Fischer, P., & Brox, T. (2015). U-Net: Convolutional networks for biomedical image segmentation. MICCAI. [3] Shen, D., Wu, G., & Suk, H. I. (2017). Deep learning in medical image analysis. Annual Review of Biomedical Engineering, 19, 221–248. [4] Cheng, J. (2015). Brain tumour dataset. Figshare. doi:10.6084/m9.figshare.1512427.v5. [5] Goodfellow, I., Pouget-Abadie, J., Mirza, M., et al. (2014). Generative adversarial nets. Advances in Neural Information Processing Systems (NeurIPS), 27, 2672–2680. [6] Arjovsky, M., Chintala, S., & Bottou, L. (2017). Wasserstein GAN. Proceedings of the 34th International Conference on Machine Learning (ICML). [7] Gulrajani, I., Ahmed, F., Arjovsky, M., Dumoulin, V., & Courville, A. (2017). Improved training of Wasserstein GANs. Advances in Neural Information Processing Systems (NeurIPS), 30. [8] Radford, A., Metz, L., & Chintala, S. (2016). Unsupervised representation learning with deep convolutional generative adversarial networks. ICLR. [9] Frid-Adar, M., Klang, E., Amitai, M., Goldberger, J., & Greenspan, H. (2018). Synthetic data augmentation using GAN for improved liver lesion classification. IEEE Transactions on Medical Imaging. [10] Nie, D., Gou, M., Mao, Y., & Shen, D. (2018). Medical image synthesis with context aware generative adversarial networks. MICCAI.
Publication Date
5/25/2026
Peer Review Type
Double-Blind Peer Review
Review Rounds: 2
Documents
Article Views
0
Total views since publication
PDF Downloads
3
Total downloads since publication
Geographic Reach
5
Digital Preservation: This article is permanently archived on Zenodo and complies with all data preservation standards across major indexing platforms.
Plagiarism Screening
This manuscript has been checked for plagiarism using TurnitinPlagiarismChecker software.
Conflict of Interest
The authors declare no conflict of interest related to this research work.
Funding Information
No funding information available for this research.
Related research in the same subject area
Loading similar articles...