Next Article in Journal
Evaluation of Dermatological and Neurological Aspects of the Relationship between Rosacea and Headaches
Previous Article in Journal
Validation of a Digital Headache Calendar at a Tertiary Referral Center
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Machine Learning Approach for Analyzing 3-Year Outcomes of Patients with Brain Arteriovenous Malformation (AVM) after Stereotactic Radiosurgery (SRS)

by
Mirko Jerber Rodríguez Mallma
1,*,
Marcos Vilca-Aguilar
2,3,
Luis Zuloaga-Rotta
1,
Rubén Borja-Rosales
1,
María Salas-Ojeda
4 and
David Mauricio
5
1
Facultad de Ingeniería Industrial y de Sistemas, Universidad Nacional de Ingeniería, Lima 15333, Peru
2
Instituto de Radiocirugía del Perú, Clínica San Pablo, Lima 15023, Peru
3
Servicio de Neurocirugía, Hospital María Auxiliadora, Lima 15828, Peru
4
Universidad San Ignacio de Loyola, Lima 15024, Peru
5
Universidad Nacional Mayor de San Marcos, Lima 15081, Peru
*
Author to whom correspondence should be addressed.
Diagnostics 2024, 14(1), 22; https://doi.org/10.3390/diagnostics14010022
Submission received: 29 November 2023 / Revised: 14 December 2023 / Accepted: 17 December 2023 / Published: 22 December 2023
(This article belongs to the Section Machine Learning and Artificial Intelligence in Diagnostics)

Abstract

:
A cerebral arteriovenous malformation (AVM) is a tangle of abnormal blood vessels that irregularly connects arteries and veins. Stereotactic radiosurgery (SRS) has been shown to be an effective treatment for AVM patients, but the factors associated with AVM obliteration remains a matter of debate. In this study, we aimed to develop a model that can predict whether patients with AVM will be cured 36 months after intervention by means of SRS and identify the most important predictors that explain the probability of being cured. A machine learning (ML) approach was applied using decision tree (DT) and logistic regression (LR) techniques on historical data (sociodemographic, clinical, treatment, angioarchitecture, and radiosurgery procedure) of 202 patients with AVM who underwent SRS at the Instituto de Radiocirugía del Perú (IRP) between 2005 and 2018. The LR model obtained the best results for predicting AVM cure with an accuracy of 0.92, sensitivity of 0.93, specificity of 0.89, and an area under the curve (AUC) of 0.98, which shows that ML models are suitable for predicting the prognosis of medical conditions such as AVM and can be a support tool for medical decision-making. In addition, several factors were identified that could explain whether patients with AVM would be cured at 36 months with the highest likelihood: the location of the AVM, the occupation of the patient, and the presence of hemorrhage.

1. Introduction

Cerebral arteriovenous malformation (AVM) is a congenital neurological disease that causes cerebral hemorrhage, seizures, or headache. It consists of an abnormal conglomerate of dilated cerebral vessels derived from the maldevelopment of the capillary network that allows direct connections between cerebral arteries and veins [1]. One of the treatments, known of since the 1970s, in addition to microsurgery and endovascular therapy, is stereotactic radiosurgery (SRS), in which the AVM is obliterated by radionecrosis through the administration of multi-beam directed radiation [2]. From the medical point of view, SRS is a neurosurgical technique that does not require an incision and is used as an alternative or complement to noninvasive treatment.
The healing process of patients with AVM undergoing SRS is not immediate and requires time with clinical and imaging monitoring to know the evolution of the disease. The successful exclusion of brain AVM with radiosurgery is considerably higher for smaller lesions. For example, one study showed that the obliteration rate of patients with brain AVM after SRS was between 54–92% for lesion diameters ≤ 2.5 cm [3]. Several scoring systems, such as the Spetzler–Martin Grading Scale (SMGS) and the Virginia Radiosurgery AVM Scale (VRAS), are currently used by physicians to understand the nature of AVM and predict the results of radiosurgery treatment [4,5,6]. However, developing new methods to predict the results of radiosurgery treatment and determining the factors that influence the probability of success are needed.
Machine learning (ML) is a subset of artificial intelligence (AI) that uses algorithms that automatically “learn” to identify patterns in data, which are used to make forecasts based on these patterns [7]. The use of such algorithms as support tools for medical decision-making and their application in the prognosis, diagnosis, and treatment of diseases has been recently developed [8]; however, certain conditions still exist that make it difficult for them to be widely adopted [9,10,11,12,13]. Among the studies referring to the prediction and diagnosis of neurological and brain diseases in which ML techniques were applied is the study of Uspenskaya-Cadoz et al. [14], which proposed a method for diagnosing Alzheimer’s disease (AD) by applying logistic regression (LR), decision tree (DT), random forest (RF), and gradient-boosted trees (GBT) techniques, and the study of Ghafouri-Fard et al. [15], which proposed using artificial neural networks (ANNs) to predict multiple sclerosis (MS) risk based on genotypes.
At present, the application of ML techniques to the diagnosis, prognosis, or treatment of AVM has increased. Interesting studies can be found, such as one by Tao et al. [16], which examined the factors that influence the risk of bleeding from AVM, and another by Hong et al. [17], which reported an experiment for the detection of hemorrhages in AVMs using digital subtraction angiography (DSA) images. There are also studies on the use of deep learning models, a type of ML specialized in image processing; for example, Wang et al. [18] automated the process of segmenting and identifying AVMs in computed tomography (CT) and DSA images. Other studies have focused on the prognosis of patients with AVM after surgery, with the aim of predicting whether they would be cured. For example, Asadi et al. [19] presented a study on identifying the factors that influence the outcome of treatment with endovascular embolization and showcased that ML techniques can satisfactorily predict outcomes with high accuracy and can help to individualize the treatment based on key predictors. Finally, Oermann et al. [20] used an ML approach to predict the outcomes of AVM patients undergoing radiosurgery, and achieved an accuracy of 0.74, which is considered to be the best prognostic result as of the date of publication of this paper. However, the prediction error rate found in these previous studies is high (greater than 25%), and in addition, they did not study the explainability phenomena through assessing the importance of the variables, which is key for medical decision-making.
From these previous studies [16,17,18,19,20], which show that ML algorithms are powerful tools that can be used in the medical field, in the present study, we aimed not only to provide an ML approach for predicting whether patients with AVM who undergo SRS will be cured but also one that could identify the main factors influencing whether these patients will be cured 36 months after radiosurgery.

