Your new experience awaits. Try the new design now and help us make it even better

ORIGINAL RESEARCH article

Front. Oncol., 23 July 2025

Sec. Radiation Oncology

Volume 15 - 2025 | https://doi.org/10.3389/fonc.2025.1599853

This article is part of the Research TopicDeciphering Hidden Biology Through Mathematical Techniques for Precision Radiation OncologyView all articles

Radiomics-based machine learning for differentiating lung squamous cell carcinoma and adenocarcinoma using T1-enhanced MRI of brain metastases

Xueming Xia&#x;Xueming Xia1†Qiaoyue Tan&#x;Qiaoyue Tan2†Wei DuWei Du3Qiheng Gou*Qiheng Gou1*
  • 1Division of Head & Neck Tumor Multimodality Treatment, Cancer Center, West China Hospital, Sichuan University, Chengdu, China
  • 2Radiotherapy Physics and Technology Center, Cancer Center, West China Hospital, Sichuan University, Chengdu, China
  • 3Department of Targeting Therapy & Immunology, Cancer Center, West China Hospital, Sichuan University, Chengdu, China

Objective: This study aims to develop and evaluate a radiomics-based machine learning model using T1-enhanced magnetic resonance imaging (MRI) features to differentiate between lung squamous cell carcinoma (SCC) and adenocarcinoma (AC) in patients with brain metastases (BMs). While prior studies have largely focused on primary lung tumors, our work uniquely targets metastatic brain lesions, which pose distinct diagnostic and therapeutic challenges.

Methods: In this retrospective study, 173 patients with BMs from lung cancer were included, consisting of 88 with AC and 85 with SCC. MRI images were acquired using a standardized protocol, and 833 radiomic features were identified from the segmented lesions utilizing the PyRadiomics package. Feature selection was performed using a combination of univariate analysis, correlation analysis, and the least absolute shrinkage and selection operator (LASSO) regression. Ten machine learning classifiers were trained and validated utilizing the selected features. The performance of the classifier models was assessed through receiver operating characteristic (ROC) curves, and the area under the curve (AUC) was examined for analysis.

Results: Ten classifier models were built on the basis of features derived from MRI. Among the ten classifier models, the LightGBM model performed the best. In the training dataset, the LightGBM classifier achieved an accuracy of 0.814, with a sensitivity of 0.726 and specificity of 0.896. The classifier’s efficiency was validated on an independent testing dataset, where it maintained an accuracy of 0.779, with a sensitivity of 0.725 and specificity of 0.857. The AUC was 0.858 for the training dataset and 0.857 for the testing dataset. The model effectively distinguished between SCC and AC based on radiomic features, highlighting its potential for noninvasive non-small cell lung cancer (NSCLC) subtype classification.

Conclusion: This research demonstrates the efficacy of a radiomics-based machine learning model in accurately classifying NSCLC subtypes from BMs, providing a valuable noninvasive tool for guiding personalized treatment strategies. Further validation on larger, multi-center datasets is crucial to verify these findings.

Introduction

Lung cancer remains the leading cause of death among cancer patients around the world, constituting approximately 23% of all cancer-related fatalities (1). Non-small cell lung cancer (NSCLC) accounts for approximately 85% of all lung cancer cases, with adenocarcinoma (AC) and squamous cell carcinoma (SCC) representing the predominant histological subtypes (2). These subtypes exhibit marked differences in biological behavior, therapeutic response, and clinical prognosis. AC is more frequently observed in non-smokers and tends to metastasize at an earlier stage, whereas SCC is closely associated with smoking and typically presents as a more localized disease (3). Brain metastases (BMs) are a common and severe complication of advanced lung cancer, particularly NSCLC, significantly impacting prognosis and treatment strategies (4). While primary lung tumors are well-studied, there is a distinct lack of research focused on BMs derived from lung cancer. The presence of BMs represents a different clinical and biological scenario compared to primary lung tumors, necessitating dedicated research into the unique imaging characteristics of these secondary lesions. BMs exhibit distinct imaging features due to their interaction with the brain microenvironment, treatment history, and the challenges of blood-brain barrier penetration. The radiomic signatures of metastatic lesions often differ from those of primary tumors, and the characteristics of these lesions are influenced by factors such as edema, necrosis, and vascularity within the brain. Accurate differentiation between SCC and AC subtypes in BMs is crucial for optimizing treatment strategies, given their distinct responses to various treatment modalities (5). In addition, the two histological subtypes harbor unique genetic mutations profiles, underscoring the critical importance of accurate subtype identification for the effective application of targeted therapies and immunotherapies (6, 7). Current clinical practice relies heavily on invasive biopsy and histopathological examination for subtype classification, which can be time-consuming and painful for patients (8). Biopsies are associated with notable risks, including bleeding and organ injury, which are particularly concerning in patients with BMs and can impose considerable physical burdens (9). Moreover, spatial and temporal tumor heterogeneity may result in sampling bias, complicating accurate diagnosis. In light of these challenges, there is an urgent need for noninvasive, rapid, and reliable methods to accurately classify lung cancer subtypes, particularly in the context of BMs.

