Analyses using LASSO, RF, and SVM-RFE of the 10 DE-PRGs identified two key genes (TIRAP and GSDMD) that can effectively predict NAFLD, with an AUC value of 0.996. Here, TIRAP is linked to metabolic dysfunction-associated steatotic liver disease.