@article{Koskela_Benitez Pereira_Pölönen_Aronen_Kunttu_2022, title={Deep learning image recognition of cow behavior and an open data set acquired near an automatic milking robot}, volume={31}, url={https://journal.fi/afs/article/view/111665}, DOI={10.23986/afsci.111665}, abstractNote={<p>Production animals enjoying good health and well-being are more productive and have a higher output quality. Several technical solutions have been used to monitor the animals’ welfare: those based on computer vision provide cost-efficient and scalable options. In this work, we performed a continuous two-month image acquisition of cows in front of an automatic milking station and divided the data into ten different classes related to the most important activities appearing in the images. The data consisted of almost 19 hours of video, equivalent to more than 1.7 million still images. Based on these imaged, we then implemented a convolutional neural network classifier to recognize the cows’ behavior. The network was tested using cross-validation methodology and achieved an 86% precision rate and 85% recall rate in the classification. The data and the Python program code used in this study are made available. An image data set that directly resembles the harsh conditions inside a barn and can be used for deep learning purposes has not been previously made available.</p>}, number={2}, journal={Agricultural and Food Science}, author={Koskela, Olli and Benitez Pereira, Leonardo Santiago and Pölönen, Ilpo and Aronen, Ilmo and Kunttu, Iivari}, year={2022}, month={Jul.}, pages={89–103} }