» Articles » PMID: 34156941

LayerCAM: Exploring Hierarchical Class Activation Maps for Localization

Overview
Date 2021 Jun 22
PMID 34156941
Citations 38
Authors
Affiliations
Soon will be listed here.
Abstract

The class activation maps are generated from the final convolutional layer of CNN. They can highlight discriminative object regions for the class of interest. These discovered object regions have been widely used for weakly-supervised tasks. However, due to the small spatial resolution of the final convolutional layer, such class activation maps often locate coarse regions of the target objects, limiting the performance of weakly-supervised tasks that need pixel-accurate object locations. Thus, we aim to generate more fine-grained object localization information from the class activation maps to locate the target objects more accurately. In this paper, by rethinking the relationships between the feature maps and their corresponding gradients, we propose a simple yet effective method, called LayerCAM. It can produce reliable class activation maps for different layers of CNN. This property enables us to collect object localization information from coarse (rough spatial localization) to fine (precise fine-grained details) levels. We further integrate them into a high-quality class activation map, where the object-related pixels can be better highlighted. To evaluate the quality of the class activation maps produced by LayerCAM, we apply them to weakly-supervised object localization and semantic segmentation. Experiments demonstrate that the class activation maps generated by our method are more effective and reliable than those by the existing attention methods. The code will be made publicly available.

Citing Articles

LeafDNet: Transforming Leaf Disease Diagnosis Through Deep Transfer Learning.

Sultan T, Chowdhury M, Jahan N, Mridha M, Alfarhood S, Safran M Plant Direct. 2025; 9(2):e70047.

PMID: 39943923 PMC: 11815709. DOI: 10.1002/pld3.70047.


LEHP-DETR: A model with backbone improved and hybrid encoding innovated for flax capsule detection.

Wang C, Han J, Liu C, Zhang J, Qi Y iScience. 2025; 28(1):111558.

PMID: 39877068 PMC: 11773470. DOI: 10.1016/j.isci.2024.111558.


Biomarker Investigation Using Multiple Brain Measures from MRI Through Explainable Artificial Intelligence in Alzheimer's Disease Classification.

Coluzzi D, Bordin V, Rivolta M, Fortel I, Zhan L, Leow A Bioengineering (Basel). 2025; 12(1).

PMID: 39851356 PMC: 11763248. DOI: 10.3390/bioengineering12010082.


Investigating the key principles in two-step heterogeneous transfer learning for early laryngeal cancer identification.

Fang X, Chong C, Wong K, Simoes M, Ng B Sci Rep. 2025; 15(1):2146.

PMID: 39820368 PMC: 11739633. DOI: 10.1038/s41598-024-84836-9.


A lightweight rice pest detection algorithm based on improved YOLOv8.

Zheng Y, Zheng W, Du X Sci Rep. 2024; 14(1):29888.

PMID: 39623058 PMC: 11612280. DOI: 10.1038/s41598-024-81587-5.