Magnetic resonance imaging (MRI) offers superior contrast for soft tissues and detailed anatomical insights into BMs, with T1-enhanced MRI being particularly significant for detecting these lesions (10, 11). However, MRI alone is insufficient for distinguishing the various pathological subgroups of BMs. Radiomics has emerged as a powerful technique for tumor differentiation, particularly by leveraging advanced imaging modalities (12). By extracting multidimensional numerical characteristics from medical images, radiomics enables noninvasive characterization of tumor heterogeneity, which is critical for distinguishing between these histological subtypes (1316). Currently, various studies are exploring the use of features extracted from MRI, combined with artificial intelligence (AI) methods to determine the origin of BMs. Several studies have demonstrated the potential of radiomics in this context, showing that radiomic features extracted from medical images have the potential to effectively differentiate AC from SCC, thereby aiding in more accurate diagnosis and treatment planning (1721). The research carried out by Fuxing Deng et al. demonstrated that a radiomics approach integrating features fromT1-enhanced MRI, combined with the Xgboost algorithm, achieved high classification accuracy for BMs subtypes in NSCLC, with an area under the curve (AUC) of 0.85 within internal verification and 0.80 in external validation (17). In the research by Fan Song et al., the authors showed that the Bagging-AdaBoost-SVM model exhibited superior generalizability among 130 radiomics models, with an average AUC of 0.815 across three independent test sets, highlighting its potential for noninvasive prediction of histopathological subtypes in NSCLC (20). In addition, Baoyu Liang et al. found that their integrated model combining radiomics features with 3D convolutional neural network (CNN) features realized an accuracy of 0.88 and an AUC of 0.89 in classifying histological subtypes of NSCLC, highlighting the complementary effects of combining deep learning and radiomics for this task (21). Despite these advancements, there are still significant challenges that need to be addressed. One of the primary issues is the variability in imaging protocols and data acquisition across different centers, which can affect the generalizability of radiomic models. Most studies to date have relied on datasets with relatively small sample sizes, which restricts the robustness and clinical applicability of the findings in broader clinical settings. Moreover, some radiomic models exhibited low AUC and relatively poor diagnostic performance. While radiomics exhibits considerable potential for the differential diagnosis of lung cancer subtypes, further research is required to overcome these limitations and fully translate its potential into clinical practice. Therefore, this study aims to develop and validate a radiomics-machine learning model to distinguish lung SCC from AC via T1-enhanced MRI in BMs.

Materials and methods

Patient and MRI protocol

This retrospective research enrolled patients who were diagnosed with BMs originating from lung AC or lung SCC at our institution from January 2021 to December 2023. An overall number of 173 patients were retrospectively analyzed, including 88 cases of lung AC and 85 cases of lung SCC. The research was carried out following the principles of the Declaration of Helsinki. The institutional research ethics committee reviewed this study and formal approval was waived, as it involved only retrospective data or nonidentifiable patient information. The requirements for inclusion included: (1) histopathologically confirmed primary lung AC or SCC, (2) at least one brain metastasis detected on T1-enhanced MRI, and (3) no pre-MRI treatment for BMs, including surgery, radiotherapy, or systemic chemotherapy. Exclusion criteria included patients with other primary malignancies, poor image quality due to motion artifacts, and BMs with a diameter of less than one centimeter.

All patients underwent scanning on a 3.0T MRI system (Siemens Trio scanners) at the institution’s radiology department. The imaging protocol included axial, coronal, and sagittal sequences to cover the entire brain, focusing on detecting BMs. Gadopentetate dimeglumine (0.1 mmol/kg), a gadolinium-based contrast agent, was given intravenously with a speed of 2–3 ml/s. Contrast imaging was initiated approximately 3–5 minutes after injection. The contrast-enhanced images were acquired by using the T1-weighted sequence to highlight metastatic lesions. The imaging parameters for T1-enhanced MRI acquisition were utilized: repetition time (TR):200–500 ms, echo time (TE): 2-5ms, flip angle = 15°-30°, axial field of view (FOV) = 240 x 240 mm², matrix size = 256 × 256, thickness of the slice = 1mm, gap: 1mm, and number of slices: 20-30. CE-T1WI were acquired in multidirectional mode within a 90–250 second interval.

Data preprocessing and image segmentation

All T1-enhanced MRI were first subjected to a rigorous quality assessment to ensure that only high-quality scans were included in the analysis. The images were reviewed for artifacts, including motion, distortion, and signal dropouts. Any scans exhibiting significant artifacts were excluded from further analysis. Medical imaging volumes often exhibit heterogeneous voxel spacing due to variations in scanner types or acquisition protocols. Voxel spacing refers to the physical distance between adjacent pixels within an image. To mitigate the impact of these variations, spatial normalization techniques are commonly applied. In this study, the fixed-resolution resampling method was utilized to address the issue of voxel spacing heterogeneity. All images were resampled to a uniform voxel size of 1x1x1 mm to standardize voxel spacing across the dataset. Finally, the data underwent z-score standardization (zero-mean normalization) to ensure consistent scaling of features. A bias field correction algorithm, such as N4ITK, was employed to correct for intensity non-uniformities caused by inhomogeneities in the magnetic field. This preprocessing step was essential to mitigate artificial intensity gradients within the images, ensuring that the radiomic features extracted were not biased by such inhomogeneities. The application of bias field correction was critical to maintain the accuracy and reliability of the subsequent feature extraction process.

For the image segmentation process, BMs were manually delineated on T1-enhanced MRI by experienced radiologists utilizing 3D Slicer freely available software. The partitioning focused on accurately identifying and isolating the metastatic lesions from the surrounding brain tissue, encompassing necrotic areas and vascular structures in the tumor while excluding the surrounding edema. Each lesion was carefully segmented to create regions of interest (ROI) that would be used for subsequent radiomics feature extraction. To ensure consistency and reproducibility, the segmentation process followed a standardized protocol, with each ROI being reviewed and validated by a senior radiologist. Conflicts were settled through discussion until a consensus was reached. This manual segmentation approach was chosen to maximize the accuracy of lesion identification, which is critical for the reliable extraction of radiomic features. Since the segmentation process involved a single set of delineations confirmed by expert consensus, inter- and intra-observer variability metrics, including Dice similarity coefficients and intraclass correlation coefficients (ICC), were not assessed. This methodology is consistent with standard practices in radiomics studies when independent multiple-reader segmentation is not available, aiming to minimize variability through rigorous expert validation.

