Skip to content
Open access

Comparative Analysis of Loss Functions for Semantic Segmentation: An Empirical Study on Cityscapes Dataset

2026 · Journal of Image and Graphics · pp. 444-453 · 0 citations · 23 references

TL;DR

The findings conclusively demonstrate that optimized combined loss function weighting achieves better segmentation performance than both individual approaches and naive equal weighting strategies, with consistent improvements across different network architectures.

Abstract

— Semantic segmentation remains a fundamental challenge in computer vision, where the choice and weighting of loss functions significantly impact model performance. This study presents a comprehensive comparative analysis of individual versus combined loss functions with systematic weight ablation for semantic segmentation using modified Attention U-Net and DeepLabV3+ architectures on the Cityscapes dataset. We systematically evaluate seven weight configurations across three loss components (Cross-Entropy, Dice, Focal) through rigorous ablation studies, and validate our findings across two architectures to ensure generalizability. Through extensive experimentation across 20 epochs with 2,975 training and 500 validation images, our results demonstrate that the Dice-dominant weighting configuration (0.5:1.0:0.5 for CE:Dice:Focal) achieves superior performance with 57.83% mean Intersection over Union (mIoU) on Attention U-Net and 58.35% mIoU on DeepLabV3+, representing 7.78% improvement over the best individual loss function. Comprehensive ablation studies reveal that weight configuration critically affects performance, with Dice-dominant weighting consistently outperforming equal weighting (55.59% mIoU) and individual loss functions. Qualitative analysis demonstrates substantial improvements in boundary delineation and small object detection, with boundary IoU improving by 1.41% and challenging class performance (trucks, pedestrians) improving by 5 – 21%. Statistical analysis reveals that Cross-Entropy provides the most efficient training with a 75.4% loss reduction, while Dice loss exhibits convergence challenges, resulting in only a 34.5% reduction. Our findings conclusively demonstrate that optimized combined loss function weighting achieves better segmentation performance than both individual approaches and naive equal weighting strategies, with consistent improvements across different network architectures.

Read PDF

Similar papers

Aug 2026

Study Comparison of Semantic Segmentation for RGB-D Borobudur Temple Bas-Relief Images

Cultural heritage preservation increasingly relies on AI-driven semantic segmentation to document and analyze intricately carved stone reliefs. This paper is the first to do a systematic benchmarking study of five deep CNN architectures: DeepLabV3+, PSPNet, SegNet, DenseUNet, and U-Net. We changed these architectures s...

Lukman Awaludin, A. Harjoko, N. Wirasanti et al. · 0 citations
Open access Aug 2026

CMAE-Unet: A Study on a U-Net-Based Model for Semantic Segmentation of Unripe Tomato Images

This work proposes CMAE-UNet, a camouflage suppression and edge enhancement model based on the UNet architecture that robustly withstands field interference, providing strong technological support for automated tomato detection, intelligent harvesting, and growth monitoring.

Jian-Hua Zheng, Huang-Hui Zhao, Xiaoshan Ma et al. · 0 citations
Open access Aug 2026

Boundary Cues for Improved 3D Semantic Segmentation

A lightweight boundary-aware learning framework that explicitly models boundary regions during training is proposed, showing that incorporating boundary-aware supervision provides an effective and efficient approach to improving segmentation quality in challenging regions.

Waseem Iqbal, J. Paffenholz · 0 citations
Preprint Aug 2026

nnMNet: Baseline for Martian Terrain Semantic Segmentation

nnMNet is presented, a new baseline model designed for Martian terrain semantic segmentation that integrates linear attention to better capture global context and employ lightweight convolutions to reduce computational overhead and establish a new benchmark.

Ming-Han Lee, Chi-Yeh Chen · 0 citations
Preprint Aug 2026

Difficulty-Aware Sample Allocation for Adaptive Data Augmentation in Semantic Segmentation

Data augmentation is a standard component of modern semantic segmentation pipelines, but most augmentation techniques allocate transformations uniformly across training samples or adapt to a single difficulty signal such as loss. This ignores the fact that segmentation difficulty is multi-factorial, since ambiguous pre...

O. Arigbabu, Abimbola Ismail Arigbabu · 0 citations
Review

Computer Vision and Image Understanding

This survey provides a comprehensive evaluation of various deep learning-based segmentation architectures, covering a wide range of models, from traditional ones like FCN and PSPNet to more modern approaches like SegFormer and FAN, and proposes to evaluate the methods in terms of temporal consistency and corruption vul...

Ronny Velastegui, Maxim Tatarchenko, Sezer Karaoglu et al. · 0 citations

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.