<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.1 20151215//EN" "https://jats.nlm.nih.gov/publishing/1.1/JATS-journalpublishing1.dtd">
<article article-type="research-article" dtd-version="1.1" specific-use="sps-1.9" xml:lang="en" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">
	<front>
		<journal-meta>
			<journal-id journal-id-type="publisher-id">rbz</journal-id>
			<journal-title-group>
				<journal-title>Revista Brasileira de Zootecnia</journal-title>
				<abbrev-journal-title abbrev-type="publisher">R. Bras. Zootec.</abbrev-journal-title>
			</journal-title-group>
			<issn pub-type="ppub">1516-3598</issn>
			<issn pub-type="epub">1806-9290</issn>
			<publisher>
				<publisher-name>Sociedade Brasileira de Zootecnia</publisher-name>
			</publisher>
		</journal-meta>
		<article-meta>
			<article-id pub-id-type="other">03002</article-id>
			<article-id pub-id-type="doi">10.37496/rbz5520250201</article-id>
			<article-categories>
				<subj-group subj-group-type="heading">
					<subject>Precision livestock</subject>
				</subj-group>
			</article-categories>
			<title-group>
				<article-title>Performance of multiple models under different test strategies in predicting the ingestive behavior of grazing cattle</article-title>
			</title-group>
			<contrib-group>
				<contrib contrib-type="author">
					<contrib-id contrib-id-type="orcid">0000-0001-8578-3937</contrib-id>
					<name>
						<surname>Silva</surname>
						<given-names>Lázaro Henrique da</given-names>
					</name>
					<role>Data curation</role>
					<role>Formal analysis</role>
					<role>Investigation</role>
					<role>Methodology</role>
					<role>Project administration</role>
					<role>Validation</role>
					<role>Visualization</role>
					<role>Writing – original draft</role>
					<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
				</contrib>
				<contrib contrib-type="author">
					<contrib-id contrib-id-type="orcid">0009-0009-7490-2019</contrib-id>
					<name>
						<surname>Silva</surname>
						<given-names>Caio Matheus Leite da</given-names>
					</name>
					<role>Data curation</role>
					<role>Formal analysis</role>
					<role>Methodology</role>
					<role>Validation</role>
					<xref ref-type="aff" rid="aff2"><sup>2</sup></xref>
				</contrib>
				<contrib contrib-type="author">
					<contrib-id contrib-id-type="orcid">0000-0002-7493-9411</contrib-id>
					<name>
						<surname>Maziero</surname>
						<given-names>Erick Galani</given-names>
					</name>
					<role>Data curation</role>
					<role>Formal analysis</role>
					<role>Resources</role>
					<role>Validation</role>
					<xref ref-type="aff" rid="aff2"><sup>2</sup></xref>
				</contrib>
				<contrib contrib-type="author">
					<contrib-id contrib-id-type="orcid">0000-0003-0732-6196</contrib-id>
					<name>
						<surname>Casagrande</surname>
						<given-names>Daniel Rume</given-names>
					</name>
					<role>Funding acquisition</role>
					<role>Methodology</role>
					<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
				</contrib>
				<contrib contrib-type="author">
					<contrib-id contrib-id-type="orcid">0000-0003-4196-8328</contrib-id>
					<name>
						<surname>Danes</surname>
						<given-names>Marina de Arruda Camargo</given-names>
					</name>
					<role>Conceptualization</role>
					<role>Funding acquisition</role>
					<role>Investigation</role>
					<role>Methodology</role>
					<role>Project administration</role>
					<role>Resources</role>
					<role>Supervision</role>
					<role>Validation</role>
					<role>Visualization</role>
					<role>Writing – original draft</role>
					<role>Writing – review &amp; editing</role>
					<xref ref-type="aff" rid="aff1"><sup>1</sup></xref>
					<xref ref-type="corresp" rid="c01"><sup>*</sup></xref>
				</contrib>
			</contrib-group>
			<aff id="aff1">
				<label>1</label>
				<institution content-type="orgname">Universidade Federal de Lavras</institution>
				<institution content-type="orgdiv1">Departamento de Zootecnia</institution>
				<addr-line>
					<named-content content-type="city">Lavras</named-content>
					<named-content content-type="state">MG</named-content>
				</addr-line>
				<country country="BR">Brasil</country>
				<institution content-type="original"> Universidade Federal de Lavras, Departamento de Zootecnia, Lavras, MG, Brasil.</institution>
			</aff>
			<aff id="aff2">
				<label>2</label>
				<institution content-type="orgname">Universidade Federal de Lavras</institution>
				<institution content-type="orgdiv1">Departamento de Automática</institution>
				<addr-line>
					<named-content content-type="city">Lavras</named-content>
					<named-content content-type="state">MG</named-content>
				</addr-line>
				<country country="BR">Brasil</country>
				<institution content-type="original"> Universidade Federal de Lavras, Departamento de Automática, Lavras, MG, Brasil.</institution>
			</aff>
			<author-notes>
				<corresp id="c01">
					<label>*</label>
					<label>Corresponding author:</label>
					<email>marina.danes@ufla.br</email>
				</corresp>
				<fn fn-type="edited-by">
					<label>Editors:</label>
					<p> Anderson Antonio Carvalho Alves</p>
					<p>Ana Clara Baião Menezes</p>
				</fn>
				<fn fn-type="coi-statement">
					<label>Conflict of interest:</label>
					<p>The authors declare no conflict of interest.</p>
				</fn>
			</author-notes>
			<pub-date date-type="pub" publication-format="electronic">
				<day>17</day>
				<month>07</month>
				<year>2026</year>
			</pub-date>
			<pub-date date-type="collection" publication-format="electronic">
				<year>2026</year>
			</pub-date>
			<volume>55</volume>
			<elocation-id>e20250201</elocation-id>
			<history>
				<date date-type="received">
					<day>29</day>
					<month>09</month>
					<year>2025</year>
				</date>
				<date date-type="accepted">
					<day>11</day>
					<month>03</month>
					<year>2026</year>
				</date>
			</history>
			<permissions>
				<license license-type="open-access" xlink:href="https://creativecommons.org/licenses/by/4.0/" xml:lang="en">
					<license-p>This is an open access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.</license-p>
				</license>
			</permissions>
			<abstract>
				<title>ABSTRACT</title>
				<p>The use of digital technologies and wearable sensors has advanced in precision livestock farming. However, there is still no clear definition of the most suitable models for the use of sensors in grazing animals, especially under tropical systems. Thus, we aimed to compare the performance of six predictive models for grazing cattle behavior and to evaluate different testing strategies. The study was conducted in a pasture area, using nine Tabapuã heifers monitored by triaxial accelerometers attached to the nape, with data recorded every second. Ninety-six 12-h visual observations were performed and combined with sensor data to generate two datasets: grazing vs non-grazing (GNG) and grazing, ruminating, and idling (GRI). The models tested were generalized linear model (GLM), random forest (RF), k-nearest neighbors (KNN), gradient boosting (GB), light gradient boosting (LGB), and artificial neural network (ANN), with hyperparameter optimization performed via Bayesian search. Seven testing strategies were applied, including random holdout (RHO), leave-animal-out (LAO), leave-height-out (LHO), with four different sward heights, and an external test, obtained in a previous study. All models, except GLM, showed good performance (~80% accuracy for GNG); however, the inclusion of three classes reduced the average accuracy by 6.4%. LGB and KNN were the most computationally efficient models, in terms of data process time, while ANN was the most demanding. Testing strategies that reduced data dependence (LAO and LHO) decreased accuracy, highlighting the importance of real-world scenarios for the development of robust commercial applications. It is recommended to balance accuracy and computational cost, prioritizing LGB, GB, or KNN for practical applications. Moreover, testing strategies under different farm conditions or using external datasets should be performed.</p>
			</abstract>
			<kwd-group xml:lang="en">
				<title>Keywords:</title>
				<kwd>animal welfare</kwd>
				<kwd>machine learning</kwd>
				<kwd>precision livestock</kwd>
				<kwd>sensor</kwd>
				<kwd>smart farming</kwd>
			</kwd-group>
			<funding-group>
				<award-group>
					<funding-source>CNPq</funding-source>
				</award-group>
				<award-group>
					<funding-source>FAPEMIG</funding-source>
					<award-id>APQ-01869-22</award-id>
				</award-group>
				<funding-statement>The authors acknowledges support from the Conselho Nacional de Desenvolvimento Científico e Tecnológico (CNPq) and Fundação de Amparo à Pesquisa do Estado de Minas Gerais (FAPEMIG/APQ-01869-22).</funding-statement>
			</funding-group>
			<counts>
				<fig-count count="0"/>
				<table-count count="7"/>
				<equation-count count="5"/>
				<ref-count count="32"/>
			</counts>
		</article-meta>
	</front>
	<body>
		<sec sec-type="intro">
			<title>1. Introduction</title>
			<p>In recent years, there has been notable progress in developing decision-making tools based on wearable technology and data science within animal farming (<xref ref-type="bibr" rid="B12">Kaur et al., 2023</xref>). Automation of data collection allows for individual animal monitoring even in large herds. This approach may not only enhance production and reproduction efficiency (<xref ref-type="bibr" rid="B20">Ribeiro et al., 2021</xref>; <xref ref-type="bibr" rid="B22">Romanzini et al., 2022</xref>), enable the early detection of health events, as proposed by <xref ref-type="bibr" rid="B32">Yigit et al. (2022)</xref>, who sought to detect laminitis in horses using wearable sensors, or <xref ref-type="bibr" rid="B1">Abeni and Galli (2017)</xref>, who used rumination and activity data for the early detection of anaplasmosis in dairy calves, as well as even <xref ref-type="bibr" rid="B26">Teixeira et al. (2022)</xref>, who monitored the activity and rumination time of dairy cows for the early detection of heat stress.</p>
			<p>Despite the use of digital technologies being extensively studied in confined animals, the use of sensors in grazing animals is still incipient (<xref ref-type="bibr" rid="B17">Park and Park, 2021</xref>). Studies have been conducted in temperate pastures (<xref ref-type="bibr" rid="B24">Shafiullah et al., 2019</xref>; <xref ref-type="bibr" rid="B28">Wang et al., 2021</xref>) and there are few studies on tropical pastures (<xref ref-type="bibr" rid="B31">Watanabe et al., 2021</xref>; <xref ref-type="bibr" rid="B22">Romanzini et al., 2022</xref>). An aggravating factor for studies in tropical pastures is the large diversity of available forages and animal species, requiring robust testing strategies (<xref ref-type="bibr" rid="B20">Ribeiro et al., 2021</xref>). Additionally, grazing management practices change the sward structure and, therefore, affect animal behavior. This change in grazing behavior as sward structure and forage allowance vary can be used to support management decisions in grazing systems. Additionally, <xref ref-type="bibr" rid="B22">Romanzini et al. (2022)</xref> demonstrated that it is possible to forecast animal performance from animal behavior predicted with a 3-axis accelerometer in tropical grazing conditions. Therefore, there is a vast potential for sensor-supported tools in grazing systems.</p>
			<p>However, a multitude of machine learning algorithms have been used in these studies. In addition, an even greater number of models are available in digital repositories, and they need to be evaluated according to the goals of the tool to be developed, as well as the characteristics of the dataset. Studies comparing different predictive models are not new (<xref ref-type="bibr" rid="B23">Sagi and Rokach, 2018</xref>; <xref ref-type="bibr" rid="B30">Warner et al., 2020</xref>; <xref ref-type="bibr" rid="B13">Li et al., 2022</xref>); however, few have done so in tropical pastures.</p>
			<p>Additionally, to develop a commercially available tool, one needs to consider the testing strategies used when evaluating the models. The k-fold cross-validation strategy is the most commonly used to validate models that aim to predict animal behavior (Riaboff et al<italic>.</italic>, 2019). However, <xref ref-type="bibr" rid="B20">Ribeiro et al. (2021)</xref> demonstrated that this strategy can inflate model performance, as its randomness does not take into account the biological interdependence animals, plants, and the environment. Therefore, the authors proposed the use of different k-fold strategies that mimic real-world situations on farms.</p>
			<p>The objectives of this study were: 1) to compare the performance of six different models to predict behavior in grazing animals; 2) to evaluate the effect of the number of predicted behavioral classes on the quality of the predictions; and 3) to compare multiple testing strategies considering the biological relevance of the dataset and the goals of the tool.</p>
		</sec>
		<sec sec-type="materials|methods">
			<title>2. Material and methods</title>
			<p>Research on animals was conducted according to the ethics committee on animal use of the Universidade Federal de Lavras (protocol number 026/2019).</p>
			<sec>
				<title>2.1. Data collection</title>
				<p>The experiment was conducted at the experimental farm of the Universidade Federal de Lavras, from November 2019 to July 2020. It was part of another experiment evaluating grazing intensity in an intermittent grazing stocking system in a combined pasture of <italic>Urochloa brizantha</italic> (Hochst ex A. Rich) Stapf cv. Marandu and <italic>Arachis pintoi</italic> Krap. &amp; Greg. cv. Mandobi (<xref ref-type="bibr" rid="B21">Rodrigues da Cruz et al., 2024</xref>). The animals had access to the paddocks when the sward reached 25 cm and were removed when it was grazed down to 20, 15, or 10 cm. Therefore, we were able to observe animal behavior in different sward structures. We conducted 96 12-h observation periods (approximately 6:00 to 18:00), on 48 non-consecutive days during three seasons (32 during spring, 34 during summer, and 30 during autumn). Each day of data collection involved two animals, ensuring two experimental units per sampling. Observations took place during the first day of grazing in a new paddock (25 cm, 47 observations) and during the last day before animals left the paddock, when sward height was approaching 20 cm (16 observations), 15 cm (13 observations) and 10 cm (20 observations).</p>
				<p>Nine Tabapuã heifers with a mean initial body weight of 185 ± 17 kg were used in the experiment. However, in each observation day, two of them, randomly chosen, were used to graze the paddock. Animals were painted with a non-toxic ink in the thoracic region to facilitate visual observation. Each 3-h shift of visual observation was carried out by one of ten trained observers. The animals were observed continuously and, with the aid of a wristwatch, the start time (hour, minute, and second) of each activity was registered. Animal behavior was recorded on a printed spreadsheet, always noting the exact moment when the animal changed its behavior. The spreadsheet contained columns with information on the date, animal identification, time of the behavioral change, and the new behavior observed. The description of each behavior is presented in <xref ref-type="table" rid="t1">Table 1</xref>. Water drinking activities and atypical behaviors (disputes for example) were removed from the final dataset.</p>
				<p>
					<table-wrap id="t1">
						<label>Table 1</label>
						<caption>
							<title>Description of the animal behaviors observed in the study</title>
						</caption>
						<table frame="hsides" rules="groups">
							<colgroup width="50%">
								<col/>
								<col/>
							</colgroup>
							<thead>
								<tr>
									<th align="left" style="font-weight:normal">Behavior</th>
									<th style="font-weight:normal">Description</th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td>Grazing</td>
									<td>Animals apprehending food with the head down and chewing either with the head down or up in between apprehension bites.</td>
								</tr>
								<tr>
									<td>Ruminating</td>
									<td>Animals chewing or swallowing a ruminal bolus, standing or lying down.</td>
								</tr>
								<tr>
									<td>Idle</td>
									<td>Animals at rest, standing or lying down, without chewing movement.</td>
								</tr>
								<tr>
									<td>Non-grazing</td>
									<td>Sum of ruminating and idle behaviors.</td>
								</tr>
							</tbody>
						</table>
					</table-wrap>
				</p>
				<p>A 3-axes (X, Y, and Z) wireless accelerometer sensor (Sensor Spotlight, Accelerometers, Monnit Corporation, South Salt Lake, UT, USA) set to measure from −2 to +2 g-force and powered by a coin cell battery (model CR2032 of 3.0 voltage) was attached to the halter on the back of each animal’s neck, which is the most common location (<xref ref-type="bibr" rid="B6">Chelotti et al., 2024</xref>). The X, Y, and Z axes indicate longitudinal (front-to-back), horizontal (side-to-side), and vertical (up-to-down) head movements, respectively. Devices were set to send the raw data (g-force for X, Y, and Z) to a local storage system for each animal every second, equivalent to 1 Hz. The data capture rate was similar to the data transmission rate. Prior to the beginning of the observations, we synchronized the clocks of all the sensors with the computer clock and the wristwatch used by the observers. The iMonnit software (MONNIT, Salt Lake City, Utah, United States of America), which is compatible with the sensors, was used to receive and export the raw data in CSV format.</p>
			</sec>
			<sec>
				<title>2.2. Predictive models and dataset</title>
				<p>Data from visual observations and sensor recordings were combined and cleaned (i.e., missing or mismatched data were removed) using Python (Python Software Foundation, Delaware, United States of America) and the Jupyter IDE. The data were considered missing or inconsistent in two different scenarios: 1) when the data capture moment showed values obtained by the sensors but did not include the corresponding visual observation of behavior; 2) when the data capture moment did not show sensor values but included visual observation records of behavior. The data received from the sensors included date, animal ID, time, and acceleration along the X-, Y-, and Z-axes. In contrast, the behavioral data included date, animal ID, time, and observed behavior. The date, animal ID, and time were used to combine both datasets, resulting in a single dataset with information on date, time, acceleration along the X-, Y-, and Z-axes, and observed behavior.</p>
				<p>Next, we constructed two different datasets: The first, called GNG, had only two behavior classes: “Grazing” and “Non grazing”. The “Non grazing” class resulted from combining “Ruminating” and “Idle”. The second, called GRI, included the three observed behaviors: “Grazing”, “Ruminating” and “Idle”.</p>
				<p>Both datasets were analyzed by using six predictive models, aiming to evaluate a wide range of tools. The GLM was chosen as a simpler option, whereas Random Forest (RF), Gradient Boosting (GB), and k-Nearest Neighbors (KNN) are the three algorithms most commonly used to predict animal behavior (<xref ref-type="bibr" rid="B27">Valletta et al., 2017</xref>; <xref ref-type="bibr" rid="B23">Sagi and Rokach, 2018</xref>; <xref ref-type="bibr" rid="B6">Chelotti et al., 2024</xref>). Light Gradient Boosting (LGB) is an enhancement of GB, developed by Microsoft Research (Microsoft, Redmond, Washington, United States of America), and Artificial Neural Network (ANN) was chosen as a more complex model. The GLM is a statistical technique for generalizing linear models, whereas predictive models RF, GB, LGB, KNN and ANN are classified as machine learning algorithms.</p>
				<p>Furthermore, all predictive models were subjected to different testing strategies. Thus, the GRI dataset was subjected to six different predictive models, and each predictive model was subjected to six different testing strategies. On the other hand, the GNG dataset was subjected to six different predictive models, and each one was subjected to seven different testing strategies. All model training was implemented using the Python programming language.</p>
				<p>Both datasets were divided into training, validation, and test sets. The amount of data reserved for training and testing varied according to the testing strategy adopted. For hyperparameter tuning, 20% of the data was always set aside for validation, using data previously allocated for training.</p>
				<p>For the GLM model, we used the equation called multinomial logistic regression (<xref ref-type="bibr" rid="B3">Böhning, 1992</xref>), which generalizes logistic regression to multiclass problems. We used as parameters the Newton-Raphson method, the maximum number of interactions of 35 and the full output “True”. In this study, we used a logit link function. The penalties were associated with ridge regression (ℓ2). The lambda parameter and the C parameter, i.e., regularization factor, were selected through random search, being defined as 11.99 and 0.08, respectively. These metrics were used for GRI and GNG.</p>
				<p>For the other models, the best hyperparameters for each dataset were identified. The search for the best hyperparameter was performed using the Bayesian optimization technique (<xref ref-type="bibr" rid="B14">Mockus, 1975</xref>). The parameters provided for the search for RF were: number of trees (50, 250), maximum number of features RF (“auto” or “sqrt”), maximum depth (0, 150), function to measure the quality of a split (“gini” or “entropy”), minimum number of samples in an internal node (2, 50), minimum number of samples in a leaf node (1 or 2) and bootstrapping (“True” or “False”).</p>
				<p>The search for the best hyperparameter for GB was performed using the parameters learning rate (log from 0.001 to log from 0.1), maximum depth (2 to 16), minimum child weight (1 to 16), gamma (0.1, 0.5) and col sample by tree (0.1, 1.0). The search for best hyperparameter for LGB used as parameters the learning rate (log from 0.001 to log 0.1), the number of leaves (2 to 512), the minimum weight of the child (1 to 500), the subsample (0.05, 1.0) and sample per tree (0.1, 1.0).</p>
				<p>The search for the best hyperparameter for KNN was performed with the parameters number of neighbors (5 to 50), weights (“Uniform” or “Distance”), leaf size (20, 100) and p (1 or 2). Finally, the search for the best hyperparameter for ANN was performed using the parameter hidden layer sizes (20, 30 and 30, 20). We defined the activation function as “tanh” (hyperbolic tangent), set verbose to False, and random state to 0. The model included only one hidden layer.</p>
			</sec>
			<sec>
				<title>2.3. Test</title>
				<p>All predictive models, for the GNG dataset, were evaluated with seven different testing strategies. The RHO, using 20% of the data were randomly excluded and used for test and the remaining 80% of the data were used for training. The second test strategy was the LAO, in which all data from one animal were removed and used for testing, while data from other animals were used for training. This strategy aimed to evaluate the predictive performance of the models when applied to new animals, that did not contribute data to model training. The third, fourth, fifth, and sixth strategy were LHO, to simulate the performance of the models when a new sward structure is presented, different from the ones used to train them. For LHO, all data from one sward height (25, 20, 15, or 10 cm) were removed and used for test, while data from the other heights were used for model training. Finally, the seventh strategy was an external test (EV), using a dataset from a previous study by our group (<xref ref-type="bibr" rid="B20">Ribeiro et al., 2021</xref>) for testing, while the full dataset generated in the present study was used for model training. The EV strategy was intended to challenge predictive models to a completely new situation, without any biological interdependence between animal, plant and the environment with the training dataset. For the GRI dataset, the EV strategy was not used, because the external dataset had only two classes of animal behaviors.</p>
			</sec>
			<sec>
				<title>2.4. Model performance evaluation</title>
				<p>To evaluate the performance of the predictive models, a confusion matrix was generated, with the values of true positive (TP), true negative (TN), false positive (FP) and false negative (FN). From these values we calculated accuracy, sensitivity, specificity, positive predictive value (PPV) and negative predicted value (NPV), using the following equations:</p>
				<disp-formula id="e1">
					<mml:math>
						<mml:mtext> accuracy </mml:mtext>
						<mml:mo>=</mml:mo>
						<mml:mfrac>
							<mml:mrow>
								<mml:mrow>
									<mml:mi>TP</mml:mi>
								</mml:mrow>
								<mml:mo>+</mml:mo>
								<mml:mrow>
									<mml:mi>TN</mml:mi>
								</mml:mrow>
							</mml:mrow>
							<mml:mrow>
								<mml:mrow>
									<mml:mi>TP</mml:mi>
								</mml:mrow>
								<mml:mo>+</mml:mo>
								<mml:mrow>
									<mml:mi>TN</mml:mi>
								</mml:mrow>
								<mml:mo>+</mml:mo>
								<mml:mrow>
									<mml:mi>FP</mml:mi>
								</mml:mrow>
								<mml:mo>+</mml:mo>
								<mml:mrow>
									<mml:mi>FN</mml:mi>
								</mml:mrow>
							</mml:mrow>
						</mml:mfrac>
					</mml:math>
				</disp-formula>
				<disp-formula id="e2">
					<mml:math>
						<mml:mtext> sensitivity </mml:mtext>
						<mml:mo>=</mml:mo>
						<mml:mfrac>
							<mml:mrow>
								<mml:mi>T</mml:mi>
								<mml:mi>P</mml:mi>
							</mml:mrow>
							<mml:mrow>
								<mml:mi>T</mml:mi>
								<mml:mi>P</mml:mi>
								<mml:mo>+</mml:mo>
								<mml:mi>F</mml:mi>
								<mml:mi>N</mml:mi>
							</mml:mrow>
						</mml:mfrac>
					</mml:math>
				</disp-formula>
				<disp-formula id="e3">
					<mml:math>
						<mml:mtext> specificity </mml:mtext>
						<mml:mo>=</mml:mo>
						<mml:mfrac>
							<mml:mrow>
								<mml:mi>TN</mml:mi>
							</mml:mrow>
							<mml:mrow>
								<mml:mrow>
									<mml:mi>TN</mml:mi>
								</mml:mrow>
								<mml:mo>+</mml:mo>
								<mml:mrow>
									<mml:mi>FP</mml:mi>
								</mml:mrow>
							</mml:mrow>
						</mml:mfrac>
					</mml:math>
				</disp-formula>
				<disp-formula id="e4">
					<mml:math>
						<mml:mrow>
							<mml:mi>PPV</mml:mi>
						</mml:mrow>
						<mml:mo>=</mml:mo>
						<mml:mfrac>
							<mml:mrow>
								<mml:mi>TP</mml:mi>
							</mml:mrow>
							<mml:mrow>
								<mml:mrow>
									<mml:mi>TP</mml:mi>
								</mml:mrow>
								<mml:mo>+</mml:mo>
								<mml:mrow>
									<mml:mi>FP</mml:mi>
								</mml:mrow>
							</mml:mrow>
						</mml:mfrac>
					</mml:math>
				</disp-formula>
				<disp-formula id="e5">
					<mml:math>
						<mml:mrow>
							<mml:mi>NPV</mml:mi>
						</mml:mrow>
						<mml:mo>=</mml:mo>
						<mml:mfrac>
							<mml:mrow>
								<mml:mi>TN</mml:mi>
							</mml:mrow>
							<mml:mrow>
								<mml:mrow>
									<mml:mi>TN</mml:mi>
								</mml:mrow>
								<mml:mo>+</mml:mo>
								<mml:mrow>
									<mml:mi>FN</mml:mi>
								</mml:mrow>
							</mml:mrow>
						</mml:mfrac>
					</mml:math>
				</disp-formula>
				<p>Furthermore, the data process time (DPT) was also measured, which is an estimate of the real time elapsed for training the predictive models. Tests and generation of metrics used to evaluate predictive models were performed using the Python language.</p>
			</sec>
		</sec>
		<sec sec-type="results">
			<title>3. Results</title>
			<sec>
				<title>3.1. Model performance</title>
				<p>The 96 periods of 12 hours of observations, collecting sensor data every second, should have generated 2,073,600 data points. However, there were data transmission problems, maybe due to the wireless network available, that caused failures in data reception from the sensors, and the final dataset contained 607,150 data points, equivalent to 29.28% of the data. Despite the substantial loss of data, our final dataset is still greater than what is reported in the literature for similar studies (<xref ref-type="bibr" rid="B7">Decandia et al., 2018</xref>; <xref ref-type="bibr" rid="B20">Ribeiro et al., 2021</xref>; <xref ref-type="bibr" rid="B19">Riaboff et al., 2022</xref>).</p>
				<p>The GNG dataset had 54.8% of the datapoint as grazing behavior and 45.2% as non-grazing and, therefore, was well balanced (<xref ref-type="table" rid="t2">Table 2</xref>). On the other hand, splitting the data in three categories created some imbalance. The GRI dataset had 54.8% of the data points classified as grazing, 24.9% as ruminating and 20.3% as idle.</p>
				<p>
					<table-wrap id="t2">
						<label>Table 2</label>
						<caption>
							<title>Distribution of data points within the evaluated animal behaviors and the percentage of total</title>
						</caption>
						<table frame="hsides" rules="groups">
							<colgroup width="20%">
								<col/>
								<col/>
								<col/>
								<col/>
								<col/>
							</colgroup>
							<thead>
								<tr>
									<th align="left" style="font-weight:normal">Dataset</th>
									<th style="font-weight:normal">Grazing</th>
									<th style="font-weight:normal">Rumination</th>
									<th style="font-weight:normal">Idle</th>
									<th style="font-weight:normal">Not grazing</th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td>GRI</td>
									<td align="center">332,512 (54.8%)</td>
									<td align="center">151,381 (24.9%)</td>
									<td align="center">123,257 (20.3%)</td>
									<td align="center">-</td>
								</tr>
								<tr>
									<td>GNG</td>
									<td align="center">332,512 (54.8%)</td>
									<td align="center">-</td>
									<td align="center">-</td>
									<td align="center">274,638 (45.2%)</td>
								</tr>
							</tbody>
						</table>
						<table-wrap-foot>
							<fn id="TFN1">
								<p>GRI - grazing, ruminating, idle; GNG - grazing, non-grazing.</p>
							</fn>
						</table-wrap-foot>
					</table-wrap>
				</p>
				<p>The worst accuracy was observed for GLM, which also had the highest difficulty to predict the non-grazing behavior, with a very low sensitivity for this behavior (<xref ref-type="table" rid="t3">Table 3</xref>). All the other models presented similar performance, with a mean (±SD) of 80.0% (±0.61) for accuracy, 84.4% (±0.73) for sensitivity, 74.6% (±1.26) for specificity, 80.2% (±0.79) for PPV and 79.8% (±0.74) for NPV.</p>
				<p>
					<table-wrap id="t3">
						<label>Table 3</label>
						<caption>
							<title>Predictive performance and data processing times of models used with the GNG dataset, and validated with a random holdout strategy</title>
						</caption>
						<table frame="hsides" rules="groups">
							<colgroup width="13%">
								<col/>
								<col/>
								<col/>
								<col/>
								<col/>
								<col/>
								<col/>
								<col/>
							</colgroup>
							<thead>
								<tr>
									<th align="left" style="font-weight:normal">Predictive model</th>
									<th style="font-weight:normal">Category</th>
									<th style="font-weight:normal">Sensitivity (%)</th>
									<th style="font-weight:normal">Specificity (%)</th>
									<th style="font-weight:normal">PPV (%)</th>
									<th style="font-weight:normal">NPV (%)</th>
									<th style="font-weight:normal">Accuracy (%)</th>
									<th style="font-weight:normal">DPT (s)</th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td>GLM</td>
									<td align="center">Grazing</td>
									<td align="center">78.2</td>
									<td align="center">44.8</td>
									<td align="center">63.3</td>
									<td align="center">62.7</td>
									<td> </td>
									<td> </td>
								</tr>
								<tr>
									<td> </td>
									<td align="center">Non-grazing</td>
									<td align="center">44.8</td>
									<td align="center">78.2</td>
									<td align="center">62.7</td>
									<td align="center">63.3</td>
									<td> </td>
									<td> </td>
								</tr>
								<tr>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td align="center">63.1</td>
									<td align="center">001</td>
								</tr>
								<tr>
									<td>RF</td>
									<td align="center">Grazing</td>
									<td align="center">85.1</td>
									<td align="center">74.0</td>
									<td align="center">80.0</td>
									<td align="center">80.3</td>
									<td> </td>
									<td> </td>
								</tr>
								<tr>
									<td> </td>
									<td align="center">Non-grazing</td>
									<td align="center">74.0</td>
									<td align="center">85.1</td>
									<td align="center">80.4</td>
									<td align="center">80.0</td>
									<td> </td>
									<td> </td>
								</tr>
								<tr>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td align="center">80.1</td>
									<td align="center">069</td>
								</tr>
								<tr>
									<td>KNN</td>
									<td align="center">Grazing</td>
									<td align="center">84.2</td>
									<td align="center">76.8</td>
									<td align="center">81.6</td>
									<td align="center">80.1</td>
									<td> </td>
									<td> </td>
								</tr>
								<tr>
									<td> </td>
									<td align="center">Non-grazing</td>
									<td align="center">76.8</td>
									<td align="center">84.2</td>
									<td align="center">80.0</td>
									<td align="center">81.5</td>
									<td> </td>
									<td> </td>
								</tr>
								<tr>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td align="center">80.9</td>
									<td align="center">005</td>
								</tr>
								<tr>
									<td>GB</td>
									<td align="center">Grazing</td>
									<td align="center">85.0</td>
									<td align="center">73.9</td>
									<td align="center">79.9</td>
									<td align="center">80.2</td>
									<td> </td>
									<td> </td>
								</tr>
								<tr>
									<td> </td>
									<td align="center">Non-grazing</td>
									<td align="center">73.9</td>
									<td align="center">85.0</td>
									<td align="center">80.2</td>
									<td align="center">79.8</td>
									<td> </td>
									<td> </td>
								</tr>
								<tr>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td align="center">80.0</td>
									<td align="center">059</td>
								</tr>
								<tr>
									<td>LGB</td>
									<td align="center">Grazing</td>
									<td align="center">84.6</td>
									<td align="center">73.9</td>
									<td align="center">79.8</td>
									<td align="center">79.8</td>
									<td> </td>
									<td> </td>
								</tr>
								<tr>
									<td> </td>
									<td align="center">Non-grazing</td>
									<td align="center">73.9</td>
									<td align="center">84.6</td>
									<td align="center">79.8</td>
									<td align="center">79.8</td>
									<td> </td>
									<td> </td>
								</tr>
								<tr>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td align="center">79.9</td>
									<td align="center">003</td>
								</tr>
								<tr>
									<td>ANN</td>
									<td align="center">Grazing</td>
									<td align="center">83.3</td>
									<td align="center">74.2</td>
									<td align="center">79.7</td>
									<td align="center">78.5</td>
									<td> </td>
									<td> </td>
								</tr>
								<tr>
									<td> </td>
									<td align="center">Non-grazing</td>
									<td align="center">74.2</td>
									<td align="center">83.3</td>
									<td align="center">78.5</td>
									<td align="center">79.7</td>
									<td> </td>
									<td> </td>
								</tr>
								<tr>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td align="center">79.2</td>
									<td align="center">300</td>
								</tr>
							</tbody>
						</table>
						<table-wrap-foot>
							<fn id="TFN2">
								<p>GNG - grazing vs non-grazing dataset; PPV - positive predictive values; NPV - negative predictive values; DPT - data process time; GLM - generalized linear model; RF - random forest; KNN, k-nearest neighbors; GB - gradient boosting; LGB - light gradient boosting; ANN - artificial neural network.</p>
							</fn>
						</table-wrap-foot>
					</table-wrap>
				</p>
				<p>As all predictive models, except the GLM, had similar behavior, the choice should also consider the computational power requirement, measured through the DPT. The LGB and KNN models were the lightest, with processing being performed in 3 and 5 seconds respectively. The model that required the most computational power was the ANN, with a processing time of 300 seconds.</p>
				<p>Similar results was observed for the GRI dataset (<xref ref-type="table" rid="t4">Table 4</xref>), also using the holdout test. The LGB and KNN models required the least computational power, while the ANN model required the most computational power to perform the predictions. The GLM predictive model was the most inefficient, whereas the other models performed similarly. For example, the GLM model achieved an accuracy of 56.9%, whereas the other models presented a mean accuracy (±SD) of 73.6 ± 1.24%.</p>
				<p>
					<table-wrap id="t4">
						<label>Table 4</label>
						<caption>
							<title>Predictive performance and data processing times of models used with the GRI dataset, and validated with a random holdout strategy</title>
						</caption>
						<table frame="hsides" rules="groups">
							<colgroup width="13%">
								<col/>
								<col/>
								<col/>
								<col/>
								<col/>
								<col/>
								<col/>
								<col/>
							</colgroup>
							<thead>
								<tr>
									<th align="left" style="font-weight:normal">Predictive model</th>
									<th style="font-weight:normal">Category</th>
									<th style="font-weight:normal">Sensitivity (%)</th>
									<th style="font-weight:normal">Specificity (%)</th>
									<th style="font-weight:normal">PPV (%)</th>
									<th style="font-weight:normal">NPV (%)</th>
									<th style="font-weight:normal">Accuracy (%)</th>
									<th style="font-weight:normal">DPT (s)</th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td>GLM</td>
									<td align="center">Grazing</td>
									<td align="center">91.6</td>
									<td align="center">23.8</td>
									<td align="center">59.3</td>
									<td align="center">70.0</td>
									<td> </td>
									<td> </td>
								</tr>
								<tr>
									<td> </td>
									<td align="center">Ruminating</td>
									<td align="center">18.7</td>
									<td align="center">93.4</td>
									<td align="center">48.4</td>
									<td align="center">77.6</td>
									<td> </td>
									<td> </td>
								</tr>
								<tr>
									<td> </td>
									<td align="center">Idle</td>
									<td align="center">10.1</td>
									<td align="center">95.4</td>
									<td align="center">35.9</td>
									<td align="center">80.6</td>
									<td> </td>
									<td> </td>
								</tr>
								<tr>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td align="center">56.9</td>
									<td align="center">003</td>
								</tr>
								<tr>
									<td>RF</td>
									<td align="center">Grazing</td>
									<td align="center">88.9</td>
									<td align="center">68.9</td>
									<td align="center">77.6</td>
									<td align="center">83.7</td>
									<td> </td>
									<td> </td>
								</tr>
								<tr>
									<td> </td>
									<td align="center">Ruminating</td>
									<td align="center">66.3</td>
									<td align="center">90.8</td>
									<td align="center">70.4</td>
									<td align="center">89.0</td>
									<td> </td>
									<td> </td>
								</tr>
								<tr>
									<td> </td>
									<td align="center">Idle</td>
									<td align="center">44.0</td>
									<td align="center">93.9</td>
									<td align="center">64.8</td>
									<td align="center">86.8</td>
									<td> </td>
									<td> </td>
								</tr>
								<tr>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td align="center">74.1</td>
									<td align="center">075</td>
								</tr>
								<tr>
									<td>KNN</td>
									<td align="center">Grazing</td>
									<td align="center">87.9</td>
									<td align="center">71.6</td>
									<td align="center">78.9</td>
									<td align="center">83.1</td>
									<td> </td>
									<td> </td>
								</tr>
								<tr>
									<td> </td>
									<td align="center">Ruminating</td>
									<td align="center">68.3</td>
									<td align="center">90.3</td>
									<td align="center">70.1</td>
									<td align="center">89.6</td>
									<td> </td>
									<td> </td>
								</tr>
								<tr>
									<td> </td>
									<td align="center">Idle</td>
									<td align="center">46.5</td>
									<td align="center">93.4</td>
									<td align="center">64.3</td>
									<td align="center">87.3</td>
									<td> </td>
									<td> </td>
								</tr>
								<tr>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td align="center">74.6</td>
									<td align="center">010</td>
								</tr>
								<tr>
									<td>GB</td>
									<td align="center">Grazing</td>
									<td align="center">89.4</td>
									<td align="center">68.6</td>
									<td align="center">77.5</td>
									<td align="center">84.2</td>
									<td> </td>
									<td> </td>
								</tr>
								<tr>
									<td> </td>
									<td align="center">Ruminating</td>
									<td align="center">66.7</td>
									<td align="center">90.7</td>
									<td align="center">70.5</td>
									<td align="center">89.1</td>
									<td> </td>
									<td> </td>
								</tr>
								<tr>
									<td> </td>
									<td align="center">Idle</td>
									<td align="center">42.9</td>
									<td align="center">94.3</td>
									<td align="center">65.7</td>
									<td align="center">86.6</td>
									<td> </td>
									<td> </td>
								</tr>
								<tr>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td align="center">74.3</td>
									<td align="center">174</td>
								</tr>
								<tr>
									<td>LGB</td>
									<td align="center">Grazing</td>
									<td align="center">89.1</td>
									<td align="center">67.2</td>
									<td align="center">76.9</td>
									<td align="center">80.0</td>
									<td> </td>
									<td> </td>
								</tr>
								<tr>
									<td> </td>
									<td align="center">Ruminating</td>
									<td align="center">65.7</td>
									<td align="center">90.2</td>
									<td align="center">69.6</td>
									<td align="center">88.8</td>
									<td> </td>
									<td> </td>
								</tr>
								<tr>
									<td> </td>
									<td align="center">Idle</td>
									<td align="center">41.0</td>
									<td align="center">94.4</td>
									<td align="center">63.8</td>
									<td align="center">86.0</td>
									<td> </td>
									<td> </td>
								</tr>
								<tr>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td align="center">73.5</td>
									<td align="center">009</td>
								</tr>
								<tr>
									<td>ANN</td>
									<td align="center">Grazing</td>
									<td align="center">89.0</td>
									<td align="center">65.3</td>
									<td align="center">75.6</td>
									<td align="center">83.0</td>
									<td> </td>
									<td> </td>
								</tr>
								<tr>
									<td> </td>
									<td align="center">Ruminating</td>
									<td align="center">62.9</td>
									<td align="center">89.6</td>
									<td align="center">66.8</td>
									<td align="center">87.9</td>
									<td> </td>
									<td> </td>
								</tr>
								<tr>
									<td> </td>
									<td align="center">Idle</td>
									<td align="center">35.1</td>
									<td align="center">93.7</td>
									<td align="center">58.8</td>
									<td align="center">85.0</td>
									<td> </td>
									<td> </td>
								</tr>
								<tr>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td> </td>
									<td align="center">71.5</td>
									<td align="center">392</td>
								</tr>
							</tbody>
						</table>
						<table-wrap-foot>
							<fn id="TFN3">
								<p>GRI - grazing vs ruminating vs idle dataset; PPV - positive predictive values; NPV - negative predictive values; DPT - data process time; GLM - generalized linear model; RF - random forest; KNN - k-nearest neighbors; GB - gradient boosting; LGB - light gradient boosting; ANN - artificial neural network.</p>
							</fn>
						</table-wrap-foot>
					</table-wrap>
				</p>
				<p>The GRI dataset revealed a pronounced reduction in predictive accuracy for idle behavior using the holdout test. Excluding the GLM model, the mean sensitivity reached 88.9% (±0.57) for grazing, 66.0% (±1.97) for ruminating, and only 44.0% (±4.29) for idle, indicating a marked difficulty in capturing this behavior. Similarly, the mean PPV for grazing, excluding GLM, was 77.3% (±1.20), for ruminating 69.5% (±1.54), and for idle 63.5% (±2.70), underscoring the reduced precision in identifying idle events. NPV values were relatively consistent across all behaviors, with a slight advantage observed for grazing, suggesting a balanced capacity of the models to correctly classify negative instances.</p>
				<p>Our second objective was to evaluate the effect of the number of predicted classes on the accuracy of the models. <xref ref-type="table" rid="t5">Table 5</xref> presents the accuracy of all models for the two datasets (GNG vs GRI). Predicting three behavior classes instead of two behaviors decreased the accuracy of prediction by an average of 6.40% units. This difference between the two datasets was similar across predictive models (varied from 5.70 to 7.70% units), indicating that no model better handled the increase in the number of classes.</p>
				<p>
					<table-wrap id="t5">
						<label>Table 5</label>
						<caption>
							<title>Accuracy of models when predicting two (GNG) or three (GRI) classes</title>
						</caption>
						<table frame="hsides" rules="groups">
							<colgroup width="14%">
								<col/>
								<col/>
								<col/>
								<col/>
								<col/>
								<col/>
								<col/>
							</colgroup>
							<thead>
								<tr>
									<th align="left" style="font-weight:normal">Dataset</th>
									<th style="font-weight:normal">GLM (%)</th>
									<th style="font-weight:normal">KNN (%)</th>
									<th style="font-weight:normal">RF (%)</th>
									<th style="font-weight:normal">GB (%)</th>
									<th style="font-weight:normal">LGB (%)</th>
									<th style="font-weight:normal">ANN (%)</th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td>GNG</td>
									<td align="center">63.1</td>
									<td align="center">80.9</td>
									<td align="center">80.1</td>
									<td align="center">80.0</td>
									<td align="center">79.9</td>
									<td align="center">79.2</td>
								</tr>
								<tr>
									<td>GRI</td>
									<td align="center">56.9</td>
									<td align="center">74.6</td>
									<td align="center">74.1</td>
									<td align="center">74.3</td>
									<td align="center">73.5</td>
									<td align="center">71.5</td>
								</tr>
								<tr>
									<td>Diference</td>
									<td align="center">6.20</td>
									<td align="center">6.30</td>
									<td align="center">6.00</td>
									<td align="center">5.70</td>
									<td align="center">6.40</td>
									<td align="center">7.70</td>
								</tr>
							</tbody>
						</table>
						<table-wrap-foot>
							<fn id="TFN4">
								<p>GNG - grazing vs not grazing dataset; GRI - grazing vs rumination vs idle dataset; GLM - generalized linear model; RF - random forest; KNN - k-nearest neighbors; GB - gradient boosting; LGB - light gradient boosting; ANN - artificial neural network.</p>
							</fn>
						</table-wrap-foot>
					</table-wrap>
				</p>
			</sec>
			<sec>
				<title>3.2. Testing strategies</title>
				<p>The accuracies of predictive models with the different testing strategies are presented in <xref ref-type="table" rid="t6">Tables 6</xref> (GNG dataset) and <xref ref-type="table" rid="t7">7</xref> (GRI dataset). The RHO strategy resulted in the greatest accuracy for all predictive models. The strategies that reduce data interdependence and the carry-over effects from animals and sward structure (LAO and LHO) resulted in intermediate values, with LHO presenting, on average, greater accuracy than LAO. The difference in accuracy among these three strategies was much smaller for GLM than for the other models. On the other hand, the difference between RHO and LAO or LHO was greater for the GRI dataset than for GNG. As expected, using an external data set to validate the models resulted in the lowest accuracies for all models and in both datasets. The drop in accuracy from the RHO strategy to the EV strategy varied from 2.8% unit for GLM in GRI to 28.9% units for KNN in GNG.</p>
				<p>
					<table-wrap id="t6">
						<label>Table 6</label>
						<caption>
							<title>Effect of the test strategy on the accuracy of predictive models with a two classes data set (GNG)</title>
						</caption>
						<table frame="hsides" rules="groups">
							<colgroup width="14%">
								<col/>
								<col/>
								<col/>
								<col/>
								<col/>
								<col/>
								<col/>
							</colgroup>
							<thead>
								<tr>
									<th align="left" style="font-weight:normal">Test</th>
									<th style="font-weight:normal">GLM (%)</th>
									<th style="font-weight:normal">RF (%)</th>
									<th style="font-weight:normal">KNN (%)</th>
									<th style="font-weight:normal">GB (%)</th>
									<th style="font-weight:normal">LGB (%)</th>
									<th style="font-weight:normal">ANN (%)</th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td>Random holdout (20%)</td>
									<td align="center">61.1</td>
									<td align="center">80.1</td>
									<td align="center">80.9</td>
									<td align="center">80.0</td>
									<td align="center">76.7</td>
									<td align="center">79.2</td>
								</tr>
								<tr>
									<td>Leave animals out</td>
									<td align="center">60.3</td>
									<td align="center">59.4</td>
									<td align="center">60.3</td>
									<td align="center">59.8</td>
									<td align="center">60.0</td>
									<td align="center">60.8</td>
								</tr>
								<tr>
									<td>Leave height out 10 cm</td>
									<td align="center">54.6</td>
									<td align="center">60.0</td>
									<td align="center">59.5</td>
									<td align="center">60.3</td>
									<td align="center">60.1</td>
									<td align="center">59.7</td>
								</tr>
								<tr>
									<td>Leave height out 15 cm</td>
									<td align="center">69.4</td>
									<td align="center">64.5</td>
									<td align="center">64.3</td>
									<td align="center">64.6</td>
									<td align="center">64.6</td>
									<td align="center">65.0</td>
								</tr>
								<tr>
									<td>Leave height out 20 cm</td>
									<td align="center">59.5</td>
									<td align="center">64.1</td>
									<td align="center">64.1</td>
									<td align="center">64.3</td>
									<td align="center">64.6</td>
									<td align="center">62.2</td>
								</tr>
								<tr>
									<td>Leave height out 25 cm</td>
									<td align="center">59.5</td>
									<td align="center">64.1</td>
									<td align="center">59.5</td>
									<td align="center">64.3</td>
									<td align="center">64.6</td>
									<td align="center">65.2</td>
								</tr>
								<tr>
									<td>External test</td>
									<td align="center">43.3</td>
									<td align="center">56.8</td>
									<td align="center">52.0</td>
									<td align="center">55.9</td>
									<td align="center">56.7</td>
									<td align="center">53.9</td>
								</tr>
							</tbody>
						</table>
						<table-wrap-foot>
							<fn id="TFN5">
								<p>GLM - generalized linear model; RF - random forest; KNN - k-nearest neighbors; GB - gradient boosting; LGB - light gradient boosting; ANN - artificial neural network.</p>
							</fn>
						</table-wrap-foot>
					</table-wrap>
				</p>
				<p>
					<table-wrap id="t7">
						<label>Table 7</label>
						<caption>
							<title>Effect of the test strategy on the accuracy of predictive models with a three-class data set (GRI)</title>
						</caption>
						<table frame="hsides" rules="groups">
							<colgroup width="14%">
								<col/>
								<col/>
								<col/>
								<col/>
								<col/>
								<col/>
								<col/>
							</colgroup>
							<thead>
								<tr>
									<th align="left" style="font-weight:normal">Test</th>
									<th style="font-weight:normal">GLM (%)</th>
									<th style="font-weight:normal">RF (%)</th>
									<th style="font-weight:normal">KNN (%)</th>
									<th style="font-weight:normal">GB (%)</th>
									<th style="font-weight:normal">LGB (%)</th>
									<th style="font-weight:normal">ANN (%)</th>
								</tr>
							</thead>
							<tbody>
								<tr>
									<td>Random holdout (20%)</td>
									<td align="center">56.9</td>
									<td align="center">74.1</td>
									<td align="center">74.6</td>
									<td align="center">74.3</td>
									<td align="center">73.5</td>
									<td align="center">71.5</td>
								</tr>
								<tr>
									<td>Leave animals out</td>
									<td align="center">54.8</td>
									<td align="center">52.1</td>
									<td align="center">51.4</td>
									<td align="center">52.7</td>
									<td align="center">52.6</td>
									<td align="center">52.2</td>
								</tr>
								<tr>
									<td>Leave height out 10 cm</td>
									<td align="center">46.6</td>
									<td align="center">53.8</td>
									<td align="center">53.1</td>
									<td align="center">53.9</td>
									<td align="center">54.1</td>
									<td align="center">53.4</td>
								</tr>
								<tr>
									<td>Leave height out 15 cm</td>
									<td align="center">65.1</td>
									<td align="center">60.3</td>
									<td align="center">59.2</td>
									<td align="center">60.6</td>
									<td align="center">60.8</td>
									<td align="center">59.9</td>
								</tr>
								<tr>
									<td>Leave height out 20 cm</td>
									<td align="center">52.5</td>
									<td align="center">52.9</td>
									<td align="center">53.1</td>
									<td align="center">52.9</td>
									<td align="center">54.1</td>
									<td align="center">53.1</td>
								</tr>
								<tr>
									<td>Leave height out 25 cm</td>
									<td align="center">54.1</td>
									<td align="center">53.7</td>
									<td align="center">52.9</td>
									<td align="center">54.0</td>
									<td align="center">54.3</td>
									<td align="center">53.6</td>
								</tr>
							</tbody>
						</table>
						<table-wrap-foot>
							<fn id="TFN6">
								<p>GLM - generalized linear model; RF - random forest; KNN - k-nearest neighbors; GB - gradient boosting; LGB - light gradient boosting; ANN - artificial neural network.</p>
							</fn>
						</table-wrap-foot>
					</table-wrap>
				</p>
			</sec>
		</sec>
		<sec sec-type="discussion">
			<title>4. Discussion</title>
			<p>The study described herein was part of a larger goal of developing tools to support decision-making for grazing management through automation and data science. It is well recognized that grazing behavior changes as animals graze down rotationally managed swards, to the point that forage intake is negatively affected (<xref ref-type="bibr" rid="B5">Carvalho et al., 2009</xref>; <xref ref-type="bibr" rid="B21">Rodrigues da Cruz et al., 2024</xref>). Therefore, if these changes could be detected with wearable sensors, the ideal moment to remove animals from a paddock could be predicted.</p>
			<p>Studies designed to develop predictive models of animal behavior have mostly focused on confined animals and have used data from a specific feeding situation and for short periods (<xref ref-type="bibr" rid="B1">Abeni and Galli, 2017</xref>; <xref ref-type="bibr" rid="B4">Cairo et al., 2020</xref>). However, grazing animals face challenges related to the constantly changing sward structure and the time budget required to harvest enough forage. Predicting ingestive behavior under these circumstances might be substantially more complex, requiring different machine learning techniques (<xref ref-type="bibr" rid="B6">Chelotti et al., 2024</xref>). Thus, we monitored nine grazing animals for eight months and throughout the reduction of canopy height in an intermittent grazing stock system to capture a wide range of feeding scenarios and evaluate predictive models varying in complexity.</p>
			<p>Our results showed that a simpler model such as GLM was not capable of adequately classifying either two or three classes of behavior. Usually, a linear model is included to evaluate the simplest possible solution to a problem. However, the inadequacy of this tool to predict animal behavior has often been demonstrated (<xref ref-type="bibr" rid="B4">Cairo et al., 2020</xref>; <xref ref-type="bibr" rid="B20">Ribeiro et al., 2021</xref>; <xref ref-type="bibr" rid="B30">Warner et al., 2020</xref>). On the other hand, the most complex model evaluated, ANN, did not outperform the other algorithms and required more computational power to make predictions. Even though this algorithm was considered an appropriate model for predicting animal behavior based on three-axis accelerometer data (<xref ref-type="bibr" rid="B16">Nadimi et al., 2012</xref>), others have reported findings similar to ours, with no superiority of ANN to in handling animal data such as ingestive behavior (<xref ref-type="bibr" rid="B20">Ribeiro et al., 2021</xref>).</p>
			<p>Surprisingly, despite the greater complexity of our dataset (varying seasons, sward structures and animals), the machine learning algorithms evaluated performed very similarly. Both RF and GB are ensemble learning methods and presented very similar results, including DPT. The LGB is an improvement of the GB that requires less computational power. Finally, KNN uses an approximation method, that despite being simpler than RF, GB and ANN, performed similarly. Even though many models perform adequately, RF often presents slightly superior predictive metrics in animal studies, such as salt-licking behavior (<xref ref-type="bibr" rid="B25">Simanungkalit et al., 2021</xref>), lameness (<xref ref-type="bibr" rid="B30">Warner et al., 2020</xref>) and grazing (<xref ref-type="bibr" rid="B20">Ribeiro et al., 2021</xref>). <xref ref-type="bibr" rid="B22">Romanzini et al. (2022)</xref> also used a three-axis accelerometer to predict grazing behavior in beef cattle in tropical pasture and evaluated three algorithms (RF, convolutional neural network, and linear discriminant analysis). The authors reported a distinct superiority in accuracy for RF (82.1% vs an average of 61.1% for the other two models).</p>
			<p>On average, the RHO strategy resulted in an accuracy of 80% in the GNG dataset. This is only slightly greater than the values reported by <xref ref-type="bibr" rid="B20">Ribeiro et al. (2021)</xref>, even though our dataset contained more than 607,000 records, while the authors worked with approximately 80,000 records. Additionally, the values are lower than those reported in some studies in which dairy cow behavior was predicted with accelerometers (<xref ref-type="bibr" rid="B8">Dutta et al., 2015</xref>; <xref ref-type="bibr" rid="B18">Riaboff et al., 2019</xref>). However, these results came from confined animals, which may present more consistent feeding behavior. On the other hand, <xref ref-type="bibr" rid="B29">Wang et al. (2025)</xref> evaluated the prediction of four classes of animal behavior in grazing beef cattle with three-axis accelerometers and machine learning models, reporting accuracies between 91 and 95%, with a substantially smaller dataset (22,987 records collected over 197 min from six beef cows). It is possible that a smaller dataset, collected over a short period of animal observations, resulted in less complexity than that captured in the present study. However, there might also be an effect of data processing. Additionally, they applied downsampling using a sliding window method and computed the mean, minimum, maximum, and variance for each instantaneous feature, generating 28 features. After removing some of the features due to collinearity, the authors ended up with 20 features to develop the model, whereas we only had three.</p>
			<p>We also evaluated the capacity of the models to predict three classes, splitting the non-grazing behavior into rumination and idle time. Model performance was reduced when predicting 3 classes rather than two, and the size of the reduction in accuracy was similar across models (5.7 to 7.7% units). When more than two classes are predicted, multiple confusion matrices are generated to compare two classes at a time (one vs all the other classes) and the average accuracy of all matrices is reported (<xref ref-type="bibr" rid="B2">Andrew, 2018</xref>). Therefore, if one class is poorly predicted, it impacts the average and decreases overall model performance, as observed in our results, in which performance metrics were worse for rumination and idle behaviors compared to grazing. <xref ref-type="bibr" rid="B10">Hasan et al. (2016)</xref>, investigating predictive models for automatic annotation of clinical text fragments, observed a marked decrease in accuracy when using RF to 41 classes (49.5%), compared to 20 (56.3%) and 17 (67%) classes.</p>
			<p>The imbalance of data among classes may harm the prediction of underrepresented classes. In our GNG dataset, classes were more evenly distributed, with 54.8% for grazing and 45.2% for non-grazing. Conversely, in the GRI dataset, while grazing accounted for 54.8% of the records, rumination accounted for 24.9% and idle for only 20.3% of the records. The main reason for the imbalance in our dataset is that our visual observations occurred during the daytime (06:00 to 18:00 h), when animals perform most of the grazing. Rumination and idle behaviors are more frequent at night, and 24-hour observation periods would be more adequate to predict the other classes. There are strategies that can be employed to balance the dataset, such as undersampling, which randomly removes data from the majority class to balance the proportions, or oversampling, which generates synthetic data to increase the representation of minority classes. Since grazing was our most important behavior, the undersampling strategy was not a good approach. On the other hand, data generated through oversampling strategies may not accurately reflect reality and may increase the risk of overfitting, posing a significant limitation (<xref ref-type="bibr" rid="B9">Gosain and Sardana, 2017</xref>; <xref ref-type="bibr" rid="B15">Mohammed et al., 2020</xref>; <xref ref-type="bibr" rid="B11">Joloudari et al., 2023</xref>).</p>
			<p>The model comparison was performed using the cross-validation strategy RHO. This approach randomly removes a portion of the data to use as a test set, while the remaining data are used for training the model. However, as discussed by <xref ref-type="bibr" rid="B20">Ribeiro et al. (2021)</xref> and <xref ref-type="bibr" rid="B29">Wang et al. (2025)</xref>, there are biological dependencies between the data in both datasets, such as the same animal or the same pasture conditions, that can inflate the accuracy of the model. Therefore, cross-validation strategies that avoid data interdependence were evaluated, also known as block cross-validation, such as removing one animal (LAO) or one pasture height (LHO) at a time to use as a test set. The results indeed demonstrated a reduction in accuracy when LAO and LHO were utilized for validation. The drop of approximately 20 percentage points (from 80% to an average of 60%) in accuracy for the GNG dataset is almost the same as reported by <xref ref-type="bibr" rid="B20">Ribeiro et al. (2021)</xref>. These authors reported an accuracy of 76.5% when applying the RHO strategy with the RF model to predict grazing behavior, while for the LAO strategy the accuracy was 56.6%. Similarly, <xref ref-type="bibr" rid="B29">Wang et al. (2025)</xref> observed a decrease from 90–96% accuracy using RHO to 66–82% using LAO.</p>
			<p>Even though more studies are adopting block cross-validation to avoid overfitting and artificially inflated accuracy, very few studies validate models using an external dataset. The EV strategy imposes an even more dramatic change in the scenario, as animals, time, location, and forage species were all different, simulating what would happen if the tool was commercially available and used in a real-world setting. For instance, while the training dataset was collected from Tabapuã heifers in an intermittent grazing system with a combined pasture of <italic>Urochloa brizantha</italic> and <italic>Arachis pintoi</italic>, the test data were collected from Nellore bulls maintained in a continuous grazing system with Marandu grass. An additional reduction of approximately 10 percentage points in accuracy for GNG demonstrates that applying the models in a new scenario remains challenging.</p>
			<p>In addition to the external test, our animal observations were collected during a grazing management experiment evaluating the effect of three grazing intensities (20, 15, and 10 cm of post-grazing height) on sward structure, composition, nutritive value, and animal behavior (<xref ref-type="bibr" rid="B21">Rodrigues da Cruz et al., 2024</xref>). An interesting finding of their study is that intake rate (g of forage per min) was significantly decreased with grazing intensity, but grazing time did not differ. Thus, even if our models were better at predicting grazing behavior, allowing the calculation of grazing time, this would not have been helpful to assess the moment at which sward height starts harming intake. The behavior changes observed were in biting rate (bites/min) and grazing events. Therefore, future sensor prediction research may be more successful if focused on this type of behavior.</p>
		</sec>
		<sec sec-type="conclusions">
			<title>5. Conclusions</title>
			<p>Based on the results, it is concluded that, although the machine learning models can adequately predict grazing behavior, this occurs primarily under random cross-validation. When data interdependence is removed through block cross-validation or external testing, model performance is considered inaccurate. Data preprocessing aimed at increasing the number of features may represent an alternative approach to improve model performance.</p>
		</sec>
	</body>
	<back>
		<ack>
			<title>Acknowledgments</title>
			<p>The authors acknowledges support from the Conselho Nacional de Desenvolvimento Científico e Tecnológico (CNPq) and Fundação de Amparo à Pesquisa do Estado de Minas Gerais (FAPEMIG/APQ-01869-22). We also acknowledge support from the research groups INPPAR and NEFOR.</p>
		</ack>
		<ref-list>
			<title>References</title>
			<ref id="B1">
				<mixed-citation>Abeni, F. and Galli, A. 2017. Monitoring cow activity and rumination time for an early detection of heat stress in dairy cow. International Journal of Biometeorology 61:417-425. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1007/s00484-016-1222-z">https://doi.org/10.1007/s00484-016-1222-z</ext-link>
				</mixed-citation>
				<element-citation publication-type="journal">
					<person-group person-group-type="author">
						<name>
							<surname>Abeni</surname>
							<given-names>F.</given-names>
						</name>
						<name>
							<surname>Galli</surname>
							<given-names>A.</given-names>
						</name>
					</person-group>
					<year>2017</year>
					<article-title>Monitoring cow activity and rumination time for an early detection of heat stress in dairy cow</article-title>
					<source>International Journal of Biometeorology</source>
					<volume>61</volume>
					<fpage>417</fpage>
					<lpage>425</lpage>
					<comment>
						<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1007/s00484-016-1222-z">https://doi.org/10.1007/s00484-016-1222-z</ext-link>
					</comment>
				</element-citation>
			</ref>
			<ref id="B2">
				<mixed-citation>Andrew, N. G. 2018. Machine learning yearning. Deeplearning.ai. Palo Alto - CA.</mixed-citation>
				<element-citation publication-type="book">
					<person-group person-group-type="author">
						<name>
							<surname>Andrew</surname>
							<given-names>N. G.</given-names>
						</name>
					</person-group>
					<year>2018</year>
					<source>Machine learning yearning</source>
					<publisher-name>Deeplearning.ai</publisher-name>
					<publisher-loc>Palo Alto - CA</publisher-loc>
				</element-citation>
			</ref>
			<ref id="B3">
				<mixed-citation>Böhning, D. 1992. Multinomial logistic regression algorithm. Annals of the Institute of Statistical Mathematics 44:197-200. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1007/BF00048682">https://doi.org/10.1007/BF00048682</ext-link>
				</mixed-citation>
				<element-citation publication-type="journal">
					<person-group person-group-type="author">
						<name>
							<surname>Böhning</surname>
							<given-names>D</given-names>
						</name>
					</person-group>
					<year>1992</year>
					<article-title>Multinomial logistic regression algorithm</article-title>
					<source>Annals of the Institute of Statistical Mathematics</source>
					<volume>44</volume>
					<fpage>197</fpage>
					<lpage>200</lpage>
					<comment>
						<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1007/BF00048682">https://doi.org/10.1007/BF00048682</ext-link>
					</comment>
				</element-citation>
			</ref>
			<ref id="B4">
				<mixed-citation>Cairo, F. C.; Pereira, L. G. R.; Campos, M. M.; Tomich, T. R.; Coelho, S. G.; Lage, C. F. A.; Fonseca, A. P.; Borges, A. M.; Alves, B. R. C. and Dorea, J. R. R. 2020. Applying machine learning techniques on feeding behavior data for early estrus detection in dairy heifers. Computers and Electronics in Agriculture 179:105855. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.compag.2020.105855">https://doi.org/10.1016/j.compag.2020.105855</ext-link>
				</mixed-citation>
				<element-citation publication-type="journal">
					<person-group person-group-type="author">
						<name>
							<surname>Cairo</surname>
							<given-names>F. C.</given-names>
						</name>
						<name>
							<surname>Pereira</surname>
							<given-names>L. G. R.</given-names>
						</name>
						<name>
							<surname>Campos</surname>
							<given-names>M. M.</given-names>
						</name>
						<name>
							<surname>Tomich</surname>
							<given-names>T. R.</given-names>
						</name>
						<name>
							<surname>Coelho</surname>
							<given-names>S. G.</given-names>
						</name>
						<name>
							<surname>Lage</surname>
							<given-names>C. F. A.</given-names>
						</name>
						<name>
							<surname>Fonseca</surname>
							<given-names>A. P.</given-names>
						</name>
						<name>
							<surname>Borges</surname>
							<given-names>A. M.</given-names>
						</name>
						<name>
							<surname>Alves</surname>
							<given-names>B. R. C.</given-names>
						</name>
						<name>
							<surname>Dorea</surname>
							<given-names>J. R. R.</given-names>
						</name>
					</person-group>
					<year>2020</year>
					<article-title>Applying machine learning techniques on feeding behavior data for early estrus detection in dairy heifers</article-title>
					<source>Computers and Electronics in Agriculture</source>
					<volume>179</volume>
					<fpage>105855</fpage>
					<comment>
						<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.compag.2020.105855">https://doi.org/10.1016/j.compag.2020.105855</ext-link>
					</comment>
				</element-citation>
			</ref>
			<ref id="B5">
				<mixed-citation>Carvalho, P. C. F.; Trindade, J. K.; Mezzalira, J. C.; Poli, C. H. E. C.; Nabinger, C.; Genro, T. C. M. and Gonda, H. L. 2009. Do bocado ao pastoreio de precisão: compreendendo a interface planta-animal para explorar a multi-funcionalidade das pastagens. Revista Brasileira de Zootecnia 38:109-122. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1590/S1516-35982009001300013">https://doi.org/10.1590/S1516-35982009001300013</ext-link>
				</mixed-citation>
				<element-citation publication-type="journal">
					<person-group person-group-type="author">
						<name>
							<surname>Carvalho</surname>
							<given-names>P. C. F.</given-names>
						</name>
						<name>
							<surname>Trindade</surname>
							<given-names>J. K.</given-names>
						</name>
						<name>
							<surname>Mezzalira</surname>
							<given-names>J. C.</given-names>
						</name>
						<name>
							<surname>Poli</surname>
							<given-names>C. H. E. C.</given-names>
						</name>
						<name>
							<surname>Nabinger</surname>
							<given-names>C.</given-names>
						</name>
						<name>
							<surname>Genro</surname>
							<given-names>T. C. M.</given-names>
						</name>
						<name>
							<surname>Gonda</surname>
							<given-names>H. L.</given-names>
						</name>
					</person-group>
					<year>2009</year>
					<article-title>Do bocado ao pastoreio de precisão: compreendendo a interface planta-animal para explorar a multi-funcionalidade das pastagens</article-title>
					<source>Revista Brasileira de Zootecnia</source>
					<volume>38</volume>
					<fpage>109</fpage>
					<lpage>122</lpage>
					<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1590/S1516-35982009001300013">https://doi.org/10.1590/S1516-35982009001300013</ext-link>
				</element-citation>
			</ref>
			<ref id="B6">
				<mixed-citation>Chelotti, J. O.; Martinez-Rau, L. S.; Ferrero, M.; Vignolo, L. D.; Galli, J. R.; Planisich, A. M.; Rufiner, H. L. and Giovanini, L. L. 2024. Livestock feeding behaviour: A review on automated systems for ruminant monitoring. Biosystems Engineering 246:150-177. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.biosystemseng.2024.08.003">https://doi.org/10.1016/j.biosystemseng.2024.08.003</ext-link>
				</mixed-citation>
				<element-citation publication-type="journal">
					<person-group person-group-type="author">
						<name>
							<surname>Chelotti</surname>
							<given-names>J. O.</given-names>
						</name>
						<name>
							<surname>Martinez-Rau</surname>
							<given-names>L. S.</given-names>
						</name>
						<name>
							<surname>Ferrero</surname>
							<given-names>M.</given-names>
						</name>
						<name>
							<surname>Vignolo</surname>
							<given-names>L. D.</given-names>
						</name>
						<name>
							<surname>Galli</surname>
							<given-names>J. R.</given-names>
						</name>
						<name>
							<surname>Planisich</surname>
							<given-names>A. M.</given-names>
						</name>
						<name>
							<surname>Rufiner</surname>
							<given-names>H. L.</given-names>
						</name>
						<name>
							<surname>Giovanini</surname>
							<given-names>L. L.</given-names>
						</name>
					</person-group>
					<year>2024</year>
					<article-title>Livestock feeding behaviour: A review on automated systems for ruminant monitoring</article-title>
					<source>Biosystems Engineering</source>
					<volume>246</volume>
					<fpage>150</fpage>
					<lpage>177</lpage>
					<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.biosystemseng.2024.08.003">https://doi.org/10.1016/j.biosystemseng.2024.08.003</ext-link>
				</element-citation>
			</ref>
			<ref id="B7">
				<mixed-citation>Decandia, M.; Giovanetti, V.; Molle, G.; Acciaro, M.; Mameli, M.; Cabiddu, A.; Cossu, R.; Serra, M. G.; Manca, C.; Rassu, S. P. G. and Dimauro, C. 2018. The effect of different time epoch settings on the classification of sheep behaviour using tri-axial accelerometry. Computers and Electronics in Agriculture 154:112-119. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.compag.2018.09.002">https://doi.org/10.1016/j.compag.2018.09.002</ext-link>
				</mixed-citation>
				<element-citation publication-type="journal">
					<person-group person-group-type="author">
						<name>
							<surname>Decandia</surname>
							<given-names>M.</given-names>
						</name>
						<name>
							<surname>Giovanetti</surname>
							<given-names>V.</given-names>
						</name>
						<name>
							<surname>Molle</surname>
							<given-names>G.</given-names>
						</name>
						<name>
							<surname>Acciaro</surname>
							<given-names>M.</given-names>
						</name>
						<name>
							<surname>Mameli</surname>
							<given-names>M.</given-names>
						</name>
						<name>
							<surname>Cabiddu</surname>
							<given-names>A.</given-names>
						</name>
						<name>
							<surname>Cossu</surname>
							<given-names>R.</given-names>
						</name>
						<name>
							<surname>Serra</surname>
							<given-names>M. G.</given-names>
						</name>
						<name>
							<surname>Manca</surname>
							<given-names>C.</given-names>
						</name>
						<name>
							<surname>Rassu</surname>
							<given-names>S. P. G.</given-names>
						</name>
						<name>
							<surname>Dimauro</surname>
							<given-names>C.</given-names>
						</name>
					</person-group>
					<year>2018</year>
					<article-title>The effect of different time epoch settings on the classification of sheep behaviour using tri-axial accelerometry</article-title>
					<source>Computers and Electronics in Agriculture</source>
					<volume>154</volume>
					<fpage>112</fpage>
					<lpage>119</lpage>
					<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.compag.2018.09.002">https://doi.org/10.1016/j.compag.2018.09.002</ext-link>
				</element-citation>
			</ref>
			<ref id="B8">
				<mixed-citation>Dutta, R.; Smith, D.; Rawnsley, R.; Bishop-Hurley, G.; Hills, J.; Timms, T. and Henry, D. 2015. Dynamic cattle behavioural classification using supervised ensemble classifiers. Computers and Electronics in Agriculture 111:18-28. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.compag.2014.12.002">https://doi.org/10.1016/j.compag.2014.12.002</ext-link>
				</mixed-citation>
				<element-citation publication-type="journal">
					<person-group person-group-type="author">
						<name>
							<surname>Dutta</surname>
							<given-names>R.</given-names>
						</name>
						<name>
							<surname>Smith</surname>
							<given-names>D.</given-names>
						</name>
						<name>
							<surname>Rawnsley</surname>
							<given-names>R.</given-names>
						</name>
						<name>
							<surname>Bishop-Hurley</surname>
							<given-names>G.</given-names>
						</name>
						<name>
							<surname>Hills</surname>
							<given-names>J.</given-names>
						</name>
						<name>
							<surname>Timms</surname>
							<given-names>T.</given-names>
						</name>
						<name>
							<surname>Henry</surname>
							<given-names>D.</given-names>
						</name>
					</person-group>
					<year>2015</year>
					<article-title>Dynamic cattle behavioural classification using supervised ensemble classifiers</article-title>
					<source>Computers and Electronics in Agriculture</source>
					<volume>111</volume>
					<fpage>18</fpage>
					<lpage>28</lpage>
					<comment>
						<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.compag.2014.12.002">https://doi.org/10.1016/j.compag.2014.12.002</ext-link>
					</comment>
				</element-citation>
			</ref>
			<ref id="B9">
				<mixed-citation>Gosain, A. and Sardana, S. 2017. Handling class imbalance problem using oversampling techniques: A review. p.79-85. In: 2017 International Conference on Advances in Computing, Communications and Informatics (ICICS). Udupi, India. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/ICACCI.2017.8125820">https://doi.org/10.1109/ICACCI.2017.8125820</ext-link>
				</mixed-citation>
				<element-citation publication-type="confproc">
					<person-group person-group-type="author">
						<name>
							<surname>Gosain</surname>
							<given-names>A.</given-names>
						</name>
						<name>
							<surname>Sardana</surname>
							<given-names>S.</given-names>
						</name>
					</person-group>
					<year>2017</year>
					<source>Handling class imbalance problem using oversampling techniques: A review</source>
					<fpage>79</fpage>
					<lpage>85</lpage>
					<conf-name>2017 International Conference on Advances in Computing, Communications and Informatics (ICICS)</conf-name>
					<publisher-loc>Udupi, India</publisher-loc>
					<comment>
						<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/ICACCI.2017.8125820">https://doi.org/10.1109/ICACCI.2017.8125820</ext-link>
					</comment>
				</element-citation>
			</ref>
			<ref id="B10">
				<mixed-citation>Hasan, M.; Kotov, A.; Carcone, A. I.; Dong, M.; Naar, S. and Hartlieb, K. B. 2016. A study of the effectiveness of machine learning methods for classification of clinical interview fragments into a large number of categories. Journal of Biomedical Informatics 62:21-31. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.jbi.2016.05.004">https://doi.org/10.1016/j.jbi.2016.05.004</ext-link>
				</mixed-citation>
				<element-citation publication-type="journal">
					<person-group person-group-type="author">
						<name>
							<surname>Hasan</surname>
							<given-names>M.</given-names>
						</name>
						<name>
							<surname>Kotov</surname>
							<given-names>A.</given-names>
						</name>
						<name>
							<surname>Carcone</surname>
							<given-names>A. I.</given-names>
						</name>
						<name>
							<surname>Dong</surname>
							<given-names>M.</given-names>
						</name>
						<name>
							<surname>Naar</surname>
							<given-names>S.</given-names>
						</name>
						<name>
							<surname>Hartlieb</surname>
							<given-names>K. B.</given-names>
						</name>
					</person-group>
					<year>2016</year>
					<article-title>A study of the effectiveness of machine learning methods for classification of clinical interview fragments into a large number of categories</article-title>
					<source>Journal of Biomedical Informatics</source>
					<volume>62</volume>
					<fpage>21</fpage>
					<lpage>31</lpage>
					<comment>
						<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.jbi.2016.05.004">https://doi.org/10.1016/j.jbi.2016.05.004</ext-link>
					</comment>
				</element-citation>
			</ref>
			<ref id="B11">
				<mixed-citation>Joloudari, J. H.; Marefat, A.; Nematollahi, M. A.; Oyelere, S. S. and Hussain, S. 2023. Effective class-imbalance learning based on SMOTE and convolutional neural networks. Applied Sciences 13:4006. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3390/app13064006">https://doi.org/10.3390/app13064006</ext-link>
				</mixed-citation>
				<element-citation publication-type="journal">
					<person-group person-group-type="author">
						<name>
							<surname>Joloudari</surname>
							<given-names>J. H.</given-names>
						</name>
						<name>
							<surname>Marefat</surname>
							<given-names>A.</given-names>
						</name>
						<name>
							<surname>Nematollahi</surname>
							<given-names>M. A.</given-names>
						</name>
						<name>
							<surname>Oyelere</surname>
							<given-names>S. S.</given-names>
						</name>
						<name>
							<surname>Hussain</surname>
							<given-names>S.</given-names>
						</name>
					</person-group>
					<year>2023</year>
					<article-title>Effective class-imbalance learning based on SMOTE and convolutional neural networks</article-title>
					<source>Applied Sciences</source>
					<volume>13</volume>
					<size units="pages">4006</size>
					<comment>
						<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3390/app13064006">https://doi.org/10.3390/app13064006</ext-link>
					</comment>
				</element-citation>
			</ref>
			<ref id="B12">
				<mixed-citation>Kaur, U.; Malacco, V. M. R.; Bai, H.; Price, T. P.; Datta, A.; Xin, L.; Sen, S.; Nawrocki, R. A.; Chiu, G.; Sundaram, S.; Min, B. C.; Daniels, K. M.; White, R. R.; Donkin, S. S.; Brito, L. F. and Voyles, R. M. 2023. Invited review: integration of technologies and systems for precision animal agriculture-a case study on precision dairy farming. Journal of Animal Science 101:skad206. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1093/jas/skad206">https://doi.org/10.1093/jas/skad206</ext-link>
				</mixed-citation>
				<element-citation publication-type="journal">
					<person-group person-group-type="author">
						<name>
							<surname>Kaur</surname>
							<given-names>U.</given-names>
						</name>
						<name>
							<surname>Malacco</surname>
							<given-names>V. M. R.</given-names>
						</name>
						<name>
							<surname>Bai</surname>
							<given-names>H.</given-names>
						</name>
						<name>
							<surname>Price</surname>
							<given-names>T. P.</given-names>
						</name>
						<name>
							<surname>Datta</surname>
							<given-names>A.</given-names>
						</name>
						<name>
							<surname>Xin</surname>
							<given-names>L.</given-names>
						</name>
						<name>
							<surname>Sen</surname>
							<given-names>S.</given-names>
						</name>
						<name>
							<surname>Nawrocki</surname>
							<given-names>R. A.</given-names>
						</name>
						<name>
							<surname>Chiu</surname>
							<given-names>G.</given-names>
						</name>
						<name>
							<surname>Sundaram</surname>
							<given-names>S.</given-names>
						</name>
						<name>
							<surname>Min</surname>
							<given-names>B. C.</given-names>
						</name>
						<name>
							<surname>Daniels</surname>
							<given-names>K. M.</given-names>
						</name>
						<name>
							<surname>White</surname>
							<given-names>R. R.</given-names>
						</name>
						<name>
							<surname>Donkin</surname>
							<given-names>S. S.</given-names>
						</name>
						<name>
							<surname>Brito</surname>
							<given-names>L. F.</given-names>
						</name>
						<name>
							<surname>Voyles</surname>
							<given-names>R. M.</given-names>
						</name>
					</person-group>
					<year>2023</year>
					<article-title>Invited review: integration of technologies and systems for precision animal agriculture-a case study on precision dairy farming</article-title>
					<source>Journal of Animal Science</source>
					<volume>101</volume>
					<elocation-id>skad206</elocation-id>
					<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1093/jas/skad206">https://doi.org/10.1093/jas/skad206</ext-link>
				</element-citation>
			</ref>
			<ref id="B13">
				<mixed-citation>Li, Y.; Shu, H.; Bindelle, J.; Xu, B.; Zhang, W.; Jin, Z.; Guo, L. and Wang, W. 2022. Classification and analysis of multiple cattle unitary behaviors and movements based on machine learning methods. Animals 12:1060. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3390/ani12091060">https://doi.org/10.3390/ani12091060</ext-link>
				</mixed-citation>
				<element-citation publication-type="journal">
					<person-group person-group-type="author">
						<name>
							<surname>Li</surname>
							<given-names>Y.</given-names>
						</name>
						<name>
							<surname>Shu</surname>
							<given-names>H.</given-names>
						</name>
						<name>
							<surname>Bindelle</surname>
							<given-names>J.</given-names>
						</name>
						<name>
							<surname>Xu</surname>
							<given-names>B.</given-names>
						</name>
						<name>
							<surname>Zhang</surname>
							<given-names>W.</given-names>
						</name>
						<name>
							<surname>Jin</surname>
							<given-names>Z.</given-names>
						</name>
						<name>
							<surname>Guo</surname>
							<given-names>L.</given-names>
						</name>
						<name>
							<surname>Wang</surname>
							<given-names>W.</given-names>
						</name>
					</person-group>
					<year>2022</year>
					<article-title>Classification and analysis of multiple cattle unitary behaviors and movements based on machine learning methods</article-title>
					<source>Animals</source>
					<volume>12</volume>
					<size units="pages">1060</size>
					<comment>
						<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3390/ani12091060">https://doi.org/10.3390/ani12091060</ext-link>
					</comment>
				</element-citation>
			</ref>
			<ref id="B14">
				<mixed-citation>Mockus, J. 1975. On baysian methods for seeking the extremum. p.400-404. In: Marchuk, G. I. (ed.). Optimization Techniques IFIP Technical Conference Novosibirsk. Optimization Techniques 1974. Lecture Notes in Computer Science, vol. 27. Springer, Berlin, Heidelberg. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1007/3-540-07165-2_55">https://doi.org/10.1007/3-540-07165-2_55</ext-link>
				</mixed-citation>
				<element-citation publication-type="book">
					<person-group person-group-type="author">
						<name>
							<surname>Mockus</surname>
							<given-names>J.</given-names>
						</name>
					</person-group>
					<year>1975</year>
					<chapter-title>On baysian methods for seeking the extremum</chapter-title>
					<fpage>400</fpage>
					<lpage>404</lpage>
					<person-group person-group-type="editor">
						<name>
							<surname>Marchuk</surname>
							<given-names>G. I.</given-names>
						</name>
						<role>ed</role>
					</person-group>
					<source>Optimization Techniques IFIP Technical Conference Novosibirsk. Optimization Techniques 1974</source>
					<comment>Lecture Notes in Computer Science, vol. 27</comment>
					<publisher-name>Springer</publisher-name>
					<publisher-loc>Berlin, Heidelberg</publisher-loc>
					<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1007/3-540-07165-2_55">https://doi.org/10.1007/3-540-07165-2_55</ext-link>
				</element-citation>
			</ref>
			<ref id="B15">
				<mixed-citation>Mohammed, R.; Rawashdeh, J. and Abdullah, M. 2020. Machine learning with oversampling and undersampling techniques: overview study and experimental results. p.243-248. In: 2020 11th International Conference on Information and Communication Systems (ICICS). Irbid, Jordan. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/ICICS49469.2020.239556">https://doi.org/10.1109/ICICS49469.2020.239556</ext-link>
				</mixed-citation>
				<element-citation publication-type="confproc">
					<person-group person-group-type="author">
						<name>
							<surname>Mohammed</surname>
							<given-names>R.</given-names>
						</name>
						<name>
							<surname>Rawashdeh</surname>
							<given-names>J.</given-names>
						</name>
						<name>
							<surname>Abdullah</surname>
							<given-names>M.</given-names>
						</name>
					</person-group>
					<year>2020</year>
					<source>Machine learning with oversampling and undersampling techniques: overview study and experimental results</source>
					<fpage>243</fpage>
					<lpage>248</lpage>
					<conf-name>2020 11th International Conference on Information and Communication Systems (ICICS)</conf-name>
					<publisher-loc>Irbid, Jordan</publisher-loc>
					<comment>
						<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/ICICS49469.2020.239556">https://doi.org/10.1109/ICICS49469.2020.239556</ext-link>
					</comment>
				</element-citation>
			</ref>
			<ref id="B16">
				<mixed-citation>Nadimi, E. S.; Jørgensen, R. N.; Blanes-Vidal, V. and Christensen, S. 2012. Monitoring and classifying animal behavior using ZigBee-based mobile ad hoc wireless sensor networks and artificial neural networks. Computers and Electronics in Agriculture 82:44-54. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.compag.2011.12.008">https://doi.org/10.1016/j.compag.2011.12.008</ext-link>
				</mixed-citation>
				<element-citation publication-type="journal">
					<person-group person-group-type="author">
						<name>
							<surname>Nadimi</surname>
							<given-names>E. S.</given-names>
						</name>
						<name>
							<surname>Jørgensen</surname>
							<given-names>R. N.</given-names>
						</name>
						<name>
							<surname>Blanes-Vidal</surname>
							<given-names>V.</given-names>
						</name>
						<name>
							<surname>Christensen</surname>
							<given-names>S.</given-names>
						</name>
					</person-group>
					<year>2012</year>
					<article-title>Monitoring and classifying animal behavior using ZigBee-based mobile ad hoc wireless sensor networks and artificial neural networks</article-title>
					<source>Computers and Electronics in Agriculture</source>
					<volume>82</volume>
					<fpage>44</fpage>
					<lpage>54</lpage>
					<comment>
						<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.compag.2011.12.008">https://doi.org/10.1016/j.compag.2011.12.008</ext-link>
					</comment>
				</element-citation>
			</ref>
			<ref id="B17">
				<mixed-citation>Park, J. K. and Park, E. Y. 2021. Monitoring method of movement of grazing cows using cloud-based system. ECTI Transactions on Computer and Information Technology 15:24-33. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.37936/ecti-cit.2021151.240087">https://doi.org/10.37936/ecti-cit.2021151.240087</ext-link>
				</mixed-citation>
				<element-citation publication-type="journal">
					<person-group person-group-type="author">
						<name>
							<surname>Park</surname>
							<given-names>J. K.</given-names>
						</name>
						<name>
							<surname>Park</surname>
							<given-names>E. Y.</given-names>
						</name>
					</person-group>
					<year>2021</year>
					<article-title>Monitoring method of movement of grazing cows using cloud-based system</article-title>
					<source>ECTI Transactions on Computer and Information Technology</source>
					<volume>15</volume>
					<fpage>24</fpage>
					<lpage>33</lpage>
					<comment>
						<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.37936/ecti-cit.2021151.240087">https://doi.org/10.37936/ecti-cit.2021151.240087</ext-link>
					</comment>
				</element-citation>
			</ref>
			<ref id="B18">
				<mixed-citation>Riaboff, L.; Aubin, S.; Bédère, 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. Computers and Electronics in Agriculture 165:104961. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.compag.2019.104961">https://doi.org/10.1016/j.compag.2019.104961</ext-link>
				</mixed-citation>
				<element-citation publication-type="journal">
					<person-group person-group-type="author">
						<name>
							<surname>Riaboff</surname>
							<given-names>L.</given-names>
						</name>
						<name>
							<surname>Aubin</surname>
							<given-names>S.</given-names>
						</name>
						<name>
							<surname>Bédère</surname>
							<given-names>N.</given-names>
						</name>
						<name>
							<surname>Couvreur</surname>
							<given-names>S.</given-names>
						</name>
						<name>
							<surname>Madouasse</surname>
							<given-names>A.</given-names>
						</name>
						<name>
							<surname>Goumand</surname>
							<given-names>E.</given-names>
						</name>
						<name>
							<surname>Chauvin</surname>
							<given-names>A.</given-names>
						</name>
						<name>
							<surname>Plantier</surname>
							<given-names>G.</given-names>
						</name>
					</person-group>
					<year>2019</year>
					<article-title>Evaluation of pre-processing methods for the prediction of cattle behaviour from accelerometer data</article-title>
					<source>Computers and Electronics in Agriculture</source>
					<volume>165</volume>
					<size units="pages">104961</size>
					<comment>
						<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.compag.2019.104961">https://doi.org/10.1016/j.compag.2019.104961</ext-link>
					</comment>
				</element-citation>
			</ref>
			<ref id="B19">
				<mixed-citation>Riaboff, L.; Shalloo, L.; Smeaton, A.F.; Couvreur, S.; Madouasse, A. and Keane, M. T. 2022. Predicting livestock behaviour using accelerometers: A systematic review of processing techniques for ruminant behaviour prediction from raw accelerometer data. Computers and Electronics in Agriculture 192:106610. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.compag.2021.106610">https://doi.org/10.1016/j.compag.2021.106610</ext-link>
				</mixed-citation>
				<element-citation publication-type="journal">
					<person-group person-group-type="author">
						<name>
							<surname>Riaboff</surname>
							<given-names>L.</given-names>
						</name>
						<name>
							<surname>Shalloo</surname>
							<given-names>L.</given-names>
						</name>
						<name>
							<surname>Smeaton</surname>
							<given-names>A.F.</given-names>
						</name>
						<name>
							<surname>Couvreur</surname>
							<given-names>S.</given-names>
						</name>
						<name>
							<surname>Madouasse</surname>
							<given-names>A.</given-names>
						</name>
						<name>
							<surname>Keane</surname>
							<given-names>M. T.</given-names>
						</name>
					</person-group>
					<year>2022</year>
					<article-title>Predicting livestock behaviour using accelerometers: A systematic review of processing techniques for ruminant behaviour prediction from raw accelerometer data</article-title>
					<source>Computers and Electronics in Agriculture</source>
					<volume>192</volume>
					<fpage>106610</fpage>
					<comment>
						<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.compag.2021.106610">https://doi.org/10.1016/j.compag.2021.106610</ext-link>
					</comment>
				</element-citation>
			</ref>
			<ref id="B20">
				<mixed-citation>Ribeiro, L. A. C.; Bresolin, T.; Rosa, G. J. M.; Casagrande, D. R.; Danes, M. A. C. and Dórea, J. R. R. 2021. Disentangling data dependency using cross-validation strategies to evaluate prediction quality of cattle grazing activities using machine learning algorithms and wearable sensor data. Journal of Animal Science 99:skab206. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1093/jas/skab206">https://doi.org/10.1093/jas/skab206</ext-link>
				</mixed-citation>
				<element-citation publication-type="journal">
					<person-group person-group-type="author">
						<name>
							<surname>Ribeiro</surname>
							<given-names>L. A. C.</given-names>
						</name>
						<name>
							<surname>Bresolin</surname>
							<given-names>T.</given-names>
						</name>
						<name>
							<surname>Rosa</surname>
							<given-names>G. J. M.</given-names>
						</name>
						<name>
							<surname>Casagrande</surname>
							<given-names>D. R.</given-names>
						</name>
						<name>
							<surname>Danes</surname>
							<given-names>M. A. C.</given-names>
						</name>
						<name>
							<surname>Dórea</surname>
							<given-names>J. R. R.</given-names>
						</name>
					</person-group>
					<year>2021</year>
					<article-title>Disentangling data dependency using cross-validation strategies to evaluate prediction quality of cattle grazing activities using machine learning algorithms and wearable sensor data</article-title>
					<source>Journal of Animal Science</source>
					<volume>99</volume>
					<size units="pages">skab206</size>
					<comment>
						<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1093/jas/skab206">https://doi.org/10.1093/jas/skab206</ext-link>
					</comment>
				</element-citation>
			</ref>
			<ref id="B21">
				<mixed-citation>Rodrigues da Cruz, P. J.; Silva, D.; Lima, I. B. G.; Alves, G. C.; Homem, B. G. C.; Alves, B. J. R.; Boddey, R. M.; Sbrissia, A. F. and Casagrande, D. R. 2024. Marandu palisade grass-forage peanut mixed pastures: Forage intake, animal behaviour, and canopy structure as affected by grazing intensities. Grass and Forage Science 79:666-677. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1111/gfs.12688">https://doi.org/10.1111/gfs.12688</ext-link>
				</mixed-citation>
				<element-citation publication-type="journal">
					<person-group person-group-type="author">
						<name>
							<surname>Rodrigues da Cruz</surname>
							<given-names>P. J.</given-names>
						</name>
						<name>
							<surname>Silva</surname>
							<given-names>D.</given-names>
						</name>
						<name>
							<surname>Lima</surname>
							<given-names>I. B. G.</given-names>
						</name>
						<name>
							<surname>Alves</surname>
							<given-names>G. C.</given-names>
						</name>
						<name>
							<surname>Homem</surname>
							<given-names>B. G. C.</given-names>
						</name>
						<name>
							<surname>Alves</surname>
							<given-names>B. J. R.</given-names>
						</name>
						<name>
							<surname>Boddey</surname>
							<given-names>R. M.</given-names>
						</name>
						<name>
							<surname>Sbrissia</surname>
							<given-names>A. F.</given-names>
						</name>
						<name>
							<surname>Casagrande</surname>
							<given-names>D. R.</given-names>
						</name>
					</person-group>
					<year>2024</year>
					<article-title>Marandu palisade grass-forage peanut mixed pastures: Forage intake, animal behaviour, and canopy structure as affected by grazing intensities</article-title>
					<source>Grass and Forage Science</source>
					<volume>79</volume>
					<fpage>666</fpage>
					<lpage>677</lpage>
					<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1111/gfs.12688">https://doi.org/10.1111/gfs.12688</ext-link>
				</element-citation>
			</ref>
			<ref id="B22">
				<mixed-citation>Romanzini, E. P.; Watanabe, R. N.; Fonseca, N. V. B.; Berça, A. S.; Brito, T. R.; Bernardes, P. A.; Munari, D. P. and Reis, R. A. 2022. Modern livestock farming under tropical conditions using sensors in grazing systems. Scientific Reports 12:2654. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1038/s41598-022-06650-5">https://doi.org/10.1038/s41598-022-06650-5</ext-link>
				</mixed-citation>
				<element-citation publication-type="journal">
					<person-group person-group-type="author">
						<name>
							<surname>Romanzini</surname>
							<given-names>E. P.</given-names>
						</name>
						<name>
							<surname>Watanabe</surname>
							<given-names>R. N.</given-names>
						</name>
						<name>
							<surname>Fonseca</surname>
							<given-names>N. V. B.</given-names>
						</name>
						<name>
							<surname>Berça</surname>
							<given-names>A. S.</given-names>
						</name>
						<name>
							<surname>Brito</surname>
							<given-names>T. R.</given-names>
						</name>
						<name>
							<surname>Bernardes</surname>
							<given-names>P. A.</given-names>
						</name>
						<name>
							<surname>Munari</surname>
							<given-names>D. P.</given-names>
						</name>
						<name>
							<surname>Reis</surname>
							<given-names>R. A.</given-names>
						</name>
					</person-group>
					<year>2022</year>
					<article-title>Modern livestock farming under tropical conditions using sensors in grazing systems</article-title>
					<source>Scientific Reports</source>
					<volume>12</volume>
					<size units="pages">2654</size>
					<comment>
						<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1038/s41598-022-06650-5">https://doi.org/10.1038/s41598-022-06650-5</ext-link>
					</comment>
				</element-citation>
			</ref>
			<ref id="B23">
				<mixed-citation>Sagi, O. and Rokach, L. 2018. Ensemble learning: A survey. WIREs Data Mining and Knowledge Discovery 8:e1249. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1002/widm.1249">https://doi.org/10.1002/widm.1249</ext-link>
				</mixed-citation>
				<element-citation publication-type="journal">
					<person-group person-group-type="author">
						<name>
							<surname>Sagi</surname>
							<given-names>O.</given-names>
						</name>
						<name>
							<surname>Rokach</surname>
							<given-names>L.</given-names>
						</name>
					</person-group>
					<year>2018</year>
					<article-title>Ensemble learning: A survey</article-title>
					<source>WIREs Data Mining and Knowledge Discovery</source>
					<volume>8</volume>
					<elocation-id>e1249</elocation-id>
					<comment>
						<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1002/widm.1249">https://doi.org/10.1002/widm.1249</ext-link>
					</comment>
				</element-citation>
			</ref>
			<ref id="B24">
				<mixed-citation>Shafiullah, A. Z.; Werner, J.; Kennedy, E.; Leso, L.; O'Brien, B. and Umstätter, C. 2019. Machine learning based prediction of insufficient herbage allowance with automated feeding behaviour and activity data. Sensors 19:4479. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3390/s19204479">https://doi.org/10.3390/s19204479</ext-link>
				</mixed-citation>
				<element-citation publication-type="journal">
					<person-group person-group-type="author">
						<name>
							<surname>Shafiullah</surname>
							<given-names>A. Z.</given-names>
						</name>
						<name>
							<surname>Werner</surname>
							<given-names>J.</given-names>
						</name>
						<name>
							<surname>Kennedy</surname>
							<given-names>E.</given-names>
						</name>
						<name>
							<surname>Leso</surname>
							<given-names>L.</given-names>
						</name>
						<name>
							<surname>O'Brien</surname>
							<given-names>B.</given-names>
						</name>
						<name>
							<surname>Umstätter</surname>
							<given-names>C.</given-names>
						</name>
					</person-group>
					<year>2019</year>
					<article-title>Machine learning based prediction of insufficient herbage allowance with automated feeding behaviour and activity data</article-title>
					<source>Sensors</source>
					<volume>19</volume>
					<size units="pages">4479</size>
					<comment>
						<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3390/s19204479">https://doi.org/10.3390/s19204479</ext-link>
					</comment>
				</element-citation>
			</ref>
			<ref id="B25">
				<mixed-citation>Simanungkalit, G.; Barwick, J.; Cowley, F.; Dobos, R. and Hegarty, R. 2021. A pilot study using accelerometers to characterise the licking behaviour of penned cattle at a mineral block supplement. Animals 11:1153. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3390/ani11041153">https://doi.org/10.3390/ani11041153</ext-link>
				</mixed-citation>
				<element-citation publication-type="journal">
					<person-group person-group-type="author">
						<name>
							<surname>Simanungkalit</surname>
							<given-names>G.</given-names>
						</name>
						<name>
							<surname>Barwick</surname>
							<given-names>J.</given-names>
						</name>
						<name>
							<surname>Cowley</surname>
							<given-names>F.</given-names>
						</name>
						<name>
							<surname>Dobos</surname>
							<given-names>R.</given-names>
						</name>
						<name>
							<surname>Hegarty</surname>
							<given-names>R.</given-names>
						</name>
					</person-group>
					<year>2021</year>
					<article-title>A pilot study using accelerometers to characterise the licking behaviour of penned cattle at a mineral block supplement</article-title>
					<source>Animals</source>
					<volume>11</volume>
					<size units="pages">1153</size>
					<comment>
						<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3390/ani11041153">https://doi.org/10.3390/ani11041153</ext-link>
					</comment>
				</element-citation>
			</ref>
			<ref id="B26">
				<mixed-citation>Teixeira, V. A.; Lana, A. M. Q.; Bresolin, T.; Tomich, T. R.; Souza, G. M.; Furlong, J.; Rodrigues, J. P. P.; Coelho, S. G.; Gonçalves, L. C.; Silveira, J. A. G.; Ferreira, L. D.; Facury Filho, E. J.; Campos, M. M.; Dorea, J. R. R. and Pereira, L. G. R. 2022. Using rumination and activity data for early detection of anaplasmosis disease in dairy heifer calves. Journal of Dairy Science 105:4421-4433. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3168/jds.2021-20952">https://doi.org/10.3168/jds.2021-20952</ext-link>
				</mixed-citation>
				<element-citation publication-type="journal">
					<person-group person-group-type="author">
						<name>
							<surname>Teixeira</surname>
							<given-names>V. A.</given-names>
						</name>
						<name>
							<surname>Lana</surname>
							<given-names>A. M. Q.</given-names>
						</name>
						<name>
							<surname>Bresolin</surname>
							<given-names>T.</given-names>
						</name>
						<name>
							<surname>Tomich</surname>
							<given-names>T. R.</given-names>
						</name>
						<name>
							<surname>Souza</surname>
							<given-names>G. M.</given-names>
						</name>
						<name>
							<surname>Furlong</surname>
							<given-names>J.</given-names>
						</name>
						<name>
							<surname>Rodrigues</surname>
							<given-names>J. P. P.</given-names>
						</name>
						<name>
							<surname>Coelho</surname>
							<given-names>S. G.</given-names>
						</name>
						<name>
							<surname>Gonçalves</surname>
							<given-names>L. C.</given-names>
						</name>
						<name>
							<surname>Silveira</surname>
							<given-names>J. A. G.</given-names>
						</name>
						<name>
							<surname>Ferreira</surname>
							<given-names>L. D.</given-names>
						</name>
						<name>
							<surname>Facury</surname>
							<given-names>E. J.</given-names>
							<suffix>Filho</suffix>
						</name>
						<name>
							<surname>Campos</surname>
							<given-names>M. M.</given-names>
						</name>
						<name>
							<surname>Dorea</surname>
							<given-names>J. R. R.</given-names>
						</name>
						<name>
							<surname>Pereira</surname>
							<given-names>L. G. R.</given-names>
						</name>
					</person-group>
					<year>2022</year>
					<article-title>Using rumination and activity data for early detection of anaplasmosis disease in dairy heifer calves</article-title>
					<source>Journal of Dairy Science</source>
					<volume>105</volume>
					<fpage>4421</fpage>
					<lpage>4433</lpage>
					<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3168/jds.2021-20952">https://doi.org/10.3168/jds.2021-20952</ext-link>
				</element-citation>
			</ref>
			<ref id="B27">
				<mixed-citation>Valletta, J. J.; Torney, C.; Kings, M.; Thornton, A. and Madden, J. 2017. Applications of machine learning in animal behaviour studies. Animal Behaviour 124:203-220. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.anbehav.2016.12.005">https://doi.org/10.1016/j.anbehav.2016.12.005</ext-link>
				</mixed-citation>
				<element-citation publication-type="journal">
					<person-group person-group-type="author">
						<name>
							<surname>Valletta</surname>
							<given-names>J. J.</given-names>
						</name>
						<name>
							<surname>Torney</surname>
							<given-names>C.</given-names>
						</name>
						<name>
							<surname>Kings</surname>
							<given-names>M.</given-names>
						</name>
						<name>
							<surname>Thornton</surname>
							<given-names>A.</given-names>
						</name>
						<name>
							<surname>Madden</surname>
							<given-names>J.</given-names>
						</name>
					</person-group>
					<year>2017</year>
					<article-title>Applications of machine learning in animal behaviour studies</article-title>
					<source>Animal Behaviour</source>
					<volume>124</volume>
					<fpage>203</fpage>
					<lpage>220</lpage>
					<comment>
						<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.anbehav.2016.12.005">https://doi.org/10.1016/j.anbehav.2016.12.005</ext-link>
					</comment>
				</element-citation>
			</ref>
			<ref id="B28">
				<mixed-citation>Wang, L.; Arablouei, R.; Alvarenga, F. A. P. and Bishop-Hurley, G. J. 2021. Animal behavior classification via accelerometry data and recurrent neural networks. arXiv:2111.12843. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.48550/arXiv.2111.12843">https://doi.org/10.48550/arXiv.2111.12843</ext-link>
				</mixed-citation>
				<element-citation publication-type="journal">
					<person-group person-group-type="author">
						<name>
							<surname>Wang</surname>
							<given-names>L.</given-names>
						</name>
						<name>
							<surname>Arablouei</surname>
							<given-names>R.</given-names>
						</name>
						<name>
							<surname>Alvarenga</surname>
							<given-names>F. A. P.</given-names>
						</name>
						<name>
							<surname>Bishop-Hurley</surname>
							<given-names>G. J.</given-names>
						</name>
					</person-group>
					<year>2021</year>
					<article-title>Animal behavior classification via accelerometry data and recurrent neural networks</article-title>
					<comment>arXiv:2111.12843</comment>
					<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.48550/arXiv.2111.12843">https://doi.org/10.48550/arXiv.2111.12843</ext-link>
				</element-citation>
			</ref>
			<ref id="B29">
				<mixed-citation>Wang, J.; Yu, Z.; Chebel, R. C. and Yu, H. 2025. Impact of cross-validation designs on cattle behavior prediction using machine learning and deep learning models with tri-axial accelerometer data. bioRxiv 2025.01.22.634181. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1101/2025.01.22.634181">https://doi.org/10.1101/2025.01.22.634181</ext-link>
				</mixed-citation>
				<element-citation publication-type="journal">
					<person-group person-group-type="author">
						<name>
							<surname>Wang</surname>
							<given-names>J.</given-names>
						</name>
						<name>
							<surname>Yu</surname>
							<given-names>Z.</given-names>
						</name>
						<name>
							<surname>Chebel</surname>
							<given-names>R. C.</given-names>
						</name>
						<name>
							<surname>Yu</surname>
							<given-names>H.</given-names>
						</name>
					</person-group>
					<year>2025</year>
					<article-title>Impact of cross-validation designs on cattle behavior prediction using machine learning and deep learning models with tri-axial accelerometer data</article-title>
					<source>bioRxiv</source>
					<comment>2025.01.22.634181</comment>
					<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1101/2025.01.22.634181">https://doi.org/10.1101/2025.01.22.634181</ext-link>
				</element-citation>
			</ref>
			<ref id="B30">
				<mixed-citation>Warner, D.; Vasseur, E.; Lefebvre, D. M. and Lacroix, R. 2020. A machine learning based decision aid for lameness in dairy herds using farm-based records. Computers and Electronics in Agriculture 169:105193. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.compag.2019.105193">https://doi.org/10.1016/j.compag.2019.105193</ext-link>
				</mixed-citation>
				<element-citation publication-type="journal">
					<person-group person-group-type="author">
						<name>
							<surname>Warner</surname>
							<given-names>D.</given-names>
						</name>
						<name>
							<surname>Vasseur</surname>
							<given-names>E.</given-names>
						</name>
						<name>
							<surname>Lefebvre</surname>
							<given-names>D. M.</given-names>
						</name>
						<name>
							<surname>Lacroix</surname>
							<given-names>R.</given-names>
						</name>
					</person-group>
					<year>2020</year>
					<article-title>A machine learning based decision aid for lameness in dairy herds using farm-based records</article-title>
					<source>Computers and Electronics in Agriculture</source>
					<volume>169</volume>
					<fpage>105193</fpage>
					<comment>
						<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1016/j.compag.2019.105193">https://doi.org/10.1016/j.compag.2019.105193</ext-link>
					</comment>
				</element-citation>
			</ref>
			<ref id="B31">
				<mixed-citation>Watanabe, R. N.; Bernardes, P. A.; Romanzini, E. P.; Braga, L. G.; Brito, T. R.; Teobaldo, R. W.; Reis, R. A. and Munari, D. P. 2021. Strategy to predict high and low frequency behaviors using triaxial accelerometers in grazing of beef cattle. Animals 11:3438. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3390/ani11123438">https://doi.org/10.3390/ani11123438</ext-link>
				</mixed-citation>
				<element-citation publication-type="journal">
					<person-group person-group-type="author">
						<name>
							<surname>Watanabe</surname>
							<given-names>R. N.</given-names>
						</name>
						<name>
							<surname>Bernardes</surname>
							<given-names>P. A.</given-names>
						</name>
						<name>
							<surname>Romanzini</surname>
							<given-names>E. P.</given-names>
						</name>
						<name>
							<surname>Braga</surname>
							<given-names>L. G.</given-names>
						</name>
						<name>
							<surname>Brito</surname>
							<given-names>T. R.</given-names>
						</name>
						<name>
							<surname>Teobaldo</surname>
							<given-names>R. W.</given-names>
						</name>
						<name>
							<surname>Reis</surname>
							<given-names>R. A.</given-names>
						</name>
						<name>
							<surname>Munari</surname>
							<given-names>D. P.</given-names>
						</name>
					</person-group>
					<year>2021</year>
					<article-title>Strategy to predict high and low frequency behaviors using triaxial accelerometers in grazing of beef cattle</article-title>
					<source>Animals</source>
					<volume>11</volume>
					<size units="pages">3438</size>
					<comment>
						<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.3390/ani11123438">https://doi.org/10.3390/ani11123438</ext-link>
					</comment>
				</element-citation>
			</ref>
			<ref id="B32">
				<mixed-citation>Yigit, T.; Han, F.; Rankins, E.; Yi, J.; McKeever, K. H. and Malinowski, K. 2022. Wearable inertial sensor-based limb lameness detection and pose estimation for horses. IEEE Transactions on Automation Science and Engineering 19:1365-1379. <ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/TASE.2022.3157793">https://doi.org/10.1109/TASE.2022.3157793</ext-link>
				</mixed-citation>
				<element-citation publication-type="journal">
					<person-group person-group-type="author">
						<name>
							<surname>Yigit</surname>
							<given-names>T.</given-names>
						</name>
						<name>
							<surname>Han</surname>
							<given-names>F.</given-names>
						</name>
						<name>
							<surname>Rankins</surname>
							<given-names>E.</given-names>
						</name>
						<name>
							<surname>Yi</surname>
							<given-names>J.</given-names>
						</name>
						<name>
							<surname>McKeever</surname>
							<given-names>K. H.</given-names>
						</name>
						<name>
							<surname>Malinowski</surname>
							<given-names>K.</given-names>
						</name>
					</person-group>
					<year>2022</year>
					<article-title>Wearable inertial sensor-based limb lameness detection and pose estimation for horses</article-title>
					<source>IEEE Transactions on Automation Science and Engineering</source>
					<volume>19</volume>
					<fpage>1365</fpage>
					<lpage>1379</lpage>
					<comment>
						<ext-link ext-link-type="uri" xlink:href="https://doi.org/10.1109/TASE.2022.3157793">https://doi.org/10.1109/TASE.2022.3157793</ext-link>
					</comment>
				</element-citation>
			</ref>
		</ref-list>
		<fn-group>
			<fn fn-type="data-availability" specific-use="data-available-upon-request">
				<label>Data availability:</label>
				<p> The data used in the preparation of this manuscript is not available in public repositories. But it can be provided upon request by email.</p>
			</fn>
			<fn fn-type="other">
				<label>Declaration of generative AI in scientific writing:</label>
				<p> The authors declare that they use generative AI tools to assist in textual transcription, accompanied by human review.</p>
			</fn>
			<fn fn-type="supported-by">
				<label>Financial support:</label>
				<p> Financial support was provided by FAPEMIG.</p>
			</fn>
		</fn-group>
	</back>
</article>