Among these, the RF algorithm emerged as the most effective, identifying the minimum number of genes (AKR1B10, TYMS, and TREM2) and yielding the most accurate predictive model for NASH diagnosis. Here, TYMS is linked to metabolic dysfunction-associated steatohepatitis.