We found that EGFR and CXCR4 expression identified by machine learning showed an accuracy of 97.4% for the training cohort and 91.7% for the validation cohort in diagnosing and staging NSCLC patients. This evidence concerns the gene CXCR4 and non-small cell lung carcinoma.