In this study, we built and validated the first DL model based on self-supervised contrastive learning using CT images to non-invasively predict the expression of PD-1 and PD-L1 in HCC patients. The gene discussed is CD274; the disease is hepatocellular carcinoma.