SeGANmentation: Segmentation via GAN-Based Image-to-Image Translation
Abstract
This research explores the potential of state-of-the-art Generative Adversarial Networks (GANs) for segmentation through image-to-image (I2I) translation. The presented model, seGANmentation, combines convolutional neural networks and vision transformers to generate segmentation labels directly from input images. It aims to reduce manual labeling and enhance segmentation performance using synthetic data. Comparative analysis with U-Net as a benchmark in segmentation, shows U-Net achieving an average of 0.99 in accuracy, Dice Coefficient, and Intersection over Union, while seGANmentation scores 0.90, 0.83, and 0.71, respectively. Although it did not outperform U-Net, it highlights the potential for GAN-based segmentation. This work lays the foundation for employing GANs in this novel approach. This paper's proposed framework could be valuable in data-scarce scenarios, enhance task accuracy with synthetic data augmentation, reduce the need for extensive training pairs by refining GAN-generated labels with off-the-shelf segmentors, and achieve unsupervised segmentation, unlike traditional neural networks. These hypotheses remain to be tested in future studies.
Keywords
Generative Adversarial Network (GAN), Vision Transformer (ViT), Image Segmentation, Image-to-Image (I2I) Translation, Synthetic Data Augmentation, Data ScarcityReferences
[1] Z. Wang, Q. She, and T. E. Ward, "Generative adversarial networks in computer vision: A survey and taxonomy," ACM Computing Surveys (CSUR), vol. 54, no. 2, pp. 1-38, 2021. [Online]. Available: https://doi.org/10.1145/3439723
https://doi.org/10.1145/3439723
[2] A. Dosovitskiy, L. Beyer, A. Kolesnikov, D. Weissenborn, X. Zhai, T. Unterthiner, M. Dehghani, M. Minderer, G. Heigold, S. Gelly, J. Uszkoreit, and N. Houlsby, "An image is worth 16x16 words: Transformers for image recognition at scale," in International Conference on Learning Representations (ICLR), 2021. [Online]. Available: https://doi.org/10.48550/arXiv.2010.11929
[3] F.-A. Croitoru, V. Hondru, R. T. Ionescu, and M. Shah, "Diffusion models in vision: A survey," IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 45, no. 9, pp. 10 850-10 869, 2023. [Online]. Available: https://doi.org/10.1109/TPAMI.2023.3261988
https://doi.org/10.1109/TPAMI.2023.3261988
[4] V. Badrinarayanan, A. Kendall, and R. Cipolla, "SegNet: A deep convolutional encoder-decoder architecture for image segmentation," IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 39, no. 12, pp. 2481-2495, 2017. [Online]. Available: https://doi.org/10.1109/TPAMI.2016.2644615
https://doi.org/10.1109/TPAMI.2016.2644615
[5] J. Long, E. Shelhamer, and T. Darrell, "Fully convolutional networks for semantic segmentation," in Proceedings of the IEEE conference on computer vision and pattern recognition (CVPR), 2015, pp. 3431-3440. [Online]. Available: https://doi.org/10.1109/CVPR.2015.7298965
https://doi.org/10.1109/CVPR.2015.7298965
[6] K. He, G. Gkioxari, P. Dollar, and R. Girshick, "Mask R-CNN," in ' 2017 IEEE International Conference on Computer Vision (ICCV), 2017, pp. 2980-2988. [Online]. Available: https: //doi.org/10.1109/TPAMI.2018.2844175
https://doi.org/10.1109/ICCV.2017.322
[7] I. Ulku and E. Akagund ¨ uz, "A survey on deep learning-based architectures for semantic segmentation ¨ on 2D images," Applied Artificial Intelligence, vol. 36, no. 1, 2022. [Online]. Available: https://doi.org/10.1080/08839514.2022.2032924
https://doi.org/10.1080/08839514.2022.2032924
[8] Y. Ouali, C. Hudelot, and M. Tami, "Semi-supervised semantic segmentation with cross-consistency training," in 2020 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2020, pp. 12 671-12 681. [Online]. Available: https://doi.org/10.1109/CVPR42600.2020.01269
https://doi.org/10.1109/CVPR42600.2020.01269
[9] P. Luc, C. Couprie, S. Chintala, and J. Verbeek, "Semantic segmentation using adversarial networks," ArXiv, vol. abs/1611.08408, 2016. [Online]. Available: https://doi.org/10.48550/arXiv.1611.08408 M. Berijanian et al. / Electronic Letters on Computer Vision and Image Analysis 25(2):22-44, 2026 41
[10] W.-C. Hung, Y.-H. Tsai, Y.-T. Liou, Y.-Y. Lin, and M.-H. Yang, "Adversarial learning for semi-supervised semantic segmentation," 2018. [Online]. Available: https://doi.org/10.48550/arXiv.1802.07934
[11] M. Gadermayr, V. Appel, B. M. Klinkhammer, P. Boor, and D. Merhof, "Which way round? a study on the performance of stain-translation for segmenting arbitrarily dyed histological images," in Medical Image Computing and Computer Assisted Intervention (MICCAI), 2018, pp. 165-173. [Online]. Available: https://doi.org/10.1007/978-3-030-00934-2 19
https://doi.org/10.1007/978-3-030-00934-2
[12] M. Gadermayr, L. Gupta, B. M. Klinkhammer, P. Boor, and D. Merhof, "Unsupervisedly training GANs for segmenting digital pathology with automatically generated annotations," in Proceedings of The 2nd International Conference on Medical Imaging with Deep Learning, ser. Proceedings of Machine Learning Research, vol. 102, July 2019, pp. 175-184. [Online]. Available: https://doi.org/10.48550/arXiv.1805.10059
[13] P. Isola, J.-Y. Zhu, T. Zhou, and A. A. Efros, "Image-to-image translation with conditional adversarial networks," in Proceedings of the IEEE conference on computer vision and pattern recognition, 2017, pp. 1125-1134. [Online]. Available: https://doi.org/10.1109/CVPR.2017.632
https://doi.org/10.1109/CVPR.2017.632
[14] Y. Xue, T. Xu, H. Zhang, L. R. Long, and X. Huang, "Segan: Adversarial network with multi-scale l 1 loss for medical image segmentation," Neuroinformatics, vol. 16, pp. 383-392, 2018. [Online]. Available: https://doi.org/10.1007/s12021-018-9377-x
https://doi.org/10.1007/s12021-018-9377-x
[15] J. Chen, J. Mei, X. Li, Y. Lu, Q. Yu, Q. Wei, X. Luo, Y. Xie, E. Adeli, Y. Wang, M. P. Lungren, S. Zhang, L. Xing, L. Lu, A. Yuille, and Y. Zhou, "TransUNet: Rethinking the u-net architecture design for medical image segmentation through the lens of transformers," Medical Image Analysis, vol. 97, p. 103280, 2024. [Online]. Available: https://doi.org/10.1016/j.media.2024.103280
https://doi.org/10.1016/j.media.2024.103280
[16] Y. Zhang, H. Ling, J. Gao, K. Yin, J.-F. Lafleche, A. Barriuso, A. Torralba, and S. Fidler, "DatasetGAN: Efficient Labeled Data Factory with Minimal Human Effort," in 2021 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). Los Alamitos, CA, USA: IEEE Computer Society, Jun. 2021, pp. 10 140-10 150. [Online]. Available: https://doi.org/10.1109/CVPR46437.2021.01001
https://doi.org/10.1109/CVPR46437.2021.01001
[17] A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, L. Kaiser, and I. Polosukhin, "Attention is all you need," in Neural Information Processing Systems, 2017. [Online]. Available: https://doi.org/10.48550/arXiv.1706.03762
[18] D. Torbunov, Y. Huang, H.-H. Tseng, H. Yu, J. Huang, S. Yoo, M. Lin, B. Viren, and Y. Ren, "UVCGAN v2: An improved cycle-consistent GAN for unpaired image-to-image translation," arXiv preprint arXiv:2303.16280, 2023. [Online]. Available: https://doi.org/10.48550/arXiv.2303.16280
https://doi.org/10.1109/WACV56688.2023.00077
[19] O. Ronneberger, P. Fischer, and T. Brox, "U-Net: Convolutional networks for biomedical image segmentation," in Medical image computing and computer-assisted intervention (MICCAI), 2015, pp. 234-241. [Online]. Available: https://doi.org/10.1007/978-3-319-24574-4 28r
https://doi.org/10.1007/978-3-319-24574-4
[20] L.-C. Chen, Y. Zhu, G. Papandreou, F. Schroff, and H. Adam, "Encoder-decoder with atrous separable convolution for semantic image segmentation," in Proceedings of the European conference on computer vision (ECCV), 2018, pp. 801-818. [Online]. Available: https://doi.org/10.1007/978-3-030-01234-2 49
https://doi.org/10.1007/978-3-030-01234-2
[21] A. Chaurasia and E. Culurciello, "Linknet: Exploiting encoder representations for efficient semantic segmentation," in 2017 IEEE visual communications and image processing (VCIP). IEEE, 2017, pp. 1-4. [Online]. Available: https://doi.org/10.1109/VCIP.2017.8305148 42 M. Berijanian et al. / Electronic Letters on Computer Vision and Image Analysis 25(2):22-44, 2026
https://doi.org/10.1109/VCIP.2017.8305148
[22] E. Xie, W. Wang, Z. Yu, A. Anandkumar, J. M. Alvarez, and P. Luo, "Segformer: Simple and efficient design for semantic segmentation with transformers," Advances in neural information processing systems, vol. 34, pp. 12 077-12 090, 2021. [Online]. Available: https://doi.org/10.48550/arXiv.2105.15203
[23] J.-Y. Zhu, T. Park, P. Isola, and A. A. Efros, "Unpaired image-to-image translation using cycle-consistent adversarial networks," in 2017 IEEE International Conference on Computer Vision (ICCV), 2017, pp. 2242-2251. [Online]. Available: https://doi.org/10.1109/ICCV.2017.244
https://doi.org/10.1109/ICCV.2017.244
[24] M. Berijanian, N. S. Schaadt, B. Huang, J. Lotz, F. Feuerhake, and D. Merhof, "Unsupervised many-tomany stain translation for histological image augmentation to improve classification accuracy," Journal of pathology informatics, vol. 14, 2023. [Online]. Available: https://doi.org/10.1016/j.jpi.2023.100195
https://doi.org/10.1016/j.jpi.2023.100195
[25] D. Torbunov, Y. Huang, H. Yu, J. Huang, S. Yoo, M. Lin, B. Viren, and Y. Ren, "UVCGAN: UNet vision transformer cycle-consistent GAN for unpaired image-to-image translation," in IEEE/CVF Winter Conference on Applications of Computer Vision (WACV), 2023, pp. 702-712. [Online]. Available: https://doi.org/10.1109/WACV56688.2023.00077
https://doi.org/10.1109/WACV56688.2023.00077
[26] M.-Y. Liu, T. Breuel, and J. Kautz, "Unsupervised image-to-image translation networks," Advances in neural information processing systems, vol. 30, 2017. [Online]. Available: https: //doi.org/10.48550/arXiv.1703.00848
[27] X. Huang, M.-Y. Liu, S. Belongie, and J. Kautz, "Multimodal unsupervised image-to-image translation," in Proceedings of the European conference on computer vision (ECCV), 2018, pp. 172-189. [Online]. Available: https://doi.org/10.1007/978-3-030-01219-9 11
https://doi.org/10.1007/978-3-030-01219-9
[28] L.-C. Chen, G. Papandreou, I. Kokkinos, K. Murphy, and A. L. Yuille, "Deeplab: Semantic image segmentation with deep convolutional nets, atrous convolution, and fully connected crfs," IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 40, no. 4, pp. 834-848, 2018. [Online]. Available: https://doi.org/10.1109/TPAMI.2017.2699184
https://doi.org/10.1109/TPAMI.2017.2699184
[29] J. Devlin, M.-W. Chang, K. Lee, and K. Toutanova, "BERT: Pre-training of deep bidirectional transformers for language understanding," in Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, June 2019, pp. 4171-4186. [Online]. Available: https://doi.org/10.18653/v1/N19-1423
https://doi.org/10.18653/v1/N19-1423
[30] K. He, X. Zhang, S. Ren, and J. Sun, "Deep residual learning for image recognition," in Proceedings of the IEEE conference on computer vision and pattern recognition, 2016, pp. 770-778. [Online]. Available: https://doi.org/10.1109/CVPR.2016.90
https://doi.org/10.1109/CVPR.2016.90
[31] M. Cordts, M. Omran, S. Ramos, T. Rehfeld, M. Enzweiler, R. Benenson, U. Franke, S. Roth, and B. Schiele, "The cityscapes dataset for semantic urban scene understanding," in 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016, pp. 3213-3223. [Online]. Available: https://doi.org/10.1109/CVPR.2016.350
https://doi.org/10.1109/CVPR.2016.350
[32] B. H. Menze, A. Jakab, S. Bauer et al., "The multimodal brain tumor image segmentation benchmark (BRATS)," IEEE Transactions on Medical Imaging, vol. 34, pp. 1993-2024, 2015. [Online]. Available: https://doi.org/10.1109/TMI.2014.2377694
https://doi.org/10.1109/TMI.2014.2377694
[33] J. Kim, M. Kim, H. Kang, and K. H. Lee, "U-GAT-IT: Unsupervised generative attentional networks with adaptive layer-instance normalization for image-to-image translation," in International Conference on Learning Representations (ICLR), ser. NIPS'17. Red Hook, NY, USA: Curran Associates Inc., 2020, p. 6000-6010. [Online]. Available: https://doi.org/10.48550/arXiv.1907.10830 M. Berijanian et al. / Electronic Letters on Computer Vision and Image Analysis 25(2):22-44, 2026 43
[34] T. Karras, T. Aila, S. Laine, and J. Lehtinen, "Progressive growing of GANs for improved quality, stability, and variation," in International Conference on Learning Representations (ICLR), 2018. [Online]. Available: https://doi.org/10.48550/arXiv.1710.10196
[35] Y. Choi, Y. Uh, J. Yoo, and J.-W. Ha, "StarGAN v2: Diverse image synthesis for multiple domains," in Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), June 2020. [Online]. Available: https://doi.org/10.1109/CVPR42600.2020.00821
Published
How to Cite
Downloads
Copyright (c) 2026 Maryam Berijanian, Abdi Kusata, Max Fahrenkrug, Amin Sehati, Dirk Colbry

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.