In addition, the metabolite classifier also offered high diagnostic accuracy in the detection of small-size, early-stage, and AFP(−) T2DM(+) HCC, and the combination of the metabolite classifier and AFP exhibited better diagnostic efficacy. This evidence concerns the gene AFP and type 2 diabetes mellitus.