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. Here, RGCC is linked to metabolic dysfunction-associated steatotic liver disease.