Radiomic feature extraction and selection

Extraction of radiomic characteristics was carried out on the segmented ROI. An extensive array of quantitative features was derived from each ROI using PyRadiomics software package (22). These features encompassed multiple categories, including first-order metrics (e.g., mean, median), shape descriptors (e.g., volume, surface area, sphericity), and textural characteristics (e.g., gray-level co-occurrence matrix, gray-level run-length matrix). The extraction process was standardized to ensure reproducibility across all images, with parameters such as bin width for intensity discretization being uniformly applied. The resulting radiomic features provided a rich dataset for subsequent machine learning analysis aimed at distinguishing between lung SCC and lung AC based on their distinct radiomic signatures.

Radiomic feature selection was implemented to optimize the performance of the model and prevent overfitting. Initially, the univariate statistical testing was carried out to determine the importance of each feature in differentiating between lung SCC and lung AC, and only characteristics with a p value below the 0.05 threshold were kept. Secondly, radiomic features experienced a correlation analysis by Spearman’s rank correlation coefficient to recognize and remove highly correlated features, retaining only one feature from each correlated pair. Finally, the Least Absolute Shrinkage and Selection Operator (LASSO) regression model was applied to construct the radiomics signature (23). LASSO regularization shrinks all regression coefficients towards zero, effectively eliminating irrelevant features by setting their coefficients to exactly zero. To determine the optimal regularization parameter (λ), 10-fold cross-validation was utilized with the minimum cross-validation error as the selection criterion. The final λ value was chosen based on the lowest cross-validation error. Features with non-zero coefficients were retained for model fitting, and these selected features were incorporated into the radiomics signature. Subsequently, a radiomics score for each patient was calculated as a linear combination of the retained features, weighted by their corresponding model coefficients. The LASSO regression analysis was performed using the Python scikit-learn package. This multistep choosing process ensured that only the most informative and non-redundant features were incorporated into the model (24).

Radiomic model building

Radiomic model involved developing a machine learning model to distinguish between lung SCC and lung AC on the basis of the radiomic characteristics derived from BMs. The selected features were used as input variables for the model. Ten machine learning algorithms were evaluated to determine the most effective classifier. The dataset was split 7:3 between training and testing datasets, with cross-validation performed to optimize model parameters and assess performance. All instances in the training set were used to train the predictive model, while the test set was used to independently assess the model’s performance. Hyperparameter tuning was conducted using grid search to identify the optimal configuration for each algorithm. The final classifier was chosen on the basis of its accuracy, sensitivity, specificity, and AUC on the validation set, ensuring robust classification performance. Decision curve analysis (DCA) was also employed to judge the efficiency of the classifier. The standardized net benefit (sNB) was determined, which encompasses a range of values from 0 to 1.

Statistical analysis

Statistical analyses were conducted using Python (v0.13.2) with appropriate libraries for machine learning and statistical evaluation (25). Group differences were measured by employing t tests for quantitative metrics and chi–square or Fisher’s exact tests for qualitative metrics. The classification accuracy, sensitivity, specificity, and AUC were calculated for the validation dataset. Additionally, a confusion matrix was generated to provide insight into the model’s predictive capabilities. The significance of the model’s predictions was assessed using a p-value threshold of 0.05. To ensure the reliability of the outcomes, bootstrapping methods were applied to evaluate confidence intervals for the performance metrics.

Results

Patient characteristics

An aggregate of 173 individuals with BMs from lung cancer, treated at our hospital from January 2021 to December 2023, were chosen for this study based on predefined admission and rejection criteria. Figure 1 outlines the procedure for the selection of participants. Of these, 88 patients were diagnosed with lung AC, contributing 111 BMs, while 85 patients were diagnosed with lung SCC, contributing 113 BMs. Patients were categorized into a training set comprising 156 BMs and an independent testing dataset comprising 68 BMs. A pathologist reviewed the pathological data to confirm diagnoses. Table 1 provides a comprehensive overview of the patient characteristics, highlighting that no meaningful clinical differences were detected across the training and validation groups.

Figure 1
Flowchart depicting the study population selection. Initially, 410 patients with confirmed brain metastases from lung adenocarcinoma (AC) or squamous cell carcinoma (SCC) were considered. Exclusions were made for pre-MRI anti-tumor treatment (102 patients), brain metastases under one centimeter (73 patients), and substantial image artifacts (11 patients). The final cohort consists of 224 patients, split into a training cohort of 156 (83 AC, 73 SCC) and a validation cohort of 68 (28 AC, 40 SCC).

Figure 1. Flowchart of patient enrollment and cohort allocation. A total of 410 patients with brain metastases (BMs) originating from primary lung adenocarcinoma (AC) or squamous cell carcinoma (SCC) between January 2021 and December 2023 were initially included. Patients were excluded if they had received anti-tumor therapy before MRI examination (n=102), had BMs smaller than one centimeter in diameter (n=73), or had substantial imaging artifacts (n=11). Ultimately, 224 patients were enrolled and randomly divided into a training cohort (n=156) and a validation cohort (n=68).

Table 1
www.frontiersin.org

Table 1. Baseline characteristics of individuals with brain metastases (BMs) in the training and validation cohorts.

Feature selection and model construction

