Pigs on the move: classifying days with tail lesions using motion sensor data

Continuous activity monitoring using motion sensors provides a non-invasive method to assess pig general behavioural activity and detect potential welfare issues on group level in commercial housing systems. In the current study, motion sensors were installed in rearing and fattening pens on four farms (18 pens in total, 18–40 pigs per pen) over multiple trials. Based on daily tail inspections 4977 observation days were classified into control (C, without tail lesion), pre-tail lesion (P, last seven days before tail lesion) and tail lesion (TL) days. Binary classification ablation studies were used to evaluate and understand model robustness, using pairs of classes and varying time windows for P days. Results indicated that a time window of 7 d before the occurrence of tail lesions showed improved classification performance compared to other time windows, allowing the binary distinction of C, P and TL days. Feature selection revealed that not only motion sensor data but also time of year and housing-related variables influenced model performance. The final multiclass model, based on a 7-day time window for P days, achieved a mean testing accuracy >0.7, ranging from 0.75 to 0.85 for the individual classes and lower accuracies for P days compared to TL and C days. However, leave-one-out cross-validation revealed limited generalisation to unseen farms, likely because the general behavioural activity features are not fully independent of farm. Overall, this study demonstrates the potential of motion sensor data for the early detection of tail lesion while indicating that further research is required to improve robustness and generalisability across farm environments.

Authors

Institutions

Publication Details

Journal
Frontiers in Animal Science
Published
2026-04-13
DOI
https://doi.org/10.3389/fanim.2026.1791213
Primary Topic
Animal Behavior and Welfare Studies
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Pigs on the move: classifying days with tail lesions using motion sensor data

Sophie Diers, Josefine Eisermann, Heiko Janssen, Antonia Patt et al.
Frontiers in Animal Science
Animal Behavior and Welfare Studies
article

Pigs on the move: classifying days with tail lesions using motion sensor data

Sophie Diers, Josefine Eisermann, Heiko Janssen, Antonia Patt, Lars Schrader, L Küstner, Astrid van Asten, Hassan Shahid
article en

Abstract

Continuous activity monitoring using motion sensors provides a non-invasive method to assess pig general behavioural activity and detect potential welfare issues on group level in commercial housing systems. In the current study, motion sensors were installed in rearing and fattening pens on four farms (18 pens in total, 18–40 pigs per pen) over multiple trials. Based on daily tail inspections 4977 observation days were classified into control (C, without tail lesion), pre-tail lesion (P, last seven days before tail lesion) and tail lesion (TL) days. Binary classification ablation studies were used to evaluate and understand model robustness, using pairs of classes and varying time windows for P days. Results indicated that a time window of 7 d before the occurrence of tail lesions showed improved classification performance compared to other time windows, allowing the binary distinction of C, P and TL days. Feature selection revealed that not only motion sensor data but also time of year and housing-related variables influenced model performance. The final multiclass model, based on a 7-day time window for P days, achieved a mean testing accuracy >0.7, ranging from 0.75 to 0.85 for the individual classes and lower accuracies for P days compared to TL and C days. However, leave-one-out cross-validation revealed limited generalisation to unseen farms, likely because the general behavioural activity features are not fully independent of farm. Overall, this study demonstrates the potential of motion sensor data for the early detection of tail lesion while indicating that further research is required to improve robustness and generalisability across farm environments.

Frontiers in Animal ScienceVol. 7
Friedrich-Loeffler-Institut (DE), Landwirtschaftskammer Niedersachsen (DE), Federal Ministry of Education, Science and Research (AT)
Bundesministerium für Ernährung und Landwirtschaft
Sustainable cities and communities
Openalex Percentile: Top 27%
Animal Behavior and Welfare Studies
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.