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. Here, AFP is linked to hepatocellular carcinoma.