Based on immunofluorescence (IF) images of CD8+ T lymphocytes and cancer cells, we develop a machine-learning approach which can predict the risk of relapse for patients with Triple Negative Breast Cancer (TNBC). Here, CD8A is linked to triple-negative breast carcinoma.