Identification of Prognostic Factors in Esophageal Cancer Using Machine Learning: A Retrospective Study Based on the SEER Database
Abstract
1. Introduction
2. Materials and Methods
2.1. Data Collection
2.2. Data Selection
2.3. Data Preprocessing
2.4. Machine Learning Models
2.5. Model Evaluations
2.6. Linear Regression for Exploratory Temporal Analysis
2.7. Statistical Analysis
3. Results
3.1. Data Exploratory Analysis
3.2. ML Model Performance
3.3. ML Model Interpretation
3.4. Exploratory Temporal Analysis
4. Discussion
5. Conclusions
Supplementary Materials
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Liu, C.Q.; Ma, Y.L.; Qin, Q.; Wang, P.H.; Luo, Y.; Xu, P.F.; Cui, Y. Epidemiology of esophageal cancer in 2020 and projections to 2030 and 2040. Thorac. Cancer 2023, 14, 3–11. [Google Scholar] [CrossRef] [PubMed]
- de Vos-Geelen, J.; Geurts, S.M.; van Putten, M.; Valkenburg-van Iersel, L.B.; Grabsch, H.I.; Haj Mohammad, N.; Hoebers, F.J.; Hoge, C.V.; Jeene, P.M.; de Jong, E.J.; et al. Trends in treatment and overall survival among patients with proximal esophageal cancer. World J. Gastroenterol. 2019, 25, 6835–6846. [Google Scholar] [CrossRef]
- Rice, T.W.; Patil, D.T.; Blackstone, E.H. 8th edition AJCC/UICC staging of cancers of the esophagus and esophagogastric junction: Application to clinical practice. Ann. Cardiothorac. Surg. 2017, 6, 119–130. [Google Scholar] [CrossRef]
- van Putten, M.; de Vos-Geelen, J.; Nieuwenhuijzen, G.A.P.; Siersema, P.D.; Lemmens, V.; Rosman, C.; van der Sangen, M.J.C.; Verhoeven, R.H.A. Long-term survival improvement in oesophageal cancer in the Netherlands. Eur. J. Cancer 2018, 94, 138–147. [Google Scholar] [CrossRef] [PubMed]
- Shao, C.Y.; Liu, X.L.; Yao, S.; Li, Z.J.; Cong, Z.Z.; Luo, J.; Dong, G.H.; Yi, J. Development and validation of a new clinical staging system to predict survival for esophageal squamous cell carcinoma patients: Application of the nomogram. Eur. J. Surg. Oncol. 2021, 47, 1473–1480. [Google Scholar] [CrossRef]
- Yan, T.; Liu, L.; Yan, Z.; Peng, M.; Wang, Q.; Zhang, S.; Wang, L.; Zhuang, X.; Liu, H.; Ma, Y.; et al. A radiomics nomogram for non-invasive prediction of progression-free survival in esophageal squamous cell carcinoma. Front. Comput. Neurosci. 2022, 16, 885091. [Google Scholar] [CrossRef]
- Shen, C.; Liu, Z.; Wang, Z.; Guo, J.; Zhang, H.; Wang, Y.; Qin, J.; Li, H.; Fang, M.; Tang, Z.; et al. Building CT radiomics based nomogram for preoperative esophageal cancer patients lymph node metastasis prediction. Trans. Oncol. 2018, 11, 815–824. [Google Scholar] [CrossRef]
- Ganggayah, M.D.; Taib, N.A.; Har, Y.C.; Lio, P.; Dhillon, S.K. Predicting factors for survival of breast cancer patients using machine learning techniques. BMC Med. Inform. Decis. Mak. 2019, 19, 48. [Google Scholar] [CrossRef]
- Leonard, G.; South, C.; Balentine, C.; Porembka, M.; Mansour, J.; Wang, S.; Yopp, A.; Polanco, P.; Zeh, H.; Augustine, M. Machine learning improves prediction over logistic regression on resected colon cancer patients. J. Surg. Res. 2022, 275, 181–193. [Google Scholar] [CrossRef] [PubMed]
- Sorayaie Azar, A.; Babaei Rikan, S.; Naemi, A.; Bagherzadeh Mohasefi, J.; Pirnejad, H.; Bagherzadeh Mohasefi, M.; Wiil, U.K. Application of machine learning techniques for predicting survival in ovarian cancer. BMC Med. Inform. Decis. Mak. 2022, 22, 345. [Google Scholar] [CrossRef] [PubMed]
- Gong, X.; Zheng, B.; Xu, G.; Chen, H.; Chen, C. Application of machine learning approaches to predict the 5-year survival status of patients with esophageal cancer. J. Thorac. Dis. 2021, 13, 6240–6251. [Google Scholar] [CrossRef]
- Tapak, L.; Shirmohammadi-Khorram, N.; Amini, P.; Alafchi, B.; Hamidi, O.; Poorolajal, J. Prediction of survival and metastasis in breast cancer patients using machine learning classifiers. Clin. Epidemiol. Glob. Health 2019, 7, 293–299. [Google Scholar] [CrossRef]
- Kaur, I.; Doja, M.N.; Ahmad, T. Data mining and machine learning in cancer survival research: An overview and future recommendations. J. Biomed. Inform. 2022, 128, 104026. [Google Scholar] [CrossRef] [PubMed]
- Andrade, C. Survival analysis, Kaplan-Meier curves, and Cox regression: Basic concepts. Indian J. Psychol. Med. 2023, 45, 434–435. [Google Scholar] [CrossRef]
- Deng, X.; Li, M.; Deng, S.; Wang, L. Hybrid gene selection approach using XGBoost and multi-objective genetic algorithm for cancer classification. Med. Biol. Eng. Comput. 2022, 60, 663–681. [Google Scholar] [CrossRef] [PubMed]
- Khushi, M.; Shaukat, K.; Alam, T.M.; Hameed, I.A.; Uddin, S.; Luo, S.; Yang, X.; Reyes, M.C. A comparative performance analysis of data resampling methods on imbalance medical data. IEEE Access. 2021, 9, 109960–109975. [Google Scholar] [CrossRef]
- Jadhav, A.S. A novel weighted TPR-TNR measure to assess performance of the classifiers. Expert Syst. Appl. 2020, 152, 113391. [Google Scholar] [CrossRef]
- Zeng, L.; Liu, L.; Chen, D.; Lu, H.; Xue, Y.; Bi, H.; Yang, W. The innovative model based on artificial intelligence algorithms to predict recurrence risk of patients with postoperative breast cancer. Front. Oncol. 2023, 13, 1117420. [Google Scholar] [CrossRef] [PubMed]
- Jung, H.K.; Tae, C.H.; Lee, H.A.; Lee, H.; Don Choi, K.; Park, J.C.; Kwon, J.G.; Choi, Y.J.; Hong, S.J.; Sung, J.; et al. Treatment pattern and overall survival in esophageal cancer during a 13-year period: A nationwide cohort study of 6,354 Korean patients. PLoS ONE 2020, 15, e0231456. [Google Scholar] [CrossRef]
- Zhu, C.; You, Y.; Liu, S.; Ji, Y.; Yu, J. A nomogram to predict distant metastasis for patients with esophageal cancer. Oncol. Res. Treat. 2019, 43, 2–9. [Google Scholar] [CrossRef]
- Tavallali, P.; Tavallali, P.; Singhal, M. K-means tree: An optimal clustering tree for unsupervised learning. J. Supercomput. 2021, 77, 5239–5266. [Google Scholar] [CrossRef]
- Liu, M.; Wang, C.; Gao, L.; Lv, C.; Cai, X. A nomogram to predict long-time survival for patients with M1 diseases of esophageal cancer. J. Cancer 2018, 9, 3986–3990. [Google Scholar] [CrossRef]
- Rice, T.W.; Ishwaran, H.; Blackstone, E.H.; Hofstetter, W.L.; Kelsen, D.P.; Apperson-Hansen, C. Recommendations for clinical staging (cTNM) of cancer of the esophagus and esophagogastric junction for the 8th edition AJCC/UICC staging manuals. Dis. Esophagus 2016, 29, 913–919. [Google Scholar] [CrossRef]
- Chen, S.B.; Weng, H.R.; Wang, G.; Yang, J.S.; Yang, W.P.; Liu, D.T.; Chen, Y.P.; Zhang, H. Prognostic factors and outcome for patients with esophageal squamous cell carcinoma underwent surgical resection alone: Evaluation of the seventh edition of the American Joint Committee on Cancer staging system for esophageal squamous cell carcinoma. J. Thorac. Oncol. 2013, 8, 495–501. [Google Scholar] [CrossRef] [PubMed]
- Lin, Y.; Ye, Y.; Huang, Q.; Zheng, B.; Yang, Y.; Chen, Y.; Li, W.; Ke, H.; Lin, C.; Zhang, Y.; et al. Influence of age as a continuous variable on survival outcomes and treatment options in patients with upper thoracic esophageal carcinoma. J. Cancer 2023, 14, 1039–1048. [Google Scholar] [CrossRef] [PubMed]
- Han, W.; Deng, W.; Wang, Q.; Ni, W.; Li, C.; Zhou, Z.; Liang, J.; Chen, D.; Feng, Q.; Bi, N.; et al. Applying post-neoadjuvant pathologic stage as prognostic tool in esophageal squamous cell carcinoma. Front. Oncol. 2022, 12, 998238. [Google Scholar] [CrossRef] [PubMed]
- Lundberg, E.; Lagergren, P.; Mattsson, F.; Lagergren, J. Life expectancy in survivors of esophageal cancer compared with the background population. Ann. Surg. Oncol. 2022, 29, 2805–2811. [Google Scholar] [CrossRef]
- Guo, X.; Qin, L.; Yang, R.; Liu, Y.; Zhou, S.; Zhao, W. Survival outcomes and prognostic factors of early-onset and late-onset metastatic esophageal cancer: A population-based study. Sci. Rep. 2025, 15, 23588. [Google Scholar] [CrossRef]
- Christie, N.A.; Rice, T.W.; DeCamp, M.M.; Goldblum, J.R.; Adelstein, D.J.; Zuccaro, G., Jr.; Rybicki, L.A.; Blackstone, E.H. M1a/M1b esophageal carcinoma: Clinical relevance. J. Thorac. Cardiovasc. Surg. 1999, 118, 900–907. [Google Scholar] [CrossRef]
- Zahoor, H.; Luketich, J.D.; Weksler, B.; Winger, D.G.; Christie, N.A.; Levy, R.M.; Gibson, M.K.; Davison, J.M.; Nason, K.S. The revised American Joint Committee on Cancer staging system (7th edition) improves prognostic stratification after minimally invasive esophagectomy for esophagogastric adenocarcinoma. Am. J. Surg. 2015, 210, 610–617. [Google Scholar] [CrossRef]
- Prenzel, K.L.; Bollschweiler, E.; Schröder, W.; Mönig, S.P.; Drebber, U.; Vallboehmer, D.; Hölscher, A.H. Prognostic relevance of skip metastases in esophageal cancer. Ann. Thorac. Surg. 2010, 90, 1662–1667. [Google Scholar] [CrossRef] [PubMed]
- Omofuma, O.O.; Cook, M.B.; Abnet, C.C.; Camargo, M.C. Race and ethnicity, stage-specific mortality, and cancer treatment in esophageal and gastric cancers: Surveillance, epidemiology, and end results (2000–2018). Gastroenterology 2023, 164, 473–475. [Google Scholar] [CrossRef] [PubMed]
- Corsini, E.M.; Foo, W.C.; Mitchell, K.G.; Zhou, N.; Maru, D.M.; Ajani, J.A.; Hofstetter, W.L.; Correa, A.M.; Antonoff, M.B.; Lin, S.H.; et al. Esophageal adenocarcinoma with any component of signet ring cells portends poor prognosis and response to neoadjuvant therapy. J. Thorac. Cardiovasc. Surg. 2021, 162, 1404–1412. [Google Scholar] [CrossRef] [PubMed]
- Yan, C.-Y.; Gu, Y.-M.; Shi, G.-D.; Shang, Q.-X.; Zhang, H.-L.; Yang, Y.-S.; Wang, W.-P.; Yuan, Y.; Chen, L.-Q. Impact of deep muscle invasion on nodal status and survival in patients with pT2 esophageal squamous cancer. J. Surg. Oncol. 2024, 129, 1056–1062. [Google Scholar] [CrossRef]








