A two-stage approach for lambing detection

This article delves into the development of a two-stage machine learning system designed to detect and estimate lambing in sheep using wearable collar devices sensor data. The system is built by combining a binary classifier for early lambing detection and a multiclass classifier for accurate estimation of birth time. In three experiments, the performance of lightweight and non-lightweight machine learning classifiers has been assessed at the sample level and using k-fold cross-validation. The results emphasize the trade-offs between model complexity and deployment feasibility. Even though more complex models achieve higher accuracy, these require significantly more computational resources, while lightweight models offer faster, resource-efficient predictions, and easier deployment with potential precision. While addressing the resource constraints normally associated with wearable collars used in livestock monitoring, this study also underscores how sampling frequency and historic window size affect model accuracy to estimate with precision ewe lambing. Based on the experimental results, it is reasonable to deduce that future data collection can take place at 1 or 2 Hz while preserving dependable model performance. Finding the optimal trade-off combination between sample rate and time window size can greatly enhance prediction results and reduce computational resources for automated lambing monitoring. For the optimal trade-off between sampling frequency and historic window size, the combined lightweight two-stage system achieved an MCC of up to 0.93, effectively balancing accuracy and resource efficiency. Thus, this work can be a step forward and a foundation for future research into the design of practical machine learning solutions for animal welfare, livestock farming, and agricultural automation towards the design and deployment of scalable and efficient systems in real-world scenarios, by coupling model complexity with deployment ability. • Developed a two-stage ML system to predict lambing in small ruminants. • Explored effects of sampling rate and window size on model performance. • Achieved high accuracy in detecting prelambing behavioural patterns. • Introduced a custom dataset from accelerometer data in real farm conditions. • Results support early and reliable lambing alerts to aid farm management.

Authors

Institutions

Publication Details

Journal
Smart Agricultural Technology
Published
2025-09-23
DOI
https://doi.org/10.1016/j.atech.2025.101438
Citations
1
Primary Topic
Industrial Vision Systems and Defect Detection
Type
article
Field-Weighted Citation Impact
1.24
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

A two-stage approach for lambing detection

João Filipe Ferreira, Pedro Gonçalves, Mário Antunes
1 citations
Smart Agricultural Technology
Industrial Vision Systems and Defect Detection
1.24
article

A two-stage approach for lambing detection

João Filipe Ferreira, Pedro Gonçalves, Mário Antunes
article en
1 citations

Abstract

This article delves into the development of a two-stage machine learning system designed to detect and estimate lambing in sheep using wearable collar devices sensor data. The system is built by combining a binary classifier for early lambing detection and a multiclass classifier for accurate estimation of birth time. In three experiments, the performance of lightweight and non-lightweight machine learning classifiers has been assessed at the sample level and using k-fold cross-validation. The results emphasize the trade-offs between model complexity and deployment feasibility. Even though more complex models achieve higher accuracy, these require significantly more computational resources, while lightweight models offer faster, resource-efficient predictions, and easier deployment with potential precision. While addressing the resource constraints normally associated with wearable collars used in livestock monitoring, this study also underscores how sampling frequency and historic window size affect model accuracy to estimate with precision ewe lambing. Based on the experimental results, it is reasonable to deduce that future data collection can take place at 1 or 2 Hz while preserving dependable model performance. Finding the optimal trade-off combination between sample rate and time window size can greatly enhance prediction results and reduce computational resources for automated lambing monitoring. For the optimal trade-off between sampling frequency and historic window size, the combined lightweight two-stage system achieved an MCC of up to 0.93, effectively balancing accuracy and resource efficiency. Thus, this work can be a step forward and a foundation for future research into the design of practical machine learning solutions for animal welfare, livestock farming, and agricultural automation towards the design and deployment of scalable and efficient systems in real-world scenarios, by coupling model complexity with deployment ability. • Developed a two-stage ML system to predict lambing in small ruminants. • Explored effects of sampling rate and window size on model performance. • Achieved high accuracy in detecting prelambing behavioural patterns. • Introduced a custom dataset from accelerometer data in real farm conditions. • Results support early and reliable lambing alerts to aid farm management.

Smart Agricultural TechnologyVol. 12
University of Aveiro (PT)
Openalex Percentile: Top 15%
Industrial Vision Systems and Defect Detection
1.24
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.