{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,6,3]],"date-time":"2026-06-03T15:55:40Z","timestamp":1780502140604,"version":"3.54.1"},"reference-count":52,"publisher":"MDPI AG","issue":"3","license":[{"start":{"date-parts":[[2022,2,26]],"date-time":"2022-02-26T00:00:00Z","timestamp":1645833600000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"DOI":"10.13039\/501100014210","name":"Spanish Ministry of Agriculture, Fisheries and food","doi-asserted-by":"publisher","award":["20190020007471"],"award-info":[{"award-number":["20190020007471"]}],"id":[{"id":"10.13039\/501100014210","id-type":"DOI","asserted-by":"publisher"}]},{"name":"Spanish Ministry of Economy, Industry and 546 Competitivity","award":["AEI\/MTM2017-86875-C3-1-R"],"award-info":[{"award-number":["AEI\/MTM2017-86875-C3-1-R"]}]},{"DOI":"10.13039\/501100004837","name":"Spanish Ministry of Science and Innovation","doi-asserted-by":"publisher","award":["RTI2018-094269-B-I00"],"award-info":[{"award-number":["RTI2018-094269-B-I00"]}],"id":[{"id":"10.13039\/501100004837","id-type":"DOI","asserted-by":"publisher"}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Entropy"],"abstract":"<jats:p>In this paper, a method to classify behavioural patterns of cattle on farms is presented. Animals were equipped with low-cost 3-D accelerometers and GPS sensors, embedded in a commercial device attached to the neck. Accelerometer signals were sampled at 10 Hz, and data from each axis was independently processed to extract 108 features in the time and frequency domains. A total of 238 activity patterns, corresponding to four different classes (grazing, ruminating, laying and steady standing), with duration ranging from few seconds to several minutes, were recorded on video and matched to accelerometer raw data to train a random forest machine learning classifier. GPS location was sampled every 5 min, to reduce battery consumption, and analysed via the k-medoids unsupervised machine learning algorithm to track location and spatial scatter of herds. Results indicate good accuracy for classification from accelerometer records, with best accuracy (0.93) for grazing. The complementary application of both methods to monitor activities of interest, such as sustainable pasture consumption in small and mid-size farms, and to detect anomalous events is also explored. Results encourage replicating the experiment in other farms, to consolidate the proposed strategy.<\/jats:p>","DOI":"10.3390\/e24030336","type":"journal-article","created":{"date-parts":[[2022,2,27]],"date-time":"2022-02-27T20:46:17Z","timestamp":1645994777000},"page":"336","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":73,"title":["Analysis of Accelerometer and GPS Data for Cattle Behaviour Identification and Anomalous Events Detection"],"prefix":"10.3390","volume":"24","author":[{"ORCID":"https:\/\/orcid.org\/0000-0003-3335-8036","authenticated-orcid":false,"given":"Javier","family":"Cabezas","sequence":"first","affiliation":[{"name":"Data Science Laboratory, University Rey Juan Carlos, 28933 M\u00f3stoles, Spain"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-1263-3716","authenticated-orcid":false,"given":"Roberto","family":"Yubero","sequence":"additional","affiliation":[{"name":"Data Science Laboratory, University Rey Juan Carlos, 28933 M\u00f3stoles, Spain"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Beatriz","family":"Visitaci\u00f3n","sequence":"additional","affiliation":[{"name":"Data Science Laboratory, University Rey Juan Carlos, 28933 M\u00f3stoles, Spain"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-9698-3213","authenticated-orcid":false,"given":"Jorge","family":"Navarro-Garc\u00eda","sequence":"additional","affiliation":[{"name":"Data Science Laboratory, University Rey Juan Carlos, 28933 M\u00f3stoles, Spain"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-7539-8522","authenticated-orcid":false,"given":"Mar\u00eda Jes\u00fas","family":"Algar\u00a0","sequence":"additional","affiliation":[{"name":"Data Science Laboratory, University Rey Juan Carlos, 28933 M\u00f3stoles, Spain"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0002-6101-9755","authenticated-orcid":false,"given":"Emilio L.","family":"Cano","sequence":"additional","affiliation":[{"name":"Data Science Laboratory, University Rey Juan Carlos, 28933 M\u00f3stoles, Spain"},{"name":"Quantitative Methods and Socioeconomic Development Group, Institute for Regional Development, University of Castilla-La Mancha, 02071 Albacete, Spain"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-0231-2051","authenticated-orcid":false,"given":"Felipe","family":"Ortega","sequence":"additional","affiliation":[{"name":"Data Science Laboratory, University Rey Juan Carlos, 28933 M\u00f3stoles, Spain"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1968","published-online":{"date-parts":[[2022,2,26]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","first-page":"5892","DOI":"10.3168\/jds.2015-10619","article-title":"Public and farmer perceptions of dairy cattle welfare in the United States","volume":"99","author":"Wolf","year":"2016","journal-title":"J. Dairy Sci."},{"key":"#cr-split#-ref_2.1","unstructured":"European Council (1998). Directive"},{"key":"#cr-split#-ref_2.2","unstructured":"(EC) 98\/58\/EC of the European Council of 20 July 1998, concerning the protection of animals kept for farming purposes. Off. J. L221, 41, 23-27. Available online: http:\/\/data.europa.eu\/eli\/dir\/1998\/58\/oj."},{"key":"ref_3","unstructured":"European Commission (2008). Commission Regulation (EC) No 889\/2008 of 5 September 2008 laying down detailed rules for the implementation of Council Regulation (EC) No 834\/2007, on organic production and labelling of organic products with regard to organic production, labelling and control. Off. J. L250, 51, 1\u201384. Available online: http:\/\/data.europa.eu\/eli\/reg\/2008\/889\/oj."},{"key":"ref_4","doi-asserted-by":"crossref","first-page":"33","DOI":"10.1016\/j.compag.2011.10.013","article-title":"Practical considerations for wireless sensor networks in cattle monitoring applications","volume":"81","author":"Kwong","year":"2012","journal-title":"Comput. Electron. Agric."},{"key":"ref_5","doi-asserted-by":"crossref","unstructured":"Barriuso, A.L., Villarrubia Gonz\u00e1lez, G., De Paz, J.F., Lozano, \u00c1., and Bajo, J. (2018). Combination of Multi-Agent Systems and Wireless Sensor Networks for the Monitoring of Cattle. Sensors, 18.","DOI":"10.3390\/s18010108"},{"key":"ref_6","doi-asserted-by":"crossref","first-page":"20","DOI":"10.1017\/S0022029920000680","article-title":"The Internet of Things enhancing animal welfare and farm operational efficiency","volume":"87","author":"Michie","year":"2020","journal-title":"J. Dairy Res."},{"key":"ref_7","doi-asserted-by":"crossref","unstructured":"Lee, C.H., Chen, S.H., Jiang, B.C., and Sun, T.L. (2020). Estimating Postural Stability Using Improved Permutation Entropy via TUG Accelerometer Data for Community-Dwelling Elderly People. Entropy, 22.","DOI":"10.3390\/e22101097"},{"key":"ref_8","unstructured":"Mizell, D. (2003, January 21\u201323). Using gravity to estimate accelerometer orientation. Proceedings of the Seventh IEEE International Symposium on Wearable Computers, White Plains, NY, USA."},{"key":"ref_9","doi-asserted-by":"crossref","unstructured":"Ham\u00e4l\u00e4inen, W., J\u00e4rvinen, M., Martiskainen, P., and Mononen, J. (2011, January 22\u201324). Jerk-based feature extraction for robust activity recognition from acceleration data. Proceedings of the 2011 11th International Conference on Intelligent Systems Design and Applications, Cordoba, Spain.","DOI":"10.1109\/ISDA.2011.6121760"},{"key":"ref_10","doi-asserted-by":"crossref","first-page":"80","DOI":"10.1016\/j.compag.2009.03.002","article-title":"Evaluation of three-dimensional accelerometers to monitor and classify behavior patterns in cattle","volume":"67","author":"Robert","year":"2009","journal-title":"Comput. Electron. Agric."},{"key":"ref_11","doi-asserted-by":"crossref","first-page":"12","DOI":"10.1016\/j.applanim.2010.08.004","article-title":"Quantifying walking and standing behaviour of dairy cows using a moving average based on output from an accelerometer","volume":"127","author":"Nielsen","year":"2010","journal-title":"Appl. Anim. Behav. Sci."},{"key":"ref_12","first-page":"1","article-title":"Classification of behaviour in housed dairy cows using an accelerometer-based activity monitoring system","volume":"3","author":"Barker","year":"2015","journal-title":"Anim. Biotelemetry"},{"key":"ref_13","doi-asserted-by":"crossref","first-page":"54","DOI":"10.4081\/jae.2016.498","article-title":"Monitoring feeding behaviour of dairy cows using accelerometers","volume":"47","author":"Mattachini","year":"2016","journal-title":"J. Agric. Eng."},{"key":"ref_14","doi-asserted-by":"crossref","first-page":"20","DOI":"10.1016\/j.compag.2016.08.009","article-title":"Detecting heat events in dairy cows using accelerometers and unsupervised learning","volume":"128","author":"Shahriar","year":"2016","journal-title":"Comput. Electron. Agric."},{"key":"ref_15","doi-asserted-by":"crossref","unstructured":"Arablouei, R., Currie, L., Kusy, B., Ingham, A., Greenwood, P.L., and Bishop-Hurley, G. (2021). In-situ classification of cattle behavior using accelerometry data. Comput. Electron. Agric., 183.","DOI":"10.1016\/j.compag.2021.106045"},{"key":"ref_16","doi-asserted-by":"crossref","unstructured":"Brennan, J., Johnson, P., and Olson, K. (2021). Classifying season long livestock grazing behavior with the use of a low-cost GPS and accelerometer. Comput. Electron. Agric., 181.","DOI":"10.1016\/j.compag.2020.105957"},{"key":"ref_17","doi-asserted-by":"crossref","first-page":"18","DOI":"10.1016\/j.compag.2014.12.002","article-title":"Dynamic cattle behavioural classification using supervised ensemble classifiers","volume":"111","author":"Dutta","year":"2015","journal-title":"Comput. Electron. Agric."},{"key":"ref_18","doi-asserted-by":"crossref","unstructured":"Fogarty, E.S., Swain, D.L., Cronin, G.M., Moraes, L.E., Bailey, D.W., and Trotter, M. (2021). Developing a Simulated Online Model That Integrates GNSS, Accelerometer and Weather Data to Detect Parturition Events in Grazing Sheep: A Machine Learning Approach. Animals, 11.","DOI":"10.3390\/ani11020303"},{"key":"ref_19","doi-asserted-by":"crossref","first-page":"124","DOI":"10.1016\/j.compag.2017.01.021","article-title":"Development of a threshold-based classifier for real-time recognition of cow feeding and standing behavioural activities from accelerometer data","volume":"134","author":"Arcidiacono","year":"2017","journal-title":"Comput. Electron. Agric."},{"key":"ref_20","doi-asserted-by":"crossref","unstructured":"Busch, P., Ewald, H., and St\u00fcpmann, F. (2017, January 4\u20136). Determination of standing-time of dairy cows using 3D-accelerometer data from collars. Proceedings of the 2017 Eleventh International Conference on Sensing Technology (ICST), Sydney, NSW, Australia.","DOI":"10.1109\/ICSensT.2017.8304492"},{"key":"ref_21","doi-asserted-by":"crossref","unstructured":"Riaboff, L., Shalloo, L., Smeaton, A., Couvreur, S., Madouasse, A., and Keane, M. (2022). Predicting livestock behaviour using accelerometers: A systematic review of processing techniques for ruminant behaviour prediction from raw accelerometer data. Comput. Electron. Agric., 192.","DOI":"10.1016\/j.compag.2021.106610"},{"key":"ref_22","doi-asserted-by":"crossref","first-page":"40","DOI":"10.1016\/j.compag.2016.10.006","article-title":"Behavior classification of cows fitted with motion collars: Decomposing multi-class classification into a set of binary problems","volume":"131","author":"Smith","year":"2016","journal-title":"Comput. Electron. Agric."},{"key":"ref_23","doi-asserted-by":"crossref","unstructured":"Riaboff, L., Poggi, S., Madouasse, A., Couvreur, S., Aubin, S., B\u00e9d\u00e8re, N., Goumand, E., Chauvin, A., and Plantier, G. (2020). Development of a methodological framework for a robust prediction of the main behaviours of dairy cows using a combination of machine learning algorithms on accelerometer data. Comput. Electron. Agric., 169.","DOI":"10.1016\/j.compag.2019.105179"},{"key":"ref_24","first-page":"1","article-title":"Robust sensor-orientation-independent feature selection for animal activity recognition on collar tags","volume":"Volume 2","author":"Kamminga","year":"2018","journal-title":"Proceedings of the ACM on Interactive"},{"key":"ref_25","doi-asserted-by":"crossref","unstructured":"Haladjian, J., Haug, J., N\u00fcske, S., and Bruegge, B. (2018). A wearable sensor system for lameness detection in dairy cattle. Multimodal Technol. Interact., 2.","DOI":"10.3390\/mti2020027"},{"key":"ref_26","doi-asserted-by":"crossref","unstructured":"Fogarty, E., Swain, D., Cronin, G., Moraes, L., and Trotter, M. (2020). Can accelerometer ear tags identify behavioural changes in sheep associated with parturition?. Anim. Reprod. Sci., 216.","DOI":"10.1016\/j.anireprosci.2020.106345"},{"key":"ref_27","doi-asserted-by":"crossref","unstructured":"Navarro, J., Mart\u00edn de Diego, I., Carballo P\u00e9rez, P., and Ortega, F. (2021). Outlier detection in animal multivariate trajectories. Comput. Electron. Agric., 190.","DOI":"10.1016\/j.compag.2021.106401"},{"key":"ref_28","doi-asserted-by":"crossref","first-page":"1081","DOI":"10.1111\/j.1365-2656.2006.01127.x","article-title":"Moving towards acceleration for estimates of activity-specific metabolic rate in free-living animals: The case of the cormorant","volume":"75","author":"Wilson","year":"2006","journal-title":"J. Anim. Ecol."},{"key":"ref_29","doi-asserted-by":"crossref","first-page":"47","DOI":"10.3354\/esr00084","article-title":"Identification of animal movement patterns using tri-axial accelerometry","volume":"10","author":"Shepard","year":"2008","journal-title":"Endanger. Species Res."},{"key":"ref_30","doi-asserted-by":"crossref","first-page":"257","DOI":"10.1111\/jzo.12308","article-title":"Use of tri-axial accelerometers to assess terrestrial mammal behaviour in the wild","volume":"298","author":"Lush","year":"2016","journal-title":"J. Zool."},{"key":"ref_31","doi-asserted-by":"crossref","unstructured":"Riaboff, L., Aubin, S., B\u00e9d\u00e8re, N., Couvreur, S., Madouasse, A., Goumand, E., Chauvin, A., and Plantier, G. (2019). Evaluation of pre-processing methods for the prediction of cattle behaviour from accelerometer data. Comput. Electron. Agric., 165.","DOI":"10.1016\/j.compag.2019.104961"},{"key":"ref_32","doi-asserted-by":"crossref","first-page":"297","DOI":"10.1090\/S0025-5718-1965-0178586-1","article-title":"An Algorithm for the Machine Calculation of Complex Fourier Series","volume":"19","author":"Cooley","year":"1965","journal-title":"Math. Comput."},{"key":"ref_33","doi-asserted-by":"crossref","first-page":"1664","DOI":"10.1109\/PROC.1967.5957","article-title":"What is the fast Fourier transform?","volume":"55","author":"Cochran","year":"1967","journal-title":"Proc. IEEE"},{"key":"ref_34","unstructured":"Proakis, J.G., and Manolakis, D.G. (2006). Digital Signal Processing: Principles, Algorithms and Applications, Pearson."},{"key":"ref_35","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_36","doi-asserted-by":"crossref","unstructured":"Lohr, S.L. (2021). Sampling: Design and Analysis, Chapman and Hall\/CRC. [3rd ed.].","DOI":"10.1201\/9780429298899"},{"key":"ref_37","unstructured":"Duda, R.O., Hart, P.E., and Stork, D.G. (2001). Pattern Classification, John Wiley & Sons. [2nd ed.]."},{"key":"ref_38","doi-asserted-by":"crossref","unstructured":"Hastie, T., Tibshirani, R., and Friedman, J.H. (2009). The Elements of Statistical Learning: Data Mining, Inference, and Prediction, Springer. [2nd ed.].","DOI":"10.1007\/978-0-387-84858-7"},{"key":"ref_39","doi-asserted-by":"crossref","unstructured":"Xu, R., and Wunsch, D. (2009). Clustering, IEEE Press.","DOI":"10.1002\/9780470382776"},{"key":"ref_40","doi-asserted-by":"crossref","unstructured":"Watt, J., Borhani, R., and Katsaggelos, A.K. (2020). Machine Learning Refined: Foundations, Algorithms, and Applications, Cambridge University Press. [2rd ed.].","DOI":"10.1017\/9781108690935"},{"key":"ref_41","doi-asserted-by":"crossref","unstructured":"Kroese, D.P., Botev, Z.I., Taimre, T., and Vaisman, R. (2019). Data Science and Machine Learning: Mathematical and Statistical Methods, Chapman & Hall\/CRC Press.","DOI":"10.1201\/9780367816971"},{"key":"ref_42","doi-asserted-by":"crossref","first-page":"861","DOI":"10.1016\/j.patrec.2005.10.010","article-title":"An introduction to ROC analysis","volume":"27","author":"Fawcett","year":"2006","journal-title":"Pattern Recognit. Lett."},{"key":"ref_43","doi-asserted-by":"crossref","unstructured":"Flach, P.A. (2012). Machine Learning. The Art and Science of Algorithms that Make Sense of Data, Cambridge University Press.","DOI":"10.1017\/CBO9780511973000"},{"key":"ref_44","doi-asserted-by":"crossref","unstructured":"Navarro, J., Diego, I.M.d., Fern\u00e1ndez-Isabel, A., and Ortega, F. (2019, January 10\u201312). Fusion of GPS and Accelerometer Information for Anomalous Trajectories Detection. Proceedings of the 2019 the 5th International Conference on E-Society, e-Learning and e-Technologies; Association for Computing Machinery, Vienna, Austria.","DOI":"10.1145\/3312714.3312719"},{"key":"ref_45","doi-asserted-by":"crossref","first-page":"339","DOI":"10.1007\/s10115-016-0987-z","article-title":"A survey of methods for time series change point detection","volume":"51","author":"Aminikhanghahi","year":"2017","journal-title":"Knowl. Inf. Syst."},{"key":"ref_46","doi-asserted-by":"crossref","first-page":"85","DOI":"10.1016\/j.beproc.2009.02.004","article-title":"Predator and heterospecific stimuli alter behaviour in cattle","volume":"81","author":"Kluever","year":"2009","journal-title":"Behav. Process."},{"key":"ref_47","doi-asserted-by":"crossref","first-page":"321","DOI":"10.2111\/07-087.1","article-title":"Vigilance in cattle: The influence of predation, social interactions, and environmental factors","volume":"61","author":"Kluever","year":"2008","journal-title":"Rangel. Ecol. Manag."},{"key":"ref_48","doi-asserted-by":"crossref","first-page":"420","DOI":"10.1017\/S0021859600045287","article-title":"Studies of grazing behaviour in relation to grassland management I. Variations in grazing habits of dairy cattle","volume":"44","author":"Hancock","year":"1954","journal-title":"J. Agric. Sci."},{"key":"ref_49","doi-asserted-by":"crossref","first-page":"2","DOI":"10.1016\/j.applanim.2017.05.015","article-title":"The behaviour of housed dairy cattle with and without pasture access: A review","volume":"192","author":"Charlton","year":"2017","journal-title":"Appl. Anim. Behav. Sci."},{"key":"ref_50","unstructured":"Phillips, C. (2008). Cattle Behaviour and Welfare, John Wiley & Sons."},{"key":"ref_51","doi-asserted-by":"crossref","first-page":"47","DOI":"10.1016\/j.applanim.2019.01.006","article-title":"Use of social network analysis to improve the understanding of social behaviour in dairy cattle and its impact on disease transmission","volume":"213","author":"Belkhiria","year":"2019","journal-title":"Appl. Anim. Behav. Sci."}],"container-title":["Entropy"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/1099-4300\/24\/3\/336\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,10]],"date-time":"2025-10-10T22:28:01Z","timestamp":1760135281000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/1099-4300\/24\/3\/336"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2022,2,26]]},"references-count":52,"journal-issue":{"issue":"3","published-online":{"date-parts":[[2022,3]]}},"alternative-id":["e24030336"],"URL":"https:\/\/doi.org\/10.3390\/e24030336","relation":{},"ISSN":["1099-4300"],"issn-type":[{"value":"1099-4300","type":"electronic"}],"subject":[],"published":{"date-parts":[[2022,2,26]]}}}