In this investigation, we created four ML models utilizing DCE-MRI data and assessed and compared their efficacy in quantifying the numbers of tumor-infiltrating T cells, including CD3, CD4, and CD8 subsets, in advanced gastric cancer patients. Here, CD4 is linked to gastric cancer.