2. Materials and Methods

The construction of an ML system for the prognosis of patients with AVM treated with SRS is proposed using two techniques: DT and LR (Figure 1). These two techniques were used in this study because they can produce results (predictions) that are easy to understand by the experts in the domain as they are considered “white box” methods [21]. Additionally, these methods were also used in previous studies regarding the AVM outcome prediction [16,19,20].
Due to a common long-term follow-up protocol that suggests complete AVM obliteration within the first 3 years for 70–80% of AVM patients [22], the objective of this study is to predict whether a patient will be cured or not at 36 months after undergoing SRS; for this, a supervised ML learning approach was chosen via binary classification. Additionally, the use of LR is proposed to determine the main factors that influence whether an AVM patient will be cured.

2.1. Dataset

For this study, a dataset comprising 45 variables of 202 patients diagnosed with AVM who underwent SRS treatment to cure this disease was used. The data were collected from different medical sources at the Instituto de Radiocirugía del Perú (IRP) between 2005 and 2018 following the process shown in Figure 2.
The variables that were collected from patient data were considered as input data (predictors) and were grouped into 5 categories: sociodemographic (S), clinical (C), treatment (T), angioarchitecture (A), and radiosurgery (R). The variable for patients being cured at 36 months after radiosurgery was considered as output data (response). Table 1 shows the structure of the dataset used in this study.
The dataset is tabular and is made up of 202 records (rows) and 45 variables (columns), in which the rows correspond to the patient data and the columns represent the variables considered in the study. The first 44 variables were considered as input variables to the system (independent variables) and the last column as the output variable (dependent variable), representing patients being cured (cured = 1) or not (cured = 0).

2.2. Data Preprocessing

Before carrying out any data processing and because this was a medical application, it was advisable to analyze the data regarding possible confounding variables that could have an undesired impact on our prediction results [23]; for this, we analyzed the possible confounding variables of gender and age.
For the categorical variable gender, the chi-square test of homogeneity was performed to verify whether the difference in the number of men and women in each data group was statistically significant, and no difference was found (p-value = 0.566; Figure 3a). For the age variable, Student’s t-test was applied to verify whether there was a statistically significant difference in age between groups (class 0, mean = 31.97; class 1, mean = 26.72), and again no difference was found (p-value = 0.058; Figure 3b).
From this analysis, we concluded that the variables age and gender should not be considered as confounding variables, so we moved forward with the data preprocessing.
Finally, in order to avoid prediction biases and build the ML system effectively, variable selection and data balancing were carried out.

2.2.1. Variable Selection

After an analysis by expert judgment, 6 independent variables were identified that were considered not to influence the prognosis of being cured, so they were excluded from the study (residence, education_level, health_insurance, mri_examination, ct_examination, and das_examination).
Additionally, correlation analysis of the 38 remaining independent variables was carried out; Cramer’s test [24] was applied to identify the linear correlation between categorical variables and Pearson’s test (Pearson’s correlation coefficient) for the numerical variables; in both cases, a threshold value greater than or equal to 0.7 was used to determine the high positive (negative) correlation [25], and 6 correlated variables that exceeded the threshold were identified and discarded from the study (Table 2). The dython library [26], which is available for the Python programming language, was used to perform the calculations. Finally, 12 independent variables were discarded, leaving a dataset made up of 32 independent variables and 1 dependent variable, which were used in the ML system proposed in this study (Table 3).
The final dataset was made up of 202 records, with 32 independent variables and 1 dependent variable, which was divided into two datasets, 75% (n = 151) for ML model training and validation and 25% (n = 51) for testing. In addition, the 32 independent variables of the training and validation set were normalized using the min–max technique [27].

2.2.2. Data Balancing

The original training dataset had a data imbalance with respect to the dependent variable, cured, in that it consisted of 125 records of class 1 and 26 of class 0. The imbalance was corrected by applying the synthetic minority oversampling technique (SMOTE), which creates new synthetic instances of the minority class instead of repeating them [28,29]. We obtained 250 records in total; 125 records for each class, as shown in Figure 4.
Finally, two training datasets were obtained: an imbalanced training dataset made up of 151 records, and a balanced training dataset made up of 250 records. Both datasets were represented by a data matrix of dimension n × 32, in which the observation i can be expressed as oi = [o0, o1, …, o32] ∈ Rn×32, where n is the number of observations or records in the dataset.

2.3. Machine Learning Models

For the construction, validation, and evaluation of the ML system, we used the process shown in Figure 5, which consisted of using the two training datasets (balanced and imbalanced) to build and validate the two ML models (DT and LR) in four experimental scenarios; based on the results, the model with the best performance metrics was chosen. Scenario 1 refers to the imbalanced training data with the DT model, scenario 2 refers to the imbalanced training data with the RL model, scenario 3 refers to the balanced training data with the DT model, and scenario 4 refers to the balanced training data with the RL model. The final model’s performance was evaluated by using both the accuracy and the AUC metrics to compare our study’s results with the ones obtained by Oermann et al. [20] and Meng et al. [30]. The accuracy was used to evaluate how well the model predicts the correct label (cured patients) for a given data point, so the ML model can be effectively used in the medical field.
Additionally, the LR method was used to identify the most important factors that determine the probability of patients being cured (clinical interpretability).
In the training phase, the grid search technique [31] was used to find the optimal hyperparameters of the ML models in each of the four scenarios. The set of search values defined for the hyperparameters is given in Table 4.
During the training process, the resampling technique was used (Figure 6), in which the training dataset was divided into 8 subsets, with 1 set taken for validation and 7 for training, following 8-fold cross-validation, which is a commonly used method for selecting ML models [32,33].
To build the ML models, the scikit-learn 1.0.2 library [34] of Python version 3.8.16 was used in the Google Colab environment. The algorithms and resources built for this research can be found at https://github.com/mirkorodriguez/ml-prediction-mav accessed on 14 December 2023.

