To identify potential diagnostic genes for NAFLD, two machine learning algorithms were used to analyze the 334 DEGs, thus four genes (FOSB, GPAT3, RGCC, and RNF43) were identified. The gene discussed is GPAT3; the disease is metabolic dysfunction-associated steatotic liver disease.