{"title":"利用缰绳式加速度计和机器学习量化放牧牛的啃草行为","authors":"","doi":"10.1016/j.atech.2024.100522","DOIUrl":null,"url":null,"abstract":"<div><p>Grasslands represent a key element of agroecosystems for sustainable food systems. A better understanding of the grazing behaviour of domestic herbivores is essential to support innovations for grassland management and define grazing practices that support rather than enter into conflict with biodiversity. A key component of the grazing process is the grass-severing bite by which the herbivore collects forage from a pasture. How often, where, and when such bites are performed are relevant indicators of the grazing behaviour of cattle and could be used as indicators to guide farmers in pasture management. In this work, we developed a methodology to create a Machine Learning (ML) model for identifying grass-severing bite events from the Inertial Measurement Unit (IMU) signals of a sensor placed on the neck of cows. The two-phase process consisted of classifying every period of behaviour of cattle into two mutually exclusive behaviours: “ingestion” and “other” (phase 1), and then counting the number of bites taken during each period classified as “ingestion” (phase 2). Seven dry red-pied Holstein cattle and two Blonde d'Aquitaine x Belgian White and Blue cross-breds were observed. A total of 39 h and 25 min of video were recorded and tagged for the different behaviours to train several ML algorithms. During phase 1, four different window segmentations and two different splits of the data were used to train and test four ML classification algorithms: Bagged Tree, Medium k-NN, Fine tree and linear SVM. The results show that Bagged Tree algorithms with 30 s windows and 90 % overlap gave the best results during the first phase, with an accuracy of 97.83 % for split 1 and 98.07 % for split 2. During phase 2, the same four window segmentations as for phase 1 were used, to test regression algorithms to quantify the number of bites taken during each time-window. Two machine learning algorithms were tested: Bagged Tree and Medium NN, on 5 sessions of 30 min. The sessions ranged between 0 % and 94 % of ingestion time. Phase 2 results showed that Bagged Tree regression algorithms with 10 s windows and 90 % overlap performed the best, with an average RMSE of 1.83 for the tested value and an error percentage of -1.93 % and 0 % for the session with 94 % or 0 % of ingestion time, and between +15.06 % and +26.97 % of error for sessions where the animal alternates frequently between both behaviours. The data and code used in this study are openly available on a public depository</p></div>","PeriodicalId":74813,"journal":{"name":"Smart agricultural technology","volume":null,"pages":null},"PeriodicalIF":6.3000,"publicationDate":"2024-08-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://www.sciencedirect.com/science/article/pii/S2772375524001278/pdfft?md5=ee733b6333c34534995cb229c582a7da&pid=1-s2.0-S2772375524001278-main.pdf","citationCount":"0","resultStr":"{\"title\":\"Quantification of grass-severing bites performed by grazing cattle using halter-mounted accelerometers and machine learning\",\"authors\":\"\",\"doi\":\"10.1016/j.atech.2024.100522\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"<div><p>Grasslands represent a key element of agroecosystems for sustainable food systems. A better understanding of the grazing behaviour of domestic herbivores is essential to support innovations for grassland management and define grazing practices that support rather than enter into conflict with biodiversity. A key component of the grazing process is the grass-severing bite by which the herbivore collects forage from a pasture. How often, where, and when such bites are performed are relevant indicators of the grazing behaviour of cattle and could be used as indicators to guide farmers in pasture management. In this work, we developed a methodology to create a Machine Learning (ML) model for identifying grass-severing bite events from the Inertial Measurement Unit (IMU) signals of a sensor placed on the neck of cows. The two-phase process consisted of classifying every period of behaviour of cattle into two mutually exclusive behaviours: “ingestion” and “other” (phase 1), and then counting the number of bites taken during each period classified as “ingestion” (phase 2). Seven dry red-pied Holstein cattle and two Blonde d'Aquitaine x Belgian White and Blue cross-breds were observed. A total of 39 h and 25 min of video were recorded and tagged for the different behaviours to train several ML algorithms. During phase 1, four different window segmentations and two different splits of the data were used to train and test four ML classification algorithms: Bagged Tree, Medium k-NN, Fine tree and linear SVM. The results show that Bagged Tree algorithms with 30 s windows and 90 % overlap gave the best results during the first phase, with an accuracy of 97.83 % for split 1 and 98.07 % for split 2. During phase 2, the same four window segmentations as for phase 1 were used, to test regression algorithms to quantify the number of bites taken during each time-window. Two machine learning algorithms were tested: Bagged Tree and Medium NN, on 5 sessions of 30 min. The sessions ranged between 0 % and 94 % of ingestion time. Phase 2 results showed that Bagged Tree regression algorithms with 10 s windows and 90 % overlap performed the best, with an average RMSE of 1.83 for the tested value and an error percentage of -1.93 % and 0 % for the session with 94 % or 0 % of ingestion time, and between +15.06 % and +26.97 % of error for sessions where the animal alternates frequently between both behaviours. The data and code used in this study are openly available on a public depository</p></div>\",\"PeriodicalId\":74813,\"journal\":{\"name\":\"Smart agricultural technology\",\"volume\":null,\"pages\":null},\"PeriodicalIF\":6.3000,\"publicationDate\":\"2024-08-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"https://www.sciencedirect.com/science/article/pii/S2772375524001278/pdfft?md5=ee733b6333c34534995cb229c582a7da&pid=1-s2.0-S2772375524001278-main.pdf\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Smart agricultural technology\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://www.sciencedirect.com/science/article/pii/S2772375524001278\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"Q1\",\"JCRName\":\"AGRICULTURAL ENGINEERING\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Smart agricultural technology","FirstCategoryId":"1085","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S2772375524001278","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"AGRICULTURAL ENGINEERING","Score":null,"Total":0}
Quantification of grass-severing bites performed by grazing cattle using halter-mounted accelerometers and machine learning
Grasslands represent a key element of agroecosystems for sustainable food systems. A better understanding of the grazing behaviour of domestic herbivores is essential to support innovations for grassland management and define grazing practices that support rather than enter into conflict with biodiversity. A key component of the grazing process is the grass-severing bite by which the herbivore collects forage from a pasture. How often, where, and when such bites are performed are relevant indicators of the grazing behaviour of cattle and could be used as indicators to guide farmers in pasture management. In this work, we developed a methodology to create a Machine Learning (ML) model for identifying grass-severing bite events from the Inertial Measurement Unit (IMU) signals of a sensor placed on the neck of cows. The two-phase process consisted of classifying every period of behaviour of cattle into two mutually exclusive behaviours: “ingestion” and “other” (phase 1), and then counting the number of bites taken during each period classified as “ingestion” (phase 2). Seven dry red-pied Holstein cattle and two Blonde d'Aquitaine x Belgian White and Blue cross-breds were observed. A total of 39 h and 25 min of video were recorded and tagged for the different behaviours to train several ML algorithms. During phase 1, four different window segmentations and two different splits of the data were used to train and test four ML classification algorithms: Bagged Tree, Medium k-NN, Fine tree and linear SVM. The results show that Bagged Tree algorithms with 30 s windows and 90 % overlap gave the best results during the first phase, with an accuracy of 97.83 % for split 1 and 98.07 % for split 2. During phase 2, the same four window segmentations as for phase 1 were used, to test regression algorithms to quantify the number of bites taken during each time-window. Two machine learning algorithms were tested: Bagged Tree and Medium NN, on 5 sessions of 30 min. The sessions ranged between 0 % and 94 % of ingestion time. Phase 2 results showed that Bagged Tree regression algorithms with 10 s windows and 90 % overlap performed the best, with an average RMSE of 1.83 for the tested value and an error percentage of -1.93 % and 0 % for the session with 94 % or 0 % of ingestion time, and between +15.06 % and +26.97 % of error for sessions where the animal alternates frequently between both behaviours. The data and code used in this study are openly available on a public depository