Submitted:
30 October 2024
Posted:
31 October 2024
You are already at the latest version
Abstract
Background/Objectives : This study investigates the utility of vision transformers (ViTs) for predicting early responses to SRS using a minimal pre-processing approach on MRI images. Methods: We analyzed MRI scans from 19 patients with BM, focusing on axial fluid-attenuated inversion recovery (FLAIR) and high-resolution contrast-enhanced T1-weighted (CE T1w) sequences. Patients were classified as responders (complete or partial response) or non-responders (stable or progressive disease). Results: Our findings demonstrate that ViTs can effectively predict treatment responses, achieving an overall accuracy of 97%. The model exhibited high precision (96% for progression and 97% for regression) and strong recall rates (92% for progression and 99% for regression), distinguishing between treatment outcomes reliably. The confusion matrix analysis further supports its reliability, with minimal misclassifications. The model also achieved an almost perfect area under the ROC curve (AUC = 0.99), indicating accurate differentiation between responders and non-responders across various thresholds. Conclusions : These findings highlight the potential of the Vision Transformer model as a non-invasive predictive tool in clinical settings, significantly influencing clinical decision-making processes and enhancing patient management for brain metastases. By improving early response predictions, this model contributes to the development of personalized treatment strategies in oncology. Future research should focus on validating these results in larger, diverse cohorts, integrating additional data types, and refining the model to further enhance its utility in clinical practice.
Keywords:
1. Introduction
2. Materials and Methods
2.1. Study Population
2.2. Strategy for Gamma Knife Radiosurgery Implementation
2.3. Medical Imaging Protocol
2.4. Image Dataset
2.5. Project Workflow and Methodology Overview
2.6. Model Architecture
2.6.1. Overview of the Vision Transformer Model
2.6.2. Input Preprocessing
- Image Acquisition: The MRI images utilized in this study were obtained from 19 patients, comprising axial fluid-attenuated inversion recovery (FLAIR) sequences and high-resolution contrast-enhanced T1-weighted (CE T1w) sequences.
- Patch Extraction: Each image is divided into non-overlapping patches of size 25×25 pixels. This division converts the images into a sequence format, suitable for transformer processing. The total number of patches is determined by the formula:
- 3.
- Normalization: The pixel values of the images are normalized to the range [0, 1] to facilitate effective training and convergence of the model.
2.6.3. Model Architecture
- Input Layer: The model accepts input of shape
- 2.
- Patch Embedding: Each patch is linearly projected into a higher-dimensional space (hidden dimension), which allows the model to learn richer representations. This is achieved through a dense layer defined as:
- 3.
- Positional Encoding: To retain the spatial information of the patches, positional embeddings are added to the patch embeddings. The positional embeddings are computed using an embedding layer that maps patch indices to dense vectors of the same dimensionality as the hidden representations.
- 4.
- Class Token: A learnable class token is pre-pended to the sequence of patch embeddings. This token aggregates information from all patches and is used for the final classification task.
- 5.
-
Transformer Encoder Blocks: The core of the model consists of a stack of transformer encoder blocks, each comprising:
- o
- Multi-Head Self-Attention Mechanism: This mechanism allows the model to attend to different parts of the input sequence simultaneously, capturing long-range dependencies.
- o
- Multilayer Perceptron (MLP): After self-attention, the output is passed through a neural network with a non-linear activation function (GELU).
- o
- Residual Connections and Layer Normalization: Each block includes residual connections that facilitate gradient flow during training and layer normalization that stabilizes the learning process.
- 6.
- Classification Head: The output corresponding to the class token is passed through a final dense layer with a softmax activation function to predict the class probabilities (responders or non-responders).
2.6.4. Summary of Hyperparameters
- Image Size: 200 pixels
- Patch Size: 25 pixels
- Hidden Dimension: 768
- MLP Dimension: 3072
- Number of Heads: 12
- Number of Layers: 12
- Dropout Rate: 0.1
2.7. Training Evaluation
3. Results
3.1. Patient Characteristics
3.2. Model Performance Evaluation
- Progression: The precision for progression is 0.96, indicating that 96% of the instances predicted as progression were indeed correct. This high precision suggests the model is reliable in identifying true progression cases.
- Regression: The precision for regression is 0.97, indicating that 97% of the instances predicted as regression were correct. This exceptionally high precision reflects the model's strong performance in classifying regression cases.
- Progression: The recall for progression is 0.92, meaning the model correctly identifies 92% of actual progression cases. This high recall indicates the model's effectiveness in capturing most of the true positive cases for progression.
- Regression: The recall for regression is 0.99, suggesting the model successfully identifies 99% of actual regression cases, demonstrating strong performance in recognizing positive instances.
- Progression: The F1-score for progression is 0.94, reflecting a good balance between precision and recall, indicating the model's overall accuracy in identifying progression cases.
- Regression: The F1-score for regression is 0.98, showing excellent performance, emphasizing both precision and recall for this class.
- The overall accuracy of the model is 0.97, demonstrating that the model correctly classified 97% of the total cases. This high accuracy, combined with the strong metrics for both classes, underscores the model's robustness and effectiveness in clinical predictions.
- Macro Average: The macro average precision and recall are 0.97 and 0.95, respectively, reflecting the model's balanced performance across both classes without being biased towards the majority class.
3.3. Qualitative Analysis
4. Discussion
5. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement:
Acknowledgments
Conflicts of Interest
References
- Kuksis M, Gao Y, Tran W, Hoey C, Kiss A, Komorowski AS, Dhaliwal AJ, Sahgal A, Das S, Chan KK, Jerzak KJ. The incidence of brain metastases among patients with metastatic breast cancer: a systematic review and meta-analysis. Neuro Oncol. 2021 Jun 1;23(6):894-904. [CrossRef]
- Gavrilovic IT, Posner JB. Brain metastases: epidemiology and pathophysiology. J Neurooncol. 2005 Oct;75(1):5-14. [CrossRef]
- Lehrer EJ, Jones BM, Sindhu KK, Dickstein DR, Cohen M, Lazarev S, Quiñones-Hinojosa A, Green S, Trifiletti DM. A Review of the Role of Stereotactic Radiosurgery and Immunotherapy in the Management of Primary Central Nervous System Tumors. Biomedicines. 2022 Nov 19;10(11):2977. [CrossRef]
- Mangesius J, Seppi T, Arnold CR, Mangesius S, Kerschbaumer J, Demetz M, Minasch D, Vorbach SM, Sarcletti M, Lukas P, Nevinny-Stickel M, Ganswindt U. Prognosis versus Actual Outcomes in Stereotactic Radiosurgery of Brain Metastases: Reliability of Common Prognostic Parameters and Indices. Curr Oncol. 2024 Mar 26;31(4):1739-1751. [CrossRef]
- Kondziolka, D.; Patel, A.; Lunsford, L.; Kassam, A.; Flickinger, J.C. Stereotactic radiosurgery plus whole brain radiotherapy versus radiotherapy alone for patients with multiple brain metastases. Int. J. Radiat. Oncol. Biol. Phys. 1999, 45, 427–434. [CrossRef]
- Patchell, R.A.; Tibbs, P.A.; Walsh, J.W.; Dempsey, R.J.; Maruyama, Y.; Kryscio, R.J.; Markesbery, W.R.; Macdonald, J.S.; Young, B. A Randomized trial of surgery in the treatment of single metastases to the brain. N. Engl. J. Med. 1990, 322, 494–500. [CrossRef]
- Park, Y.G.; Choi, J.Y.; Chang, J.W.; Chung, S.S. Gamma knife radiosurgery for metastatic brain tumors. Ster. Funct. Neurosurg. 2001, 76, 201–203. [CrossRef]
- Kocher, M.; Soffietti, R.; Abacioglu, U.; Villà, S.; Fauchon, F.; Baumert, B.G.; Fariselli, L.; Tzuk-Shina, T.; Kortmann, R.-D.; Carrie, C.; et al. Adjuvant whole-brain radiotherapy versus observation after radiosurgery or surgical resection of one to three cerebral metastases: Results of the EORTC 22952-26001 study. J. Clin. Oncol. 2011, 29, 134–141. [CrossRef]
- Kim, Y.-J.; Cho, K.H.; Kim, J.-Y.; Lim, Y.K.; Min, H.S.; Lee, S.H.; Kim, H.J.; Gwak, H.S.; Yoo, H.; Lee, S.H. Single-dose versus fractionated stereotactic radiotherapy for brain metastases. Int. J. Radiat. Oncol. Biol. Phys. 2011, 81, 483–489. [CrossRef]
- Jee, T.K.; Seol, H.J.; Im, Y.-S.; Kong, D.-S.; Nam, D.-H.; Park, K.; Shin, H.J.; Lee, J.-I. Fractionated gamma knife radiosurgery for benign perioptic tumors: outcomes of 38 patients in a single institute. Brain Tumor Res. Treat. 2014, 2, 56–61. [CrossRef]
- Ernst-Stecken, A.; Ganslandt, O.; Lambrecht, U.; Sauer, R.; Grabenbauer, G. Phase II trial of hypofractionated stereotactic radiotherapy for brain metastases: Results and toxicity. Radiother. Oncol. 2006, 81, 18–24. [CrossRef]
- Kim, J.W.; Park, H.R.; Lee, J.M.; Kim, J.W.; Chung, H.T.; Kim, D.G.; Paek, S.H. Fractionated stereotactic gamma knife radiosurgery for large brain metastases: A retrospective, single center study. PLoS ONE 2016, 11, e0163304. [CrossRef]
- Ewend, M.G.; Elbabaa, S.; Carey, L.A. Current treatment paradigms for the management of patients with brain metastases. Neurosurgery 2005, 57 (Suppl. S5), S66–77, Discusssion S1. [CrossRef]
- Cho, K.R.; Lee, M.H.; Kong, D.-S.; Seol, H.J.; Nam, D.-H.; Sun, J.-M.; Ahn, J.S.; Ahn, M.-J.; Park, K.; Kim, S.T.; et al. Outcome of gamma knife radiosurgery for metastatic brain tumors derived from non-small cell lung cancer. J. Neuro-Oncol. 2015, 125, 331– 338. [CrossRef]
- Dosovitskiy, Alexey. "An image is worth 16x16 words: Transformers for image recognition at scale." arXiv preprint arXiv:2010.11929 (2020).
- Christos Matsoukas, Johan Fredin Haslum, Magnus Söderberg,Kevin Smith, Is it Time to Replace CNNs with Transformers for Medical Images? https://ar5iv.labs.arxiv.org/html/2108.09038.
- Brenner, D.J. the linear-quadratic model is an appropriate methodology for determining isoeffective doses at large doses perfraction. Semin. Radiat. Oncol. 2008, 18, 234–239. [CrossRef]
- Fowler, J.F. The linear-quadratic formula and progress in fractionated radiotherapy. Br. J. Radiol. 1989, 62, 679–694. [CrossRef]
- Higuchi, Y.; Serizawa, T.; Nagano, O.; Matsuda, S.; Ono, J.; Sato, M.; Iwadate, Y.; Saeki, N. Three-staged stereotactic radiotherapywithout whole brain irradiation for large metastatic brain tumors. Int. J. Radiat. Oncol. Biol. Phys. 2009, 74, 1543–1548. [CrossRef]
- Lin NU, Lee EQ, Aoyama H, Barani IJ, Barboriak DP, Baumert BG, Bendszus M, Brown PD, Camidge DR, Chang SM, Dancey J, de Vries EG, Gaspar LE, Harris GJ, Hodi FS, Kalkanis SN, Linskey ME, Macdonald DR, Margolin K, Mehta MP, Schiff D, Soffietti R, Suh JH, van den Bent MJ, Vogelbaum MA, Wen PY; Response Assessment in Neuro-Oncology (RANO) group. Response assessment criteria for brain metastases: proposal from the RANO group. Lancet Oncol. 2015 Jun;16(6):e270-8. [CrossRef]
- Ching T, Himmelstein DS, Beaulieu-Jones BK, Kalinin AA, Do BT, Way GP, Ferrero E, Agapow PM, Zietz M, Hoffman MM, Xie W, Rosen GL, Lengerich BJ, Israeli J, Lanchantin J, Woloszynek S, Carpenter AE, Shrikumar A, Xu J, Cofer EM, Lavender CA, Turaga SC, Alexandari AM, Lu Z, Harris DJ, DeCaprio D, Qi Y, Kundaje A, Peng Y, Wiley LK, Segler MHS, Boca SM, Swamidass SJ, Huang A, Gitter A, Greene CS. Opportunities and obstacles for deep learning in biology and medicine. J R Soc Interface. 2018 Apr;15(141):20170387. [CrossRef]
- Topol, E. J. (2019). "High-Performance Medicine: The convergence of human and artificial intelligence." Nature Medicine, 25, 44–56.
- Litjens G, Kooi T, Bejnordi BE, Setio AAA, Ciompi F, Ghafoorian M, van der Laak JAWM, van Ginneken B, Sánchez CI. A survey on deep learning in medical image analysis. Med Image Anal. 2017 Dec;42:60-88. [CrossRef]
- Trofin, A.-M.; Buzea, C.G.; Buga, R.; Agop, M.; Ochiuz, L.; Iancu, D.T.; Eva, L. Predicting Tumor Dynamics Post-Staged GKRS: Machine Learning Models in Brain Metastases Prognosis. Diagnostics 2024, 14, 1268. [CrossRef]
- Buzea CG, Buga R, Paun MA, Albu M, Iancu DT, Dobrovat B, Agop M, Paun VP, Eva L. AI Evaluation of Imaging Factors in the Evolution of Stage-Treated Metastases Using Gamma Knife. Diagnostics (Basel). 2023 Sep 4;13(17):2853. [CrossRef]
- Buzea, CG, Mirestean, CC, Agop, M, Paun, VP, Iancu, DT. Classification of good and bad responders in locally advanced rectal cancer after neoadjuvant radio-chemotherapy using radiomics signature. University Politehnica of Bucharest Scientific Bulletin-series A-Applied Mathematics and Physics, Volume 81, Issue 2, Page 265-278 (2019).
- Caruana, R., & Niculescu-Mizil, A. (2006). "An Empirical Comparison of Supervised Learning Algorithms." In Proceedings of the 23rd International Conference on Machine Learning (ICML), 161-168.
- Rajkomar A, Dean J, Kohane I. Machine Learning in Medicine. N Engl J Med. 2019 Apr 4;380(14):1347-1358. [CrossRef]








| precision | recall | f1-score | support | |
| Progression | 0.96 | 0.92 | 0.94 | 86 |
| Regression | 0.97 | 0.99 | 0.98 | 233 |
| Accuracy | 0.97 | 319 | ||
| Macro avg | 0.97 | 0.95 | 0.96 | 319 |
| Weighted avg | 0.97 | 0.97 | 0.97 | 319 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).