CA-Net (Comprehensive Attention Network)
A U-Net for medical image segmentation with attention over spatial positions, channels and scales.
Medical imaging · 296 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Task
- Medical imaging
- Parameters
- 2.8M
- Operations
- 296
- Framework
- PyTorch
- Recurrent
- No
- Published
- IEEE Transactions on Medical Imaging (arXiv 2020)
- Cited by
- 761 (as of 24 October 2026)
- Authors
- Ran Gu, Guotai Wang, Tao Song and others
- Source
- GitHub: HiLab-git/CA-Net
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m15019
- Graph hash
- 317c72e80e9e0a593c993eb6cdce8e851410d5e941827d6a1aafa303e15771cd
- Skeleton hash
- dfbcd179523868f1c00f7a59000f7d5583f2fc8f0e3bc5e2a0ea51c08fea69cd
- Architecture hash
- c95fb962b9a6b0e2d187759e5ea6c0c241ee9c7fe311db3c4c8c6e9c8b9906d9
- Diagram SHA-256
- e66cc79ae16abda35284de791676c18f6321ce582a1af623d9f4730d34636c7f
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
CA-Net is a convolutional network for medical image segmentation that is built to attend to the most important spatial positions, channels and scales at the same time. Its backbone is a U-Net: an encoder and a decoder with a shortcut connection at each resolution level. Part of the motivation is explanation, since the paper argues that existing CNNs have a poor explainability that limits their use in clinical decisions.
The network adds four spatial attention modules, four channel attention modules and one scale attention module. Spatial attention combines a non-local block at the lowest resolution level with dual-pathway attention gates at the other levels. Channel attention reweights the concatenated low-level and high-level features, and unlike the SE block it uses max-pooled features as well as average-pooled ones. The scale attention module sits at the end of the network and learns an image-specific weight for each scale.
On skin lesion segmentation from ISIC 2018, the paper reports an average Dice score of 92.08%, against 87.77% for U-Net. Against DeepLabv3+ it reports a slightly lower score that is not a significant difference, with a model size 15 times smaller. In those skin lesion experiments the training images were randomly cropped to 224 × 300, the input size this model uses.
Key idea. CA-Net combines spatial, channel and scale attention in one U-Net so that medical image segmentation is more accurate and its attention weight maps can be visualized.
- CA-Net
- Comprehensive Attention Network
- comprehensive attention CNN
- medical image segmentation
- skin lesion segmentation
- attention-based segmentation CNN
- explainable segmentation
- channel attention
- scale attention
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{gu2020canetcomprehensiveattentionconvolutional,
title={CA-Net: Comprehensive Attention Convolutional Neural Networks for Explainable Medical Image Segmentation},
author={Ran Gu and Guotai Wang and Tao Song and Rui Huang and Michael Aertsen and Jan Deprest and Sébastien Ourselin and Tom Vercauteren and Shaoting Zhang},
year={2020},
eprint={2009.10549},
archivePrefix={arXiv},
primaryClass={eess.IV},
doi={https://doi.org/10.1109/TMI.2020.3035253},
url={https://arxiv.org/abs/2009.10549},
}