- Original research
- Open Access
Machine learning classification of mediastinal lymph node metastasis in NSCLC: a multicentre study in a Western European patient population
EJNMMI Physics volume 9, Article number: 66 (2022)
[18F] FDG PET-CT has an important role in the initial staging of lung cancer; however, accurate differentiation between activity in malignant and benign intrathoracic lymph nodes on PET-CT scans can be challenging. The purpose of the current study was to investigate the effect of incorporating primary tumour data and clinical features to differentiate between [18F] FDG-avid malignant and benign intrathoracic lymph nodes.
We retrospectively selected lung cancer patients who underwent PET-CT for initial staging in two centres in the Netherlands. The primary tumour and suspected lymph node metastases were annotated and cross-referenced with pathology results. Lymph nodes were classified as malignant or benign. From the image data, we extracted radiomic features and trained the classifier model using the extreme gradient boost (XGB) algorithm. Various scenarios were defined by selecting different combinations of data input and clinical features. Data from centre 1 were used for training and validation of the models using the XGB algorithm. To determine the performance of the model in a different hospital, the XGB model was tested using data from centre 2.
Adding primary tumour data resulted in a significant gain in the performance of the trained classifier model. Adding the clinical information about distant metastases did not lead to significant improvement. The performance of the model in the test set (centre 2) was slightly but statistically significantly lower than in the validation set (centre 1).
Using the XGB algorithm potentially leads to an improved model for the classification of intrathoracic lymph nodes. The inclusion of primary tumour data improved the performance of the model, while additional knowledge of distant metastases did not. In patients in whom metastases are limited to lymph nodes in the thorax, this may reduce costly and invasive procedures such as endobronchial ultrasound or mediastinoscopy procedures.
Non-small cell lung cancer (NSCLC) is one of the most prevalent malignancies in the western world; PET-CT has an important role in its initial staging [1,2,3,4,5]. The use of [18F] FDG PET-CT for preoperative staging of NSCLC reduces both the total number of thoracotomies and the number of unnecessary thoracotomies [6,7,8,9]. It has high sensitivity and intermediate specificity for the detection of primary tumours, locoregional lymph node metastases, and distant metastases. The limited specificity of PET-CT for lymph node metastases necessitates pathological confirmation, mostly obtained through the use of endobronchial ultrasound or mediastinoscopy procedures [10,11,12,13,14,15,16], which are costly and carry a risk of complications.
Artificial intelligence has the potential to improve diagnostic accuracy and management in patients with NSCLC [17,18,19,20], and specifically for use with CT imaging [21,22,23]. Wang et al.  demonstrated that a classification model for PET-CT, based on machine learning (ML) methods, can be highly accurate and perform on par with or better than human observers in differentiating between malignant and benign intrathoracic lymph nodes. Yoo et al.  included primary tumour data and achieved better performance, using a boosted decision tree in a single-centre study in a Korean population.
The aim of this study was to use an improved gradient boost algorithm-based implementation of gradient boosted classification models for the supervised classification of intrathoracic lymph nodes in patients with NSCLC in a retrospective multicentre study in Dutch hospitals. We also investigated the effect of additional clinical record information of distant metastases to differentiate between [18F] FDG-avid malignant and benign intrathoracic lymph nodes. We only made use of open-source and readily available free software tools for the selection of radiomic features, training, and evaluation of our classification model.
We included 148 consecutive patients, diagnosed with NSCLC, who underwent a clinically indicated PET-CT scan for primary staging between July 2017 and July 2019 in the Albert Schweitzer hospital in Dordrecht (centre 1) and between July 2014 and December 2019 in the Diakonessen hospital in Utrecht (centre 2). For patient characteristics, see Table 1. The decision to request a PET-CT for primary staging of NSCLC was made at the discretion of the referring pulmonologist. All patients were scanned 60 min after intravenous administration of 2–3 MBq/kg of [18F] FDG, after which a low-dose CT was performed for attenuation correction and anatomical reference. At both centres, the PET-CT acquisitions were scanned using a Biograph mCT PET-CT system, manufactured by Siemens Healthcare (Erlangen, Germany). The clinical acquisition protocol at both sites consisted of a scanning time of 3 min per bed position and a similar iterative reconstruction of the acquired data incorporating the point spread function and time-of-flight corrections.
Patients who had [18F] FDG uptake above background in intrathoracic lymph nodes underwent biopsy, mostly with an endobronchial ultrasound-guided fine-needle aspiration, within one week after PET-CT scan. A small group underwent surgical biopsy, either during the mediastinoscopy or at the definitive surgery.
The acquired and reconstructed image volumes were anonymized and transferred to a workstation for further analysis. The primary tumour and suspected lymph node metastases were annotated using Osirix MD software (Pixmeo SARL, Geneva, Switzerland). PET images and fused PET-CT images were used for annotation. When two lymph nodes were fused at a border, the borders were adhered to separate the various lymph node stations, as described in the 2009 IASLC lymph node map . The annotation was performed by a nuclear medicine physician with 8 years of experience in reading PET-CT scans. After cross-referencing with pathology results obtained with biopsy or surgery, lymph nodes were classified as malignant or benign. Lymph nodes without pathologic confirmation were excluded from the analysis, see Table 2. The resulting 504 samples of malignant and benign lymph nodes were combined with various clinical data from the corresponding patients and were subsequently used as the dataset for the creation and analysis of the classification model.
The lymph nodes and primary tumours were extracted from the PET volumes by using the segmentation masks from the manual segmentation step mentioned above. All segmented volumes were padded with zeros to create volumes with the dimensions 144 × 144 × 144.
After normalization of the PET images, we created input data records for each lymph node of the dimensions 144 × 144 × 144. The input data record for each lymph node contained the lymph node PET image and the lymph node segmentation mask (as shown in Fig. 1), and we combined these images with the primary tumour PET image and the primary tumour segmentation mask.
Radiomic features and machine learning methods
To establish a baseline, we first analysed the performance of a simple standardized uptake value (SUV) threshold model based on the mean SUV of the lymph nodes. Boosted decision trees have previously been shown to be very successful for the classification of intrathoracic lymph nodes [24, 25]. A specific implementation of the gradient boosting method is the extreme gradient boosting (XGB) algorithm. This algorithm has been shown to be even more successful , and therefore, we used the XGB algorithm.
For both the primary tumours and lymph nodes, we derived diagnostic features from the PET data using the PyRadiomics library (version 3.0.1). This open-source library extracts a standard set of features and, therefore, improves reproducibility . The features can be subdivided into 7 different feature groups: first-order statistics, shape-based (3D), grey-level co-occurrence matrix, grey-level size zone matrix, grey-level run length matrix, neighbouring grey tone difference matrix, and grey-level dependence matrix features. In each feature group, a different number of features was available to be calculated. In total, 107 features were calculated for each of the two different data inputs (primary tumour PET and lymph node PET image data). All features were included.
To study the effects of the absence or inclusion of the primary tumour and clinical information into our models, we defined various scenarios by selecting different combinations of data input (primary tumour PET and lymph node PET) combined with different clinical features (all clinical features, only metastases features, and no clinical features), which resulted in six scenarios. The model in which all clinical features were included contained the patient’s age, sex, smoking status, and, in the case of metastases, specific information about the type of metastasis (abdominal, bone, adrenal, liver, or thyroid). In all scenarios, the data from centre 1 were used for training and validation of the models (see Table 1). To train and validate the models, we used a 10 times repeated stratified fivefold validator. This cross-validation method splits the data into five different subsets in which the training set consisted of four subsets and the validation set consisted of one subset. This process was repeated until the model was trained and validated by all different combinations of subsets. Besides that, we studied the impact of including less features in the model and, therefore, we created three additional scenarios that contained the 5, 10, and 20 best-performing features. To determine the best-performing features, the model was trained (10 times repeated stratified fivefold) and, then, the feature weights were calculated. The top 5, 10, and 20 best-performing features were selected as model features. Those models were compared to the model in which all features were included.
To compare various models, we determined the receiver operator characteristic (ROC) curves. The effect of the absence or inclusion of the primary tumour information and clinical information was evaluated by the area under the ROC curve (AUC). The AUCs were analysed with the independent two sample t test. The performance of the best model was evaluated for the validation set (10 times repeated stratified fivefold validator) by the diagnostic accuracy (ACC), the negative predictive value (NPV), positive predictive value (PPV), specificity (SPEC), and sensitivity (SENS). To determine the performance of the model in a different hospital, the model was tested using the data from centre 2 (see Table 1) and evaluated by the ACC, NPV, PPV, SPEC, and SENS. Python software and scikit-learn toolkit were conducted for establishment and evaluation of the models. A p value of less than 0.05 was considered significant.
Distribution of SUV
For each patient, we determined the SUV of both the primary tumour and the lymph nodes for which pathology results were present. As shown in Fig. 2, the distributions of the SUVs of the malign and benign groups of lymph nodes differed significantly.
We determined the ROC curves and AUC values for the classifier models, which were trained and validated using data from centre 1. All the classifier models significantly outperformed the simple threshold model based on the mean SUV, see Fig. 3. For reference, we also included the results of the human observer studies as reported by Wang et al.  (sensitivity 90% and specificity 73%) and Yoo et al.  (sensitivity 75% and specificity 80%). The results showed that adding primary tumour information resulted in a significant gain in performance compared to using the node image data only (Fig. 3a). Adding the clinical information, including distant metastases, did not lead to significant differences in AUC values (Fig. 3b). No significant differences were observed between the model using all features or only the top 5, 10, and 20 best-performing features; however, the model including all features and only the top 10 best-performing features showed a small increase in AUC compared to the top 5 and top 20 models (Fig. 3c). To prevent overfitting, the model using the top 10 best-performing features was selected as the best-performing model. This model consisted of radiomic features using data input from PET lymph nodes as well as PET primary tumour data. An overview of the top 5, 10, and 20 best-performing features is shown in Table 3.
For the model using the top 10 best-performing features, the ACC, NPV, PPV, SPEC, and SENS have been summarized for the data in centre 1 (validation set) and centre 2 (test set), see Table 4. The performance of the model in the test set was slightly but statistically significantly worse than in the validation set.
In patients with NSCLC, [18F] FDG PET-CT has a high sensitivity but intermediate specificity in the detection of intrathoracic lymph node metastases. In clinical practice, this means that even in lymph nodes with very little [18F] FDG uptake, metastasis cannot be ruled out and pathologic confirmation is necessary. Pathologic confirmation usually requires mediastinoscopy or endobronchial ultrasound-guided fine-needle aspiration, which are costly and carry a risk of complications. The present study was conducted to find whether the XGB-based model could differentiate between malignant and benign lymph nodes in PET-CT in a clinical setting. We investigated the effect of the absence or inclusion of the primary tumour data, as well as clinical data into our models in a retrospective two-centre study in Dutch hospitals. The performance of the model was tested on a completely separate data set from a different hospital.
The inclusion of primary tumour data improved the performance of the model, but additional knowledge of distant metastases and other clinical data did not. Optimal performance was achieved using only the top 10 best-performing features. When the model was tested using data from centre 2, the mean NPV decreased from 0.95 to 0.90. As expected, using data from another hospital resulted in a small decrease in ACC, NPV, PPV, SPEC, and SENS. An explanation for this might be small differences in practical implementation between both hospitals, such as the temperature in the patient resting room, the distance between the resting room and the scanner room, and the exact time between the injection and the start of the scan. Furthermore, there were small differences in patient characteristics between centre 1 and centre 2. Centre 2 consisted of relatively more men, more smokers, more adenocarcinomas, and a higher blood glucose level. Although those differences in practical implementation and patient characteristics will not lead to big differences in image quality, this could be an explanation for the difference in performance of our model between centre 1 and centre 2.
To the best of our knowledge, only Yoo et al.  and Wang et al.  attempted a similar study using several ML strategies. Consistent with the results of both groups, we showed that an ML-based classifier can perform equal to, if not better than, physicians on certain metrics. A SPEC of 73% was found in the study by Yoo et al.  and 89% in the study by Wang et al. , while our study found a SPEC of 90%. Besides the SPEC, we also found an improved ACC compared to Yoo et al.  and Wang et al.  (88% vs. 81% vs. 86%). Our study found a highest NPV of 90%, which is higher than the value previously reported by Yoo et al.  (73–81%). A possible explanation for the improved performance in our study is that we included primary tumour data and that we used a more advanced boosted decision tree. Besides that, our study was performed in a different patient population, which could result in small differences in performance. The NPV found in our study is comparable with the results of a meta-analysis of endoscopic ultrasound-guided fine-needle aspiration (89–91%) . Conceivably, the present or a similar algorithm could replace or supplement endobronchial ultrasound procedures in patients who have [18F] FDG-avid lymph nodes in locations that are difficult to reach.
There are some important potential drawbacks associated with our study. For example, we used pathological data as a gold standard, but in clinical practice, surgically resected lymph nodes are hard to match with their counterparts in medical imaging. This might have also introduced a bias, which affects the reliability of our classifiers, although our results are consistent with the results of other groups. Additionally, we made use of manual segmentation of the image data, which was performed by a single experienced physician. Although this might have introduced some bias and small delineation errors, we do not believe that our results would have significantly changed by performing the segmentation task by multiple physicians. In clinical practice, however, this process should be automated before ML classification models can be applied routinely. Besides that, we used image data from two different hospitals. Although both centres are large regional hospitals with a general patient population, it is unknown how the software would perform in different patient groups, in different hospitals, and with different PET-CT scanners. To reduce the effects of overfitting, we used a fivefold validation and a test set from a different hospital. Ideally, the robustness of our classifiers should be evaluated in a large prospective study. When using a pooled dataset for training the classifier, we expect that this will result in similar performance between the training and test set. This suggestion is an important issue for future research. High performance of similar ML models on diagnostic CT data classification seems to suggest that even higher classification results might be possible and, therefore, we up-sampled and co-registered the PET volumes to the CT data; however, the performance of our model decreased when adding CT data features. An explanation might be respiratory motion artefacts and incorrectly registered diagnostic CT image data with PET-CT data. Therefore, we only used features based on the PET primary tumour and PET lymph node data.
This study showed that using an XGB-based algorithm could potentially improve the performance of the classification of lymph node metastasis of NSCLC from PET images. In agreement with previous studies, we found that a simple threshold technique was inferior, but the XGB-based classifier models outperformed the human observers in terms of both negative predictive value and specificity. The inclusion of the primary tumour data improved the performance of the model, while additional knowledge of distant metastases did not significantly improve the performance of our model.
Availability of data and materials
Wu Y, Li P, Zhang H, Shi Y, Wu H, Zhang J, et al. Diagnostic value of fluorine 18 fluorodeoxyglucose positron emission tomography/computed tomography for the detection of metastases in non-small-cell lung cancer patients. Int J Cancer. 2013;132(2):E37-47.
Zhao L, He Z-Y, Zhong X-N, Cui M-L. 18FDG-PET/CT for detection of mediastinal nodal metastasis in non-small cell lung cancer: a meta-analysis. Surg Oncol. 2012;21(3):230–6.
Schmidt-Hansen M, Baldwin DR, Hasler E, Zamora J, Abraira V, Figuls MRI. PET-CT for assessing mediastinal lymph node involvement in patients with suspected resectable non-small cell lung cancer. Cochrane Database Syst Rev. 2014. https://doi.org/10.1002/14651858.CD009519.pub2.
Pak K, Park S, Cheon GJ, Kang KW, Kim I-J, Lee DS, et al. Update on nodal staging in non-small cell lung cancer with integrated positron emission tomography/computed tomography: a meta-analysis. Ann Nucl Med. 2015;29(5):409–19.
Silvestri GA, Gonzalez AV, Jantz MA, Margolis ML, Gould MK, Tanoue LT, et al. Methods for staging non-small cell lung cancer. Chest. 2013;143(5):e211S-e250S.
Gould MK, Maclean CC, Kuschner WG, Rydzak CE, Owens DK. Accuracy of positron emission tomography for diagnosis of pulmonary nodules and mass lesions. JAMA. 2001;285(7):914.
Gould MK, Kuschner WG, Rydzak CE, Maclean CC, Demas AN, Shigemitsu H, et al. Test performance of positron emission tomography and computed tomography for mediastinal staging in patients with non–small-cell lung cancer. Ann Intern Med. 2003;139(11):879.
Coleman RE. PET in lung cancer staging. Q J Nucl Med. 2001;45(3):231–4.
Fischer B, Lassen U, Mortensen J, Larsen S, Loft A, Bertelsen A, et al. Preoperative staging of lung cancer with combined PET–CT. N Engl J Med. 2009;361(1):32–9.
Adams K, Shah PL, Edmonds L, Lim E. Test performance of endobronchial ultrasound and transbronchial needle aspiration biopsy for mediastinal staging in patients with lung cancer: systematic review and meta-analysis. Thorax. 2009;64(9):757–62.
Dhooria S, Aggarwal AN, Gupta D, Behera D, Agarwal R. Utility and safety of endoscopic ultrasound with bronchoscope-guided fine-needle aspiration in mediastinal lymph node sampling: systematic review and meta-analysis. Respir Care. 2015;60(7):1040–50.
Dong X, Qiu X, Liu Q, Jia J. Endobronchial ultrasound-guided transbronchial needle aspiration in the mediastinal staging of non-small cell lung Cancer: a meta-analysis. Ann Thorac Surg. 2013;96(4):1502–7.
Korevaar DA, Crombag LM, Cohen JF, Spijker R, Bossuyt PM, Annema JT. Added value of combined endobronchial and oesophageal endosonography for mediastinal nodal staging in lung cancer: a systematic review and meta-analysis. Lancet Respir Med. 2016;4(12):960–8.
Labarca G, Aravena C, Ortega F, Arenas A, Majid A, Folch E, et al. Minimally invasive methods for staging in lung cancer: systematic review and meta-analysis. Pulm Med. 2016;2016:1–11.
Leong TL, Loveland PM, Gorelik A, Irving L, Steinfort DP. Preoperative staging by EBUS in cN0/N1 lung cancer. J Bronchol Interv Pulmonol. 2019;26(3):155–65.
Gu P, Zhao Y-Z, Jiang L-Y, Zhang W, Xin Y, Han B-H. Endobronchial ultrasound-guided transbronchial needle aspiration for staging of lung cancer: a systematic review and meta-analysis. Eur J Cancer. 2009;45(8):1389–96.
Hochhegger B, Zanon M, Altmayer S, Pacini GS, Balbinot F, Francisco MZ, et al. Advances in imaging and automated quantification of malignant pulmonary diseases: a state-of-the-art review. Lung. 2018;196(6):633–42.
Prayer F, Röhrich S, Pan J, Hofmanninger J, Langs G, Prosch H. Künstliche intelligenz in der bildgebung der lunge. Radiologe. 2020;60(1):42–7.
Gao X, Chu C, Li Y, Lu P, Wang W, Liu W, et al. The method and efficacy of support vector machine classifiers based on texture features and multi-resolution histogram from 18F-FDG PET-CT images for the evaluation of mediastinal lymph nodes in patients with lung cancer. Eur J Radiol. 2015;84(2):312–7.
Tau N, Stundzia A, Yasufuku K, Hussey D, Metser U. Convolutional neural networks in predicting nodal and distant metastatic potential of newly diagnosed non-small cell lung cancer on FDG PET images. Am J Roentgenol. 2020;215(1):192–7.
van Griethuysen JJM, Fedorov A, Parmar C, Hosny A, Aucoin N, Narayan V, et al. Computational radiomics system to decode the radiographic phenotype. Cancer Res. 2017;77(21):e104–7.
Sugai Y, Kadoya N, Tanaka S, Tanabe S, Umeda M, Yamamoto T, et al. Impact of feature selection methods and subgroup factors on prognostic analysis with CT-based radiomics in non-small cell lung cancer patients. Radiat Oncol. 2021;16(1):80.
El Ayachy R, Giraud N, Giraud P, et al. The Role of Radiomics in Lung Cancer: From Screening to Treatment and Follow-Up. Front Oncol. 2021;11:603595. https://doi.org/10.3389/fonc.2021.603595.
Wang H, Zhou Z, Li Y, Chen Z, Lu P, Wang W, et al. Comparison of machine learning methods for classifying mediastinal lymph node metastasis of non-small cell lung cancer from 18F-FDG PET/CT images. EJNMMI Res. 2017;7(1):11.
Yoo J, Cheon M, Park YJ, Hyun SH, Zo JI, Um S-W, et al. Machine learning-based diagnostic method of pre-therapeutic 18F-FDG PET/CT for evaluating mediastinal lymph nodes in non-small cell lung cancer. Eur Radiol. 2021;31(6):4184–94.
Rusch VW, Asamura H, Watanabe H, Giroux DJ, Rami-Porta R, Goldstraw P. The IASLC lung cancer staging project: a proposal for a new international lymph node map in the forthcoming seventh edition of the TNM classification for lung cancer. J Thorac Oncol. 2009;4(5):568–77.
Budholiya K, Shrivastava SK, Sharma V. An optimized XGBoost based diagnostic system for effective prediction of heart disease. J King Saud Univ Comput Inf Sci. 2022. https://doi.org/10.1016/j.jksuci.2020.10.013.
Micames CG, McCrory DC, Pavey DA, Jowell PS, Gress FG. Endoscopic ultrasound-guided fine-needle aspiration for non-small cell lung cancer staging. Chest. 2007;131(2):539–48.
We would like to thank S. Han MD PhD, nuclear medicine physician from the Albert Schweitzer hospital, and V. Bongers MD PhD, nuclear medicine physician from the Diakonessen hospital, for their support and assistance with the collection of the dataset.
No funding was received for conducting this study.
Ethics approval and consent to participate
This retrospective study was approved by the institutional review board, which waived the need for informed consent.
Consent for publication
The authors have no relevant financial or non-financial interests to disclose.
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/.
About this article
Cite this article
Laros, S.S.A., Dieckens, D., Blazis, S.P. et al. Machine learning classification of mediastinal lymph node metastasis in NSCLC: a multicentre study in a Western European patient population. EJNMMI Phys 9, 66 (2022). https://doi.org/10.1186/s40658-022-00494-8
- Lung cancer
- Intrathoracic lymph nodes
- Machine learning