RadFormer
Global-local CNN with transformer fusion that detects gallbladder cancer in ultrasound images and explains its calls.
Medical imaging · 448 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
- 74.4M
- Operations
- 448
- Framework
- PyTorch
- Recurrent
- No
- Published
- Medical Image Analysis 2023
- Cited by
- 56 (as of 29 October 2026)
- Authors
- Soumen Basu, Mayank Gupta, Pratyaksha Rana and others
- Source
- GitHub: sbasu276/RadFormer
- License
- MIT
- 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
- m19727
- Graph hash
- 5181a94c9e0621335949bd31ecbefaa49e142913112bc1cc60fc05da4a5e9d79
- Skeleton hash
- 80196544dc39b58194063bc7ed302440f4fa17d3fc42d0e2c040917c5c332636
- Architecture hash
- edadb2f825ae0882f0958370d54132bb87f7170f17db09b79bbf9f0be4bc99bc
- Diagram SHA-256
- 9422f9fd0e06db67f9557c3789b3989cd0ac0cbdaf0aef014c1257e3b87a2d3f
- 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
RadFormer (Radiology Transformer) detects gallbladder cancer (GBC) in ultrasound images and is built to explain its diagnosis the way a radiologist would. It sorts each image into normal, benign or malignant.
A global branch looks at the whole image to localize the region around the gallbladder, and that crop becomes the input of a local branch. The local branch uses a BagNets-33 backbone to extract bag-of-features representations of the crop. Both feature maps are average pooled and concatenated into the input sequence of a transformer that fuses them. The global, local and transformer branches each have a classifier trained with cross-entropy loss. At inference time, the most strongly activated local features are looked up in a feature-to-lexicon mapping to name the radiological findings behind a prediction. Training needs only image-level labels, with no region or lexicon annotations.
The experiments use the Gallbladder Cancer Ultrasound (GBCU) dataset, which the authors released publicly. In 10-fold cross-validation on GBCU, the paper reports 0.921 accuracy and 0.971 AUC for RadFormer. In its comparison with two expert radiologists, the paper reports that RadFormer was more accurate than both, who scored 0.70 and 0.68. The paper also reports one local feature, id 1607, that appeared among the top-10 activations for 78.6% of malignant gallbladders yet matched no radiological lexicon.
Key idea. RadFormer combines a global attention branch for the region of interest with local bag-of-words style features, fused by a transformer, for interpretable gallbladder cancer detection from ultrasound.
- RadFormer
- Radiology Transformer
- gallbladder cancer detection
- GBC
- ultrasound
- explainable AI
- bag-of-features
- global-local attention
- medical image classification
- GBCU
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{basu2022radformertransformersgloballocalattention,
title={RadFormer: Transformers with Global-Local Attention for Interpretable and Accurate Gallbladder Cancer Detection},
author={Soumen Basu and Mayank Gupta and Pratyaksha Rana and Pankaj Gupta and Chetan Arora},
year={2022},
eprint={2211.04793},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2211.04793},
}