The GAM was used to simulate whether there was a nonlinear correlation of the ALT/AST ratio with the risk of NAFLD. Here, GPT is linked to metabolic dysfunction-associated steatotic liver disease.