A total of 833 handcrafted features were extracted, with 33 features chosen through statistical tests. A total of 17 features were then selected based on correlation and a recursive deletion strategy.8 optimal radiomic features were selected using the LASSO logistic regression. The radiomics signature was constructed by retaining features with non-zero coefficients selected through LASSO regression, and their respective coefficients are presented in Figure 2. The multistep selection process resulted in a final subset of 8 radiomic features, which were subsequently used for model training, as shown in Table 2. Ten machine learning algorithms were evaluated to determine the most effective classifier. These selected features demonstrated a strong discriminatory ability between the two lung cancer subtypes in the training group as well as the testing group.

Figure 2
Horizontal bar chart showing coefficients of various features. Features are listed along the vertical axis, and the horizontal axis represents coefficient values ranging from -0.06 to 0.02. Bars vary in size, with wavelet_LLL_firstorder_10Percentile having the largest positive coefficient, and wavelet_HLL_glcm_Imc2 having a larger negative coefficient. A legend indicates the bars represent coefficients.

Figure 2. Coefficients of the 8 selected radiomic features for the radiomics signature. This bar plot presents the coefficients of the 8 radiomic features selected by LASSO regression. These features with non-zero coefficients were incorporated into the final radiomics signature. Positive coefficients reflect features positively associated with the outcome, whereas negative coefficients indicate inverse associations.

Table 2
www.frontiersin.org

Table 2. Selected radiomics features from the training cohort using LASSO regression analysis.

Performance of the models

Ten classifier models were built on the basis of characteristics derived from MRI. The radiomic models demonstrated robust performance in distinguishing between lung SCC and lung AC based on BMs features. In the training dataset, the top-performing LightGBM classifier accomplished an accuracy of 0.814, with a sensitivity of 0.726 and specificity of 0.896. The classifier’s proficiency was validated on an independent testing dataset, where the model sustained an accuracy rate of 0.779, while the sensitivity was 0.725 and the specificity reached 0.857. The AUC was 0.858 for the training dataset and 0.857 for the testing dataset, indicating strong discriminatory ability. The confusion matrix further confirmed the model’s ability to accurately classify the majority of cases, with minimal misclassification observed. The ROC contours for these models were displayed in Figure 3, and a thorough contrast was presented in Table 3. DCA of LightGBM in the training and testing dataset is demonstrated in Figure 4.

Figure 3
Three ROC curve plots showcasing model AUC performance.   (a) Multiple models compared, each with different AUC values.   (b) Equivalent models with updated AUC results.  (c) LightGBM model with separate train and test AUCs, showing train AUC at 0.858 and test AUC at 0.857.

Figure 3. Receiver operating characteristic (ROC) curve analysis and area under the curve (AUC) of ten models in the training (a) and testing (b) datasets, and LightGBM model performance in both cohorts (c). The ROC curves and corresponding AUC values of ten machine learning models are illustrated for the training dataset (a) and testing dataset (b). Each model’s classification performance is compared based on the AUC values and confidence intervals. The LightGBM model, which demonstrated the best performance, is separately presented in panel (c), showing its ROC curves for both the training and testing cohorts, with an AUC of 0.858 (95% CI: 0.798–0.918) and 0.857 (95% CI: 0.769–0.946), respectively.

Table 3
www.frontiersin.org

Table 3. Performance of ten machine learning classifiers on the training and testing datasets.

Figure 4
Two decision curve analysis graphs for the LightGBM model show net benefit versus threshold probability. Both graphs compare “Model,” “Treat all,” and “Treat none” scenarios. Panel (a) peaks around 0.3 probability, while panel (b) shows a higher peak, indicating differences in model behavior. The area between the “Model” and “Treat all” lines is shaded pink, highlighting the net benefit of the model.

Figure 4. Decision curve analysis (DCA) for the LightGBM model in the training and testing datasets. Decision curve analysis (DCA) was performed to evaluate the clinical utility of the LightGBM model in the training and testing cohorts. The DCA curves demonstrate the net benefit of using the model across a range of threshold probabilities, compared to the default strategies of treating all patients or none. The LightGBM model provided a higher net benefit across a wide range of thresholds, indicating good clinical applicability.

Discussion

This study created and confirmed a radiomics-based machine learning model making use of T1-enhanced MRI to differentiate between lung SCC and lung AC based on BMs. Among the ten machine learning algorithms evaluated, the LightGBM model exhibited the best performance, achieving an accuracy of 81.4% in the training dataset and 77.9% in the independent test dataset. The model’s discriminatory power was further confirmed by an AUC of 0.858 within the training dataset and 0.857 within the test dataset, indicating strong and consistent performance. These results imply that the radiomics approach holds significant potential for noninvasive differentiation of lung cancer subtypes, which is critical for optimizing treatment strategies in patients with BMs.

Several studies have applied machine learning and deep learning to differentiate lung cancer subtypes, achieving promising results. In the study by Bryce Dunn et al., the authors demonstrated that the support vector machine model, when combined with deep learning-based CT scan radiomic features, achieved the highest precision of 92.7% and an AUC of 0.97 in classifying histological subtypes of lung cancer (26). In the study by Baoyu Liang et al., the authors showed that their proposed integrated model, which combines radiomic features with 3D convolutional neural network features, realized an accuracy of 0.88 and an AUC of 0.89 in classifying histological subtypes of NSCLC, highlighting the effectiveness of integrating deep learning with radiomics for this task (21). In the research conducted by Kun Chen et al., the multi-task learning model achieved superior performance in classifying histologic subtypes of NSCLC, with an AUC of 0.843 on the internal test group and 0.732 on the external test group, outperforming traditional radiomics methods and single-task networks (27). In another study, the Bagging-AdaBoost-SVM classifier exhibited the most robust generalization capability among 130 radiomics models, with an average AUC of 0.815 across three independent test sets, highlighting its potential for noninvasive prediction of histopathological subtypes in NSCLC (20). However, these studies primarily focus on the segmentation of primary lung lesions, with relatively few addressing BMs.

