In the final model, 11 variables from the training cohort were identified as independent risk factors for patients with NSCLC: age, KPS score, BMI, diabetes, targeted therapy, Hb, WBC, LDH, CRP, PLR, and LMR. The gene discussed is GSTM1; the disease is diabetes mellitus.