{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,1,21]],"date-time":"2026-01-21T01:41:31Z","timestamp":1768959691056,"version":"3.49.0"},"reference-count":29,"publisher":"MDPI AG","issue":"2","license":[{"start":{"date-parts":[[2026,1,20]],"date-time":"2026-01-20T00:00:00Z","timestamp":1768867200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"name":"national funds","award":["UID\/50008\/2025"],"award-info":[{"award-number":["UID\/50008\/2025"]}]},{"name":"EU funds","award":["50008\/2025"],"award-info":[{"award-number":["50008\/2025"]}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Agriculture"],"abstract":"<jats:p>Kidding in goats is a highly significant event with major economic implications and strong impacts on the welfare of both the offspring and the mothers. Monitoring the process is extremely demanding, as it is impossible to predict precisely when it will occur. For this reason, the automatic detection of kidding has the potential to generate substantial productivity gains while also improving animal well-being. Artificial intelligence techniques based on accelerometry data have been explored for identifying the event, but these approaches typically rely on data loggers, which cannot trigger real-time alerts or assistance. Embedding detection mechanisms directly into wearable devices enables much faster identification and supports energy-efficient operations. However, this approach also introduces considerable challenges, particularly due to the strict constraints of wearable devices in terms of weight, cost, and battery life. The present work documents the development of a real-time, automatic kidding-detection mechanism in which the detection workload is distributed between the collar and an edge device. System evaluation demonstrated the feasibility of this distributed architecture, confirming that both components can cooperate effectively to achieve reliable detection. The system achieved a Matthews Correlation Coefficient performance of 0.91, highlighting the robustness and practical viability of the proposed solution.<\/jats:p>","DOI":"10.3390\/agriculture16020259","type":"journal-article","created":{"date-parts":[[2026,1,20]],"date-time":"2026-01-20T13:02:07Z","timestamp":1768914127000},"page":"259","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":0,"title":["A Two-Stage Farmer Assistant for Kidding Detection: Enhancing Farming Productivity and Animal Welfare"],"prefix":"10.3390","volume":"16","author":[{"ORCID":"https:\/\/orcid.org\/0009-0004-9971-4472","authenticated-orcid":false,"given":"Jo\u00e3o","family":"Ferreira","sequence":"first","affiliation":[{"name":"Departamento de Eletr\u00f3nica Telecomunica\u00e7\u00f5es e Inform\u00e1tica and Instituto de Telecomunica\u00e7\u00f5es, Universidade de Aveiro, 3830-193 Aveiro, Portugal"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-7696-4231","authenticated-orcid":false,"given":"Pedro","family":"Gon\u00e7alves","sequence":"additional","affiliation":[{"name":"Escola Superior de Tecnologia e Gest\u00e3o de \u00c1gueda and Instituto de Telecomunica\u00e7\u00f5es, Universidade de Aveiro, 3830-193 Aveiro, Portugal"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-6504-9441","authenticated-orcid":false,"given":"M\u00e1rio","family":"Antunes","sequence":"additional","affiliation":[{"name":"Departamento de Eletr\u00f3nica Telecomunica\u00e7\u00f5es e Inform\u00e1tica and Instituto de Telecomunica\u00e7\u00f5es, Universidade de Aveiro, 3830-193 Aveiro, Portugal"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-0676-6149","authenticated-orcid":false,"given":"Ana T.","family":"Belo","sequence":"additional","affiliation":[{"name":"Instituto Nacional de Investiga\u00e7\u00e3o Agr\u00e1ria e Veterin\u00e1ria I.P. (INIAV), P\u00f3lo de Inova\u00e7\u00e3o da Fonte Boa\u2013Esta\u00e7\u00e3o Zoot\u00e9cnica Nacional, Avenida Professor Vaz Portugal, 2005-424 Vale de Santar\u00e9m, Portugal"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-5981-3829","authenticated-orcid":false,"given":"Maria R.","family":"Marques","sequence":"additional","affiliation":[{"name":"Instituto Nacional de Investiga\u00e7\u00e3o Agr\u00e1ria e Veterin\u00e1ria I.P. (INIAV), P\u00f3lo de Inova\u00e7\u00e3o da Fonte Boa\u2013Esta\u00e7\u00e3o Zoot\u00e9cnica Nacional, Avenida Professor Vaz Portugal, 2005-424 Vale de Santar\u00e9m, Portugal"}]}],"member":"1968","published-online":{"date-parts":[[2026,1,20]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","unstructured":"Gon\u00e7alves, P., Marques, M.R., Nyamuryekung\u2019e, S., and Jorgensen, G.H.M. (2024). Small Ruminant Parturition Detection Based on Inertial Sensors\u2014A Review. Animals, 14.","DOI":"10.3390\/ani14192885"},{"key":"ref_2","unstructured":"(2024). Henrique Ferreira Ramos Wearable Ovine Parturition Detector, Universidade de Aveiro."},{"key":"ref_3","doi-asserted-by":"crossref","unstructured":"Gon\u00e7alves, P., do Marques, M.R., Belo, A.T., Monteiro, A., Morais, J., Riegel, I., and Braz, F. (2024). Exploring the Potential of Machine Learning Algorithms Associated with the Use of Inertial Sensors for Goat Kidding Detection. Animals, 14.","DOI":"10.3390\/ani14060938"},{"key":"ref_4","doi-asserted-by":"crossref","first-page":"3745","DOI":"10.3168\/jds.S0022-0302(03)73981-2","article-title":"Birth Weight as a Predictor of Calving Ease and Perinatal Mortality in Holstein Cattle","volume":"86","author":"Johanson","year":"2003","journal-title":"J. Dairy Sci."},{"key":"ref_5","doi-asserted-by":"crossref","first-page":"2580","DOI":"10.3168\/jds.2008-1603","article-title":"Calf Birth Weight and Its Association with Calf and Cow Survivability, Disease Incidence, Reproductive Performance, and Milk Production","volume":"92","author":"Linden","year":"2009","journal-title":"J. Dairy Sci."},{"key":"ref_6","first-page":"120","article-title":"Qualitative study on maternal referrals in rural Tanzania: Decision making and acceptance of referral advice","volume":"12","author":"Pembe","year":"2008","journal-title":"Afr. J. Reprod. Health"},{"key":"ref_7","doi-asserted-by":"crossref","unstructured":"Kim, H., Kim, H., Kim, W.H., Min, W., Kim, G., and Chang, H. (2024). Development of a Parturition Detection System for Korean Native Black Goats. Animals, 14.","DOI":"10.3390\/ani14040634"},{"key":"ref_8","doi-asserted-by":"crossref","first-page":"106345","DOI":"10.1016\/j.anireprosci.2020.106345","article-title":"Can Accelerometer Ear Tags Identify Behavioural Changes in Sheep Associated with Parturition?","volume":"216","author":"Fogarty","year":"2020","journal-title":"Anim. Reprod. Sci."},{"key":"ref_9","doi-asserted-by":"crossref","first-page":"79","DOI":"10.1016\/j.biosystemseng.2017.11.010","article-title":"Prediction of Calving in Dairy Cows Using a Tail-Mounted Tri-Axial Accelerometer: A Pilot Study","volume":"173","author":"Krieger","year":"2018","journal-title":"Biosyst. Eng."},{"key":"ref_10","doi-asserted-by":"crossref","first-page":"25","DOI":"10.1016\/0304-3762(75)90063-2","article-title":"Behaviour of the Ewe and Lamb at Lambing and Its Relationship to Lamb Mortality","volume":"2","author":"Arnold","year":"1975","journal-title":"Appl. Anim. Ethol."},{"key":"ref_11","doi-asserted-by":"crossref","first-page":"329","DOI":"10.1016\/S0168-1591(05)80093-0","article-title":"Preparturient Behavior of Confined Ewes: Time Budgets, Frequencies, Spatial Distribution and Sequential Analysis","volume":"34","author":"Echeverri","year":"1992","journal-title":"Appl. Anim. Behav. Sci."},{"key":"ref_12","doi-asserted-by":"crossref","first-page":"109610","DOI":"10.1016\/j.patcog.2023.109610","article-title":"Learning Customised Decision Trees for Domain-Knowledge Constraints","volume":"142","author":"Nanfack","year":"2023","journal-title":"Pattern Recognit."},{"key":"ref_13","doi-asserted-by":"crossref","first-page":"28","DOI":"10.1186\/s40462-021-00265-7","article-title":"Limitations of Using Surrogates for Behaviour Classification of Accelerometer Data: Refining Methods Using Random Forest Models in Caprids","volume":"9","author":"Dickinson","year":"2021","journal-title":"Mov. Ecol."},{"key":"ref_14","doi-asserted-by":"crossref","unstructured":"Graves, A. (2012). Long Short-Term Memory. Supervised Sequence Labelling with Recurrent Neural Networks, Springer.","DOI":"10.1007\/978-3-642-24797-2"},{"key":"ref_15","doi-asserted-by":"crossref","first-page":"101438","DOI":"10.1016\/j.atech.2025.101438","article-title":"A Two-Stage Approach for Lambing Detection","volume":"12","author":"Ferreira","year":"2025","journal-title":"Smart Agric. Technol."},{"key":"ref_16","doi-asserted-by":"crossref","first-page":"107787","DOI":"10.1016\/j.compag.2023.107787","article-title":"Lambing Event Detection Using Deep Learning from Accelerometer Data","volume":"208","author":"Turner","year":"2023","journal-title":"Comput. Electron. Agric."},{"key":"ref_17","doi-asserted-by":"crossref","first-page":"71","DOI":"10.1016\/j.patrec.2020.03.030","article-title":"On the Performance of Matthews Correlation Coefficient (MCC) for Imbalanced Dataset","volume":"136","author":"Zhu","year":"2020","journal-title":"Pattern Recognit. Lett."},{"key":"ref_18","doi-asserted-by":"crossref","first-page":"109511","DOI":"10.1016\/j.sigpro.2024.109511","article-title":"Pearson\u2013Matthews Correlation Coefficients for Binary and Multinary Classification","volume":"222","author":"Stoica","year":"2024","journal-title":"Signal Process."},{"key":"ref_19","doi-asserted-by":"crossref","first-page":"13348","DOI":"10.3390\/s150613348","article-title":"The Survey on Near Field Communication","volume":"15","author":"Coskun","year":"2015","journal-title":"Sensors"},{"key":"ref_20","doi-asserted-by":"crossref","unstructured":"Tosi, J., Taffoni, F., Santacatterina, M., Sannino, R., and Formica, D. (2017). Performance Evaluation of Bluetooth Low Energy: A Systematic Review. Sensors, 17.","DOI":"10.3390\/s17122898"},{"key":"ref_21","unstructured":"Mills, D.L. (2025, December 01). Network Time Protocol (NTP). Available online: https:\/\/www.rfc-editor.org\/info\/rfc0958."},{"key":"ref_22","doi-asserted-by":"crossref","unstructured":"Asok, A. (2016, January 23\u201325). Generalized Approach to Linear Data Transformation. Proceedings of the 2016 International Conference on Data Science and Engineering, ICDSE, Cochin, India.","DOI":"10.1109\/ICDSE.2016.7823937"},{"key":"ref_23","unstructured":"(2025, October 05). GitHub\u2014Pola-Rs\/Polars: Extremely Fast Query Engine for DataFrames, Written in Rust. Available online: https:\/\/github.com\/pola-rs\/polars."},{"key":"ref_24","first-page":"124","article-title":"Scalable Machine Learning Algorithms for Big Data Analytics: Challenges and Opportunities","volume":"2","author":"McMahan","year":"2022","journal-title":"J. Artif. Intell. Res."},{"key":"ref_25","unstructured":"(2025, October 05). Optuna\u2014A Hyperparameter Optimization Framework. Available online: https:\/\/optuna.org\/."},{"key":"ref_26","doi-asserted-by":"crossref","first-page":"4663","DOI":"10.1109\/TKDE.2021.3049250","article-title":"Challenges in KNN Classification","volume":"34","author":"Zhang","year":"2022","journal-title":"IEEE Trans. Knowl. Data Eng."},{"key":"ref_27","doi-asserted-by":"crossref","unstructured":"Alfian, G., Syafrudin, M., Fahrurrozi, I., Fitriyani, N.L., Atmaji, F.T.D., Widodo, T., Bahiyah, N., Benes, F., and Rhee, J. (2022). Predicting Breast Cancer from Risk Factors Using SVM and Extra-Trees-Based Feature Selection Method. Computers, 11.","DOI":"10.3390\/computers11090136"},{"key":"ref_28","doi-asserted-by":"crossref","first-page":"105","DOI":"10.1023\/A:1007515423169","article-title":"Empirical Comparison of Voting Classification Algorithms: Bagging, Boosting, and Variants","volume":"36","author":"Bauer","year":"1999","journal-title":"Mach. Learn."},{"key":"ref_29","unstructured":"(2025, October 05). Pickle\u2014Python Object Serialization\u2014Python 3.13.7 Documentation. Available online: https:\/\/docs.python.org\/3\/library\/pickle.html."}],"container-title":["Agriculture"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/2077-0472\/16\/2\/259\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,1,20]],"date-time":"2026-01-20T13:23:50Z","timestamp":1768915430000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/2077-0472\/16\/2\/259"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,1,20]]},"references-count":29,"journal-issue":{"issue":"2","published-online":{"date-parts":[[2026,1]]}},"alternative-id":["agriculture16020259"],"URL":"https:\/\/doi.org\/10.3390\/agriculture16020259","relation":{},"ISSN":["2077-0472"],"issn-type":[{"value":"2077-0472","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,1,20]]}}}