Currently, there are several studies that utilize radiomics combined with machine learning or deep learning based on BMs to differentiate between lung cancers. In the study by Lianyu Sui et al., the authors found that their deep learning classifier on the basis of T1-enhanced MRI successfully differentiated between small cell lung cancer (SCLC) and NSCLC in individuals with BMs, achieving an AUC of 0.8019 for SCLC and 0.8024 for NSCLC, with an accuracy of 0.7515 (13). In Fuxing Deng et al.’s study, a radiomics model incorporating T1-enhanced MRI features, employing the Xgboost algorithm, achieved the superior efficiency with an AUC of 0.85 in the internal test group and 0.80 in the external validation group for classifying BMs subtypes from NSCLC (17). In addition, Gökalp Tulum et al. found that their proposed model, which included innovative characteristics acquired from Laplacian of Gaussian filtered and wavelet-transformed images, achieved a sensitivity of 94.44% and specificity of 95.33%, outperforming deep learning-based models in classifying BMs subtypes from lung cancer, particularly in small datasets (18). The results of our study align with and expand upon previous findings in the area of artificial intelligence for the differentiation of lung cancer subtypes. In this study, we employed the LightGBM classifier, which demonstrated robust performance in distinguishing between two key subtypes of NSCLC—AC and SCC—based on MRI-derived radiomic features. In the context of subtype classification for NSCLC BMs, a higher sensitivity means that the model is better at correctly identifying AC cases. AC is more likely to present with diffuse BMs, making accurate identification crucial for early intervention and more targeted treatment. A sensitivity of 0.726 in the training dataset and 0.725 in the testing dataset indicates that the model is able to capture a substantial proportion of AC cases, although there is still room for improvement in reducing false negatives. On the other hand, higher specificity reflects the model’s ability to correctly exclude AC and correctly classify SCC. SCC tends to have a more localized pattern of metastasis and a different clinical course compared to AC. High specificity (0.896 in the training set and 0.857 in the testing set) ensures that SCC cases are correctly identified, avoiding misclassification and ensuring that patients with SCC receive appropriate treatment. In clinical practice, maintaining high specificity is important to prevent unnecessary treatments or misdirected therapeutic strategies.

This differentiation is likely rooted in the distinct histopathological characteristics of these subtypes, which are captured through advanced imaging techniques (28). The ability of the LightGBM model to achieve high accuracy and AUC in both training and validation sets indicates that the selected radiomic features are not only robust but also highly representative of the underlying biological differences between SCC and AC. The potential mechanisms behind these results may involve variations in tumor cell morphology, microenvironmental factors, and genetic mutations that influence the MRI signal characteristics (29). Furthermore, the success of this model underscores the importance of feature selection and model optimization in capturing the most relevant aspects of tumor heterogeneity. Although the XGBoost model achieved excellent performance on the training dataset (AUC = 0.972), its performance substantially decreased on the testing dataset (AUC = 0.732), indicating a potential overfitting issue. Overfitting occurs when a model captures noise or specific patterns in the training data that do not generalize well to unseen data, leading to reduced predictive accuracy. In this study, despite employing regularization techniques and cross-validation to mitigate overfitting, the complexity of the XGBoost model and the limited sample size may have contributed to this phenomenon. This observation highlights the importance of balancing model complexity and generalizability and further supports the selection of models such as LightGBM, which demonstrated more stable performance across both training and test datasets.

We extracted and analyzed 833 radiomic features from T1-enhanced MRI utilizing the PyRadiomics (30). The outcome of this research underscores the important aspects that specific radiomic features play in differentiating between lung SCC and AC in BMs. The selected features, particularly those related to texture and intensity, likely capture the underlying histopathological differences between these two subtypes (31). For instance, features associated with gray-level co-occurrence matrices and run-length matrices reflect variations in tissue heterogeneity and texture, which are indicative of the distinct morphological and cellular characteristics of SCC and AC (32). The high performance of the LightGBM model suggests that these radiomic features are not only robust but also highly discriminative, allowing for accurate classification. This finding supports the hypothesis that tumor heterogeneity, as quantified by radiomic features, is a key factor in distinguishing between different lung cancer subtypes. Furthermore, the successful implementation of machine learning techniques to these features underscores the potential of radiomics in enhancing the precision of noninvasive diagnostic tools, paving the way for more personalized treatment strategies in patients with BMs from lung cancer (33).

In our study, we chose to exclude peritumoral edema from the ROIs, focusing on the necrotic and vascular structures within the enhancing tumor core. This decision was based on the specific strengths of T1-enhanced MRI scans, which provides clear delineation of the tumor’s core, particularly the vascular and necrotic areas, while edema is less effectively captured in this modality. However, we recognize the importance of peritumoral regions in brain tumor radiomics. Several studies have demonstrated that these regions, particularly the edema zone, are critical imaging biomarkers, as they provide valuable insights into tumor infiltration patterns, microenvironmental changes, and potential treatment responses (3437). The exclusion of peritumoral edema in our analysis may indeed overlook important discriminative features. In future work, we plan to incorporate additional imaging modalities such as T2-weighted (T2WI) and Fluid-attenuated inversion recovery (FLAIR) sequences, which are known to offer superior contrast for visualizing edema. By integrating these modalities, we aim to capture a more comprehensive range of radiomic features, enhancing our ability to assess tumor microenvironment and infiltration, and ultimately improving the accuracy and clinical relevance of our radiomics models. We acknowledge that including peritumoral edema could provide further insight into tumor behavior and contribute to more precise prognostic models. Thus, the integration of these additional imaging sequences will be a critical step in the evolution of our analysis and will be explored in the next phase of this research.

