arXiv:2609.04791cs.CVSep 2026

Manuscript Offprint

arXiv:2609.04791

An Attention-Guided Global and Local Fusion Framework for Lesion-Focused Image Classification

Mst Shafia Tasnima, Md Samaun Elaheea, Tanjim Taharat Aurpab, Md Musfique Anwar

Abstract

Lesion-focused image classification presents a core analytical challenge, as discriminative signals are often sparse, spatially dispersed, and easily obscured by background noise, while conventional convolutional neural networks (CNNs) process entire images uniformly and may dilute signal relevance. This study hypothesizes that adaptive fusion of global contextual information and lesion-focused local information can improve classification performance compared with using either representation independently. We propose a three-branch, attention-guided deep learning framework built on Densely Connected Convolutional Network-121 (DenseNet-121) to improve feature attribution, interpretability, and classification reliability. The architecture consists of a global branch that learns representations from full images, followed by Gradient-weighted Class Activation Mapping (Grad-CAM) to generate attention maps that highlight prediction-relevant regions and produce masked inputs, and a local branch enhanced with a Convolutional Block Attention Module (CBAM) to extract refined spatial and channel-wise features from these focused regions. An adaptive fusion branch integrates global and local representations by learning instance-specific weights, allowing dynamic prioritization between contextual and localized information. The framework is evaluated on a synthetic Spot Pattern Dataset (SSPD) and three benchmark datasets, including skin lesion, guava leaf, and grape leaf

*Corresponding author Email address: aurpa0001@uftb.ac.bd (Tanjim Taharat Aurpa) image datasets, where the fusion branch outperformed the individual global and local branches, reaching 97.75% accuracy on the skin lesion dataset and 99.64% on the guava leaf dataset.

The results highlight the value of attention-guided architectures in healthcare analytics by improving model transparency, strengthening feature relevance, and supporting more reliable data-driven decision-making in medical image analysis.

Keywords: Explainable artificial intelligence; Medical image analysis; Attention guided learning; Global local fusion; Lesion classification; Feature attribution

1. Introduction

Many visual classification or identification tasks involve the presence of small and scattered regions of interest where discriminative information is limited to localized patterns, rather than the global image structure. Such lesion- or spot-focused patterns are common across diverse application domains, including skin lesion image classification [1, 2, 3, 4], plant leaf disease classification [5, 6, 7], fruit disease imagery for classification[8], etc. Deep convolutional neural networks have demonstrated strong performance in such classification tasks due to their ability to automatically learn hierarchical feature representations [9, 10, 11, 12]. However, learning representations that jointly capture broad image context and subtle, spatially scattered discriminative cues for accurate classification remains challenging.

Models trained on full images may face challenges in lesion-centric classification tasks, as discriminative lesion cues are often small and localized and may not be sufficiently captured in global image representations. In real-world datasets where lesions exhibit significant variation in size, shape, and spatial distribution, relying solely on global image representations may therefore be insufficient for accurately capturing fine-grained lesion-specific patterns.

To address this, many studies have adopted region-of-interest (ROI)-focused strategies, where ROIs are first segmented or localized and then used for classification [13, 14]. ROI extraction has been performed using diverse techniques, including thresholding-based segmentation approaches, EW-FCM (Entropy-Weighted First-Order Cumulative Moment) [10], deep learning-based instance segmentation such as Mask Region-based Convolutional Neural Net-work (MRCNN) [15], U-Net-based segmentation followed by watershed-based ROI extraction [16], and post hoc interpretability tools like Grad-CAM and saliency maps [17]. While these approaches enhance lesion focus, they typically discard surrounding contextual information, which can be crucial for reliable prediction. Moreover, their performance is often sensitive to segmentation quality, as errors in ROI extraction may propagate to subsequent classification stages. These limitations indicate the need for models that can jointly leverage global context and localized lesion representations.

In this work, we propose a global-local fusion framework that integrates attention-guided localization with adaptive feature fusion to address these challenges. The global branch extracts feature representations from the full image, capturing contextual and structural information. Then, Grad-CAM is used to obtain heatmaps that identify prediction-relevant regions, which are used to generate attention-guided masked images. The local branch subsequently extracts features from the lesion-centric images, emphasizing discriminative lesion patterns. Finally, an adaptive weighting fusion module dynamically balances global and local feature contributions during prediction, allowing the model to prioritize global context or localized cues based on the characteristics of each input image. This design allows global and local representations to contribute differently across images with varying lesion visibility and scale. Our main contributions are as follows:

  • We address lesion-centric visual classification involving small, sparsely distributed, and spatially scattered discriminative regions by proposing a global-local fusion framework that jointly models full-image contextual information and lesion-focused representations.

  • Through an adaptive weighting strategy, the proposed framework dynamically balances global contextual features and localized lesion cues, allowing the model to prioritize the most relevant information according to the characteristics of each input image.

  • The proposed framework is evaluated on one synthetic dataset and three real-world datasets from medical and agricultural domains. This experimental setup allows a broader evaluation of the model across diverse lesion appearances, spatial distributions, and background conditions. In addition, the impact of background complexity is analyzed to assess the framework's sensitivity to background variations, pro-

viding insights into its limitations and potential directions for further improvement.

The rest of this paper is organized as follows. Section 2 reviews related work under three categories: global-local feature fusion, lesion-focused classification, and attention/heatmap-guided learning. Section 3 describes the proposed methodology, followed by experimental results in Section 4. Section 5 provides the discussion, and Section 6 concludes the paper.

References (18)