Through validation of the upregulated genes and hub genes identified by PPI analysis of the co-downregulated DEGs, we found that AMOT, PDE11A, TYMS, TMEM98, and PTGS2 exhibited good diagnostic potential for NAFLD-related AF. The gene discussed is PTGS2; the disease is metabolic dysfunction-associated steatotic liver disease.