Explainable Machine Learning for Head and Neck Cancer Risk Stratification
Amr Sayed Ghanem1, Róbert Bata1, Marianna Móré2
1Department of Epidemiology, Faculty of Health Sciences, University of Debrecen, 4028 Debrecen, Hungary.
Abstract:
Introduction: Head and neck cancers are frequently diagnosed at advanced stages, resulting in poor survival despite therapeutic advances, highlighting the need for earlier identification within routine clinical care. Routinely collected electronic health record data provide a potential source of longitudinal clinical signals, although the clinical applicability of machine learning models remains limited by concerns regarding interpretability and real-world integration. Methods: This retrospective cohort study included 157,031 patients treated at the University of Debrecen Clinical Centre between 2007 and 2022, with head and neck cancer defined using ICD-10 codes C01 to C14. A total of 1397 variables, including demographic characteristics, ICD based comorbidities, and laboratory parameters, were reduced to 91 features using variance filtering and elastic net penalized Cox regression. Three survival modelling approaches were developed and compared, including CoxNet, Random Survival Forest, and XGBoost with a Cox objective. Results: The XGBoost model demonstrated the highest predictive performance with a mean concordance index of 0.916, followed by Random Survival Forest at 0.892 and CoxNet at 0.886, with acceptable calibration across models. Risk stratification showed clear separation between low, medium, and high-risk groups. Model interpretability using SHapley Additive exPlanations indicated that predictions were driven by a combination of demographic factors, laboratory markers, and clinically relevant diagnosis codes, reflecting both distal risk gradients and proximal clinical signals. Conclusions: These findings suggest that explainable machine learning applied to routine clinical data can support accurate and clinically interpretable risk stratification, with potential utility for opportunistic early identification of high-risk patients within existing healthcare pathways. Clinical Relevance: Explainable EHR-based survival models may support opportunistic identification of patients at increased head and neck cancer risk within routine clinical workflows, potentially improving triage and referral.

