Using machine learning, we isolated four genes, PLVAP, C7, COL15A1, and MS4A6A, as the hub genes that DKD may affect subsequent HCC. Here, C7 is linked to hepatocellular carcinoma.