IDEAS home Printed from https://ideas.repec.org/a/plo/pone00/0252002.html
   My bibliography  Save this article

Machine learning algorithms can predict tail biting outbreaks in pigs using feeding behaviour records

Author

Listed:
  • Catherine Ollagnier
  • Claudia Kasper
  • Anna Wallenbeck
  • Linda Keeling
  • Giuseppe Bee
  • Siavash A Bigdeli

Abstract

Tail biting is a damaging behaviour that impacts the welfare and health of pigs. Early detection of precursor signs of tail biting provides the opportunity to take preventive measures, thus avoiding the occurrence of the tail biting event. This study aimed to build a machine-learning algorithm for real-time detection of upcoming tail biting outbreaks, using feeding behaviour data recorded by an electronic feeder. Prediction capacities of seven machine learning algorithms (Generalized Linear Model with Stepwise Feature Selection, random forest, Support Vector Machines with Radial Basis Function Kernel, Bayesian Generalized Linear Model, Neural network, K-nearest neighbour, and Partial Least Squares Discriminant Analysis) were evaluated from daily feeding data collected from 65 pens originating from two herds of grower-finisher pigs (25-100kg), in which 27 tail biting events occurred. Data were divided into training and testing data in two different ways, either by randomly splitting data into 75% (training set) and 25% (testing set), or by randomly selecting pens to constitute the testing set. In the first data splitting, the model is regularly updated with previous data from the pen, whereas in the second data splitting, the model tries to predict for a pen that it has never seen before. The K-nearest neighbour algorithm was able to predict 78% of the upcoming events with an accuracy of 96%, when predicting events in pens for which it had previous data. Our results indicate that machine learning models can be considered for implementation into automatic feeder systems for real-time prediction of tail biting events.

Suggested Citation

  • Catherine Ollagnier & Claudia Kasper & Anna Wallenbeck & Linda Keeling & Giuseppe Bee & Siavash A Bigdeli, 2023. "Machine learning algorithms can predict tail biting outbreaks in pigs using feeding behaviour records," PLOS ONE, Public Library of Science, vol. 18(1), pages 1-18, January.
  • Handle: RePEc:plo:pone00:0252002
    DOI: 10.1371/journal.pone.0252002
    as

    Download full text from publisher

    File URL: https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0252002
    Download Restriction: no

    File URL: https://journals.plos.org/plosone/article/file?id=10.1371/journal.pone.0252002&type=printable
    Download Restriction: no

    File URL: https://libkey.io/10.1371/journal.pone.0252002?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    References listed on IDEAS

    as
    1. Manuel Eugster & Friedrich Leisch, 2011. "Exploratory analysis of benchmark experiments an interactive approach," Computational Statistics, Springer, vol. 26(4), pages 699-710, December.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Adalbert Wilhelm & Lars Linsen, 2011. "Data Viz VI," Computational Statistics, Springer, vol. 26(4), pages 561-565, December.

    More about this item

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:plo:pone00:0252002. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: plosone (email available below). General contact details of provider: https://journals.plos.org/plosone/ .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.