We constructed machine learning models for predicting TME subtypes of NPC patients based on 8 genes (LCK, CD247, FYN, ZAP70, SH2D1A, CD3D, CD3E, and CD3G). The gene discussed is CD3E; the disease is nasopharyngeal carcinoma.