A context aware multiclass loss function for semantic segmentation with a focus on intricate areas and class imbalances

Image segmentation models play an important role in many machine vision systems by providing a more interpretable representation of images to computers. The accuracy of these models is vital, as it can directly impact the overall performance of the systems. Therefore, making any progress in this component would be very critical. To improve this aspect, we have developed a new loss function, named SPix-WCE, to boost the performance of deep neural networks in image segmentation tasks. Our primary goal is to address imbalances in image datasets by identifying complicated areas in the images and bringing them more into focus during the model training process. This was achieved by utilizing the SLIC algorithm and analyzing each superpixel to detect key regions in images, followed by implementing a weighting scheme to control the influence of each area in the loss calculation. Subsequently, we carried out a series of experiments to validate our approach. These experiments involved three different models and four multiclass datasets with various degrees of imbalance. The models were trained and tested using the proposed loss function as well as other commonly used ones. The outcomes of our experiments demonstrate that using SPix-based losses led to better results in terms of IoU, F1-Score, and pixel accuracy metrics compared to other methods.

Authors

Institutions

Publication Details

Journal
Scientific Reports
Published
2025-07-19
DOI
https://doi.org/10.1038/s41598-025-08234-5
Citations
1
Primary Topic
Advanced Neural Network Applications
Type
article
Field-Weighted Citation Impact
1.28
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A context aware multiclass loss function for semantic segmentation with a focus on intricate areas and class imbalances

Modjtaba Rouhani, Zahra Ghanaei
1 citations
Scientific Reports
Advanced Neural Network Applications
1.28
article

A context aware multiclass loss function for semantic segmentation with a focus on intricate areas and class imbalances

Modjtaba Rouhani, Zahra Ghanaei
article en
1 citations

Abstract

Image segmentation models play an important role in many machine vision systems by providing a more interpretable representation of images to computers. The accuracy of these models is vital, as it can directly impact the overall performance of the systems. Therefore, making any progress in this component would be very critical. To improve this aspect, we have developed a new loss function, named SPix-WCE, to boost the performance of deep neural networks in image segmentation tasks. Our primary goal is to address imbalances in image datasets by identifying complicated areas in the images and bringing them more into focus during the model training process. This was achieved by utilizing the SLIC algorithm and analyzing each superpixel to detect key regions in images, followed by implementing a weighting scheme to control the influence of each area in the loss calculation. Subsequently, we carried out a series of experiments to validate our approach. These experiments involved three different models and four multiclass datasets with various degrees of imbalance. The models were trained and tested using the proposed loss function as well as other commonly used ones. The outcomes of our experiments demonstrate that using SPix-based losses led to better results in terms of IoU, F1-Score, and pixel accuracy metrics compared to other methods.

Scientific ReportsVol. 15(1)
Ferdowsi University of Mashhad (IR)
Openalex Percentile: Top 18%
Advanced Neural Network Applications
1.28
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

A context aware multiclass loss function for semantic segmentation with a focus on intricate areas and class imbalances — Modjtaba Rouhani, Zahra Ghanaei · Scientific Reports (2025) | TGRS Research Map | TGRS