Several limitations should be acknowledged. First, the retrospective characteristic of the research may introduce non-random sampling bias. Second, the manual segmentation of BMs, although performed with high precision, is subject to inter-observer variability, which may affect the reproducibility of the radiomic features. Finally, the model was trained and validated on a single dataset, and its performance should be further tested on independent, multi-center datasets to ensure broader applicability in clinical settings. Future research should focus on several key areas. Firstly, expanding the dataset to include more diverse populations and imaging protocols from multiple centers will be crucial for improving the generalizability and robustness of the models. Additionally, integrating radiomic features with genomic and proteomic data could provide deeper insights into the biological mechanisms underlying tumor heterogeneity and lead to more precise subtype classification (38, 39). Another promising direction is the development of automated segmentation tools using deep learning techniques to reduce inter-observer variability and enhance the reproducibility of radiomic features. Moreover, future studies should explore the potential of combining radiomics with functional imaging modalities to capture additional dimensions of tumor biology. Lastly, clinical validation of these models through prospective studies will be essential to establish their utility in real-world settings, ultimately shaping individualized therapeutic approaches for patients with lung cancer BMs.

Conclusion

This research demonstrates the potential of using radiomic characteristics extracted from T1-enhanced MRI scans, integrated with machine learning models, to effectively discriminate lung SCC from AC among patients with BMs. The LightGBM model, in particular, showed strong discriminatory power and consistent achievement for both the training and test datasets. These findings underscore the value of integrating advanced radiomics with machine learning techniques to develop noninvasive diagnostic tools, which can significantly enhance the precision of subtype classification and ultimately guide personalized treatment strategies for lung cancer patients.

Data availability statement

The original contributions presented in the study are included in the article/supplementary material. Further inquiries can be directed to the corresponding author.

Ethics statement

The requirement of ethical approval was waived by Ethics Committee of West China Hospital, Sichuan University for the studies involving humans because Ethics Committee of West China Hospital, Sichuan University. The studies were conducted in accordance with the local legislation and institutional requirements. The participants provided their written informed consent to participate in this study.

Author contributions

XX: Writing – original draft. WD: Writing – original draft, Formal Analysis, Software, Methodology, Conceptualization. QT: Data curation, Validation, Supervision, Writing – original draft. QG: Writing – review & editing, Funding acquisition.

Funding

The author(s) declare that financial support was received for the research and/or publication of this article. This work received support from Sichuan Provincial Science and Technology Program Project (2024YFHZ0051) and Sichuan University’s Innovation Project from 0 to 1 (2022SCUH0032).

Conflict of interest

The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

Generative AI statement

The author(s) declare that no Generative AI was used in the creation of this manuscript.

Publisher’s note

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.

References

1. Siegel RL, Giaquinto AN, and Jemal A. Cancer statistics, 2024. CA Cancer J Clin. (2024) 74:12–49. doi: 10.3322/caac.21820

PubMed Abstract | Crossref Full Text | Google Scholar

2. Zhang Y, Vaccarella S, Morgan E, Li M, Etxeberria J, Chokunonga E, et al. Global variations in lung cancer incidence by histological subtype in 2020: a population-based study. Lancet Oncol. (2023) 24:1206–18. doi: 10.1016/S1470-2045(23)00444-8

PubMed Abstract | Crossref Full Text | Google Scholar

3. Bunjaku J, Lama A, Pesanayi T, Shatri J, Chamberlin M, Hoxha I, et al. Lung cancer and lifestyle factors. Hematology/Oncology Clinics North America. (2024) 38:171–84. doi: 10.1016/j.hoc.2023.05.018

PubMed Abstract | Crossref Full Text | Google Scholar

4. Aizer AA, Lamba N, Ahluwalia MS, Aldape K, Boire A, Brastianos PK, et al. Brain metastases: A Society for Neuro-Oncology (SNO) consensus review on current management and future directions. Neuro-Oncology. (2022) 24:1613–46. doi: 10.1093/neuonc/noac118

PubMed Abstract | Crossref Full Text | Google Scholar

5. Riely GJ, Wood DE, Ettinger DS, Aisner DL, Akerley W, Bauman JR, et al. Non–small cell lung cancer, version 4.2024. J Natl Compr Cancer Network. (2024) 22:249–74. doi: 10.6004/jnccn.2204.0023

PubMed Abstract | Crossref Full Text | Google Scholar

6. McLaughlin J, Berkman J, and Nana-Sinkam P. Targeted therapies in non-small cell lung cancer: present and future. Faculty Rev. (2023) 12:22. doi: 10.12703/r/12-22

PubMed Abstract | Crossref Full Text | Google Scholar

7. Sathish G, Monavarshini LK, Sundaram K, Subramanian S, and Kannayiram G. Immunotherapy for lung cancer. Pathol Res Pract. (2024) 254:155104. doi: 10.1016/j.prp.2024.155104

PubMed Abstract | Crossref Full Text | Google Scholar

8. Herbst RS, Morgensztern D, and Boshoff C. The biology and management of non-small cell lung cancer. Nature. (2018) 553:446–54. doi: 10.1038/nature25183