| Characteristics | SEER Variable | Value/Category c | Training Set (n = 9727) | Test Set (n = 4169) | p-Value |
|---|---|---|---|---|---|
| Predictor variables: Demographic data | |||||
| Age a | “Age recode with single ages and 90+” | [23, 80] | 64 | 64 | ≥0.01 |
| [Rename: “Age”] | |||||
| Sex | “Sex” | Male | 7863 (80.84%) | 3354 80.45%) | ≥0.01 |
| Female | 1864 (19.16%) | 815 (19.55%) | |||
| Race | “Race recode (W, B, AI, API)” | White | 8180 (84.10%) | 3478 (83.43%) | ≥0.01 |
| [Rename: “Race”] | Other | 1547 (15.90%) | 691 (16.57%) | ||
| Origin | “Origin recode NHIA (Hispanic, Non-Hisp)” | Hispanic | 724 (7.44%) | 302 (7.24%) | ≥0.01 |
| [Rename: “Hispanic”] | Non-Hispanic | 9003 (92.56%) | 3867 (92.76%) | ||
| Marital status | “Marital status at diagnosis” | Married | 5790 (59.53%) | 2475 (59.37%) | ≥0.01 |
| [Rename: “MaritalStatus”] | Other | 3937 (40.47%) | 1694 (40.63%) | ||
| Income | “Median household income inflation adj to 2022” | Medium | 6862 (70.55%) | 2944 (70.62%) | ≥0.01 |
| [Rename: “Income”] | Other | 2865 (29.45%) | 1225 (29.38%) | ||
| Predictor variables: Clinicopathological data | |||||
| Histology | “ICD-O-3 Hist/behav, malignant” | Adenocarcinoma | 5477 (56.31%) | 2327 (55.82%) | ≥0.01 |
| [Rename: HistologicalBehavior] | Other | 4250 (43.69%) | 1842 (44.19%) | ||
| Site | “Primary Site—labeled” | C15.5 | 6201 (63.75%) | 2672 (64.09%) | ≥0.01 |
| [Rename: “PrimarySite_code”] | Other | 3526 (36.25%) | 1497 (35.91%) | ||
| Sequence | “Sequence number” | Primary | 8212 (84.42%) | 3502 (84.00%) | ≥0.01 |
| [Rename: “SequenceNumber”] | Other | 1515 (15.58%) | 667 (16.00%) | ||
| Grade | “Grade Recode (thru 2017)” | Grade III | 4155 (42.72%) | 1807 (43.34%) | ≥0.01 |
| [Rename: “Grade”] | Other | 5572 (57.28%) | 2362 (56.66%) | ||
| AJCC T stage | “Derived AJCC T, 6th ed (2004–2015)” | T3 | 4235 (43.54%) | 1790 (42.94%) | ≥0.01 |
| [Rename: “AJCC_T”] | Other | 5492 (56.46%) | 2379 (57.06%) | ||
| AJCC N stage | “Derived AJCC N, 6th ed (2004–2015)” | N1 | 5671 (58.30%) | 2391 (57.35%) | ≥0.01 |
| [Rename: “AJCC_N”] | N0 | 4056 (41.70%) | 1778 (42.65%) | ||
| AJCC M stage | “Derived AJCC M, 6th ed (2004–2015)” | M0 | 6896 (70.90%) | 2983 (71.55%) | ≥0.01 |
| [Rename: “AJCC_M”] | Other | 2831 (29.10%) | 1186 (28.45%) | ||
| Summary stage | “SEER Combined Summary Stage 2000 (2004–2017)” | Dist+LN d | 3316 (34.09%) | 1430 (34.30%) | ≥0.01 |
| [Rename: “SummaryStage”] | Other | 6411 (65.91%) | 2739 (65.69%) | ||
| Tumor extension | “CS extension (2004–2015)” | Localized | 3042 (31.27%) | 1302 (31.24%) | ≥0.01 |
| [Rename: “ExtensionCS”] | Other | 6685 (68.73%) | 2866 (68.76%) | ||
| Lymph node involvement | “CS lymph nodes (2004–2015)” | Not involved | 3769 (38.75%) | 1667 (39.99%) | ≥0.01 |
| [Rename: “LymphNodesCS”] | Other | 5958 (61.25%) | 2502 (60.01%) | ||
| Metastasis at diagnosis | “CS mets at dx (2004–2015)” | No metastasis | 7189 (73.91%) | 3096 (74.26%) | ≥0.01 |
| [Rename: MetsAtDXCS] | Other | 2538 (26.09%) | 1073 (25.74%) | ||
| Tumor size a | “CS tumor size (2004–2015)” | [0, 990] | 50 | 40 | ≥0.01 |
| [Rename: “TumorSizeCS”] | |||||
| Familial polyposis b | “CS tumor size (2004–2015)” | Yes | 331 (3.40%) | 177 (4.25%) | ≥0.01 |
| [Rename: “TumorSize_CS_polyposis”] | No | 9396 (96.60%) | 3992 (95.75%) | ||
| Number of malignant tumor a | “Total number of in situ/malignant tumors for patient” | [1, 8] | 1 | 1 | ≥0.01 |
| [Rename: “InSituMalignantTumorsTotal”] | |||||
| Number of benign tumor a | “Total number of benign/borderline tumors for patient” | [0, 3] | 0 | 0 | ≥0.01 |
| [Rename: “BenignTumorsTotal”] | |||||
| Predictor variables: Treatment data | |||||
| Surgery | “RX Summ–Surg Prim Site (1998+)” | No surgery | 5784 (59.46%) | 2492 (59.77%) | ≥0.01 |
| [Rename: “SurgicalTreatment”] | Other | 3943 (40.54%) | 1677 (40.24%) | ||
| Lymph node removal | “RX Summ–Scope Reg LN Sur (2003+)” | Yes | 3888 (39.97%) | 1644 (39.43%) | ≥0.01 |
| [Rename: “ScopeRegionalLNSurgery”] | No/Unknown | 5839 (60.03%) | 2525 (60.57%) | ||
| Radiation | “Radiation recode” | Yes | 6505 (66.88%) | 2769 (66.42%) | ≥0.01 |
| [Rename: “Radiation”] | No/Unknown | 3222 (33.12%) | 1400 (33.58%) | ||
| Sequence of surgical radiation | “RX Summ--Surg/Rad Seq” | Radiation before | 1985 (20.41%) | 811 (19.45%) | ≥0.01 |
| [Rename: “SurgicalRadiationSequence”] | Other | 7742 (79.59%) | 3358 (80.55%) | ||
| Chemotherapy | “Chemotherapy recode (yes, no/unk)” | Yes | 7141 (73.41%) | 2955 (70.88%) | <0.01 |
| [Rename: “Chemotherapy”] | No/Unknown | 2586 (26.59%) | 1214 (29.12%) | ||
| Outcome variable | |||||
| 5-year survival | “Survival months” | Yes | 2101 (21.60%) | 900 (21.59%) | ≥0.01 |
| [Rename: “Y5_Survival”] | No | 7626 (78.40%) | 3269 (78.41%) | ||
| Algorithm a | Accuracy | ROC-AUC | F1 Score | Sum |
|---|---|---|---|---|
| RF | 0.78 | 0.84 | 0.58 | 2.20 |
| ANN | 0.78 | 0.82 | 0.56 | 2.18 |
| KNN | 0.73 | 0.76 | 0.51 | 2.00 |
| AdaBoost | 0.80 | 0.77 | 0.50 | 2.08 |
| Naive Bayes | 0.63 | 0.74 | 0.47 | 1.85 |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Pocasap, P.; Kongpetch, S.; Prawan, A.; Kaimuangpak, K.; Senggunprai, L. Identification of Prognostic Factors in Esophageal Cancer Using Machine Learning: A Retrospective Study Based on the SEER Database. J. Clin. Med. 2026, 15, 3049. https://doi.org/10.3390/jcm15083049
Pocasap P, Kongpetch S, Prawan A, Kaimuangpak K, Senggunprai L. Identification of Prognostic Factors in Esophageal Cancer Using Machine Learning: A Retrospective Study Based on the SEER Database. Journal of Clinical Medicine. 2026; 15(8):3049. https://doi.org/10.3390/jcm15083049
Chicago/Turabian StylePocasap, Piman, Sarinya Kongpetch, Auemduan Prawan, Karnchanok Kaimuangpak, and Laddawan Senggunprai. 2026. "Identification of Prognostic Factors in Esophageal Cancer Using Machine Learning: A Retrospective Study Based on the SEER Database" Journal of Clinical Medicine 15, no. 8: 3049. https://doi.org/10.3390/jcm15083049
APA StylePocasap, P., Kongpetch, S., Prawan, A., Kaimuangpak, K., & Senggunprai, L. (2026). Identification of Prognostic Factors in Esophageal Cancer Using Machine Learning: A Retrospective Study Based on the SEER Database. Journal of Clinical Medicine, 15(8), 3049. https://doi.org/10.3390/jcm15083049

