For thousands of years, farmers have relied on observation, experience, and careful selection to improve their livestock.