PubMed Abstract | Crossref Full Text | Google Scholar

9. Bellur S, Khosla AA, Ozair A, Kotecha R, McDermott MW, Ahluwalia MS, et al. Management of brain metastases: A review of novel therapies. Semin Neurol. (2023) 43:845–58. doi: 10.1055/s-0043-1776782

PubMed Abstract | Crossref Full Text | Google Scholar

10. Derks SHAE, van der Veldt AAM, and Smits M. Brain metastases: the role of clinical imaging. Brit J Radiol. (2022) 95:20210944. doi: 10.1259/bjr.20210944

PubMed Abstract | Crossref Full Text | Google Scholar

11. Ghaderi S, Mohammadi S, Mohammadi M, Pashaki ZNA, Heidari M, Khatyal R, et al. A systematic review of brain metastases from lung cancer using magnetic resonance neuroimaging: Clinical and technical aspects. J Med Radiat Sci. (2024) 71:269–89. doi: 10.1002/jmrs.756

PubMed Abstract | Crossref Full Text | Google Scholar

12. Zhang L, Wang Y, Peng Z, Weng Y, Fang Z, Xiao F, et al. The progress of multimodal imaging combination and subregion based radiomics research of cancers. Int J Biol Sci. (2022) 18:3458–69. doi: 10.7150/ijbs.71046

PubMed Abstract | Crossref Full Text | Google Scholar

13. Sui L, Chang S, Xue L, Wang J, Zhang Y, Yang K, et al. Deep learning based on enhanced MRI T1 imaging to differentiate small-cell and non-small-cell primary lung cancers in patients with brain metastases. Curr Med Imaging. (2023) 19:1541–8. doi: 10.2174/1573405619666230130124408

PubMed Abstract | Crossref Full Text | Google Scholar

14. Jiao T, Li F, Cui Y, Wang X, Li B, Shi F, et al. Deep learning with an attention mechanism for differentiating the origin of brain metastasis using MR images. J Magnetic Resonance Imaging. (2023) 58:1624–35. doi: 10.1002/jmri.28695

PubMed Abstract | Crossref Full Text | Google Scholar

15. Cao G, Zhang J, Lei X, Yu B, Ai Y, Zhang Z, et al. Differentiating primary tumors for brain metastasis with integrated radiomics from multiple imaging modalities. Dis Markers. (2022) 2022:5147085. doi: 10.1155/2022/5147085

PubMed Abstract | Crossref Full Text | Google Scholar

16. Egashira M, Arimura H, Kobayashi K, Moriyama K, Kodama T, Tokuda T, et al. Magnetic resonance-based imaging biopsy with signatures including topological Betti number features for prediction of primary brain metastatic sites. Phys Eng Sci Med. (2023) 46:1411–26. doi: 10.1007/s13246-023-01308-6

PubMed Abstract | Crossref Full Text | Google Scholar

17. Deng F, Liu Z, Fang W, Niu L, Chu X, Cheng Q, et al. MRI radiomics for brain metastasis sub-pathology classification from non-small cell lung cancer: a machine learning, multicenter study. Phys Eng Sci Med. (2023) 46:1309–20. doi: 10.1007/s13246-023-01300-0

PubMed Abstract | Crossref Full Text | Google Scholar

18. Tulum G. Novel radiomic features versus deep learning: differentiating brain metastases from pathological lung cancer types in small datasets. Brit J Radiol. (2023) 96:20220841. doi: 10.1259/bjr.20220841

PubMed Abstract | Crossref Full Text | Google Scholar

19. Li H, Song Q, Gui D, Wang M, Min X, Li A, et al. Reconstruction-assisted feature encoding network for histologic subtype classification of non-small cell lung cancer. IEEE J Biomed Health Inf. (2022) 26:4563–74. doi: 10.1109/Jbhi.2022.3192010

PubMed Abstract | Crossref Full Text | Google Scholar

20. Song F, Song X, Feng Y, Fan G, Sun Y, Zhang P, et al. Radiomics feature analysis and model research for predicting histopathological subtypes of non-small cell lung cancer on CT images: A multi-dataset study. Med Phys. (2023) 50:4351–65. doi: 10.1002/mp.16233

PubMed Abstract | Crossref Full Text | Google Scholar

21. Liang BY, Tong C, Nong JY, and Zhang Y. Histological subtype classification of non-small cell lung cancer with radiomics and 3D convolutional neural networks. J Imaging Inf Med. (2024) 37(6):2895–909. doi: 10.1007/s10278-024-01152-4

PubMed Abstract | Crossref Full Text | Google Scholar

22. Thomas HMT, Wang HYC, Varghese AJ, Donovan EM, South CP, Saxby H, et al. Reproducibility in radiomics: A comparison of feature extraction methods and two independent datasets. Appl Sci. (2023) 13:s00701-024-05977-4. doi: 10.3390/app13127291

PubMed Abstract | Crossref Full Text | Google Scholar

23. Staartjes VE, Kernbach JM, Stumpo V, van Niftrik CHB, Serra C, Regli L, et al. Foundations of feature selection in clinical prediction modeling. Acta Neurochir Suppl. (2022) 134:51–7. doi: 10.1007/978-3-030-85292-4_7

PubMed Abstract | Crossref Full Text | Google Scholar

24. Zhang YP, Zhang XY, Cheng YT, Li B, Teng XZ, Zhang J, et al. Artificial intelligence-driven radiomics study in cancer: the role of feature engineering and modeling. Military Med Res. (2023) 10:22. doi: 10.1186/s40779-023-00458-8

PubMed Abstract | Crossref Full Text | Google Scholar

