cs.LGOct 29, 2026

Exploring the Potential of Symbolic Regression in Precision Livestock Farming

Authors: Elisabeth Mayrhuber, Maciej Oczak, Michael Iwersen, David Brunner, Viktoria Dorfer, Stephan Winkler

Organizations: Bioinformatics Research Group, PLFDoc, University of Applied Sciences Upper Austria, Hagenberg, Austria · Computer Vision Lab, TU Wien, Vienna, Austria · Precision Livestock Farming Hub, The University of Veterinary Medicine Vienna, Vienna, Austria · Center for Animal Nutrition and Welfare, The University of Veterinary Medicine Vienna, Vienna, Austria · 

Abstract

The ability to predict farrowing time in pigs is crucial for optimal farm management and ensuring piglet survival. This study investigates the potential of explainable artificial intelligence for precision livestock farming, focusing on acceleration sensor data from sows around the time of farrowing. Accurately predicting farrowing allows farmers to balance both, piglet safety by avoiding piglet crushing events and the mother sow's welfare, by avoiding early crating. Traditional machine learning models often lack interpretability (``closed-box'' problem). Explainable artificial intelligence offers a solution by revealing the decision-making processes within the models. This work is split into two stages. First the detection of nest building behaviour and second the prediction of the remaining time to farrowing. The nest building detection was possible for 166 out of 180 sows and successful within 48 hours before farrowing for 149 sows. The nest building detection is purely based on the change of a sow's activity level and uses no machine learning techniques. Further, this study utilizes symbolic regression, an open-box modelling technique that generates interpretable mathematical formulas, to predict the remaining time until the onset of farrowing. The results are compared with closed-box models, like support vector regression and artificial neural networks, for both explainability and performance. Notably, symbolic regression achieved a mean absolute error of 9.28 hours for the time-to-farrowing prediction, outperforming the closed-box models in terms of performance and interpretability. This research demonstrates that explainable artificial intelligence, specifically symbolic regression, can offer both interpretable results and competitive performance in precision livestock farming.

Figures & tables

Explore similar work

CardsList
  1. Neural Federated Learning for Livestock Growth Prediction

    Mar 30, 2026Shoujin Wang, Mingze Ni, Wei Liu +6Federated LearningTime Series Forecasting

  2. SAM3-Assisted Training of Lightweight YOLO Models for Precision Pig Farming

    May 25, 2026Marcos Vinicius Mendes Faria, Thiago Borges Pereira, Isabella C. F. S. Condotta +2Edge InferencePseudo-Labeling

  3. Hybrid Machine Learning Framework for Herd-Level Cattle Growth Pattern and Weight Gain Forecasting in Grazing-Based Production Systems

    Aug 6, 2026Muhammad Riaz Hasib Hossain, Rafiqul Islam, Shawn R. McGrath +2Irregular Time-Series ModelingMultivariate Time Series Forecasting