Mastitis is an inflammation of the mammary gland caused primarily by bacteria such as Streptococcus agalactiae and Staphylococcus aureus, manifesting as clinical or subclinical forms. Clinical mastitis shows visible abnormalities in milk and signs of inflammation in the udder, while subclinical mastitis lacks visible symptoms but can reduce milk production and quality. Detection methods include visual observation, the California mastitis test, and somatic cell count analysis, which indicates infection levels based on the number of white blood cells present.