Deutch Frederik, Weiss Marc Gjern, Wagner Stefan Rahr, Hansen Lars Schmidt, Larsen Frederik, Figueiredo Constanca, Moers Cyril, Keller Anna Krarup
Department of Clinical Medicine, Aarhus University, 8000 Aarhus, Denmark.
Department of Urology, Aarhus University Hospital, 8000 Aarhus, Denmark.
Sensors (Basel). 2025 Jan 28;25(3):785. doi: 10.3390/s25030785.
In experimental research, animal welfare should always be of the highest priority. Currently, physical in-person observations are the standard. This is time-consuming, and results are subjective. Video-based machine learning models for monitoring experimental pigs provide a continuous and objective observation method for animal misthriving detection. The aim of this study was to develop and validate a pig tracking technology, using video-based data in a machine learning model to analyze the posture and activity level of experimental pigs living in single-pig pens. A research prototype was created using a microcomputer and a ceiling-mounted camera for live recording based on the obtained images from the experimental facility, and a combined model was created based on the Ultralytics YOLOv8n for object detection trained on the obtained images. As a second step, the Lucas-Kanade sparse optical flow technique for movement detection was applied. The resulting model successfully classified whether individual pigs were lying, standing, or walking. The validation test showed an accuracy of 90.66%, precision of 90.91%, recall of 90.66%, and correlation coefficient of 84.53% compared with observed ground truth. In conclusion, the model demonstrates how machine learning can be used to monitor experimental animals to potentially improve animal welfare.
在实验研究中,动物福利应始终是最优先考虑的事项。目前,亲自进行的身体观察是标准方法。这既耗时,结果又主观。用于监测实验猪的基于视频的机器学习模型为动物健康状况不佳的检测提供了一种连续且客观的观察方法。本研究的目的是开发并验证一种猪跟踪技术,利用机器学习模型中的基于视频的数据来分析生活在单猪栏中的实验猪的姿势和活动水平。基于从实验设施获取的图像,使用微型计算机和天花板安装的摄像头创建了一个用于实时记录的研究原型,并基于在获取的图像上训练的用于目标检测的Ultralytics YOLOv8n创建了一个组合模型。第二步,应用了用于运动检测的Lucas-Kanade稀疏光流技术。所得模型成功地对个体猪是躺卧、站立还是行走进行了分类。与观察到的地面真值相比,验证测试显示准确率为90.66%,精确率为90.91%,召回率为90.66%,相关系数为84.53%。总之,该模型展示了如何利用机器学习来监测实验动物,以潜在地改善动物福利。