3. Results

The composition of the study population, the performance of the prediction models, and the explainability of the prediction are presented below.

3.1. Study Population

This study included 202 patients with AVM who underwent stereotactic radiosurgery between 2005 and 2018 at the IRP. As shown in Supplementary Figure S1, 167 patients (82.20%) were cured 36 months after the surgical intervention.
Supplementary Table S1 shows the sociodemographic characteristics of the population included this study: 52.97% were men and 47.03% were women; 70.49% of patients were in the age range of 18 to 59 years; 80.69% were from Lima or Callao; 18.82% had a preschool or grade school education and 52.97% had only a high school education; and 42.08% had insurance through the Ministry of Health of Peru (SIS).
Supplementary Table S2 shows the clinical characteristics of the patients. The average time from radiosurgery to AVM cure (obliteration) was 22.07 months, the average radiation dose was 17.86 Gray, the average AVM diameter was 2.14 cm, and the average number of isocenters applied was 1.35. On average, radiosurgery was performed in a single session.
Supplementary Table S3 shows the statistics of the patients’ previous treatments before SRS. Of the 202 patients, 31 had undergone surgical treatment and 49 had prior embolization. As part of the treatment, 22 only underwent surgery, 40 only embolization, and 9 both surgery and embolization. The embolizing agents were Onyx (52%) and Histoacryl (48%). In total, 155 patients had previous cerebral hemorrhage, 76 developed encephalomalacia, 178 had headache, and 112 had seizures; furthermore, 55% presented some type of deficit (motor, sensory, or cognitive). Regarding the angioarchitecture (characteristics) of the AVM, most (100) were located on the left side of the brain and most (96) were categorized as deep; most treated AVMs (95) had moderately intense flow.
Finally, Supplementary Table S4 shows the anatomical locations of the AVMs, which were mainly found in the basal ganglia (16.83%), frontal lobe (9.9%), insular cortex (6.93%), parieto–occipital region (6.93%), mesio-temporal region (6.93%), and cerebellum (6.44%).

3.2. Performance of Prediction Models

The results obtained by the models using the data in the testing set are described below.
Table 5 shows the optimal hyperparameters identified for each scenario that were used in the models for prediction.
Figure 7 shows the confusion matrices obtained as a result of evaluating the best ML model from each of the four predefined scenarios with the testing dataset. Figure 8 shows the AUC curve for each scenario.
Table 6 shows the results of the experiments with the four scenarios in terms of their performance metrics for both the training and testing datasets. The best model according to the performance metrics in the testing dataset is the LR model built with the balanced dataset.

3.3. Explainability of Models

In order to gain a general idea about the explainability of the results obtained by the models used in this research, the LR model built with balanced data (scenario 4) was used based on its good prediction results and its interpretability through the calculation of the odds ratio (importance) [35]. Table 7 shows the variables (features) and their level of importance in explaining the probability of patients with AVM being cured 36 months after SRS, among which 18 have a negative influence and 14 have a positive influence. The five most important variables that positively influence being cured are (1) the location of the AVM (side_avm), (2) the occupation of the patient (occupation), (3) the presence of bleeding in the AVM (hemorrhage), (4) previous cranial surgery (prev_cran_surgery), and (5) the type of venous drainage (type_venous_drainage). It is important to highlight that the patient’s occupation is an antecedent of the disease, but it is not clinically relevant; however, it is an interesting finding that should be evaluated in greater detail in another study.

4. Discussion

Inspired by the use of ML techniques in medicine [36,37,38,39,40,41,42], and specifically for the prognosis of patients with AVM [19,20,30], this study proposed a method that makes it possible to predict whether or not a patient with AVM who undergoes SRS will be cured at 36 months after the intervention. We found that using ML techniques for the prognosis of patients with AVMs is possible. Our approach involved evaluating four scenarios using two ML models and two datasets (imbalanced and balanced data). After following a standard process to build the ML models, in which oversampling, grid search, and cross-validation techniques were also applied, it was found that the best model to predict whether patients with AVM would be cured is the LR model trained with balanced data (accuracy 0.92, AUC 0.98). The LR model was superior to the DT model even when trained with imbalanced data, as shown in Table 6. The data preprocessing (selection of variables and balancing) performed in this study led to significantly higher results for the two models (DT and LR) than when the data were not preprocessed, so we can argue that data preprocessing should be included in any approach that uses an ML model. In addition, the results obtained in this study (accuracy 0.92 and AUC 0.98) were found to be superior to the results obtained in other studies using similar procedures, such as those by Oermann et al. [20] and Meng et al. [30], who obtained an accuracy of 0.74 and 0.83, and an AUC of 0.71 and 0.77, respectively.
From the clinical perspective, it is observed that the data used in this study have acceptable homogeneity for the radiosurgery protocol: AVM diameter of 2.14 cm (SD = 0.89), applied radiation dose of 17.86 Gy (SD = 4.44), and number of isocenters of 1.35 (SD = 0.56); all of this, together with other technical and morphological factors, allowed for the effective application of ML techniques to individualize the AVMs that will respond positively to radiosurgery treatment. The LR model is the one that best predicts the SRS outcomes and the variables that positively influence determining whether a patient will be cured are (1) the location in the basal ganglia, which coincides with previous studies [43]; additionally, the location of the AVM on the left side of the brain as an important factor is due to the fact that the sample is not completely random; (2) deep venous drainage, which occurs at the level of the basal ganglia or midbrain is considered not treatable with other techniques due to the high risk involved; (3) the occupational group, which denotes a population of children and adolescents who tend to have a good response to radiosurgery, was expected and also coincides with results from other studies [44]. In addition, it is important to highlight that both the history of bleeding in the AVM and the presence of previous surgical treatment are key prognostic factors, as it is shown in our study, where 71 (35.14%) of the patients had previous treatment either through conventional neurosurgery, embolization, or both, which contributed to improving the favorable prognosis of AVMs by reducing their size or altering the hemodynamics of the residual AVM, which ultimately favors its healing.
The importance of the results of this study goes beyond the possibility of using this method for the medical prognosis of patients with AVM; it also allows us to confirm that it is possible to use an ML model, understood as a generalizable framework, in medicine, by using historical data to predict the future. We believe that the ML algorithms that process clinical and imaging data in a personalized way can effectively help in decision-making to predict which patients with cerebral AVM could benefit from being cured by treatment with stereotactic radiosurgery. In this case, we used historical information over a 14-year time horizon, from which sociodemographic and medical data were collected to build an ML system that achieved very good prediction results and could be used as a tool by medical professionals for decision-making when dealing with new AVM cases.
Finally, the proposed approach for the prognosis and explainability of whether patients with AVM will be cured has no limitations; however, the results of these models are limited to the dataset used in this study, so its application in medical practice requires more experiments with larger amounts of data and the possibility of including additional medical variables should also be evaluated. Also, it is important to remark that the two ML models used in this study are considered transparent models, or “white box” models [21], the results of which are easy to interpret; however, it would be important to contrast the interpretability with more sophisticated explainability techniques such as local interpretable model-agnostic explanations (LIME), Shapley additive explanations (SHAP), and others, which are focused on identifying the most important predictors for any type of ML model, including those considered “black box” models.

