In this study, the performance of the RF-based radiomics analysis method was better than that of the grayscale-based radiomics analysis method in the preoperative prediction of PD-1 in HCC patients. This evidence concerns the gene PDCD1 and hepatocellular carcinoma.