All models

FocusMAE

A video transformer for gallbladder cancer detection in ultrasound, pretrained with region-focused masking.

Medical imaging · 350 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (20 KB)

Open in a new tab

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

Parameters
86.2M
Operations
350
Framework
PyTorch
Recurrent
No
Published
CVPR 2024
Cited by
21 (as of 27 October 2026)
Authors
Soumen Basu, Mayuna Gupta, Chetan Madan and others
License
CC-BY-NC-4.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m16726
Graph hash
41599d5d242e83a8ce46de6f79145b1e946620d8cc487bc8c1ff45c8dd36ca80
Skeleton hash
15f0ba203358efbe6e18ea6ef0ba63d477ea922412ab005419d0ac441c8f6af1
Architecture hash
dbcd9510ee6d36b2fac1d7edafc445457e6fa266277fa52f681e7c842b8302bc
Diagram SHA-256
a3ad7d2967d3ac68e8c676783008dee8b354e86ca612a2aaba27262ddc917449
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

FocusMAE is a video transformer for detecting gallbladder cancer (GBC) in ultrasound video. The paper observes that individual ultrasound frames may lack sufficient information to capture disease manifestation, and so moves to video, with masked autoencoder (MAE) pretraining in which parts of the input, called tokens, are masked and reconstructed from the visible parts.

What FocusMAE changes is which tokens get masked. In ultrasound videos the gallbladder and malignant regions typically occupy a tiny portion of the frame, and the paper says random masking mostly biases a network toward representations of redundant backgrounds. FocusMAE uses object detection networks to propose candidate regions, and a token whose spatial central point falls within such a region prior has its masking probability inflated. The sampling loss is adapted from AdaMAE, with the token probability augmented by the region priors.

A video is cut into clips of 16 frames, resized to 224 × 224 and divided into non-overlapping cubic tokens, which a vanilla ViT with space-time attention encodes. At inference, a video is labeled malignant if any of its clips is predicted as malignant. The paper reports 96.4% accuracy on its curated ultrasound video dataset, against 84% for the image-based GBCNet and RadFormer and 94.7% for the video-based AdaMAE.

Key idea. FocusMAE biases masked-autoencoder pretraining to mask tokens inside candidate high-information regions, so the network learns a more refined representation of malignancy from ultrasound video.

  • FocusMAE
  • Focused Masked Autoencoders
  • gallbladder cancer detection
  • GBC detection
  • ultrasound video
  • masked autoencoder
  • video classification
  • region priors
  • masked token sampling

AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{basu2024focusmaegallbladdercancerdetection,
      title={FocusMAE: Gallbladder Cancer Detection from Ultrasound Videos with Focused Masked Autoencoders}, 
      author={Soumen Basu and Mayuna Gupta and Chetan Madan and Pankaj Gupta and Chetan Arora},
      year={2024},
      eprint={2403.08848},
      archivePrefix={arXiv},
      primaryClass={eess.IV},
      url={https://arxiv.org/abs/2403.08848}, 
}