{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,5,20]],"date-time":"2026-05-20T11:07:35Z","timestamp":1779275255036,"version":"3.51.4"},"reference-count":29,"publisher":"MDPI AG","issue":"2","license":[{"start":{"date-parts":[[2026,5,20]],"date-time":"2026-05-20T00:00:00Z","timestamp":1779235200000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"name":"Italian Ministry of University and Research"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Network"],"abstract":"<jats:p>Continuous and objective monitoring of livestock behavior plays a key role in precision farming, animal welfare assessment, and reproductive management. This study proposes a non-invasive framework for sheep behavior and reproductive activity monitoring that integrates wearable actigraphy, machine learning, and a cloud-based data processing architecture. Tri-axial accelerometer data were collected at 30 Hz using collar-mounted ActiGraph sensors under real farming conditions. Raw acceleration signals were processed without temporal aggregation, preserving full temporal resolution that includes axis-specific acceleration, vector magnitude, and delta magnitude features. Several supervised learning models were evaluated for behavior classification, including BLSTM, LSTM, CNN\u2013BLSTM, Random Forest, and Support Vector Machine, targeting behaviors such as standing, walking, grazing, lying, flehmen, and mating. The results indicate that both deep learning and classical machine learning approaches achieve high classification performance, with Random Forest obtaining an overall accuracy of 0.82, while deep sequential models effectively capture temporal patterns and behavioral transitions. Furthermore, a scalable cloud architecture is introduced to automate data ingestion, preprocessing, inference, storage in InfluxDB, and visualization through an interactive web application. The proposed framework supports continuous monitoring and offers practical tools for precision livestock management.<\/jats:p>","DOI":"10.3390\/network6020031","type":"journal-article","created":{"date-parts":[[2026,5,20]],"date-time":"2026-05-20T09:12:41Z","timestamp":1779268361000},"page":"31","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":0,"title":["An Intelligent Monitoring System for Sheep Behavior Based on ActiGraph Sensors"],"prefix":"10.3390","volume":"6","author":[{"ORCID":"https:\/\/orcid.org\/0009-0008-3505-7142","authenticated-orcid":false,"given":"Setayesh","family":"Ghadir","sequence":"first","affiliation":[{"name":"Consorzio Nazionale Interuniversitario per le Telecomunicazioni (CNIT), Department of Information Engineering, University of Pisa, 56122 Pisa, Italy"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0009-0004-0939-0831","authenticated-orcid":false,"given":"Delaram","family":"Ghadir","sequence":"additional","affiliation":[{"name":"Consorzio Nazionale Interuniversitario per le Telecomunicazioni (CNIT), Department of Information Engineering, University of Pisa, 56122 Pisa, Italy"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0009-0007-7271-6621","authenticated-orcid":false,"given":"Tesfalem","family":"Mehari Berhe","sequence":"additional","affiliation":[{"name":"Consorzio Nazionale Interuniversitario per le Telecomunicazioni (CNIT), Department of Information Engineering, University of Pisa, 56122 Pisa, Italy"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-3007-1400","authenticated-orcid":false,"given":"Davide","family":"Adami","sequence":"additional","affiliation":[{"name":"Consorzio Nazionale Interuniversitario per le Telecomunicazioni (CNIT), Department of Information Engineering, University of Pisa, 56122 Pisa, Italy"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-1408-7528","authenticated-orcid":false,"given":"Stefano","family":"Giordano","sequence":"additional","affiliation":[{"name":"Department of Information Engineering, University of Pisa, 56122 Pisa, Italy"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-1706-4994","authenticated-orcid":false,"given":"Michele","family":"Pagano","sequence":"additional","affiliation":[{"name":"Department of Information Engineering, University of Pisa, 56122 Pisa, Italy"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"given":"Pietro","family":"Rossi","sequence":"additional","affiliation":[{"name":"Department of Veterinary Medicine, University of Sassari, 07100 Sassari, Italy"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-2708-3833","authenticated-orcid":false,"given":"Francesca Daniela","family":"Sotgiu","sequence":"additional","affiliation":[{"name":"Department of Veterinary Medicine, University of Sassari, 07100 Sassari, Italy"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-5517-1307","authenticated-orcid":false,"given":"Francesca","family":"Mossa","sequence":"additional","affiliation":[{"name":"Department of Veterinary Medicine, University of Sassari, 07100 Sassari, Italy"}],"role":[{"role":"author","vocabulary":"crossref"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-2500-8063","authenticated-orcid":false,"given":"Fiammetta","family":"Berlinguer","sequence":"additional","affiliation":[{"name":"Department of Veterinary Medicine, University of Sassari, 07100 Sassari, Italy"}],"role":[{"role":"author","vocabulary":"crossref"}]}],"member":"1968","published-online":{"date-parts":[[2026,5,20]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","unstructured":"Ding, L., Zhang, C., Yue, Y., Yao, C., Li, Z., Hu, Y., Yang, B., Ma, W., Yu, L., and Gao, R. (2025). Wearable Sensors-Based Intelligent Sensing and Application of Animal Behaviors: A Comprehensive Review. Sensors, 25.","DOI":"10.20944\/preprints202506.1631.v1"},{"key":"ref_2","doi-asserted-by":"crossref","first-page":"106610","DOI":"10.1016\/j.compag.2021.106610","article-title":"Predicting Livestock Behaviour Using Accelerometers: A Systematic Review of Processing Techniques for Ruminant Behaviour Prediction from Raw Accelerometer Data","volume":"192","author":"Riaboff","year":"2022","journal-title":"Comput. Electron. Agric."},{"key":"ref_3","doi-asserted-by":"crossref","first-page":"289","DOI":"10.1016\/j.compag.2018.01.007","article-title":"Categorising Sheep Activity Using a Tri-Axial Accelerometer","volume":"145","author":"Barwick","year":"2018","journal-title":"Comput. Electron. Agric."},{"key":"ref_4","doi-asserted-by":"crossref","unstructured":"Barwick, J., Lamb, D.W., Dobos, R., Welch, M., Schneider, D., and Trotter, M. (2020). Identifying Sheep Activity from Tri-Axial Acceleration Signals Using a Moving Window Classification Model. Remote Sens., 12.","DOI":"10.3390\/rs12040646"},{"key":"ref_5","doi-asserted-by":"crossref","first-page":"32","DOI":"10.1016\/j.applanim.2009.03.005","article-title":"Cow Behaviour Pattern Recognition Using a Three-Dimensional Accelerometer and Support Vector Machines","volume":"119","author":"Martiskainen","year":"2009","journal-title":"Appl. Anim. Behav. Sci."},{"key":"ref_6","first-page":"1599190","article-title":"A Review of Sensor Technologies Applicable for Domestic Livestock Production and Health Management","volume":"2022","author":"Asmare","year":"2022","journal-title":"Adv. Agric."},{"key":"ref_7","doi-asserted-by":"crossref","first-page":"16","DOI":"10.1016\/j.smallrumres.2019.01.009","article-title":"New Method to Automatically Evaluate the Sexual Activity of the Ram Based on Accelerometer Records","volume":"172","author":"Mozo","year":"2019","journal-title":"Small Rumin. Res."},{"key":"ref_8","doi-asserted-by":"crossref","first-page":"1508","DOI":"10.2527\/2002.8061508x","article-title":"Heritability and Repeatability of Sexual Performance Scores of Rams","volume":"80","author":"Snowder","year":"2002","journal-title":"J. Anim. Sci."},{"key":"ref_9","first-page":"124","article-title":"Cattle Behaviour Classification from Collar, Halter, and Ear Tag Sensors","volume":"5","author":"Rahman","year":"2018","journal-title":"Inf. Process. Agric."},{"key":"ref_10","doi-asserted-by":"crossref","unstructured":"Khattach, O., Moussaoui, O., and Hassine, M. (2025). End-to-End Architecture for Real-Time IoT Analytics and Predictive Maintenance Using Stream Processing and ML Pipelines. Sensors, 25.","DOI":"10.3390\/s25092945"},{"key":"ref_11","doi-asserted-by":"crossref","first-page":"42","DOI":"10.1016\/j.livsci.2016.12.011","article-title":"Automatic classification system for grazing, ruminating and resting behaviour of dairy sheep using a tri-axial accelerometer","volume":"196","author":"Giovanetti","year":"2017","journal-title":"Livest. Sci."},{"key":"ref_12","doi-asserted-by":"crossref","first-page":"85","DOI":"10.1111\/cpf.12795","article-title":"An Evaluation of Data Processing When Using the ActiGraph GT3X Accelerometer in Non-Ambulant Children and Adolescents with Cerebral Palsy","volume":"43","author":"Jakobsson","year":"2022","journal-title":"Clin. Physiol. Funct. Imaging"},{"key":"ref_13","doi-asserted-by":"crossref","first-page":"107129","DOI":"10.1016\/j.compag.2022.107129","article-title":"The Use of Accelerometers for the Remote Detection of Mounting in Rams and Testosterone-Treated Wethers","volume":"199","author":"Goldsmith","year":"2022","journal-title":"Comput. Electron. Agric."},{"key":"ref_14","first-page":"377","article-title":"Deep Learning Based Classification of Sheep Behaviour from Accelerometer Data with Imbalance","volume":"10","author":"Turner","year":"2023","journal-title":"Inf. Process. Agric."},{"key":"ref_15","unstructured":"Lee, S.-M., Yoon, S.M., and Cho, H. (2017). Human Activity Recognition from Accelerometer Data Using Convolutional Neural Network. Proceedings of the IEEE International Conference on Big Data and Smart Computing (BigComp), Jeju, Republic of Korea, 13\u201316 February 2017, IEEE."},{"key":"ref_16","doi-asserted-by":"crossref","first-page":"1735","DOI":"10.1162\/neco.1997.9.8.1735","article-title":"Long Short-Term Memory","volume":"9","author":"Hochreiter","year":"1997","journal-title":"Neural Comput."},{"key":"ref_17","doi-asserted-by":"crossref","first-page":"2673","DOI":"10.1109\/78.650093","article-title":"Bidirectional Recurrent Neural Networks","volume":"45","author":"Schuster","year":"1997","journal-title":"IEEE Trans. Signal Process."},{"key":"ref_18","doi-asserted-by":"crossref","first-page":"602","DOI":"10.1016\/j.neunet.2005.06.042","article-title":"Framewise Phoneme Classification with Bidirectional LSTM and Other Neural Network Architectures","volume":"18","author":"Graves","year":"2005","journal-title":"Neural Netw."},{"key":"ref_19","doi-asserted-by":"crossref","unstructured":"Ord\u00f3\u00f1ez, F.J., and Roggen, D. (2016). Deep Convolutional and LSTM Recurrent Neural Networks for Multimodal Wearable Activity Recognition. Sensors, 16.","DOI":"10.3390\/s16010115"},{"key":"ref_20","doi-asserted-by":"crossref","first-page":"162","DOI":"10.21629\/JSEE.2017.01.18","article-title":"Convolutional Neural Networks for Time Series Classification","volume":"28","author":"Zhao","year":"2017","journal-title":"J. Syst. Eng. Electron."},{"key":"ref_21","doi-asserted-by":"crossref","first-page":"5","DOI":"10.1023\/A:1010933404324","article-title":"Random Forests","volume":"45","author":"Breiman","year":"2001","journal-title":"Mach. Learn."},{"key":"ref_22","doi-asserted-by":"crossref","first-page":"121","DOI":"10.1023\/A:1009715923555","article-title":"A Tutorial on Support Vector Machines for Pattern Recognition","volume":"2","author":"Burges","year":"1998","journal-title":"Data Min. Knowl. Discov."},{"key":"ref_23","doi-asserted-by":"crossref","first-page":"107647","DOI":"10.1016\/j.compag.2023.107647","article-title":"Classifying animal behavior from accelerometry data via recurrent neural networks","volume":"206","author":"Wang","year":"2023","journal-title":"Comput. Electron. Agric."},{"key":"ref_24","unstructured":"ActiGraph (2016). User Guide: ActiGraph\u2122 wGT3X-BT + ActiLife; Revision A, ActiGraph. Available online: https:\/\/actigraphcorp.jp\/support\/pdf\/gt3xbt_usersguide.pdf."},{"key":"ref_25","doi-asserted-by":"crossref","first-page":"34","DOI":"10.1109\/MCOM.2017.1600613","article-title":"Understanding the Limits of LoRaWAN","volume":"55","author":"Adelantado","year":"2017","journal-title":"IEEE Commun. Mag."},{"key":"ref_26","doi-asserted-by":"crossref","first-page":"684","DOI":"10.1016\/j.future.2015.09.021","article-title":"Integration of Cloud Computing and Internet of Things: A Survey","volume":"56","author":"Botta","year":"2016","journal-title":"Future Gener. Comput. Syst."},{"key":"ref_27","unstructured":"Streamlit (2025, December 01). Streamlit Documentation. Available online: https:\/\/docs.streamlit.io\/."},{"key":"ref_28","unstructured":"Groq (2026, January 26). Groq Documentation (GroqCloud API\/LPU Inference). Available online: https:\/\/console.groq.com\/docs."},{"key":"ref_29","first-page":"37","article-title":"Evaluation: From Precision, Recall and F-Measure to ROC, Informedness, Markedness and Correlation","volume":"2","author":"Powers","year":"2011","journal-title":"J. Mach. Learn. Technol."}],"container-title":["Network"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/2673-8732\/6\/2\/31\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2026,5,20]],"date-time":"2026-05-20T10:27:55Z","timestamp":1779272875000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/2673-8732\/6\/2\/31"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2026,5,20]]},"references-count":29,"journal-issue":{"issue":"2","published-online":{"date-parts":[[2026,6]]}},"alternative-id":["network6020031"],"URL":"https:\/\/doi.org\/10.3390\/network6020031","relation":{},"ISSN":["2673-8732"],"issn-type":[{"value":"2673-8732","type":"electronic"}],"subject":[],"published":{"date-parts":[[2026,5,20]]}}}