Open Access iconOpen Access

ARTICLE

CAWASeg: Class Activation Graph Driven Adaptive Weight Adjustment for Semantic Segmentation

Hailong Wang1, Minglei Duan2, Lu Yao3, Hao Li1,*

1 School of Information Science and Engineering, Yunnan University, Kunming, 650500, China
2 Yunnan Communications Investment and Construction Group Co., Ltd., Kunming, 650103, China
3 Clinical Skills Center, Kunming Medical University, Kunming, 650103, China

* Corresponding Author: Hao Li. Email: email

Computers, Materials & Continua 2026, 86(3), 43 https://doi.org/10.32604/cmc.2025.072942

Abstract

In image analysis, high-precision semantic segmentation predominantly relies on supervised learning. Despite significant advancements driven by deep learning techniques, challenges such as class imbalance and dynamic performance evaluation persist. Traditional weighting methods, often based on pre-statistical class counting, tend to overemphasize certain classes while neglecting others, particularly rare sample categories. Approaches like focal loss and other rare-sample segmentation techniques introduce multiple hyperparameters that require manual tuning, leading to increased experimental costs due to their instability. This paper proposes a novel CAWASeg framework to address these limitations. Our approach leverages Grad-CAM technology to generate class activation maps, identifying key feature regions that the model focuses on during decision-making. We introduce a Comprehensive Segmentation Performance Score (CSPS) to dynamically evaluate model performance by converting these activation maps into pseudo mask and comparing them with Ground Truth. Additionally, we design two adaptive weights for each class: a Basic Weight (BW) and a Ratio Weight (RW), which the model adjusts during training based on real-time feedback. Extensive experiments on the COCO-Stuff, CityScapes, and ADE20k datasets demonstrate that our CAWASeg framework significantly improves segmentation performance for rare sample categories while enhancing overall segmentation accuracy. The proposed method offers a robust and efficient solution for addressing class imbalance in semantic segmentation tasks.

Keywords

Semantic segmentation; class activation graph; adaptive weight adjustment; pseudo mask

Cite This Article

APA Style
Wang, H., Duan, M., Yao, L., Li, H. (2026). CAWASeg: Class Activation Graph Driven Adaptive Weight Adjustment for Semantic Segmentation. Computers, Materials & Continua, 86(3), 43. https://doi.org/10.32604/cmc.2025.072942
Vancouver Style
Wang H, Duan M, Yao L, Li H. CAWASeg: Class Activation Graph Driven Adaptive Weight Adjustment for Semantic Segmentation. Comput Mater Contin. 2026;86(3):43. https://doi.org/10.32604/cmc.2025.072942
IEEE Style
H. Wang, M. Duan, L. Yao, and H. Li, “CAWASeg: Class Activation Graph Driven Adaptive Weight Adjustment for Semantic Segmentation,” Comput. Mater. Contin., vol. 86, no. 3, pp. 43, 2026. https://doi.org/10.32604/cmc.2025.072942



cc Copyright © 2026 The Author(s). Published by Tech Science Press.
This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
  • 511

    View

  • 137

    Download

  • 0

    Like

Share Link