The immune risk score model which was based on the results of machine learning XGBoost and Cox analysis intuitively demonstrated that integrating CD4 and PD-L1 on TILs could improve the prognostic prediction ability of Gal-9 on TILs in stage I–III SCLC. Here, CD4 is linked to small cell lung carcinoma.