Following modelling for prognosis and diagnosis, validation of predictive capacity, and biological studies, we determined that SERPINB2 and TNFRSF1A are frequent diagnostic markers of MAFLD, exhibiting consistent expression patterns in MAFLD and T2DM-associated MAFLD, and are strongly linked to the onset of T2DM. The gene discussed is TNFRSF1A; the disease is type 2 diabetes mellitus.