Identifying and treating mastitis