Abstract
Background
Lung cancer is a leading cause of cancer-related deaths globally, affecting 2.2 million people and causing approximately 1.8 million deaths annually. The 5-year survival rate remains low due to risk factors such as aging, smoking, and air pollution, which also impose significant financial burdens on healthcare systems. Early mortality prediction can improve patient outcomes and reduce costs.
Objective
This study aimed to develop mortality prediction models for lung cancer patients using machine learning techniques by comparing severity adjustment tools—Charlson Comorbidity Index (CCI), Age-adjusted Charlson Comorbidity Index (ACCI), and Elixhauser Comorbidity Index (ECI).
Methods
Data from the National Hospital Discharge Injury Survey (2006–2018) were analyzed for 24,472 lung cancer patients diagnosed with ICD-10 codes C33–C34. Machine learning methods, including logistic regression, decision trees, random forests, XGBoost, support vector machines, and neural networks, were applied. Models were evaluated using area under the curve (AUC), sensitivity, specificity, accuracy, and F1 score.
Results
Random forests performed best in the training set, while XGBoost and neural networks showed superior performance in the test set. Key predictors of mortality included admission route, length of stay, and surgery status.
Conclusions
XGBoost and neural network models demonstrated strong performance in predicting mortality among lung cancer patients. This study represents one of the first comparative analyses to evaluate machine learning–based mortality prediction models incorporating multiple comorbidity severity indices (CCI, ACCI, and ECI), providing evidence to support the selection of optimal severity adjustment tools and machine learning algorithms. Implementing these models, in combination with primary care and remote monitoring strategies after hospital discharge, may help reduce emergency room visits and hospital stays, thereby improving survival outcomes and alleviating healthcare costs.
1. Introduction
Lung cancer affects 2.2 million people annually and results in approximately 1.8 million deaths, making it one of the cancers with the highest incidence and mortality worldwide. 1 The overall 5-year survival rate for lung cancer is considerably low (<20 %), making it a major cause of cancer-related deaths. 2 As risk factors such as population aging, smoking, and air pollution increase, the number of lung cancer patients will continuously increase, which adds a considerable cost burden to the global medical system. 3 Lung cancer is a representative multifactorial disease in which genetic susceptibility, environmental exposures, and lifestyle factors interact, resulting in substantial clinical and biological heterogeneity among patients. Owing to this heterogeneity, considerable variability in prognosis and treatment response is observed even among patients with the same disease stage or treatment strategy, and conventional clinical indicators alone are insufficient to adequately explain mortality risk. Although treatment strategies for lung cancer have expanded with the introduction of targeted therapies and immunotherapies, treatment responses remain limited in a substantial proportion of patients, and survival rates tend to decline as the disease is diagnosed at more advanced stages.
To address these challenges, the application of artificial intelligence (AI) technologies, including machine learning and deep learning, has recently increased in lung cancer research. Recently, various studies have validated the performance of early detection and precise classification of lung cancer by utilizing ensemble learning frameworks and optimized deep learning models,4,5 Furthermore, these AI technologies have proven effective in identifying complex pulmonary lesions, such as interstitial lung disease. 6 In this context, AI enables the integrated analysis of large-scale clinical and genomic data, allowing the identification of complex biological patterns and risk factors that are difficult to capture using traditional approaches.7–9 In particular, machine learning–based methods can reflect the complex pathophysiology of lung cancer and inter-patient heterogeneity, thereby enabling more precise prediction of mortality risk and early identification of high-risk patients. Therefore, the development and validation of machine learning-based mortality prediction models.
Mortality is an important measure of health outcomes within a community and is used as a representative indicator of the country’s health level. Reducing the mortality rate can lower medical expenses by enabling disease prevention and early diagnosis, thereby facilitating the establishment of more effective policies. 10 In particular, in diseases such as lung cancer, in which the survival rate decreases to less than 5% and medical expenses increase as the disease progresses to the final stage, early management through mortality prediction can reduce the burden on patients and caregivers. Comorbidities, which are individual patient characteristics and important predictors of their health outcomes, are used to measure mortality rates more accurately.11,12 The survival of patients with lung cancer can vary depending on comorbidities, such as cardiovascular disease and chronic lung disease, in addition to age and smoking. Lung cancer patients with comorbidities may not be eligible for surgery, which can reduce treatment effectiveness. Thus, comorbidities are important predictors of survival for lung cancer patients.13,14
Representative methods for estimating morbidity and mortality rates by evaluating comorbidities include the CCI, ACCI, and ECI. The CCI was developed in 1984 to evaluate mortality rates and uses a compensation method by assigning weights to 19 comorbidities. 12 Subsequently, Deyo (1992) 15 revised the 19 disease categories into 17 categories, and Quan et al. (2005) 16 converted these 17 modified diagnostic codes into an algorithm based on ICD-10 codes. The ACCI employs a method that includes the patient’s age in the CCI value, which more accurately predicts the postoperative mortality rate as it considers both age and comorbidities.17–19 The ECI was developed to measure 30 comorbidities using the Elixhauser comorbidity system. 20 Van Walraven et al. (2009) 21 modified this to the Elixhauser comorbidity index, a single-weight score that has since been used as the Thompson and AHRQ ECI.22,23
We developed a mortality prediction model for each comorbidity severity compensation tool. Thus far, we have applied machine learning techniques, which are more effective analysis methods for prognosis prediction than traditional statistical methods.24–26 In the medical field, machine learning analysis techniques are currently utilized for accurate diagnosis, severity risk prediction, and prognosis prediction; however, there is a lack of verification of mortality prediction, which implies patient survival.27,28 In particular, few studies have been conducted that compared machine learning analysis techniques to propose a prediction model suitable for patients with lung cancer. Previous studies have applied machine learning approaches to predict survival outcomes, treatment response, and postoperative prognosis in patients with lung cancer, and have demonstrated improved predictive performance compared with traditional statistical models.29,30 However, many of these studies have focused on specific clinical settings or limited sets of predictors, which restricts systematic comparisons across different machine learning algorithms and comprehensive evaluations of mortality prediction models that incorporate comorbidity severity. Widely used comorbidity severity adjustment tools, such as the CCI, ACCI, and ECI, have primarily been applied within conventional regression-based frameworks to predict mortality or healthcare utilization. In contrast, studies that apply these comorbidity severity indices to machine learning models and comparatively evaluate their predictive performance for mortality among lung cancer patients remain very limited. Accordingly, in this study, we used machine learning analysis techniques to identify the factors affecting mortality by comparing the mortality prediction models for each severity-compensating tool (CCI, ACCI, and ECI). Thus, we suggest excellent severity-compensating tools and prediction model techniques to predict the mortality of lung cancer patients.
2. Materials and methods
2.1. Study design and database
This study used a total of 13 years of data from the Korea National Hospital Discharge Injury Survey (KNHDIS) hosted by the Korea Disease Control and Prevention Agency from 2006 to 2018. The KNHDIS is operated by the Korea Disease Control and Prevention Agency, which surveys all patients discharged from medical institutions with more than 100 beds nationwide, including general hospitals, hospitals, and medical centers, as part of the domestic injury surveillance project. The database is managed by the Korea Disease Control and Prevention Agency (KDCA), and the raw data were obtained after submitting a data use request through the National Injury Information Portal (https://www.kdca.go.kr/injury/biz/injury/main/mainPage.do). The study subjects were patients with lung cancer diagnosed with C33-C34 of ICD-10-based main diagnosis codes. Among them, 24,472 patients aged 14 or older who responded to all items of Sex, Age, Admission Route, Surgery, Type of Insurance, LOS, Number of Beds, and Hospital Location were selected as the final research subjects (Figure 1). Flowchart of the study cohort from the KNHDIS.
2.2. Comorbidity assessment
To account for comorbidity-based severity, secondary diagnosis variables were utilized. Rather than simply listing individual complications, we calculated standardized comorbidity indices—the CCI, ACCI, and ECI—to comprehensively reflect patient health status. These three indices were not limited to diagnostic codes from a single discharge point; instead, they incorporated all ICD-10 codes for primary and secondary diagnoses recorded throughout the patient’s relevant clinical period. Weights were assigned based on the standardized algorithms originally proposed by Charlson et al. (1987) 31 and subsequently refined by Quan et al. (2005, 2011).32,33 For precise calculation, all indices were derived using the validated ICD-10-based Excel dataset calculator developed by Prommik et al. (2022). Due to the nature of claims data, cases where specific ICD codes were absent were regarded as the absence of the corresponding condition. 34
The CCI is a validated tool for quantifying comorbidity burden to predict 10-year mortality. 35 This study applied the updated weighting system by Quan et al. (2011), which recalibrates historical weights using contemporary clinical data. 33 In this system, weights ranging from 0 to 6 are assigned to 17 comorbidity categories based on their association with mortality risk. Total scores were calculated as the sum of these weights and categorized into 0, 1, 2, and ≥3 points, following conventional classification methods. 36
The ACCI measures mortality risk by adding age-related weights to the baseline CCI. Starting from age 40, one additional point was assigned for every 10-year increase in age (≤49: 0; 50–59: 1; 60–69: 2; 70–79: 3; 80–89: 4; 90–99: 5; and ≥100: 6 points). 37
The ECI is based on Elixhauser’s 31 comorbidity categories and demonstrates superior predictive power for in-hospital mortality. 38 Unlike the CCI, it includes psychological comorbidities such as depression, as well as cardiac arrhythmias and valvular diseases. Weights were assigned according to the system by Moore et al. (2017), 39 with individual conditions assigned weights ranging from -7 (drug abuse) to +14 (metastatic cancer) to determine the final composite score.40,41
2.3. Data processing
Classification and definition of variables.
aLOS: Length of Stay.
2.4. Statistical analysis
Data preprocessing was performed using SPSS version 23.0 and Excel, while the development and validation of mortality prediction models for lung cancer patients were conducted using R version 4.0.5. All analyses were carried out on a Windows 11-based workstation equipped with an Intel i7-9700 CPU and 32GB of RAM. Memory usage was optimized during model training to ensure the stability and reproducibility of the large-scale administrative claims data analysis.
First, frequency analysis was performed to identify the general characteristics of the study population. Second, to develop the mortality prediction models, we utilized six algorithms: logistic regression (LR), decision tree (DT), random forest (RF), XGBoost, support vector machine (SVM), and neural network (NN). The total dataset was randomly split into a training set (70%) and a testing set (30%). Cross-validation was not applied in this study; this was a strategic choice given that the large-scale administrative claims data provided a sufficient sample size, and it allowed for a consistent and reproducible comparison of the predictive performance across the three comorbidity indices (CCI, ACCI, and ECI) under identical data-splitting conditions. Hyperparameters for each model were initially set based on standard default values validated in prior literature and subsequently optimized through performance comparisons using an internal validation subset.35,42 Detailed hyperparameter configurations are presented in Supplemental Tables S1–S3.
Third, to preserve clinical relevance and reflect the real-world environment of administrative claims data, all available variables—including demographic characteristics, comorbidities, and healthcare utilization indicators—were included without additional feature selection. Due to the structural characteristics of the claims data, missing values were minimal and were handled using complete-case analysis. For scale-sensitive models (LR, SVM, and NN), continuous variables were normalized, whereas tree-based models (DT, RF, and XGBoost) were trained using raw values.
Fourth, as the class imbalance associated with the mortality rate (14.37%) reflects the natural distribution in clinical practice, we focused on verifying the models’ real-world clinical applicability rather than modifying the data through artificial resampling techniques such as SMOTE. To objectively evaluate potential performance bias resulting from this imbalance, we assessed the models’ discriminative power using both the Area Under the Curve (AUC) and the F1-score, the latter of which is particularly sensitive to class imbalance. Finally, feature importance analysis was conducted for the models exhibiting superior predictive performance (XGBoost and NN). For the XGBoost model, feature importance was derived using its built-in importance function, while for the neural network, the relative importance of each feature was evaluated based on contribution scores derived from the model.
2.5. Machine learning model
2.5.1. Algorithm selection
LR, DT, RF, XGBoost, SVM, and NN were used to develop a mortality prediction model for patients with lung cancer. LR is a traditional statistical method that is used for binary classification. It is widely used to predict the event generation probability by applying data to a logistic function. Unlike a linear regression analysis, it utilizes a multivariate methodology to establish a functional relationship between two or more independent variables and one dependent variable. 43 Here, the dependent variable was dichotomous, with a value of one or 0. 44 A DT is a supervised learning method mainly used in classification and regression analysis and is a model with a hierarchically arranged structure. First, the parent node entropy was calculated. Subsequently, the information gain was computed by subtracting the weighted sum of the child-node entropy from the parent entropy. The root node has the highest information gain. This process is repeated until the classification is completed. 45
RF is a learning method used for classification and regression analyses. It is an ensemble algorithm that trains multiple decision trees and synthesizes the results to make predictions. It is currently used in the medical field because it is fast and highly accurate. 46 XGBoost is commonly used in classification and regression analysis and is an ensemble technique that adds new models to correct errors in previous models. 47 In other words, the learning errors of weak prediction models are weighted and sequentially reflected in the next learning model to create a strong prediction model. XGBoost, based on the gradient-boosted decision tree (GBDT), is further optimized for constructing and searching trees compared to the GBDT, which is more efficient and has higher prediction accuracy. 48
An SVM based on logistic regression was utilized for data classification and regression. 43 An SVM is a binary classifier that can separate two distinct groups. When the data belonging to one of two categories are given, a model is created to classify which category the new data must belong to using a hyperplane based on the input data set. The optimal hyperplane is the hyperplane in which the margin is maximized, that is, the distance from the boundary between the two categories to the data point is maximized.49,50 The NN algorithm outperformed existing regression analyses and is widely used to show high accuracy in predicting various health conditions. A NN mimics the shape in which the neurons are connected and cannot function without other connected neurons. 51
2.5.2. Model evaluation
For model evaluation, area under the ROC curve (AUROCC), sensitivity, specificity, accuracy, and F1 score were utilized: (1) AUC refers to the area under the ROC curve and is a value that shows the correlation between overall sensitivity and specificity, which is evaluated as the closer it is to one, the better the performance is
52
; (2) Sensitivity means the ratio of those evaluated as positive among those actually evaluated as positive, for which the performance is better as it is closer to one
53
; (3) Specificity refers to the ratio of those evaluated as negative among those actually evaluated as negative, for which the performance is better as it is closer to 0
54
; (4) Accuracy is the most basic performance evaluation index in machine learning and is utilized to compare and evaluate models, referring to the ratio of the number of corresponding to correct answers compared to the overall data
55
; and (5) F1 score is an evaluation index commonly used for imbalanced data because it can consider both Precision and Recall,
56
which represents the better performance as being closer to 1. Meanwhile, the F1 score in this study was relatively lower than other performance metrics, which may reflect the inherent class imbalance of the dataset and the limited number of mortality events. Given the low mortality rate in the analyzed data, even small changes in false-positive or false-negative classifications can substantially affect the F1 score. However, because the primary objective of this study was risk stratification and identification of high-risk patients rather than precise case-level classification, discrimination-oriented metrics such as AUC and sensitivity were considered more appropriate for evaluating clinical usefulness. The five model performance evaluation indices utilized were calculated using the following formulas:
3. Results
3.1. Demographic characteristics
Among the 24,472 patients with lung cancer who were the subjects of this study, 20,956 survived and 3,516 died. First, the mean age of the survivors was 66.12 years old. In terms of gender, males were 14,946 (71.32%), and more than 6,010 females (28.68%). Regarding the admission route, emergencies accounted for 4,610 (22%) patients, whereas the number of outpatients was 16,346 (78%); patients who did not undergo a surgical operation, 18,196 (86.83%) did not undergo a surgical accounted, for 2,760 (13.17%) did not undergo surgery. In terms of the type of insurance, medical beneficiaries (assistance) were 1,822 medical beneficiaries (8.69%), and health insurance subscribers accounted for 19,134 (91.31%), most of whom were health insurance subscribers. The mean LOS was 10.7 days. Regarding hospital locations, metropolitan cities accounted for the most, with 8,165 (38.96%), followed by Seoul with 7,340 (35.03%) and other areas with 5,451 (26.01%). Regarding the number of beds, 500-999 beds accounted for the largest number with 11,335 (54.09%), followed by 1,000 or more beds with 7,009 (33.45%), 300-499 beds with 1,388 (6.62%), and 100-299 beds with 1,224 (5.84%). In terms of comorbidity severity compensation tools, survivors’ CCI was found to be an average of 2.86 units, ACCI was an average of 5.03 units, and ECI was 6.39 units.
Characteristics of the selected participants.
aLOS: Length of Stay.
Distribution of comorbidity indices (CCI, ACCI, and ECI) according to survival status.
3.2. Performance comparison of ML model
Performance evaluation of each machine learning model revealed that RF was the most suitable for all severity-compensating tools (CCI, ACCI, and ECI) in the training set. In the CCI, the RF model showed the predictive power of AUC (0.977, 95% CI 0.975-0.98), sensitivity (0.936, 95% CI 0.925-0.945), specificity (0.898, 95% CI 0.893-0.903), accuracy (0.904, 95% CI 0.899-0.908), and F1 Score (0.736). In the ACCI, the RF model exhibited a predictive power of AUC (0.982, 95% CI 0.981-0.984), sensitivity (0.92, 95% CI 0.908-0.93), specificity (0.932, 95% CI 0.928-0.936), accuracy (0.93, 95% CI 0.926-0.934), and F1 score (0.791). For ECI, the RF model displayed the prediction power of AUC (0.983, 95% CI 0.981-0.985), sensitivity (0.944, 95% CI 0.935-0.953), specificity (0.91, 95% CI 0.906-0.915), accuracy (0.915, 95% CI 0.911-0.919), and F1 Score (0.762), suggesting that the RF model was the most suitable for predicting mortality in lung cancer.
In the Test set, all the CCI, ACCI, and ECI models were statistically significant, and the XGBoost and NN models showed the best performance. For CCI, the XGBoost model exhibited the predictive power of AUC (0.819, 95% CI 0.806-0.831), sensitivity (0.819, 95% CI 0.794-0.842), specificity (0.672, 95% CI 0.66-0.684), accuracy (0.693, 95% CI 0.682-0.704), and F1 Score (0.434). The NN model displayed a predictive power of AUC (0.817, 95% CI 0.804-0.83), sensitivity (0.83, 95% CI 0.806-0.852), specificity (0.66, 95% CI 0.648-0.672), accuracy (0.685, 95% CI 0.674-0.695), and F1 score (0.431), suggesting that the XGBoost model exhibited slightly better performance than the NN model.
In the ACCI, the XGBoost model showed the prediction power of AUC (0.82, 95% CI 0.807-0.832), Sensitivity (0.817, 95% CI 0.792-0.84), Specificity (0.681, 95% CI 0.669-0.692), Accuracy (0.7, 95% CI 0.69-0.711), and F1 Score (0.439). Additionally, the NN model displayed the predictive power of AUC (0.82, 95% CI 0.808-0.833), sensitivity (0.813, 95% CI 0.788-0.836), specificity (0.685, 95% CI 0.673-0.696), accuracy (0.703, 95% CI 0.693-0.714), and F1 Score (0.44), suggesting that both models had the same performance.
Performance comparison of the lung cancer mortality machine learning models.

Precision-recall curves of six different machine learning models for predicting lung cancer mortality. (A) CCI model performance in the training and test sets. (B) ECI model performance in the training and test sets. (C) ACCI model performance in the training and test sets.
3.3. Feature importance in lung cancer mortality
Predictive factors for the mortality of lung cancer patients were identified in XGBoost and NN, which had the best performance among the machine learning models (Figure 3). In the CCI XGBoost and ACCI XGBoost models, LOS was the most important factor affecting the mortality of lung cancer patients, followed by admission route and surgery. However, for the ECI XGBoost models, the Admission Route was an important factor affecting the mortality of lung cancer patients, followed by LOS and Surgery. Meanwhile, in all the CCI neural network models, the ACCI NN model, and the ECI NN model, the admission route acted as an important factor affecting the mortality of lung cancer patients, whereas Surgery, LOS, and medical institutions with 1,000 or more beds belonged to other important factors. In summary, LOS and admission routes were identified as the top factors predicting mortality in patients with lung cancer. Feature importance of the XGBoost and NN model.
4. Discussion
In this study, we developed a mortality prediction model for patients with lung cancer for each severity-compensating tool by applying machine learning techniques to the KNHDIS data of the Korea Disease Control and Prevention Agency. Although studies on severity-compensating tools such as the CCI, ACCI, and ECI are actively underway, very few studies have proposed prediction models based on severity-compensating tools for lung cancer patients. Therefore, this study suggests a mortality prediction model for lung cancer patients with high predictive power and identifies the major factors for predicting mortality in lung cancer patients. We developed a mortality prediction model for lung cancer patients by utilizing LR, DT, RF, XGBoost, SVM, and ANNA, and comprehensively evaluated its performance with AUROCC, sensitivity, specificity, accuracy, and F1 score, confirming that the XGBoost and NN models had superior prediction power.
Examining precedent studies, the XGBoost model showed excellent prediction power in establishing an early lung cancer prediction model, 57 and in terms of machine learning-based lung cancer risk prediction, XGBoost exhibited the best performance among LR, Naïve Bayes, RF, and XGBoost algorithms. 58 In addition, the XGBoost-based AI model showed the best predictive power for predicting the postoperative prognosis of patients with NSCLC. 59 Meanwhile, when applying LASSO, RF, XGBoost, NN, and Super Learner to predict in-hospital sepsis mortality, XGBoost, and NN showed the best performance. 60 Furthermore, the NN model was found to have the highest accuracy in predicting the mortality of stroke patients, 61 whereas the XGBoost model had better predictive power than LR and RF models in predicting the mortality rate of severe influenza patients. 62 In other words, it could be confirmed that the XGBoost model is an excellent model for the early detection and prognosis prediction of lung cancer and that the NN model exhibits excellent performance in predicting mortality. The results of this study also showed that the XGBoost and NN models, which have been shown to have the best prediction power and accuracy in previous studies, exhibited the best performance. This can be the basis for supporting the possibility of utilizing XGBoost and NN models to predict the mortality rate of lung cancer patients in the future. Therefore, the adoption of machine learning models in clinical settings can provide healthcare professionals with better decision-making tools and contribute to improving the survival rate of lung cancer patients. 63
In the XGBoost and NN models based on the severity-compensating tools CCI, ACCI, and ECI, the key variables for predicting mortality in lung cancer patients were admission route, LOS, and surgery. Treatment methods for lung cancer include surgery, chemotherapy, and radiation therapy, which are performed within one year of diagnosis. For lung cancer, the course of the disease after initial diagnosis and the likelihood of visiting a medical institution are inversely proportional, and the side effects caused by cancer treatment may result in emergency room visits. Acute pain due to drug treatment, the risk of infection, inflammatory disease due to decreased immune function, side effects, and complications due to radiation therapy can lead to emergency room visits by patients with lung cancer. As such, patients with lung cancer may visit the emergency room more frequently, and an increase in emergency room visits can lead to an increase in the LOS. In general, 54.5% of patients with lung cancer who visit the emergency room end up during hospitalization or mortality, and as the number of emergency room visits increases, their symptoms may worsen or their complications may increase. Most patients with lung cancer who visit the emergency room require treatment in the intensive care unit (ICU), and hospitalization in the ICU can increase the LOS. Decreased levels of consciousness due to pneumonia, pleural effusion, pulmonary embolism, and brain metastasis act as a factor in increasing the LOS in the ICU.64,65 Regarding the admission route, the results of this study also showed that the mortality rate was higher for patients who were hospitalized through the emergency room than through the outpatient route, in which the LOS for deceased patients was found to be more than twice that of survivors. When a patient is hospitalized, the severity is assessed to determine the LOS, and through management of the LOS, the timing of treatment intervention can be determined in consideration of situations that may occur in the patient. In particular, an increase in LOS can act as a factor in increasing medical expenses, leading to increasing the burden on patients. 66 Accordingly, it is necessary to prevent emergency room visits through continuous monitoring of patients with lung cancer and reduce the LOS by identifying the risk factors for hospitalization.
In patients with lung cancer, there is a close relationship between the treatment period and mortality rate. The longer the treatment duration, the greater the impact on the patient mortality rate. Although surgical resection is an effective treatment method for lung cancer patients, the mortality rate within 5 years is high in patients who receive surgical treatment. It seems that the mortality rate could increase because of complications caused by recurrence and concomitant diseases. Surgical resection performed in the early stages of cancer can increase the survival rate of patients with lung cancer; however, the mortality rate is high for patients who receive surgical treatment 30 days after diagnosis. In other words, the mortality rate of patients with lung cancer increases as they wait longer for treatment, and concomitant diseases may increase their complications after surgery, negatively affecting prognosis. Advances in cancer diagnosis and treatment technologies have enabled cancer patients to survive longer if diagnosed and treated early. In patients with lung cancer, as the severity of the disease increases, functional recovery cannot be achieved after surgery, thus increasing the disease burden. To overcome this problem, minimally invasive surgery, which can reduce the length of hospital stay, has recently been adopted for lung cancer resection. In conclusion, because the mortality rate of lung cancer patients increases due to the occurrence of concomitant diseases rather than the cancer itself as the disease progresses, continuous management and treatment of lung cancer patients after surgery seems to be necessary. Since the most important goal of postoperative treatment is a patient’s normal life, integrated management, including regular checkups, medical treatment, and rehabilitation treatment, is necessary. Furthermore, it is necessary to continuously maintain patients’ health, reduce their emergency room visits, and prevent an increase in the LOS by minimizing side effects that may occur during the treatment process.13,67–70
This study has the following limitations. No comorbidities or complications were observed. Since the data in this study were based on diagnosis at the time of discharge, the temporal relationship between the occurrence of comorbidities is unknown. In future studies, if temporal relationships could be identified and analyzed by distinguishing comorbidities and complications separately, a more accurate mortality prediction model for lung cancer patients could be built. Additionally, because of the nature of the research data, it did not contain clinical information such as cancer stage; therefore, it could not be reflected in the model. If clinical variables were included in future studies, more specific mortality-predictive factors could be identified. Furthermore, this study did not employ ensemble learning approaches (e.g., stacking) or advanced interpretation techniques such as SHAP or LIME. The primary objective of this study was to compare and evaluate predictive performance using structured panel data, rather than image-based deep learning models, and to focus on model benchmarking across comorbidity severity indicators. Future research could apply ensemble methods and post hoc explainability analysis to enhance model robustness and provide more interpretable evidence for the pathways associated with mortality risk.
5. Conclusion
In this study, three commonly used comorbidity indices (CCI, ACCI, ECI) were applied to machine learning-based mortality prediction models for lung cancer patients and compared. The analysis revealed consistent key predictors—namely, admission route, length of stay, and surgical status—regardless of the comorbidity index used, demonstrating the structural validity of claims data-based prediction models. Although the study utilized data from a single country, the results suggest that machine learning models can effectively identify patients at elevated risk of mortality by leveraging standardized clinical data, including comorbidity severity. Given the limitations in generalizability from single-country data, external validation using multinational datasets is warranted. As the variables used in this study are standardized across most countries, similar predictive performance is expected in external validations.
These findings indicate that machine learning can provide a robust evidence base for managing lung cancer patients throughout their treatment journey. Continuous post-diagnosis management is critical, as frequent emergency visits and prolonged hospital stays—often due to post-surgical recurrence or comorbidities—are major risk factors for mortality. The XGBoost and Neural Network models developed in this study can facilitate early identification of high-risk patients. Linking these patients to primary care and digital health-based remote monitoring systems allows healthcare providers to receive timely information about abnormal signs, helping prevent emergency visits and hospital readmissions. In essence, machine learning can support safe at-home management post-discharge, contributing to reduced mortality and improved therapeutic outcomes.
While further model refinement and external validation incorporating additional clinical variables (e.g., cancer stage, detailed treatment information) are necessary, this study provides a methodological foundation for improving risk assessment in lung cancer patients. Moreover, these predictive models can help establish more systematic post-discharge management strategies and enable earlier interventions for high-risk patients.
Supplemental material
Supplemental material - Machine learning–based prediction of mortality in lung cancer: Application of severity-adjustment method
Supplemental material for Machine learning–based prediction of mortality in lung cancer: Application of severity-adjustment method by Sewon Park, Selin Woo, Ji-Hyun Park, Bumhee Park and Munjae Lee in Digital Health.
Footnotes
Acknowledgements
This study was supported by the Ministry of Education of the Republic of Korea and the National Research Foundation of Korea (NRF-2023S1A3A2A05095298). The authors also acknowledge the Office of Biostatistics, Medical Research Collaborating Center, Ajou Research Institute for Innovative Medicine, Ajou University School of Medicine (Suwon, Republic of Korea) for statistical analysis support. The authors are grateful to the journal.
Ethical considerations
Ethical approval was not required as this study data is open sourced, and the original research have already conducted.
Author contributorship
Conceptualization, S.P, S.W.; Data curation, J.P.; Formal analysis, B.P.; Methodology, J.P, S.W.; Supervision, M.L.; Writing—original draft, S.P, S.W.; Writing—review & editing, M.L. All authors have read and agreed to the published version of the manuscript.
Funding
The authors disclosed receipt of the following financial support for the research, authorship, and/or publication of this article: This work was supported by the Ministry of Education of the Republic of Korea and the National Research Foundation of Korea (NRF-2023S1A3A2A05095298).
Declaration of conflicting interests
The authors declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Data Availability Statement
Guarantor
The guarantor of this article is Munjae Lee. They accept full responsibility for the integrity of the work as a whole, from inception to published article.
Supplemental material
Supplemental material for this article is available online.
References
Supplementary Material
Please find the following supplemental material available below.
For Open Access articles published under a Creative Commons License, all supplemental material carries the same license as the article it is associated with.
For non-Open Access articles published, all supplemental material carries a non-exclusive license, and permission requests for re-use of supplemental material or any part of supplemental material shall be sent directly to the copyright owner as specified in the copyright notice associated with the article.
