In both in vivo and in vitro studies, niacin can activate the AMPK/NFE2L2 signaling pathway to alleviate mastitis in dairy cows [37]. This evidence concerns the gene NFE2L2 and mastitis.