Machine learning implements the idea of Artificial Intelligence (AI). With the developments of big-data, data science and high performance computing, machine learning has been applied to agriculture. This review summarizes a series of machine learning methods and features. A number of examples of its application in animal production and management are given. The integration of machine learning with various sensors, image processors and big-data technologies is also described, showing its development progress in practice.