Using data for mastitis detection