Using machine learning to predict lymph node metastasis in patients with renal cell carcinoma: A population-based study.

Front Public Health 2023 AI 5 Explanations View Original
Original Paper (PDF)

Unable to display PDF. Download it here or view on PMC.

Plain-English Explanations
Pages 1-2
Why Knowing If Cancer Has Reached the Lymph Nodes Matters

Lymph node metastasis - when cancer spreads from the kidney tumor into nearby lymph nodes - is one of the most significant warning signs in kidney cancer. Patients whose kidney cancer has spread to lymph nodes are far more likely to develop distant metastasis (spread to other organs), and their 5-year survival rate can drop below 40%. Detecting lymph node involvement early and accurately is therefore critical for choosing the right treatment approach.

Currently, doctors use CT scans or MRI to look for enlarged lymph nodes as a sign of metastasis. However, these imaging methods have a fundamental problem: enlarged lymph nodes are not always cancerous, and cancer can be present in normal-sized lymph nodes (called micrometastasis). This means imaging alone has poor accuracy, and many patients undergo unnecessary lymph node dissection (surgical removal of lymph nodes) or conversely miss out on a procedure that could improve their survival.

A lymph node dissection (LND) - removing the affected lymph nodes surgically - can improve prognosis when performed in the right patients. However, which patients actually benefit from LND remains debated. A reliable tool to predict who has lymph node involvement before surgery could allow doctors to plan targeted lymph node removal at the time of kidney surgery, potentially improving outcomes for those who truly need it.

TL;DR: Accurately predicting lymph node involvement in kidney cancer before surgery is critical but difficult with current imaging, making an AI-based prediction tool potentially valuable for treatment planning and surgical decision-making.
Pages 2-3
Building an AI Predictor from Over 52,000 Kidney Cancer Patients

The researchers used the SEER database (Surveillance, Epidemiology, and End Results), a large US cancer registry maintained by the National Cancer Institute, to gather data from 52,199 kidney cancer patients diagnosed between 2010 and 2017. Only patients with complete data on age, sex, tumor size, T stage, M stage, tumor grade, histology, and tumor laterality were included. This dataset was split into a training set (36,539 patients) and an internal test set (15,660 patients).

Six different machine learning algorithms were trained and compared: logistic regression, XGBoost (extreme gradient boosting), random forest, support vector machine (SVM), artificial neural network (ANN), and decision tree. All models were optimized using 10-fold cross-validation. Eight clinical features identified through univariable logistic regression as significant predictors were used as inputs: age, sex, tumor laterality, T stage, tumor size, tumor histology type, tumor grade, and M stage (presence of distant metastasis).

Model performance was evaluated using multiple metrics: AUC (area under the ROC curve, measuring discriminative ability), accuracy, sensitivity (ability to detect true positives), and specificity (ability to rule out false positives). The best-performing model was then externally validated on 492 kidney cancer patients from Southwest Hospital in Chongqing, China - a completely independent dataset from a different country and institution.

TL;DR: Six machine learning models were trained on 52,199 SEER patients using 8 clinical features and validated on 492 independent Chinese patients, with XGBoost emerging as the best performer.
Pages 3-5
XGBoost Achieves Excellent Accuracy in Both US and Chinese Patients

XGBoost outperformed all five competing algorithms in both internal and external validation. In the internal test on 15,660 US patients, XGBoost achieved an AUC of 0.930, accuracy of 85.7%, sensitivity of 85.6%, and specificity of 87.3%. On the external test in 492 Chinese patients, performance actually improved further: AUC 0.958, accuracy 93.5%, sensitivity 76.9%, and specificity 94.4%.

The most important predictor variables for the XGBoost model were, in order: M stage (whether distant metastasis was already present), tumor size, T stage (local tumor extent), and tumor grade. This aligns with clinical intuition - larger, more locally advanced, higher-grade tumors with distant spread are far more likely to also involve lymph nodes. Notably, left-sided tumors had a higher risk of lymph node metastasis than right-sided tumors, consistent with anatomical differences in lymphatic drainage patterns.

Survival analysis confirmed the model's clinical validity. Patients predicted by XGBoost to have lymph node-positive (N1) disease had dramatically shorter overall survival than those predicted to be lymph node-negative (N0), with the difference being highly statistically significant (p less than 0.0001). This means the model's predictions directly correlate with real differences in patient outcomes, not just statistical patterns in the data.

TL;DR: XGBoost predicted lymph node metastasis with AUC 0.930 internally and 0.958 externally, with M stage, tumor size, T stage, and tumor grade as the most important factors, and its predictions accurately stratified patient survival outcomes.
Pages 5-6
A Free Online Tool for Surgeons to Assess Lymph Node Risk

Based on the XGBoost model, the researchers built a free online calculator accessible at https://xinglinyi.shinyapps.io/20221004-app/ that surgeons can use before operating on a kidney cancer patient. The physician enters the patient's age, sex, tumor side, T stage, M stage, tumor size, tumor grade, and histology type into the web form and clicks a button to receive an estimated probability of lymph node metastasis. No specialized software or technical knowledge is required.

This type of tool has direct practical value in the operating room planning process. If a patient has a high predicted probability of lymph node involvement, the surgeon can plan to include lymph node dissection as part of the kidney cancer surgery. For patients with low predicted risk, unnecessary lymph node dissection can be avoided, reducing operative time, complications, and recovery burden. The model essentially provides a pre-surgical risk stratification that imaging alone cannot reliably provide.

The decision curve analysis performed in the study confirmed that the XGBoost model offers genuine clinical benefit across a wide range of threshold probabilities, outperforming the "treat all" or "treat none" baseline strategies. This is the clinical applicability test most relevant to real-world use: a model is only clinically useful if using it leads to better decisions than simply applying fixed rules to all patients.

TL;DR: A free online calculator built on the XGBoost model allows surgeons to estimate a kidney cancer patient's probability of lymph node metastasis before surgery, enabling more personalized decisions about whether to include lymph node dissection.
Pages 8-9
Limitations and What This Means for Future Research

The study's most important strength is its scale: with 52,199 patients in the training and internal test sets and a fully independent external validation cohort from a different country, the findings are substantially more reliable than studies based on a few hundred patients. The consistency between US SEER data and Chinese hospital data also suggests the model captures universal biological relationships rather than population-specific patterns.

Key limitations include the reliance on retrospective registry data, which may contain coding errors and lacks some potentially useful biomarkers (such as lab values or molecular tumor markers). The external validation cohort was entirely Chinese, leaving it uncertain how well the model generalizes to other ethnic populations or healthcare settings with different staging and treatment practices.

Perhaps most importantly, only about 4-5% of the patients in the dataset had lymph node metastasis at diagnosis, which creates a significant class imbalance challenge. Despite this, XGBoost performed well, but future refinements incorporating blood biomarkers, imaging features, or genomic data could further improve sensitivity for detecting lymph node spread in this critical minority of patients who need the most careful surgical planning.

TL;DR: Despite its strengths in scale and cross-national validation, the model still needs prospective validation and incorporation of biomarkers beyond standard clinical staging features before widespread clinical adoption.
Citation: Open Access, 2023. Available at: PMC10080072.