Supplementary Materials

The following supporting information can be downloaded at https://www.mdpi.com/article/10.3390/diagnostics14010022/s1, Figure S1: Distribution of cured variable; Table S1: Sociodemographic characteristics of study population; Table S2: Clinical and radiosurgery characteristics of study population; Table S3: Angioarchitecture and treatment characteristics of study population; Table S4: Locations of AVM in study population.

Author Contributions

Conceptualization, M.J.R.M., M.V.-A. and M.S.-O.; methodology, M.J.R.M., D.M., R.B.-R. and L.Z.-R.; software, M.J.R.M., R.B.-R. and L.Z.-R.; validation, M.J.R.M., M.V.-A. and D.M.; formal analysis, M.J.R.M., M.V.-A. and M.S.-O.; investigation, M.J.R.M., D.M., R.B.-R., L.Z.-R. and M.S.-O.; resources, M.S.-O., R.B.-R. and L.Z.-R.; data curation, M.J.R.M. and M.S.-O.; writing—original draft preparation, M.J.R.M. and M.S.-O.; writing—review and editing, M.J.R.M., M.V.-A., D.M., R.B.-R. and L.Z.-R.; visualization, M.S.-O., R.B.-R. and L.Z.-R.; supervision, M.J.R.M., M.V.-A. and D.M.; project administration, M.S.-O., R.B.-R. and L.Z.-R. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data presented in this study are available on request from the corresponding author. The data are not publicly available due to institutional (Instituto de Radiocirugía del Perú) regulations and the protection of patient privacy.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Solomon, R.A.; Connolly, E.S. Arteriovenous Malformations of the Brain. N. Engl. J. Med. 2017, 376, 1859–1866. [Google Scholar] [CrossRef] [PubMed]
  2. Friedman, W.A.; Bova, F.J. Radiosurgery for Arteriovenous Malformations. Neurol. Res. 2011, 33, 803–819. [Google Scholar] [CrossRef] [PubMed]
  3. Plasencia, A.R.; Santillan, A. Embolization and Radiosurgery for Arteriovenous Malformations. Surg. Neurol. Int. 2012, 3, S90–S104. [Google Scholar] [CrossRef] [PubMed]
  4. Ding, D.; Liu, K.C. Predictive Capability of the Spetzler-Martin versus Supplementary Grading Scale for Microsurgical Outcomes of Cerebellar Arteriovenous Malformations. J. Cerebrovasc. Endovasc. Neurosurg. 2013, 15, 307–310. [Google Scholar] [CrossRef] [PubMed]
  5. Kim, H.; Abla, A.A.; Nelson, J.; McCulloch, C.E.; Bervini, D.; Morgan, M.K.; Stapleton, C.; Walcott, B.P.; Ogilvy, C.S.; Spetzler, R.F.; et al. Validation of the Supplemented Spetzler-Martin Grading System for Brain Arteriovenous Malformations in a Multicenter Cohort of 1009 Surgical Patients. Neurosurgery 2015, 76, 25–31. [Google Scholar] [CrossRef] [PubMed]
  6. Starke, R.M.; Yen, C.-P.; Ding, D.; Sheehan, J.P. A Practical Grading Scale for Predicting Outcome after Radiosurgery for Arteriovenous Malformations: Analysis of 1012 Treated Patients. J. Neurosurg. 2013, 119, 981–987. [Google Scholar] [CrossRef]
  7. Segato, A.; Marzullo, A.; Calimeri, F.; De Momi, E. Artificial Intelligence for Brain Diseases: A Systematic Review. APL Bioeng. 2020, 4, 041503. [Google Scholar] [CrossRef] [PubMed]
  8. Basu, K.; Sinha, R.; Ong, A.; Basu, T. Artificial Intelligence: How Is It Changing Medical Sciences and Its Future? Indian J. Dermatol. 2020, 65, 365–370. [Google Scholar] [CrossRef]
  9. Senders, J.T.; Staples, P.C.; Karhade, A.V.; Zaki, M.M.; Gormley, W.B.; Broekman, M.L.D.; Smith, T.R.; Arnaout, O. Machine Learning and Neurosurgical Outcome Prediction: A Systematic Review. World Neurosurg. 2018, 109, 476–486.e1. [Google Scholar] [CrossRef]
  10. Yang, Y.J.; Bang, C.S. Application of Artificial Intelligence in Gastroenterology. World J. Gastroenterol. 2019, 25, 1666–1683. [Google Scholar] [CrossRef]
  11. Panesar, S.S.; D’Souza, R.N.; Yeh, F.-C.; Fernandez-Miranda, J.C. Machine Learning Versus Logistic Regression Methods for 2-Year Mortality Prognostication in a Small, Heterogeneous Glioma Database. World Neurosurg. X 2019, 2, 100012. [Google Scholar] [CrossRef] [PubMed]
  12. Marcus, J.L.; Sewell, W.C.; Balzer, L.B.; Krakower, D.S. Artificial Intelligence and Machine Learning for HIV Prevention: Emerging Approaches to Ending the Epidemic. Curr. HIV/AIDS Rep. 2020, 17, 171–179. [Google Scholar] [CrossRef] [PubMed]
  13. Vega-Huerta, H.; Villanueva-Alarcón, R.; Mauricio, D.; Moreno, J.G.; Vilca, H.D.C.; Rodriguez, D.; Rodriguez, C. Convolutional Neural Networks on Assembling Classification Models to Detect Melanoma Skin Cancer. Int. J. Online Biomed. Eng. IJOE 2022, 18, 59–76. [Google Scholar] [CrossRef]
  14. Uspenskaya-Cadoz, O.; Alamuri, C.; Wang, L.; Yang, M.; Khinda, S.; Nigmatullina, Y.; Cao, T.; Kayal, N.; O’Keefe, M.; Rubel, C. Machine Learning Algorithm Helps Identify Non-Diagnosed Prodromal Alzheimer’s Disease Patients in the General Population. J. Prev. Alzheimers Dis. 2019, 6, 185–191. [Google Scholar] [CrossRef] [PubMed]
  15. Ghafouri-Fard, S.; Taheri, M.; Omrani, M.D.; Daaee, A.; Mohammad-Rahimi, H. Application of Artificial Neural Network for Prediction of Risk of Multiple Sclerosis Based on Single Nucleotide Polymorphism Genotypes. J. Mol. Neurosci. MN 2020, 70, 1081–1087. [Google Scholar] [CrossRef] [PubMed]
  16. Tao, W.; Yan, L.; Zeng, M.; Chen, F. Factors Affecting the Performance of Brain Arteriovenous Malformation Rupture Prediction Models. BMC Med. Inform. Decis. Mak. 2021, 21, 142. [Google Scholar] [CrossRef] [PubMed]
  17. Hong, J.-S.; Lin, C.-J.; Lin, Y.-H.; Lee, C.-C.; Yang, H.-C.; Meng, L.-H.; Lin, T.-M.; Hu, Y.-S.; Guo, W.-Y.; Chu, W.-F.; et al. Machine Learning Application with Quantitative Digital Subtraction Angiography for Detection of Hemorrhagic Brain Arteriovenous Malformations. EEE Access 2020, 8, 204573–204584. [Google Scholar] [CrossRef]
  18. Wang, T.; Lei, Y.; Tian, S.; Jiang, X.; Zhou, J.; Liu, T.; Dresser, S.; Curran, W.J.; Shu, H.-K.; Yang, X. Learning-Based Automatic Segmentation of Arteriovenous Malformations on Contrast CT Images in Brain Stereotactic Radiosurgery. Med. Phys. 2019, 46, 3133–3141. [Google Scholar] [CrossRef]
  19. Asadi, H.; Kok, H.K.; Looby, S.; Brennan, P.; O’Hare, A.; Thornton, J. Outcomes and Complications After Endovascular Treatment of Brain Arteriovenous Malformations: A Prognostication Attempt Using Artificial Intelligence. World Neurosurg. 2016, 96, 562–569.e1. [Google Scholar] [CrossRef]
  20. Oermann, E.K.; Rubinsteyn, A.; Ding, D.; Mascitelli, J.; Starke, R.M.; Bederson, J.B.; Kano, H.; Lunsford, L.D.; Sheehan, J.P.; Hammerbacher, J.; et al. Using a Machine Learning Approach to Predict Outcomes after Radiosurgery for Cerebral Arteriovenous Malformations. Sci. Rep. 2016, 6, 21161. [Google Scholar] [CrossRef]
  21. Loyola-González, O. Black-Box vs. White-Box: Understanding Their Advantages and Weaknesses from a Practical Point of View. IEEE Access 2019, 7, 154096–154113. [Google Scholar] [CrossRef]
  22. Lunsford, L.D.; Niranjan, A.; Kano, H.; Kondziolka, D. The Technical Evolution of Gamma Knife Radiosurgery for Arteriovenous Malformations. Prog. Neurol. Surg. 2013, 27, 22–34. [Google Scholar] [CrossRef] [PubMed]
  23. Rao, A.; Monteiro, J.M.; Mourao-Miranda, J.; Alzheimer’s Disease Initiative. Predictive Modelling Using Neuroimaging Data in the Presence of Confounds. NeuroImage 2017, 150, 23–49. [Google Scholar] [CrossRef] [PubMed]
  24. Cramer, H. Mathematical Methods of Statistics; Princeton Mathematical Series; Princeton University Press: Princeton, NJ, USA, 1946. [Google Scholar]
  25. Mukaka, M. A Guide to Appropriate Use of Correlation Coefficient in Medical Research. Malawi Med. J. J. Med. Assoc. Malawi 2012, 24, 69–71. [Google Scholar]
  26. Zychlinski, S. Dython: A Set of Data Tools in Python. Available online: http://shakedzy.xyz/dython (accessed on 20 June 2023).
  27. Ahsan, M.M.; Mahmud, M.A.P.; Saha, P.K.; Gupta, K.D.; Siddique, Z. Effect of Data Scaling Methods on Machine Learning Algorithms and Model Performance. Technologies 2021, 9, 52. [Google Scholar] [CrossRef]
  28. Chawla, N.V.; Bowyer, K.W.; Hall, L.O.; Kegelmeyer, W.P. SMOTE: Synthetic Minority Over-Sampling Technique. J. Artif. Intell. Res. 2002, 16, 321–357. [Google Scholar] [CrossRef]
  29. Zhu, T.; Lin, Y.; Liu, Y. Synthetic Minority Oversampling Technique for Multiclass Imbalance Problems. Pattern Recognit. 2017, 72, 327–340. [Google Scholar] [CrossRef]
  30. Meng, X.; Gao, D.; He, H.; Sun, S.; Liu, A.; Jin, H.; Li, Y. A Machine Learning Model Predicts the Outcome of SRS for Residual Arteriovenous Malformations after Partial Embolization: A Real-World Clinical Obstacle. World Neurosurg. 2022, 163, e73–e82. [Google Scholar] [CrossRef]
  31. Bzdok, D.; Altman, N.; Krzywinski, M. Statistics versus Machine Learning. Nat. Methods 2018, 15, 233–234. [Google Scholar] [CrossRef]
  32. Zhang, Y.; Yang, Y. Cross-Validation for Selecting a Model Selection Procedure. J. Econom. 2015, 187, 95–112. [Google Scholar] [CrossRef]
  33. Franklin, J. The Elements of Statistical Learning: Data Mining, Inference and Prediction. Math. Intell. 2005, 27, 83–85. [Google Scholar] [CrossRef]
  34. Pedregosa, F.; Varoquaux, G.; Gramfort, A.; Michel, V.; Thirion, B.; Grisel, O.; Blondel, M.; Prettenhofer, P.; Weiss, R.; Dubourg, V.; et al. Scikit-Learn: Machine Learning in Python. J. Mach. Learn. Res. 2011, 12, 2825–2830. [Google Scholar]
  35. Szumilas, M. Explaining Odds Ratios. J. Can. Acad. Child Adolesc. Psychiatry 2010, 19, 227–229. [Google Scholar] [PubMed]
  36. Brnabic, A.; Hess, L.M. Systematic Literature Review of Machine Learning Methods Used in the Analysis of Real-World Data for Patient-Provider Decision Making. BMC Med. Inform. Decis. Mak. 2021, 21, 54. [Google Scholar] [CrossRef] [PubMed]
  37. Kavitha, C.; Mani, V.; Srividhya, S.R.; Khalaf, O.I.; Tavera Romero, C.A. Early-Stage Alzheimer’s Disease Prediction Using Machine Learning Models. Front. Public Health 2022, 10, 853294. [Google Scholar] [CrossRef] [PubMed]
  38. Magesh, P.R.; Myloth, R.D.; Tom, R.J. An Explainable Machine Learning Model for Early Detection of Parkinson’s Disease Using LIME on DaTSCAN Imagery. Comput. Biol. Med. 2020, 126, 104041. [Google Scholar] [CrossRef] [PubMed]
  39. Chandra, J.; Muthupalaniappan, S.; Shang, Z.; Deng, R.; Lin, R.; Tolkova, I.; Butts, D.; Sul, D.; Marzouk, S.; Bose, S.; et al. Screening of Parkinson’s Disease Using Geometric Features Extracted from Spiral Drawings. Brain Sci. 2021, 11, 1297. [Google Scholar] [CrossRef]
  40. Hu, M.; Qian, X.; Liu, S.; Koh, A.J.; Sim, K.; Jiang, X.; Guan, C.; Zhou, J.H. Structural and Diffusion MRI Based Schizophrenia Classification Using 2D Pretrained and 3D Naive Convolutional Neural Networks. Schizophr. Res. 2022, 243, 330–341. [Google Scholar] [CrossRef]
  41. Pintelas, E.; Liaskos, M.; Livieris, I.E.; Kotsiantis, S.; Pintelas, P. Explainable Machine Learning Framework for Image Classification Problems: Case Study on Glioma Cancer Prediction. J. Imaging 2020, 6, 37. [Google Scholar] [CrossRef]
  42. Maqsood, S.; Damaševičius, R.; Maskeliūnas, R. Multi-Modal Brain Tumor Detection Using Deep Neural Network and Multiclass SVM. Medicina 2022, 58, 1090. [Google Scholar] [CrossRef]
  43. Yamamoto, M.; Jimbo, M.; Kobayashi, M.; Toyoda, C.; Ide, M.; Tanaka, N.; Lindquist, C.; Steiner, L. Long-Term Results of Radiosurgery for Arteriovenous Malformation: Neurodiagnostic Imaging and Histological Studies of Angiographically Confirmed Nidus Obliteration. Surg. Neurol. 1992, 37, 219–230. [Google Scholar] [CrossRef]
  44. Nicolato, A.; Longhi, M.; Tommasi, N.; Ricciardi, G.K.; Spinelli, R.; Foroni, R.I.; Zivelonghi, E.; Zironi, S.; Dall’Oglio, S.; Beltramello, A.; et al. Leksell Gamma Knife for Pediatric and Adolescent Cerebral Arteriovenous Malformations: Results of 100 Cases Followed up for at Least 36 Months. J. Neurosurg. Pediatr. 2015, 16, 736–747. [Google Scholar] [CrossRef]
