Detecting abnormal behaviours in pigs is crucial for enhancing pig welfare. Current research on pig anomaly detection primarily relies on supervised learning methods, facing challenges such as limited generalisability, the complexity of sample annotation, and the inability to cover all abnormal scenarios. To tackle these challenges, an unsupervised video anomaly detection algorithm for pigs based on future frame prediction (PigVADNet) is proposed. PigVADNet is developed to address the unpredictability of abnormalities in pig production. It accurately predicts normal pig behaviours by learning from video frames depicting normal pig behaviours. When the video frames capture abnormal behaviours, there is a significant increase in prediction error, which enables the detection of anomalies in pigs. The model employs a generative adversarial network architecture consisting of a pig image generator, discriminator, and motion information extraction module. The generator leverages a U-Net with an SSPCAB (Spatial and Spectral Pyramid Channel Attention Block) module to predict future frames. The discriminator improves the generator via adversarial learning, ensuring realistic frame generation. The motion extraction module, combined with appearance and motion consistency losses, enhances the prediction of appearance and motion. Finally, the difference between predicted and real frames is evaluated to detect pig abnormalities. The model achieved an AUC (Area Under the ROC Curve) of 95.1 % on the Pig Video Anomaly Detection Dataset. The experimental results demonstrate that this approach can automatically detect pig anomalies without relying on labelled data. It enables timely interventions to enhance pig welfare and optimise production efficiency.
扫码关注我们
求助内容:
应助结果提醒方式:
