$ cat research/mime-vit.md
Applying vision transformer to assess multi-scale morphological features in mammography for breast cancer detection: multiscale image morphological extraction vision transformer (MIME-ViT)
Authors
- Yuki Kashiwada,
- Eichi Takaya,
- Mei Hiroya,
- Nanako Matsuda,
- Takumi Yashima,
- Tomoya Kobayashi,
- Gen Tamiya,
- Takuya Ueda
PeerJ Computer Science, 11:e3252 · https://doi.org/10.7717/peerj-cs.3252
- Received:
- Accepted:
- Published:
TL;DR
MIME-ViT fuses four Vision Transformer branches with different patch sizes and a CNN branch to localize masses and calcifications on mammograms. Trained from scratch on the TOMPEI-CMMD annotations, it reached a mean IoU of 0.3342: better than DETR without pre-training, but below pre-trained DETR and YOLOv8x.
##Key numbers
- Mean IoU (all lesions)
- 0.3342
- Mean IoU (mass)
- 0.3797
- Mean IoU (calcification)
- 0.2491
- Best baseline
- 0.4516
- YOLOv8x-Pretrained mean IoU
- Specificity (lesion-free)
- 0.2216
- Lowest among compared models
- Parameters
- 112.9M
##Background
Screening mammography can have limited sensitivity and specificity, especially in dense breasts, which leads to missed cancers and unnecessary follow-up procedures. Deep learning models such as CNNs and Vision Transformers (ViTs) offer a way to improve on this.
Radiologists read a mammogram at both a macro scale (the whole breast) and a micro scale (fine findings). MIME-ViT was designed to mirror this by extracting morphological features at several scales at once.
##Data
The model was trained and evaluated on TOMPEI-CMMD, which adds lesion segmentations to the public CMMD collection (mammograms of 1,775 Chinese patients examined between July 2012 and January 2016). Only MLO views were used, giving 2,601 breast images.
Images were split 7:1.5:1.5 by patient into 1,819 training, 391 validation, and 391 test images. Each image was padded with black to 2,294×2,294 and resized to 2,048×2,048.
##Methods
MIME-ViT has four ViT branches that take 512×512, 256×256, 64×64, and 16×16-pixel patches, plus a CNN branch built from residual blocks with 3×3 kernels. Because of GPU memory limits, the 16×16 branch applies convolution and pooling before its ViT.
The branch outputs are concatenated and the model predicts, for each 64×64-pixel region of the 2,048×2,048 image, whether it contains a lesion. A region counts as positive when the lesion mask covers more than 20% of it. Training combined Dice and Focal losses and used no pre-training. The model has 112.9M parameters (DETR: 41.3M).
Baselines were DETR and YOLOv8x, each trained from scratch and with COCO pre-training. Metrics were mean IoU on images with lesions and specificity on lesion-free images.
##Results
MIME-ViT reached a mean IoU of 0.3342 over all lesions, 0.3797 for masses, and 0.2491 for calcifications. It beat DETR-Scratch (0.0000) but scored below DETR-Pretrained (0.3691), YOLOv8x-Scratch (0.3400), and YOLOv8x-Pretrained (0.4516, the best overall).
For calcifications, MIME-ViT (0.2491) was second only to YOLOv8x-Pretrained (0.2796) and well ahead of DETR-Pretrained (0.0280) and YOLOv8x-Scratch (0.0454). It also had the smallest IoU standard deviation in every category, and for calcifications its median IoU was higher than YOLOv8x-Pretrained's.
In ablations, removing any one ViT branch (512 / 256 / 64), switching to 5×5 kernels, or fusing by addition all lowered mean IoU to between 0.2947 and 0.3198, so each component contributed to performance.
##Significance
The multiscale ViT + CNN design learned lesion localization from about 1,800 training images without any pre-training, a setting in which DETR detected nothing. It was also relatively strong and stable on calcifications, which are small findings.
##Limitations
- -Specificity on lesion-free images was low (0.2216), meaning many false positives.
- -Overall IoU is below pre-trained YOLOv8x and DETR.
- -Evaluated on a single dataset (CMMD-derived, MLO views only) with limited diversity; generalization to real clinical settings is unknown.
- -No pre-training was used, and there is no interpretability analysis such as attention maps or Grad-CAM.
- -IoU was computed from bounding boxes built from patch outputs, which may underestimate performance.
##FAQ
Q.What is MIME-ViT?
MIME-ViT (Multiscale Image Morphological Extraction Vision Transformer) is a deep learning model that localizes breast cancer lesions on mammograms. It combines Vision Transformer branches at four patch sizes with a CNN branch to capture both fine and coarse morphological features. It was published by Yuki Kashiwada et al. in PeerJ Computer Science in 2025.
Q.What data was MIME-ViT trained on?
It used 2,601 MLO-view images from TOMPEI-CMMD, a TCIA dataset that adds lesion segmentations to the public CMMD collection. Images were split by patient into 1,819 training, 391 validation, and 391 test images.
Q.Does MIME-ViT outperform YOLO or DETR?
Not overall. Its mean IoU of 0.3342 beat DETR trained from scratch (0.0000) but was below YOLOv8x-Pretrained (0.4516), DETR-Pretrained (0.3691), and YOLOv8x-Scratch (0.3400). On calcifications it was second only to YOLOv8x-Pretrained (0.2491) and had the lowest IoU variance in every category. Its main weakness is low specificity (0.2216).
Q.Is the MIME-ViT code available?
Yes. The code is on GitHub (javasparrows/MIME-ViT) and archived on Zenodo as version 1.2 under the Apache-2.0 license.
Q.Is the MIME-ViT paper open access?
Yes. It is a gold open-access article in PeerJ Computer Science, published under CC BY 4.0.
Q.How do I cite MIME-ViT?
Cite it as Kashiwada Y, et al. (2025), PeerJ Computer Science 11:e3252, DOI: 10.7717/peerj-cs.3252. APA, BibTeX, and RIS formats are at the bottom of this page.
##How to cite
PeerJ recommended citation
Kashiwada Y, Takaya E, Hiroya M, Matsuda N, Yashima T, Kobayashi T, Tamiya G, Ueda T. 2025. Applying vision transformer to assess multi-scale morphological features in mammography for breast cancer detection: multiscale image morphological extraction vision transformer (MIME-ViT). PeerJ Computer Science 11:e3252 https://doi.org/10.7717/peerj-cs.3252
APA style
Kashiwada, Y., Takaya, E., Hiroya, M., Matsuda, N., Yashima, T., Kobayashi, T., Tamiya, G., & Ueda, T. (2025). Applying vision transformer to assess multi-scale morphological features in mammography for breast cancer detection: multiscale image morphological extraction vision transformer (MIME-ViT). PeerJ Computer Science, 11, e3252. https://doi.org/10.7717/peerj-cs.3252
BibTeX
@article{kashiwada2025mimevit,
author = {Kashiwada, Yuki and Takaya, Eichi and Hiroya, Mei and Matsuda, Nanako and Yashima, Takumi and Kobayashi, Tomoya and Tamiya, Gen and Ueda, Takuya},
title = {Applying vision transformer to assess multi-scale morphological features in mammography for breast cancer detection: multiscale image morphological extraction vision transformer {(MIME-ViT)}},
journal = {PeerJ Computer Science},
volume = {11},
pages = {e3252},
issn = {2376-5992},
publisher = {PeerJ Inc.},
year = {2025},
doi = {10.7717/peerj-cs.3252},
url = {https://doi.org/10.7717/peerj-cs.3252}
}
Citation files: kashiwada2025mimevit.bib (BibTeX) · kashiwada2025mimevit.ris (RIS / EndNote / Zotero)
##Links
Summaries are written by the site owner from the published article or dataset record. Refer to the original for authoritative details.