The main goal of commercial dairy farms is to maximize economic returns by optimizing milk production and minimizing expenses. Both clinical and subclinical mastitis reduce milk production and increase cost, and mastitis remains the costliest disease in U.S. dairy cattle.