Skip to main content
QUICK REVIEW

[Paper Review] A Novel Global Spatial Attention Mechanism in Convolutional Neural Network for Medical Image Classification

Linchuan Xu, Jun Huang|arXiv (Cornell University)|Jul 31, 2020
COVID-19 diagnosis using AIMedicine31 references11 citations
TL;DR

This paper proposes a novel global spatial attention mechanism for medical image classification that learns a single, shared weight map across all images in a dataset, using a binary classifier to distinguish important from unimportant pixels based on pixel intensity distributions. The method improves performance and interpretability across multiple CNN architectures (GoogleNet, VGG, ResNet, DenseNet) on medical and facial expression datasets by reducing overfitting and highlighting structurally consistent regions.

ABSTRACT

Spatial attention has been introduced to convolutional neural networks (CNNs) for improving both their performance and interpretability in visual tasks including image classification. The essence of the spatial attention is to learn a weight map which represents the relative importance of activations within the same layer or channel. All existing attention mechanisms are local attentions in the sense that weight maps are image-specific. However, in the medical field, there are cases that all the images should share the same weight map because the set of images record the same kind of symptom related to the same object and thereby share the same structural content. In this paper, we thus propose a novel global spatial attention mechanism in CNNs mainly for medical image classification. The global weight map is instantiated by a decision boundary between important pixels and unimportant pixels. And we propose to realize the decision boundary by a binary classifier in which the intensities of all images at a pixel are the features of the pixel. The binary classification is integrated into an image classification CNN and is to be optimized together with the CNN. Experiments on two medical image datasets and one facial expression dataset showed that with the proposed attention, not only the performance of four powerful CNNs which are GoogleNet, VGG, ResNet, and DenseNet can be improved, but also meaningful attended regions can be obtained, which is beneficial for understanding the content of images of a domain.

Motivation & Objective

  • To address the limitations of local attention mechanisms in small-scale medical image datasets, where image-specific attention maps may cause overfitting and inconsistent interpretation.
  • To develop a global spatial attention mechanism that shares a single weight map across all images in a structured dataset, reflecting common anatomical or pathological patterns.
  • To improve CNN performance and interpretability in medical image classification by learning pixel importance end-to-end through a data-driven, embedded approach.
  • To demonstrate the generalizability of the method across diverse CNN architectures and datasets, including medical and facial expression images.

Proposed method

  • The global attention mechanism learns a single, shared weight map for all input images by modeling the decision boundary between important and unimportant pixels.
  • Pixel intensities across all images at each spatial location are used as features for a binary classifier that determines whether a pixel is important for classification.
  • The binary classifier is integrated into the CNN architecture and jointly optimized with the main classification network during end-to-end training.
  • The method operates directly on the input layer, unlike most existing local attention mechanisms that apply to hidden layers.
  • The approach is generic and can be integrated into any CNN architecture without architectural modifications.
  • The attention mechanism is implemented as an embedded feature selection method that learns pixel importance based on data-driven patterns rather than pre-defined metrics.

Experimental results

Research questions

  • RQ1Can a single, global attention map improve classification performance in small-scale medical image datasets compared to local attention mechanisms?
  • RQ2Does a data-driven, global spatial attention mechanism lead to more consistent and interpretable attended regions across images with similar structural content?
  • RQ3Can the proposed attention mechanism be effectively integrated into diverse CNN architectures such as GoogleNet, VGG, ResNet, and DenseNet?
  • RQ4How does the global attention mechanism compare to traditional local attention and other feature selection methods in terms of overfitting and performance?

Key findings

  • The proposed global spatial attention mechanism significantly improved the classification performance of all four tested CNNs—GoogleNet, VGG, ResNet, and DenseNet—on two medical image datasets.
  • The method reduced overfitting, particularly beneficial in small-scale medical datasets, by sharing a single attention map across all images.
  • The attended regions were consistently highlighted across images, revealing meaningful, structurally coherent patterns that align with domain knowledge.
  • The method achieved better interpretability than local attention mechanisms, as the same regions were emphasized across similar images despite minor intensity variations.
  • The approach was also effective on a facial expression dataset, confirming its applicability to other structured image domains.
  • The end-to-end training of the binary classifier with the CNN enabled the model to learn pixel importance directly from data, without requiring external domain knowledge or pre-processing.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.