Figure 1. Proposed ML system.
Figure 1. Proposed ML system.
Diagnostics 14 00022 g001
Figure 2. Data collection process: (A) consent; (B) patient selection; (C) data extraction; (D) data tabulation.
Figure 2. Data collection process: (A) consent; (B) patient selection; (C) data extraction; (D) data tabulation.
Diagnostics 14 00022 g002
Figure 3. Analysis of variables in the dataset: (a) gender variable; (b) age variable.
Figure 3. Analysis of variables in the dataset: (a) gender variable; (b) age variable.
Diagnostics 14 00022 g003
Figure 4. Number of records for each class: (a) before and (b) after data balancing.
Figure 4. Number of records for each class: (a) before and (b) after data balancing.
Diagnostics 14 00022 g004
Figure 5. ML model construction, validation, and evaluation process.
Figure 5. ML model construction, validation, and evaluation process.
Diagnostics 14 00022 g005
Figure 6. Process used to train the ML models for each of the four scenarios.
Figure 6. Process used to train the ML models for each of the four scenarios.
Diagnostics 14 00022 g006
Figure 7. Confusion matrix of ML models evaluated with testing dataset: (a) DT model built with imbalanced data; (b) DT model built with balanced data; (c) LR model built with imbalanced data; (d) LR model built with balanced data. The shade of the color represents the quantity of the observations (patients). The bigger the number, the darker the background.
Figure 7. Confusion matrix of ML models evaluated with testing dataset: (a) DT model built with imbalanced data; (b) DT model built with balanced data; (c) LR model built with imbalanced data; (d) LR model built with balanced data. The shade of the color represents the quantity of the observations (patients). The bigger the number, the darker the background.
Diagnostics 14 00022 g007
Figure 8. ROC curves of ML models evaluated with testing dataset: (a) AUC of DT models built with balanced and imbalanced data; (b) AUC of LR models built with balanced and imbalanced data. The dashed line represents a non-discriminatory test.
Figure 8. ROC curves of ML models evaluated with testing dataset: (a) AUC of DT models built with balanced and imbalanced data; (b) AUC of LR models built with balanced and imbalanced data. The dashed line represents a non-discriminatory test.
Diagnostics 14 00022 g008
Table 1. Dataset structure.
Table 1. Dataset structure.
Cat.Variable NameDescriptionValues
(S)genderSexual/gender identity1 = male; 0 = female
(S)ageChronological age4–75
(S)residencePlace of residence (city where patient lived during treatment)1 = Lima or Callao, Peru; 2 = outside Lima or Callao in Peru; 3 = outside Peru
(S)occupationPrincipal work or business1 = professional with bachelor’s or technical degree; 2 = general worker; 3 = housewife; 4 = police officer or similar; 5 = undergraduate student; 6 = school student; 7 = unemployed; 8 = self-employed
(S)education_levelLevel of education1 = preschool; 2 = primary school; 3 = secondary school; 4 = higher education
(S)health_insuranceType of health insurance1 = private; 2 = EsSalud; 3 = SIS; 4 = personal; 5 = military or similar
(C)hemorrhagePresence of bleeding on a computerized tomography (CT) scan in brain AVM before radiosurgery1 = yes; 0 = no
(C)hemorrhage_typeType of bleeding in brain AVM1 = parenchymal; 2 = ventricular; 3 = parenchymal and ventricular; 4 = no hemorrhage present
(C)headachePersistent headache before radiosurgery1 = yes; 0 = no
(C)seizuresPresence of seizures at time of diagnosis1 = yes; 0 = no
(C)encephalomalaciaLocalized softening of brain substance due to bleeding or inflammation before radiosurgery1 = yes; 0 = no
(C)other_diseasesPresence of other systemic or degenerative diseases1 = yes; 0 = no
(C)deficitType of deficit in patient’s senses before radiosurgery1 = motor deficit; 2 = sensory deficit; 3 = cognitive deficit; 4 = no deficit observed
(C)karnofsky_scaleMeasurement for classification of functional impairment0–100%
(C)glasgow_coma_scaleAssessment of impaired consciousness in response to defined stimuli3–15
(C)spetzler_martin_scaleEstimation of risk of open neurosurgery for patients with brain AVM, by evaluating AVM size, pattern of venous drainage, and eloquence of brain location0–5
(C)buffalo_scaleGrading system for endovascular treatment of brain AVMs
(C)virginia_scaleScale to predict favorable outcomes for brain AVM patients treated with gamma knife radiosurgery0–4
(T)prev_cran_surgeryPrevious open cranial surgery1 = yes; 0 = no
(T)embolizationEmbolization procedure to occlude brain AVM before radiosurgery1 = yes; 0 = no
(T)embolization_agentType of material used for embolization procedure1 = Onyx; 2 = Histoacryl; 3 = none
(T)prev_surgery_or_embolizationSurgery or embolization before radiosurgery procedure1 = surgery; 2 = embolization; 3 = surgery and embolization; 4 = none
(A)localization_avmAnatomical location of brain AVM1 = frontal lobe; 2 = temporal lobe; 3 = parietal lobe; 4 = occipital lobe; 5 = cerebral corpus callosum; 6 = insular cortex; 7 = basal ganglia; 8 = cerebellum; 9 = ventricular; 10 = vermis; 11 = frontomesial; 12 = frontoparietal; 13 = frontotemporal; 14 = mesencephalon; 15 = mesio-occipital; 16 = mesio-parietal; 17 = parieto-occipital; 18 = protuberance; 19 = mesio-temporal; 20 = temporo-occipital; 21 = temporo-parietal; 22 = brainstem
(A)venous_aneurysmPresence of venous aneurysm along with brain AVM1 = yes; 0 = no
(A)arterial_aneurysmPresence of arterial aneurysm along with brain AVM1 = yes; 0 = no
(A)dolichoectasiaElongation, dilatation, and distension of brain AVM drainage veins 1 = yes; 0 = no
(A)num_afferent_vesselsNumber of arteries feeding brain AVMNumber
(A)depth_avmDepth of brain AVM inside cranial structure1 = cortical; 2 = subcortical; 3 = cortico-subcortical; 4 = deep; 5 = ventricular
(A)diameter_avmLargest diameter of brain AVM in centimeters0.5–8.0 cm
(A)side_avmBrain side where AVM is located1 = right; 2 = left; 3 = middle
(A)expansion_shape_avmShape of AVM expansion in cerebral area1 = compact; 2 = fuzzy; 3 = scattered mixed
(A)type_venous_drainageDrainage type of venous blood in brain AVM1 = superficial; 2 = deep; 3 = mixed
(A)eloquenceBrain AVM is in a zone that compromises vital functions1 = yes; 0 = no
(A)type_circulation_drainageType of circulation of drainage in brain AVM1 = superficial venous; 2 = deep venous
(A)blood_flow_velocityBlood flow velocity in brain AVM1 = slow; 2 = moderate; 3 = fast
(A)venous_stenosisNarrowing of venous vessel lumen at outlet of drainage of brain AVM1 = yes; 0 = no
(A)volume_avmVolume of brain AVM mass in cubic centimeters0.05–75 cc
(A)num_radiosurgeriesNumber of radiosurgeries needed to stabilize brain AVMNumber
(A)mri_examinationBrain AVM was examined by magnetic resonance imaging (MRI)1 = yes; 0 = no
(A)ct_examinationBrain AVM was examined by CT1 = yes; 0 = no
(A)das_examinationBrain AVM was examined by digital angiography system (DAS)1 = yes; 0 = no
(R)num_isocentersNumber of iso-centers to cover and treat brain AVMNumber
(R)radiation_dosesDose of radiation applied to brain AVM during radiosurgery in Gray units1–50 Gy
(R)isodosisPercentage of isodosis applied during radiosurgery of brain AVM40–80%
(R)curedBrain AVM is cured within 3 years of radiosurgery, as indicated by cerebral angiography1 = patient was cured; 0 = patient was not cured
S, sociodemographic; C, clinical; T, treatment; A, angioarchitecture; R, radiosurgery.
Table 2. Variables discarded from the study.
Table 2. Variables discarded from the study.
Discarded VariablesMethodThreshold
residence, education_level, health_insurance, mri_examination, ct_examination, das_examinationExpert judgmentn.a.
hemorrhage_type, embolization_agent, prev_surgery_or_embolization, spetzler_martin_scale, type_circulation_drainageCramer’s V test0.7
diameter_avmPearson’s test0.7
Table 3. Variables selected for the study.
Table 3. Variables selected for the study.
IdVariable NameIdVariable NameIdVariable Name
1gender12buffalo_scale23expansion_shape_avm
2age13virginia_scale24type_venous_drainage
3occupation14prev_cran_surgery25eloquence
4hemorrhage15embolization26blood_flow_velocity
5headache16localization_avm27venous_stenosis
6seizures17venous_aneurysm28volume_avm
7encephalomalacia18arterial_aneurysm29num_radiosurgeries
8other_diseases19dolichoectasia 30num_isocenters
9deficit20num_afferent_vessels31radiation_doses
10karnofsky_scale21depth_avm32isodosis
11glasgow_coma_scale22side_avm33cured *
* Dependent variable.
Table 4. Search space for tuning hyperparameter values.
Table 4. Search space for tuning hyperparameter values.
ModelParametersGrid Search Space
Decision tree (DT)max_depth2–9
criteriongini, entropy
Logistic regression (LR)penaltyl1, l2
solverliblinear
C0.001, 0.01, 0.1, 1, 10, 100, 100
max_iter1000, 5000
Table 5. Calibrated hyperparameters for each model found during the training process.
Table 5. Calibrated hyperparameters for each model found during the training process.
ScenarioDataset + ModelParametersValue
01Imbalanced + DTmax_depth4
criteriongini
02Balanced + DTmax_depth9
criterionentropy
03Imbalanced + LRpenaltyl1
solverliblinear
C10
max_iter1000
04Balanced + LRpenaltyl1
solverliblinear
C10
max_iter1000
Table 6. Summary of models’ performance.
Table 6. Summary of models’ performance.
DatasetModel NameAccuracySensitivitySpecificityPrecisionBal. AccuracyF1-ScoreAUC
TrainingDT *0.920.930.880.970.910.950.94
DT (imbalanced)0.940.960.850.970.900.960.92
DT (balanced)0.980.980.990.990.980.980.98
LR *0.950.960.920.980.940.970.96
LR (imbalanced)0.970.961.001.000.980.980.99
LR (balanced)0.960.970.960.960.960.960.99
TestingDT *0.760.860.330.860.600.860.62
DT (imbalanced)0.780.830.560.900.690.860.75
DT (balanced)0.800.810.780.940.790.870.79
LR *0.800.810.780.940.790.870.93
LR (imbalanced)0.840.860.780.950.820.900.94
LR (balanced)0.920.930.890.980.910.950.98
* Models built without any data preprocessing used as a baseline for comparison.
Table 7. Importance of variables in LR model calculated via odds ratio.
Table 7. Importance of variables in LR model calculated via odds ratio.
FeatureCoef.Importance
side_avm3.693.99 × 101
occupation3.683.98 × 101
hemorrhage3.613.71 × 101
prev_cran_surgery2.811.66 × 101
type_venous_drainage2.128.35 × 100
deficit1.012.74 × 100
eloquence0.982.66 × 100
gender0.481.61 × 100
seizures0.431.53 × 100
karnofsky_scale0.001.00 × 100
virginia_scale0.001.00 × 100
num_isocenters0.001.00 × 100
num_radiosurgeries0.001.00 × 100
arterial_aneurysm0.001.00 × 100
headache−0.019.90 × 10−1
glasgow_coma_scale−0.069.39 × 10−1
buffalo_scale−0.595.52 × 10−1
venous_stenosis−1.083.39 × 10−1
radiation_doses−1.113.28 × 10−1
num_afferent_vessels−1.232.93 × 10−1
other_diseases−1.292.74 × 10−1
venous_aneurysm−1.342.61 × 10−1
age−2.231.07 × 10−1
encephalomalacia−3.074.64 × 10−2
localization_avm−3.114.47 × 10−2
depth_avm−3.233.95 × 10−2
expansion_shape_avm−4.011.81 × 10−2
isodosis−4.738.82 × 10−3
embolization−4.748.75 × 10−3
dolichoectasia−5.673.46 × 10−3
blood_flow_velocity−7.416.07 × 10−4
volume_avm−21.474.75 × 10−10
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.

