Skip to main content

Vision Transformers for Breast Cancer Histology Image Classification

  • Conference paper
  • First Online:
Image Analysis and Processing - ICIAP 2023 Workshops (ICIAP 2023)

Abstract

We propose a self-attention Vision Transformer (ViT) model tailored for breast cancer histology image classification. The proposed architecture uses a stack of transformer layers, with each layer consisting of a multi-head self-attention mechanism and a position-wise feed-forward network, and it is trained with different strategies and configurations, including pretraining, resize dimension, data augmentation, patch overlap, and patch size, to investigate their impact on performance on the histology image classification task. Experimental results show that pretraining on ImageNet and using geometric and color data augmentation techniques significantly improve the model’s accuracy on the task. Additionally, a patch size of 16 \(\times \) 16 and no patch overlap were found to be optimal for this task. These findings provide valuable insights for the design of future ViT-based models for similar image classification tasks.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 89.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 119.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Change history

  • 21 January 2024

    A correction has been published.

Notes

  1. 1.

    See https://www.iarc.who.int/cancer-type/breast-cancer/.

  2. 2.

    See https://huggingface.co/google/vit-base-patch16-224.

References

  1. Alotaibi, A., et al.: Vit-deit: an ensemble model for breast cancer histopathological images classification. In: 2023 1st International Conference on Advanced Innovations in Smart Cities (ICAISC), pp. 1–6. IEEE (2023)

    Google Scholar 

  2. Aresta, G., et al.: Bach: grand challenge on breast cancer histology images. Med. Image Anal. 56, 122–139 (2019)

    Article  Google Scholar 

  3. Dosovitskiy, A., et al.: An image is worth 16x16 words: transformers for image recognition at scale (2021). https://doi.org/10.48550/arXiv.2010.11929

  4. Gardezi, S.J.S., Elazab, A., Lei, B., Wang, T.: Breast cancer detection and diagnosis using mammographic data: Systematic review. J. Med. Internet Res. 21(7), e14464 (2019)

    Article  Google Scholar 

  5. Guo, M.H., et al.: Attention mechanisms in computer vision: a survey. Comput. Vis. Media 8(3), 331–368 (2022)

    Article  Google Scholar 

  6. Han, K., et al.: A survey on vision transformer. IEEE Trans. Pattern Anal. Mach. Intell. 45(1), 87–110 (2022)

    Article  Google Scholar 

  7. He, Z., et al.: Deconv-transformer (DECT): a histopathological image classification model for breast cancer based on color deconvolution and transformer architecture. Inf. Sci. 608, 1093–1112 (2022)

    Article  Google Scholar 

  8. Lin, T., Wang, Y., Liu, X., Qiu, X.: A survey of transformers. AI (2022)

    Google Scholar 

  9. Macenko, M., et al.: A method for normalizing histology slides for quantitative analysis. IEEE International Symposium on Biomedical Imaging: From Nano to Macro, Boston, MA, USA, pp. 1107–1110 (2009)

    Google Scholar 

  10. Reinhard, E., Ashikhmin, M., Gooch, B., Shirley, P.: Color transfer between images. IEEE Comput. Graphics Appl. 21, 34–41 (2001)

    Article  Google Scholar 

  11. Roy, K., Banik, D., Bhattacharjee, D., Nasipuri, M.: Patch-based system for classification of breast histology images using deep learning. Comput. Med. Imaging Graph. 71, 90–103 (2019)

    Article  Google Scholar 

  12. Tay, Y., et al.: Scale efficiently: insights from pre-training and fine-tuning transformers. arXiv (2021)

    Google Scholar 

  13. Tummala, S., Kim, J., Kadry, S.: Breast-net: multi-class classification of breast cancer from histopathological images using ensemble of swin transformers. Mathematics 10(21), 4109 (2022)

    Article  Google Scholar 

  14. Vaswani, A., et al.: Attention is all you need. In: NIPS, vol. 30 (2017)

    Google Scholar 

  15. Vesal, S., Ravikumar, N., Davari, A.A., Ellmann, S., Maier, A.: Classification of breast cancer histology images using transfer learning. In: Campilho, A., Karray, F., ter Haar Romeny, B. (eds.) ICIAR 2018. LNCS, vol. 10882, pp. 812–819. Springer, Cham (2018). https://doi.org/10.1007/978-3-319-93000-8_92

    Chapter  Google Scholar 

  16. Wang, W., Jiang, R., Cui, N., Li, Q., Yuan, F., Xiao, Z.: Semi-supervised vision transformer with adaptive token sampling for breast cancer classification. Front. Pharmacol. 13, 929755 (2022)

    Article  Google Scholar 

  17. Yao, H., Zhang, X., Zhou, X., Liu, S.: Parallel structure deep neural network using CNN and RNN with an attention mechanism for breast cancer histology image classification. Cancers 11(12), 1901 (2019)

    Article  Google Scholar 

  18. Zhao, Y., Zhang, J., Hu, D., Qu, H., Tian, Y., Cui, X.: Application of deep learning in histopathology images of breast cancer: a review. Micromachines 13(12), 2197 (2022)

    Article  Google Scholar 

Download references

Acknowledgements

The present work is partially funded by the BosomShield Doctoral Network, HORIZON-MSCA-2021-DN-01-01 grant number 101073222.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Vincenzo Della Mea .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2024 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Baroni, G.L., Rasotto, L., Roitero, K., Siraj, A.H., Della Mea, V. (2024). Vision Transformers for Breast Cancer Histology Image Classification. In: Foresti, G.L., Fusiello, A., Hancock, E. (eds) Image Analysis and Processing - ICIAP 2023 Workshops. ICIAP 2023. Lecture Notes in Computer Science, vol 14366. Springer, Cham. https://doi.org/10.1007/978-3-031-51026-7_2

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-51026-7_2

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-51025-0

  • Online ISBN: 978-3-031-51026-7

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics