Our model was compared with different DL and ML models, and our AUC value and other major metrics were the highest among them for the prediction of PD-1 and PD-L1 expression in HCC patients. This evidence concerns the gene PDCD1 and hepatocellular carcinoma.