Abstract
Background
It has been reported that patients with early breast cancer with 1–2 positive sentinel lymph nodes have a lower risk of non-sentinel lymph node (NSLN) metastasis and cannot benefit from axillary lymph node dissection.
Purpose
To develop the potential of machine learning based on multiparametric magnetic resonance imaging (MRI) and clinical factors for predicting the risk of NSLN metastasis in breast cancer.
Material and Methods
This retrospective study included 144 patients with 1–2 positive sentinel lymph node breast cancer. Multiparametric MRI morphologic findings and the detailed demographical characteristics of the primary tumor and axillary lymph node were extracted. The logistic regression, support vector classification, extreme gradient boosting, and random forest algorithm models were established to predict the risk of NSLN metastasis. The prediction efficiency of a machine-learning–based model was evaluated. Finally, the relative importance of each input variable was analyzed for the best model.
Results
Of the 144 patients, 80 (55.6%) developed NSLN metastasis. A total of 24 imaging features and 14 clinicopathological features were analyzed. The extreme gradient boosting algorithm had the strongest prediction efficiency with an area under curve of 0.881 and 0.781 in the training set and test set, respectively. Five main factors for the metastasis of NSLN were found, including histological grade, cortical thickness, fatty hilum, short axis of lymph node, and age.
Conclusion
The machine-learning model incorporating multiparametric MRI features and clinical factors can predict NSLN metastasis with high accuracy for breast cancer and provide predictive information for clinical protocol.
Keywords
Introduction
As the most common cancer among women, breast cancer poses a significant threat to public health worldwide (1). Axillary lymph node (ALN) status is very important for the clinical staging, prognosis assessment, and treatment choice for patients with breast cancer (2). The sentinel lymph node (SLN) is the first organ that metastatic cancer cells reach (3,4). Currently, the sentinel lymph node biopsy (SLNB) procedure is used to assess regional lymph node involvement of patients with breast cancer. The standard treatment for patients with breast cancer with SLN metastasis is a thorough axillary lymph node dissection (ALND) (5,6). However, ALND could cause many complications, such as lymphedema, limited arm motion, and neuropathic pain (7). Furthermore, approximately 50% of patients with positive SLN did not have additional nodal metastases after ALND (8). The National Comprehensive Cancer Network's (NCCN) Panel has recommended that a complete ALND could be avoided for patients with a low risk (LR) of residual non-SLN (NSLN) metastatic disease even though the SLN is positive (9) . The American College of Surgeons Oncology Group Z0011 (ACOSOG Z0011) trial and International Breast Cancer Study Group (IBCSG) 23-01 revealed that ALND for one or two SLN metastases in early breast cancer did not confer a survival benefit (10,11). A long-term follow-up of the Z0011 trial confirmed these results (12). Therefore, it is controversial whether complete ALND is required in patients with SLN metastasis and LR of lymph node metastasis.
In addition to the assessment of axillary nodal disease burden, several models have been developed to predict metastasis involving NSLN. The most widely used models included nomograms (Memorial Sloan Kettering Cancer Center and Stanford) and scoring systems (Tenon and Saidi) (13–16). These models used clinical-pathologic information including patient age, lymphovascular invasion, multifocality, and number of positive SLNs. None of these models used results from imaging studies.
Machine learning (ML) is a new type of artificial intelligence. Compared with traditional statistical approaches, which usually only consider and evaluate a limited set of hypotheses, ML approaches have been used in predictive mode and decision-making in biomedicine (17–19). For multiparametric magnetic resonance imaging (mpMRI) of the breast, it combines morphological and functional sequences to not only provide the morphological characteristics of the tumor, but also reflect the pathological changes associated with the lesion; however, the potential of mpMRI in this respect has not been fully explored (20–22).
Therefore, the aim of the present study was to assess the feasibility of ML with mpMRI using T1-weighted (T1W) imaging, T2-weighted (T2W) imaging, dynamic contrast-enhanced MRI (DCE-MRI), and diffusion-weighted imaging (DW) for predicting the risk of NSLN metastasis in patients with breast cancer, which may help some patients with breast cancer with one or two positive SLNs but consistently negative NSLN to avoid overtreatment and promote personalized axillary management. The study ultimately developed a personalized predictive model that could guide clinicians in making better cancer treatment choices for different patients.
Material and Methods
Patients
The present study was a retrospective review of the medical records of patients with early breast cancer diagnosed and treated at our institution between September 2017 and November 2022. The protocol of this observational study was approved by the institutional review board of our hospital (2021-02).
The inclusion criteria included the following: (i) primary cT1–2 stage invasive breast cancer; (ii) preoperative breast MRI performed within one week before breast surgery; (iii) patients with primary breast cancer who may receive SLNB and/or ALND; (iv) patients with only 1–2 positive SLNs; and (v) a visible tumour on MRI. The exclusion criteria included the following: (i) a previous history of breast cancer; (ii) non-invasive breast cancer; (iii) no breast MRI examination; (iv) inadequate quality of MRI; (v) neoadjuvant chemotherapy or radiation therapy before breast surgery; and (vi) patients who did not undergo SLNB and/or ALND. A total of 144 women met the criteria and were included in the analysis.
MRI examinations
MRI was performed on a 3.0-T MR scanner (GE Signa HDxt, Boston, USA) with 16-channel phased-array breast coil. The patient had an advanced head, prone position, natural breast ptosis, and centered nipple. The MRI sequences included axial T1W (repetition time [TR]/echo time [TE] = 725/7.18 ms, slice thickness/gap = 5/1 mm), axial T2W (TR/TE = 5200/90 ms, slice thickness/gap = 5/1 mm), and axial DWI (TR/TE = 8300/63 ms, slice thickness/gap = 5/1 mm, b value = 800 s/mm2). DCE-MRI was performed with a volume acceleration sequence in the axial plane (TR/TE = 6.2/2.3 ms, slice thickness/gap = 2/0 mm, field of view = 360 × 360 mm, matrix = 512 × 512, and flip angle = 12°). The contrast agent (Gd-DTPA, 0.1 mmol/kg; Omniscan, GE Healthcare) was injected intravenously at a rate of 2 mL/s. In total, eight phases were scanned without intervals.
Image analysis
mpMRI data were anonymized by two experienced breast radiologists (with 12 and 5 years of experienced, respectively) for evaluation, who were blinded to the clinicopathologic details. Any disagreement was resolved by consultation. Imaging features were extracted from mpMRI images. These features are used as properties of machine learning classifiers.
Imaging features of the primary tumor are as follows: (i) the characteristics of lesion enhancement: mass enhancement, non-mass enhancement; (ii) multiple lesions; (iii) fibroglanular type (FGT) was as follows: (a) almost, (b) scattered, (c) heterogeneous, (d) dense; (iv) background parenchymal enhancement (BPE) includes minimal, mild, moderate, and marked; (v) tumor location: inner upper quadrant, inner lower quadrant, outer upper quadrant, outer lower quadrant, central glandular region and other regions; (vi) the shape of the mass: oval, round, irregular; (vii) the margin of the mass/non-mass: smooth, irregular, spiculated; (viii) mass enhancement features: homogeneous, heterogeneous, rim; (ix) non-mass enhancement (NME) features: distribution (linear, segmental, focal, regional, multiple regional) and internal enhancement features (homogeneous, heterogeneous, clumped, cluster ring); (x) peritumoral edema (yes/no); (xi) thickening of adjacent skin; and (xii) inversion of the nipple.
Quantitative indicators are as follows: (i) the maximum diameter of tumor was measured; and (ii) tumoral apparent diffusion coefficent (ADC). The minimum ADC value (ADCmin) was taken after multiple measurements on different parts of the same lesion. The time-signal intensity curve (TIC) was divided into three types: persistent (I), plateau (Ⅱ), and washout (Ⅲ).
Predefined imaging features of axillary lymph nodes were assessed for the most suspicious lymph node in each participant. Morphologic features for the assessment of lymph node were as follows: (i) short axis (in mm); (ii) long axis (in mm); (iii) aspect ratio; (iv) margin (smooth/irregular); (v) hilum (absent/present); (vi) cortical thickness (in mm); (vii) perifocal edema (yes/no); and (viii) axillary LNs symmetry (yes/no). Lymph nodes were considered suspect malignancies if they had at least one of the following characteristics (23,24): (i) absence of fatty hilum, when fat signal intensity was not visualized in the lymph nodes; (ii) irregular cortex, when there was a focal increase in cortical thickness associated with the fatty hilum, but not centrally located in the node, and located on one side; (iii) lobulated margins, when nodules have irregular external contours; and (iv) when there was edema around the lymph nodes. Fig. 1a–d shows the morphological features of lymph node metastasis.