25. Jin Y, Kodama T, and Arimura H. Applications] 10. Radiomics researches for cancer treatment using python. Japanese J Radiological Technol. (2024) 80:549–57. doi: 10.6009/jjrt.2024-2354

PubMed Abstract | Crossref Full Text | Google Scholar

26. Dunn B, Pierobon M, and Wei Q. Automated classification of lung cancer subtypes using deep learning and CT-scan based radiomic analysis. Bioengineering-Basel. (2023) 10:690. doi: 10.3390/bioengineering10060690

PubMed Abstract | Crossref Full Text | Google Scholar

27. Chen K, Wang MN, and Song ZJ. Multi-task learning-based histologic subtype classification of non-small cell lung cancer. Radiol Med. (2023) 128:537–43. doi: 10.1007/s11547-023-01621-w

PubMed Abstract | Crossref Full Text | Google Scholar

28. Varriano G, Guerriero P, Santone A, Mercaldo F, and Brunese L. Explainability of radiomics through formal methods. Comput Meth Prog Bio. (2022) 220:106824. doi: 10.1016/j.cmpb.2022.106824

PubMed Abstract | Crossref Full Text | Google Scholar

29. Ghosh D, Mastej E, Jain R, and Choi YS. Causal inference in radiomics: framework, mechanisms, and algorithms. Front Neurosci-Switz. (2022) 16:884708. doi: 10.3389/fnins.2022.884708

PubMed Abstract | Crossref Full Text | Google Scholar

30. 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:e104–7. doi: 10.1158/0008-5472.Can-17-0339

PubMed Abstract | Crossref Full Text | Google Scholar

31. Pan F, Feng L, Liu BC, Hu Y, and Wang Q. Application of radiomics in diagnosis and treatment of lung cancer. Front Pharmacol. (2023) 14:1295511. doi: 10.3389/fphar.2023.1295511

PubMed Abstract | Crossref Full Text | Google Scholar

32. Ge G and Zhang J. Feature selection methods and predictive models in CT lung cancer radiomics. J Appl Clin Med Phys. (2022) 24:e13869. doi: 10.1002/acm2.13869

PubMed Abstract | Crossref Full Text | Google Scholar

33. Chen M, Copley SJ, Viola P, Lu HA, and Aboagye EO. Radiomics and artificial intelligence for precision medicine in lung cancer treatment. Semin Cancer Biol. (2023) 93:97–113. doi: 10.1016/j.semcancer.2023.05.004

PubMed Abstract | Crossref Full Text | Google Scholar

34. Lv X, Li Y, Wang B, Wang Y, Pan Y, Li C, et al. Multisequence MRI-based radiomics analysis for early prediction of the risk of T790M resistance in new brain metastases. Quant Imag Med Surg. (2023) 13:8599–+. doi: 10.21037/qims-23-822

PubMed Abstract | Crossref Full Text | Google Scholar

35. Zhang Y, Zhang H, Zhang H, Ouyang Y, Su R, Yang W, et al. Glioblastoma and solitary brain metastasis: differentiation by integrating demographic-MRI and deep-learning radiomics signatures. J Magnetic Resonance Imaging. (2023) 60:909–20. doi: 10.1002/jmri.29123

PubMed Abstract | Crossref Full Text | Google Scholar

36. Lv X, Li Y, Wang B, Wang Y, Xu Z, Hou D, et al. Multisequence MRI-based radiomics signature as potential biomarkers for differentiating KRAS mutations in non-small cell lung cancer with brain metastases. Eur J Radiol Open. (2024) 12:100548. doi: 10.1016/j.ejro.2024.100548

PubMed Abstract | Crossref Full Text | Google Scholar

37. Demirel E and Dilek O. Utilizing radiomics of peri-lesional edema in T2-FLAIR subtraction digital images to distinguish high-grade glial tumors from brain metastasis. J Magnetic Resonance Imaging. (2024) 61:1728–37. doi: 10.1002/jmri.29572

PubMed Abstract | Crossref Full Text | Google Scholar

38. Mei T, Wang T, and Zhou QH. Multi-omics and artificial intelligence predict clinical outcomes of immunotherapy in non-small cell lung cancer patients. Clin Exp Med. (2024) 24:60. doi: 10.1007/s10238-024-01324-0

PubMed Abstract | Crossref Full Text | Google Scholar

39. Lin P, Lin YQ, Gao RZ, Wan WJ, He Y, Yang H, et al. Integrative radiomics and transcriptomics analyses reveal subtype characterization of non-small cell lung cancer. Eur Radiol. (2023) 33:6414–25. doi: 10.1007/s00330-023-09503-5

PubMed Abstract | Crossref Full Text | Google Scholar

Keywords: radiomics, magnetic resonance imaging, lung cancer, brain metastases, machine learning

Citation: Xia X, Tan Q, Du W and Gou Q (2025) Radiomics-based machine learning for differentiating lung squamous cell carcinoma and adenocarcinoma using T1-enhanced MRI of brain metastases. Front. Oncol. 15:1599853. doi: 10.3389/fonc.2025.1599853

Received: 25 March 2025; Accepted: 03 July 2025;
Published: 23 July 2025.

Edited by:

Timothy James Kinsella, Brown University, United States

Reviewed by:

Yoichi Watanabe, University of Minnesota Twin Cities, United States
Tingfan Wu, Shanghai United Imaging Medical Technology Co., Ltd., China

Copyright © 2025 Xia, Tan, Du and Gou. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

*Correspondence: Qiheng Gou, Z291cWloZW5nNTEzQHdjaHNjdS5jbg==

These authors have contributed equally to this work

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.