To explore the effectiveness of machine learning classifiers based on dynamic contrast-enhanced magnetic resonance imaging (DCE-MRI) in predicting the expression levels of CD3+, CD4+, and CD8+ tumor-infiltrating lymphocytes (TILs) in patients with advanced gastric cancer (AGC). The gene discussed is CD8A; the disease is gastric cancer.