Example of morphologic features for the assessment of axillary lymph nodes in axial T1W, T2W, and DCE-MRI: (a) lymph node with absense of fatty hilum; (b) lymph node with an inhomogeneous cortex; (c) lymph node with perifocal edema; and (d) lymph node with irregular margin. DCE-MRI, dynamic contrast-enhanced magnetic resonance imaging; T1W, T1-weighted; T2W, T2-weighted.
Data processing and feature screening
Dataset
All patients were randomly divided into a training set (n = 100 (70%) and a test set (n = 44, 30%) with a ratio of 7:3. The training set was used to train the model, and the test set was used to validate the model independently.
Feature engineering
Before model training, the values of all features were rescaled to range [0, 1] to reduce the excessive reliance on a certain feature. To avoid the model overfitting, reduce the redundancy, and find the optimal feature subset, the analysis of variance and the pearson correlation analysis were applied to filter the features.
Candidate ML algorithms
Four types of ML algorithms were applied in this study, including logistic regression (LR), extreme bradient boosting (XGBoost), random forest (RF), and support vector classification (SVC).
Evaluation metrics
This experiment obtained several parameters of the model confusion matrix, including true positive (TP), true negative (TN), false positive (FP), and false negative (FN). Accuracy, sensitivity, specificity, F1 score, and area under the receiver operating characteristic (ROC) curve (AUC) were used to evaluate the ML models.
Model tuning process
In the process of training the model, fivefold cross-validation was performed to gauge the stability of the model and to overcome the overfitting. Due to limited sample size, the learning curve was combined to analyze the effect of the model in order to ensure the generalization and stability, and to improve the prediction performance of the model on new samples. The AUCs were compared using the DeLong test. The model with the highest AUC was chosen as the final model. In order to verify the effect of the model on unknown samples, all indicators of each model were predicted and calculated on the test set to further confirm that the selected model was the optimal mode.
Statistical analysis
Categorical variables were reported as integers and proportions. The continuous variables were described as means ± standard deviation (SD) if the variable follows normal distribution and with medians and lower and upper quartiles (Q1, Q3) otherwise. Cohen's Kappa was used to calculate the interrater reliability between the two readers. Based on the Python language (version 3.7.4) and Jupyter lab software (version 3.0), we used the Scikit-learn library (version 1.0.2), and introduced four ML classification algorithms to predict NSLN metastasis, including LR, SVM, RF, and XGboost. A P value <0.05 was considered to indicate a significant difference.
Results
Patient characteristics
In total, 144 patients with SLN-positive breast cancer were included (mean age = 51.8 ± 11.0 years; age range = 23–78 years). The clinicopathologic characteristics of 80 patients with metastatic NSLN and 64 patients without metastatic NSLN are summarized in Table 1. The rates of NSLN(+) in the training and test sets were 52.0% and 83%, respectively. Table 2 shows the MRI features of tumors and lymph nodes. There was also no variability between the observers. The unweighted values of Cohen's k were 0.694–0.931.
Patient demographics and tumor characteristics.
Values are given as n (%) or mean ± SD (range).
BC, breast cancer; ER, estrogen receptor; HER2, human epidermal growth factor receptor 2; IDC, invasive ductal carcinoma; LVI, lymphovascular invasion; NSLN, non-sentinel lymph node; PR, progesterone receptor; SLN, sentinel lymph node.
MRI features of tumors and lymph nodes.
Data in parentheses were percentages unless otherwise noted. † , Values refer to median (interquartile range). NME, non-mass enhancement; FGT, fibroglanular type; BPE, background parenchymal enhancemen; LN, lymph node; ADC, apparent diffusion coefficent
Feature screening results
Delete features with low variance
In this experiment, the variance information of the features that can be quantified is shown in Fig. 2.

Descriptors variance values: the variance in low variability represents the difference between the different samples on this feature, which means that the samples cannot be classified. ADC, apparent diffusion coefficient; ER, oestrogen receptor; LN, lymph node; LVI, lymphovascular invasion; PR, progesterone receptor.
Optimize strong correlation features
This paper draws the Pearson linear correlation coefficient map (Fig. 3) among the remaining features to analyze and identify highly correlated features, and then eliminate multicollinearity between features.

Correlation of variables: each value in the left part of the figure represents the Pearson correlation coefficient value between the features marked on the horizontal axis and the vertical axis. Significant cross-correlation (Pearson correlation coefficient >0.8) was not observed among most of the features. This proves that the collinearity analysis worked well. ADC, apparent diffusion coefficient; ER, oestrogen receptor; LN, lymph node; LVI, lymphovascular invasion; PR, progesterone receptor.
Performance of ML models
Combining the confusion matrix in Fig. 4a, the learning curve in Fig. 4b, the ROC curve in Fig. 4c, Fig. 4d, and Table 3, we comprehensively observe the performance of the prediction model under each algorithm. For the training set, AUC values of the XGBoost, LR, SVC, and RF models were 0.881, 0.866, 0.843, and 0.853, respectively. In the test set, AUC values of the XGBoost, LR, SVC, and RF models were 0.781, 0.692, 0.680, and 0.705, respectively. DeLong test shows that there are significant differences between the LR and SVC models (P = 0.009) in the training set. In the test set, the AUC values of the XGBoost and LR models were significantly different (P = 0.04). We applied the optimal model obtained on the training set to the test dataset to obtain the approximate performance evaluation metrics of the model on the new sample.

Confusion matrices, obtained by different models when predicting NSLN metastasis. (a) The XGboost model predicts the most correct positive and negative samples and has the highest overall accuracy rate. (b) The learning curve for fivefold cross-validation in the training set. (c, d) ROC curves of predictive models based on machine learning algorithms for the training set and test set, respectively. AUC, the area under the ROC curves; NSLN, non-sentinel lymph node; ROC, receiver operating characteristic; SVC, support vector classification; XGBoost, extreme gradient boosting.
Comparison and prediction performances of diferent models for NSLN metastasis.
AUC, area under the curve; LR, logistic regression; SVM, support vector machine; RF, random forest; XGBoost, extreme gradient boosting.
Relative importance of variables in ML models
The evaluation results in order of feature importance obtained using the optimal model XGBoost in this experiment are shown in Fig. 5.

Variable importance of features included in the XGBoost algorithm for the prediction of NSLN status. LN, lymph node; NME,non-mass enhancement; NSLN, non-sentinel lymph node; PR, progesterone receptor; SLN, sentinel lymph node.
Discussion
Our study explored the value of ML models based on mpMRI and clinicopathological features in predicting the NSLN metastasis of clinical T1 or T2 breast cancer patients. The feature “tumoral ADC” with the lowest variance value in the training dataset was deleted. For multiple features with strong correlation, only one valid feature is reserved generally. The correlation between “short axis” and “long axis” is relatively high (up to 0.8) (Fig. 3); however the “long axis” variance value is low (Fig. 2), so the “long axis” feature is deleted. Among the four models, XGBoost displayed a better performance for predicting NLSN, with four performance metrics outperforming the other models in the training set (AUC = 0.881, accuracy = 0.840, sensitivity = 0.928, F1 score = 0.866), and similar results were observed in the test set. Therefore, we propose a novel non-invasive method based on preoperative mpMRI images to predict NSLN status, which may be helpful for guiding the individualized treatment of patients with positive SLNB.
The present study further evaluated the importance of different imaging features of the lymph nodes in the model. Nodal cortical thickness, fatty hilum, short axis, margin, and aspect ratio ranked top 10 in the model, which had a great influence on the prediction results of NSLN. Previous studies have shown that lymph node cortical thickness is the most discriminating objective criterion for predicting axillary positive status (25). Our results were similar, finding that cortical thickness was highly positively correlated with NSLN metastasis. In short, cortical morphologic change is a well-established sign of metastases as metastatic cells reside in the nodal cortex (26).The size of lymph nodes characterized by the diameter of the short axis is a recognized standard for evaluating the status of lymph node metastasis (27). Unlike previous studies (28), the characteristic importance of our XGboost classifier shows that in addition to the short axis of lymph nodes, aspect ratio is also an important predictor. Benign lymph nodes are kidney shaped, and the longitudinal diameter is significantly larger than the transverse diameter, while malignant lymph nodes become rounded and the aspect ratio is reduced. It can be seen from the model that nodal hilum and margin are also independent predictors of lymph node metastasis, which is consistent with previous research results (29) . Clinical studies have confirmed that cancer cells lead to abnormal hyperplasia of marginal sinus through the input of lymphatic vessels, and then invade the cortex and medulla. Excessive proliferation of cancer cells leads to thickening of nodal cortex, abnormal morphology of lymphatic hilum, enhanced lateral growth, and reduced aspect ratio (26,30). Therefore, the predictive factors included in this study model have high universal application value.
The ML model has been used to differentiate benign and malignant breast nodules in some studies (31–33). However, few studies used traditional ML methods combined with imaging features to predict NSLN metastasis in patients with breast cancer. In our study, four ML methods combined with mpMRI and clinical features were constructed to predict NSLN metastasis, and the AUC value of the optinal model was 0.759 (34). Compared to previous studies, our XGBoost model performed better than most clinical models, but not as well as in some radiomics studies (13,19,35–37). There could be several reasons for this. A previous study reported that the XGBoost algorithm showed better performance in predicting the response to neoadjuvant chemotherapy in breast cancer than traditional supervised ML algorithms such as LR and SVC (18). Our results also show that the XGBoost model is superior to the SVC, RF, and LR models in assessing the NSLN status. Radiomics is the study of transforming image analysis into quantifiable features by extracting higher-level high-throughput features from images, which may provide more useful information for NSLN evaluation, such as texture features. However, previous radiomics studies have not yet entered the clinic, and their complex and abstract analytical process has limited clinical practice (35,38). In our study, although subjective imaging assessments may vary depending on the radiologist's experience, recognition performance was confirmed in the test dataset. In addition, the mpMRI features used in our model are relatively easy to obtain in routine clinical practice, compared to radiomic features, and may help optimize clinical workflow. At present, the clinical characteristics and treatment mode of some patients do not meet the requirements of Z0011 and IBCSG 23-01 trial, but ALND or axillary radiotherapy is still needed, and about two-thirds of the patients have not developed NSLN metastasis. If axillary treatment is performed in all patients, there is the problem of axillary overtreatment. Therefore, assessing the risk of NSLN metastasis will help to develop a rational axillary management strategy.
The present study has some limitations. First, we used morphologic features that can be routinely extracted from mpMRI, still relying on subjective assessment of radiologists. Such inter- or intra-observer variability may affect the extracted imaging features, and in turn, reproducibility may be a limitation of this study. This potential effect should be the subject of future research. Second, we did not compare suspicious nodes using MRI with its pathological findings on a pathologic basis. Therefore, the accuracy of NSLN prediction could be affected for the constructed predictive models. Finally, a limited number of cases were analyzed at an institution with a small number of patients. The XGBoost model established in this study still needs to be used in multicenter datasets with larger sample sizes to obtain high-level evidence for clinical application.
In conclusion, ML with mpMRI of the breast enables the early prediction of the risk of NSLN metastasis in patients with breast cancer with 1–2 positive SLNs with high accuracy. Thus is a pivotal step for the realization of precision medicine in breast cancer.
Footnotes
Declaration of conflicting interests
The authors declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The authors received the following financial support for the research, authorship, and/or publication of this article: This work was supported by the Natural Science Foundation of Shandong Province ZR202103060229.