Share and Cite

MDPI and ACS Style

Rodríguez Mallma, M.J.; Vilca-Aguilar, M.; Zuloaga-Rotta, L.; Borja-Rosales, R.; Salas-Ojeda, M.; Mauricio, D. Machine Learning Approach for Analyzing 3-Year Outcomes of Patients with Brain Arteriovenous Malformation (AVM) after Stereotactic Radiosurgery (SRS). Diagnostics 2024, 14, 22. https://doi.org/10.3390/diagnostics14010022

AMA Style

Rodríguez Mallma MJ, Vilca-Aguilar M, Zuloaga-Rotta L, Borja-Rosales R, Salas-Ojeda M, Mauricio D. Machine Learning Approach for Analyzing 3-Year Outcomes of Patients with Brain Arteriovenous Malformation (AVM) after Stereotactic Radiosurgery (SRS). Diagnostics. 2024; 14(1):22. https://doi.org/10.3390/diagnostics14010022

Chicago/Turabian Style

Rodríguez Mallma, Mirko Jerber, Marcos Vilca-Aguilar, Luis Zuloaga-Rotta, Rubén Borja-Rosales, María Salas-Ojeda, and David Mauricio. 2024. "Machine Learning Approach for Analyzing 3-Year Outcomes of Patients with Brain Arteriovenous Malformation (AVM) after Stereotactic Radiosurgery (SRS)" Diagnostics 14, no. 1: 22. https://doi.org/10.3390/diagnostics14010022

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop