Agro Intelligence Research Press Agro Intelligence Research Press

Evaluating Accelerometer Placement and Sampling Intervals for Predicting Young Bull Behaviors in Feedlots

Original Research | Open access | Published: 15 September 2024
Volume 3, article number 102, (2024) Cite this article
You have full access to this open access article.
Download PDF
, , , ,
  1. Department of Accelerometer-Based Behavior Prediction, Faculty of Agriculture, Indian Agricultural Research Institute, New Delhi, India
  2. Department of Sensor Placement for Animal Behavior, Faculty of Agriculture, IIT Bombay, Mumbai, India
  3. Department of Sampling Interval Optimization for Feedlot Monitoring, Faculty of Agriculture, Savitribai Phule Pune University, Pune, India
  4. Department of Young Bull Behavior Classification, Faculty of Agriculture, IIT Kharagpur, Kharagpur, India
114 Accesses

Abstract

The surveillance of animal behavior is a vital tool in animal production systems. This approach to monitoring behavior can serve as an indicator of animal welfare and health status, potentially translating into superior productive outcomes. The present investigation was designed to determine the optimal accelerometer placement (on the halter compared to a neck collar) and data transmission sampling periods (from 6 up to 600 seconds) for the forecasting of behavioral repertoires, which included frequencies of water and feed consumption along with additional activities, in young beef cattle bulls under feedlot conditions. To meet the study’s goals, a suite of machine learning classifiers was implemented, including random forests, support vector machines, multilayer perceptrons, and naive Bayes. Every model examined achieved high classification performance (above 0.90) regardless of placement site, except those trained with the naive Bayes classifier. Accordingly, integrating accelerometers into collars represents a more feasible solution for on-animal use, given the relative ease of application compared with halter mounting. The adoption of a larger dataset (i.e., shorter sampling windows) did not substantially improve the performance of the fitted models. Consequently, operating with datasets of reduced observational density is more beneficial, as it can reduce both the computational load and time investment required for model fitting while simultaneously extending the device’s battery longevity.

Explore related subjects
Discover the latest articles in related subjects:

Introduction

The Brazilian beef cattle production chain constitutes a major force within the international agribusiness landscape. Based on ABIEC figures [1], 42.31 million heads were slaughtered in 2022, with 18.02% processed within feedlot operations. The primary hallmark of early Brazilian feedlots was their confinement of animals throughout the dry period. During this window, both the availability and the nutritional quality of forage for these ruminants decline. Stated differently, feedlots function as a critical pasture stewardship tactic during this season. Lately, however, this practice within the beef cattle industry has gained growing traction, with numerous enterprises running feedlots continuously across both rainy and dry periods.

Tracking animal behavior is fundamental to improving efficiency in the livestock industry. Observational assessments of cattle yield profound insights into their overall welfare, health status, and comfort, enabling timely action to prevent emerging problems and enhance output. The behavioral patterns of an animal, when monitored on an individual and ongoing basis, can reflect its well-being and physiological condition [2]. Yet, in a large proportion of these works, behavioral evaluations were conducted through direct human observation or camera-based monitoring, rendering data acquisition arduous due to labor requirements and the difficulty of securing unobstructed imagery within a communal pen where feeding typically occurs. As a result, deploying sensors capable of automated measurement of animal activities offers strong potential to streamline the gathering of such data.

Investigations employing accelerometers to appraise behavioral expression in beef cattle, dairy cattle, sheep, and pigs [3-6] are present in the published literature. The investigators stressed the demand for continued research and refined algorithmic tuning to realize improved behavioral classification. Using identical sensor hardware to that used in the current work, Watanabe et al. [7] examined strategies for inferring cattle behavior using accelerometers secured to halters, with a particular emphasis on less prevalent behaviors, such as drinking events. The team identified that the most effective approach for discriminating low-frequency behaviors involved employing the random forest algorithm combined with upsampling methods applied to the training partition.

The deployment of sensors for behavioral forecasting in animals has proven its ability to ease and support the collection of critical data on the subjects under study. Neethirajan [8] observed that cutting-edge technologies spanning computers, sensors, cloud architectures, machine learning (ML), and artificial intelligence (AI) open pathways for exploring the operational principles of intricate entities, such as biological systems. In the authors’ view, sensor-derived data (whether animal-borne or environmental) together with ML can facilitate the recognition of animal diseases at an earlier stage than conventional diagnostics permit. Furthermore, the authors asserted that the combination of these sensing technologies, large-scale data streams, and ML algorithms holds meaningful economic advantages over historically employed detection methodologies.

The application of accelerometers and machine learning frameworks extends well beyond domestic species. Significant deployments documented in the research sphere include the behavioral classification of avian species [9], feral swine [10], foxes [11], and rabbits [12]. In a 2023 review of sensor-based machine learning for animal surveillance, 60.7% of the analyzed studies employed accelerometers across a variety of tasks; however, the reviewers cautioned that investigations harnessing these techniques remain largely exploratory and have yet to reach maturity [13].

The use of wearable devices such as neckbands [14], head halters [7], and ear-borne tags [15] for behavioral inference is a widely cited methodology across the scientific literature. However, relatively few inquiries have directly compared different accelerometer fixation sites or sampling intervals in livestock. An additional pivotal consideration is that ingestive behaviors (namely, feeding and drinking) can be modulated by the shift from grazing to confinement conditions during the adaptation phase, leading animals to spend less time at the feed bunk [16, 17]. Bovines that spend less time at the bunk may exhibit compromised feed conversion efficiency, thereby adversely affecting both output and economic return [18]. Beyond this, the surveillance of drinking and feeding patterns can support the early identification of pathological conditions [6].

Thus, the central purpose of this investigation was to identify the most efficacious accelerometer fixation point (either halter or neck collar) and to assess a spectrum of data transmission intervals (extending from 6 to 600 seconds) for classifying behavioral constellations, encompassing water and feed intake incidence alongside other activities, in young beef cattle bulls within a feedlot environment during the finishing phase. In pursuit of this objective, we deployed a collection of machine learning algorithms, specifically the random forest, support vector machine, multilayer perceptron, and naive Bayes classifier algorithms.

Materials and Methods

The experimental work took place within the Forage Crops and Grasslands department of São Paulo State University (Unesp), located in Jaboticabal, São Paulo, Brazil. All procedures adhered to the directives established by the National Council for Animal Experiment Control, having secured authorization from the Ethics Committee for the Use of Animals (CEUA) of Universidade Estadual Paulista (protocol code #007979/18, clearance granted on 14 January 2018).

Three-axis accelerometers

The measurement instruments deployed throughout this trial consisted of three-axis microelectromechanical system (MEMS) accelerometers (model LIS2DE12; ST Microeletronics®), which constitute commercially marketed products supplied by the Ovi-bovi® Company (80 g, 105 mm × 60 mm × 22 mm) (Figure 1). Their function was to log displacement across three orthogonal axes (X [horizontal plane – lateral motion], Y [longitudinal plane – anterior-posterior motion] and Z [vertical plane – dorsal-ventral motion]). Data logging was configured across a range of temporal resolutions, referenced against real-time behavioral expressions, with the shortest achievable window of 6 s (equivalent to roughly 0.167 Hz) dictated by the manufacturer-delivered unit’s hardware restrictions. Information transfer via a wireless communication protocol (433-MHz band) to a dedicated server maintained by the provider (Ovi-bovi®). Following extraction, the unprocessed data were transformed from a decimal numerical representation to units of gravitational acceleration (ɡ = 9.81 m.s−2) and subsequently archived for analytical purposes in the present study.

Figure 1. Ovi-bovi® tag with an accelerometer inside the shell.

Figure 1. Ovi-bovi® tag with an accelerometer inside the shell.

Time intervals and accelerometer attachment positions

Operation of the feedlot facility spanned four sequential phases (1: acclimation [coinciding with instrumentation fitting on the initial cohort of 12 Nelore bulls] – 27 May through 10 June 2020; 2: primary data acquisition phase – 11 June through 8 July 2020; 3: secondary acclimation phase [coinciding with instrumentation fitting on an additional 12 Nelore bulls integrated into the experimental cohort] – 9 through 16 July 2020; and 4: secondary data acquisition phase – 17 July through 14 August 2020). This staggered scheduling framework was instituted to permit field testing and recalibration of the accelerometer units mounted on the subjects. Five discrete temporal aggregation windows (6, 36, 60, 300, and 600 s) were evaluated, and multiple machine learning methodologies were applied to discriminate among three mutually exclusive behavioral categories.

A pair of contrasting accelerometer fixation configurations was investigated: Configuration A—affixed to a halter situated beneath the mandible (Figure 2a) of each juvenile bull (mirroring the anatomical placement utilized in the work of Watanabe et al.)—and Configuration B—affixed to a neck collar encircling the cervical region of each subject (Figure 2b; mirroring the anatomical placement selected by Vázquez Diosdado et al. [19]), to register whole-body motion signals. The monitored cohort comprised 12 juvenile bulls, evenly split between the two configurations (six with halters and six with collars), with one instrumented subject per communal enclosure. Housing arrangements consisted of 12 communal enclosures, each covering 48 m² (6 × 8 m) and outfitted with partial overhead shelter, shared feed barriers, and a shared drinking station. Each instrumented subject cohabited with two non-experimental companion animals, resulting in a group size of three heads per enclosure.

Figure 2. Accelerometer attachment positions: on a halter under the jaw (a - left figure) and on a collar positioned on the neck (b – right figure).

Figure 2. Accelerometer attachment positions: on a halter under the jaw (a - left figure) and on a collar positioned on the neck (b – right figure).

The reference standard for behavioral expression, termed the gold standard [20], was established by analyzing video recordings from a four-camera array (Xtrax® Smart2). Across the trial, 24 cumulative hours of audiovisual documentation were generated, restricted to the daytime window spanning 06:00 am to 06:00 pm, in alignment with the protocol of Barbero et al. [21], and distributed over four non-consecutive dates (23–25 June and 29–31 July 2020). From this visual record, behavioral states were annotated at a fixed one-minute sampling rate, consistent with the approach described by Martín and Bateson [22]. The ethogram comprised three discrete behavioral classifications: feed ingestion, water ingestion, and miscellaneous activities (encompassing rumination, recumbency, and stationary standing).

Feature engineering

The complete feature engineering workflow was implemented within the R programming environment (R [23]). Initial processing involved filtering the raw accelerometer output to retain only those diurnal periods and specific timestamps for which behavioral annotations existed. Given that the accelerometer records were structured at a 6-second temporal granularity. In contrast, the behavioral observations were captured at a 60-second granularity; each behavioral label was propagated across the ten consecutive accelerometer readings falling within the corresponding one-minute bin, matched by date and subject identity.

From this harmonized dataset—initially composed of 6-second interval records paired with their respective behavioral designations—four derivative datasets featuring progressively coarser temporal resolutions (36, 60, 300, and 600 s) were subsequently constructed. The data processing script computed an auxiliary variable, designated ʻintervalʼ, that encodes the cumulative count of 6-second increments elapsed since the origin of the recording session. Exploiting this ʻintervalʼ variable permitted the aggregation of sequential observations into broader temporal groupings. For the 36-second resolution, clusters of six successive 6-second intervals were merged. Extending this logic, the 60-second resolution was achieved by merging ten successive 6-second intervals. This same consolidation procedure was iteratively applied to generate the datasets at 300- and 600-second resolutions. When collapsing observations into these expanded windows, the arithmetic means of the triaxial readings (X, Y, Z) and the statistical modes of the behavioral states were computed for each aggregation block. The resultant structured data were subsequently partitioned into 10 subsets, stratified by the five temporal window lengths and the two accelerometer mounting configurations.

Within the finalized data structure, the subsets associated with the halter-mounted configuration at temporal windows of 6, 36, 60, 300, and 600 s contained, respectively, 180,585; 34,483; 21,257; 4,349; and 2,189 individual observation records. Analogously, the subsets associated with the collar-mounted configuration at the same five temporal windows contained, respectively, 156,543; 32,681; 20,599; 4,334; and 2,189 individual observation records.

Features and target variable

A suite of derivative predictor attributes was engineered from the gravitational-unit-converted triaxial signals (denoted xg, yg, and zg), following the computational framework established by Alvarenga et al. [24]. The set of constructed attributes comprised the signal magnitude area (SMA), signal vector magnitude (SVM), movement variability index (mov.var), energy, entropy, pitch angle, roll angle, resultant inclination angle ((1), (2), (3), (4), (5), (6), (7), (8)), alongside calendar day and pen identifier (the latter serving to cluster observations according to the specific enclosure assignment of each subject). Conceptually, the SMA metric captures the total area circumscribed beneath the accelerometer waveform, representing the aggregate energetic content of the signal epoch. The SVM metric corresponds to the Euclidean norm of the resultant acceleration vector synthesized from the three orthogonal axes, thereby quantifying the instantaneous intensity of the recorded motion. The mov.var metric characterizes the temporal consistency—or conversely, the degree of fluctuation—inherent in a given movement sequence. The energy attribute provides a scalar summary of the total energy output present in the accelerometer trace. Entropy operates as an index of the stochastic complexity or irregularity present in the signal structure. The pitch parameter defines the angular deviation of the device with reference to the transverse x-axis; the roll parameter defines its angular deviation with reference to the longitudinal y-axis; and the inclination parameter defines the composite angular offset of the device relative to the gravitational vertical, integrating contributions from all three Cartesian axes. The designated response variable was behavior, operationalized as a three-level categorical factor: drinking, eating, and other activities.

(1)

(2)

(3)

(4)

(5)

(6)

(7)

(8)

Where X, Y, and Z correspond to the output channels of the triaxial accelerometer assembly, and the subscripts i and i+1 index temporally adjacent sampling points. Beyond the accelerometer-derived predictor set, both the communal pen assignment variable and the calendar day variable were retained as inputs across all model specifications constructed within this study.

Machine learning algorithms and performance metrics

The complete suite of machine learning analyses, covering model construction, performance evaluation metrics, and exploratory data analysis, was executed in Python [25] using the scikit-learn [26] and pandas [27] libraries. The collection of ML techniques deployed in this investigation included a random forest [28], a naive Bayes classifier [29], a support vector machine [30], and a multilayer perceptron [31]. A random forest is a meta-learning algorithm that grows multiple decision trees on distinct bootstrap samples drawn from the original dataset and averages across the ensemble to deliver enhanced predictive accuracy while simultaneously guarding against excessive model overfitting. The naive Bayes classifier embodies a probabilistic approach rooted in Bayes’ theorem, assuming that each pair of predictor variables is conditionally independent given the target class label and that the conditional likelihoods of the predictors follow Gaussian distributions. A support vector machine operates by constructing an arrangement of separating hyperplanes within a feature space that may be of high or even unbounded dimensionality and, in the present application, is directed toward the task of multiclass classification. A multilayer perceptron is a neural network architecture composed of layers of fully connected computational units with nonlinear activation functions, with parameter estimation performed via the backpropagation learning algorithm [32]. All models were fitted using the default hyperparameter settings.

The evaluation benchmarks used to assess the effectiveness of the fitted classifiers comprised accuracy (ACC), recall (REC), precision (PREC), and F1 score (F1S), each computed separately for each behavioral category. To counteract the challenges posed by uneven class distributions, the weighted mean—where the contribution of each class is proportional to its relative representation within the dataset—was adopted for all metrics except accuracy (Eqs. 9-12).

 (9)

(10)

(11)

(12)

Where TP signifies a true positive (the model correctly identifies an observation as belonging to a given behavioral class), TN signifies a true negative (the model correctly determines that an observation does not belong to a given behavioral class), FP signifies a false positive (the model mistakenly labels an observation as belonging to a given behavioral class when it does not), and FN signifies a false negative (the model mistakenly labels an observation as not belonging to a given behavioral class when it actually does).

As a safeguard against overfitting, the stratified K-fold resampling procedure was applied with 5 folds, and the average across folds was reported for each performance metric. As a complement to the previously described metrics, permutation-based feature importance was also assessed. This method offers a window into the degree to which a model’s predictive accuracy is compromised when the recorded values of a specific predictor are randomly shuffled. At the same time, the remaining predictors are kept intact.

Dedicated transformation workflows were assembled for numeric and categorical variables. For the categorical variables, one-hot encoding was employed, which converts each categorical attribute into a binary indicator matrix. The numeric variables, meanwhile, underwent Z-score normalization, in which each distribution was centered at a mean of zero and scaled to a standard deviation of one. These preparatory transformations were essential to ensure the uninterrupted progression of data through the pipeline toward successful model training.

Results and Discussion

When examining the entire range of temporal resolutions investigated in this study, behaviors classified under the “other activities” heading were consistently the most frequently occurring among all three categories, with eating ranking second and drinking ranking last, a trend observable for subjects instrumented with both halters and collars alike (Figure 3). Datasets originating from the halter-mounted configuration contained a greater volume of observations across every temporal window when set against those generated from the collar-mounted configuration. Markedly large standard deviation values were recorded for the pitch, roll, and inclination attributes in comparison with the dispersion exhibited by the remaining variables across all constructed datasets.

Figure 3. The behavior frequencies measured by the accelerometer at 6, 36, 60, 300, and 600 s.

Figure 3. The behavior frequencies measured by the accelerometer at 6, 36, 60, 300, and 600 s.

The performance metrics computed on the held-out test partition were examined to determine whether the trained models could extend their predictive capacity to previously unseen data (Figure 4). Among the competing algorithms, the naive Bayes classifier (NBC) registered the poorest overall metrics, achieving parity with the other modeling approaches only when precision was evaluated for subjects whose accelerometers were fitted to halters. This outcome was followed, in rank order, by the precision scores achieved for collar-instrumented subjects. Within that same algorithmic framework, the recall and F1 score metrics for the halter-equipped cohort were the lowest. Under these specific conditions, the dataset with the fewest observational records (the 600-second window) produced the strongest outcomes. The recall metric for collar-instrumented subjects was marginally higher in scenarios using denser observational datasets (specifically, the 6- and 36-second configurations). No meaningful discrepancies were detected when contrasting the various temporal resolutions within the NBC framework across the remaining assessment scenarios.

Figure 4. Comparison among the test metrics produced by the RF, naive Bayes classifier, multilayer perceptron, and support vector machine models on the 6-, 36-, 60-, 300-, and 600-s datasets.

Figure 4. Comparison among the test metrics produced by the RF, naive Bayes classifier, multilayer perceptron, and support vector machine models on the 6-, 36-, 60-, 300-, and 600-s datasets.

Furthermore, negligible performance differences were observed when comparing the random forest (RF), multilayer perceptron (MLP), and support vector machine (SVM) formulations. Marginally higher values for precision, recall, and F1 score emerged when the dataset with the fewest observational records (the 600-second configuration) was used for model construction.

The “pen” variable stood out as the single most influential predictor across all trained model specifications, with its impact being especially pronounced for subjects wearing collars, the solitary exception being the NBC formulation trained on the sparsest dataset (600-second configuration). The “day” variable consistently occupied the position of second-most-influential predictor. The NBC-based model specifications appeared to capitalize the least on the information contained in the predictor variables, a conclusion supported by the observation that these models exhibited the greatest frequency of negative feature importance estimates (Figures 5-7). The MLP-based model specifications demonstrated elevated permutation importance values for the variables under study within the data streams captured from collar-wearing subjects. The modeling frameworks assessed, particularly those constructed using the RF and NB algorithms, did not appear to extract meaningful utility from inclination, roll, pitch, entropy, energy, and mov.var, SVM, SMA, zg, yg, and xg variables, instead registering either low or negative permutation importance estimates for these attributes.

Figure 5. Feature importance levels observed for the datasets with 6- and 36-s time intervals for animals wearing collars and halters.

Figure 5. Feature importance levels observed for the datasets with 6- and 36-s time intervals for animals wearing collars and halters.

Figure 6. Feature importance levels observed for the datasets with 60- and 300-s time intervals for animals wearing collars and halters.

Figure 6. Feature importance levels observed for the datasets with 60- and 300-s time intervals for animals wearing collars and halters.

Figure 7. Feature importance levels observed for the dataset with 600-s time intervals for animals wearing collars and halters.

Figure 7. Feature importance levels observed for the dataset with 600-s time intervals for animals wearing collars and halters.

Taken as a whole, the models trained on datasets in which subjects wore accelerometers secured to collars yielded higher permutation importance magnitudes than those derived from subjects instrumented with halters. However, certain notable exceptions were observed, including models built using the NBC algorithm. The MLP algorithm consistently returned higher importance scores for the full set of predictor variables employed—spanning both the day and pen identifiers and the attributes engineered from the accelerometer signals—relative to the other algorithms applied to each dataset.

A side-by-side assessment of the four distinct model types across the range of experimental conditions explored in this investigation revealed that the NBC variant consistently performed at the lower end of the spectrum. A parallel pattern emerges from a study centered on bovine behavior classification that likewise pitted three separate modeling strategies against one another while also examining two alternative sensor placement sites [33]. When juxtaposed with other machine learning paradigms, the NBC framework is encumbered by several well-documented shortcomings, principal among them the foundational assumption that all input features are mutually independent [34] and complications surrounding the selection of relevant attributes [35]. In the specific context of linking behavioral outputs to accelerometer-derived inputs, the NBC formulation lacked the capacity to unravel the nuanced, multifaceted associations bridging the engineered predictors and the outcome variable—a limitation that is further corroborated by the low or even negative permutation-based importance scores this model generated, revealing its fundamental inadequacy in capitalizing on the information furnished by the available variables.

Turning to the remaining three modeling approaches—the RF, the MLP, and the SVM—these yielded broadly comparable performance across all tested scenarios, with only slight upward shifts detectable when the data originated from halter-fitted subjects and were aggregated into 600-second transmission windows. A noteworthy practical distinction, however, lay in the substantially heavier computational footprint demanded by both the MLP and SVM algorithms during training. This burden became especially pronounced when these methods were applied to larger datasets. The multilayer perceptron, by its very design, calls for either deep convolutional stacks or densely interconnected hidden layers [36], and its learning procedure entails the iterative estimation and refinement of synaptic weights and bias parameters for each processing unit [37], thereby inevitably inflating the associated computational cost. A comparable phenomenon characterizes the SVM algorithm, a fact traceable to the nature of the underlying constrained optimization problem [38] as well as to the demands imposed by spatial complexity [39]. In light of these considerations, the RF framework stands out as the more judicious choice for behavioral prediction using machine learning techniques.

The RF algorithm offers the advantage of comparatively modest training times relative to competing approaches, a benefit stemming from its capacity to accommodate sizable datasets without the need for exhaustive preprocessing or handling of data gaps [40]. Furthermore, this method demonstrates considerable robustness to anomalous data points, thereby reducing the need for rigorous data sanitization and preliminary transformation steps [41]. Taken together, these properties position the random forest as a highly capable algorithmic option for forecasting animal behavior. Using the same hardware platform as in the present research, Romanzini et al. [4] reported that the RF formulation outperformed alternative machine learning classifiers.

The modest incremental benefit observed when shifting to the dataset of lower information density (corresponding to more extended aggregation windows), together with the near-negligible differences detected when richer datasets were substituted, speaks to the capacity of the fitted models to operate with considerable effectiveness even when furnished with a comparatively sparse set of training observations. In the view of Feldman et al. [42], amassing ever-larger data corpora does not reliably produce proportional gains in the metrics returned by machine learning systems. The sheer magnitude of input data constitutes only one facet of data characterization; dimensions such as pertinence and fidelity must be accorded equal weight in the assessment.

Although the scholarly literature has emphasized that the anatomical location at which an accelerometer is secured on an animal can exert an influence on the behavioral signal, potentially introducing variability into the captured acceleration waveform [43] and thereby giving rise to systematic measurement distortions [44], the present investigation failed to detect any pronounced divergence in performance metrics among the evaluated model configurations, with the sole exclusion being the NBC. An analogous outcome was observed in a study that systematically compared the effects of three distinct accelerometer fixation points on behavioral categorization accuracy in animals [45]. The application of collar-based sensor systems to livestock with less tractable dispositions constitutes a demonstrably more pragmatic alternative to fitting head halters, and the evidence generated here confirms that collar-mounted deployments can function effectively as a substitute for conventional halter-based arrangements. In addition, although the angular orientation of an accelerometer is susceptible to drift induced by head motion, collar-borne sensors can deliver reliable performance when the task is estimating behavioral state sequences [46].

Shifting attention to the relative contribution made by each predictor within the model construction pipeline, the enclosure identifier emerged as the most consequential variable across the majority of model formulations. The experimental subjects in this trial were housed in group pens, shared with other animals. Bovines maintained under conditions of social separation may exhibit behavioral profiles that differ in meaningful respects from those documented in socially housed conspecifics [47]. Parham et al. [48] have noted that the number of animals accommodated per enclosure can drive behavioral divergence, influencing activities such as ingestion, rumination, and periods of recumbency. In addition to the enclosure variable, the date identifier also exerted a non-trivial influence on the predictive power of the trained models. Research on the activity rhythms of calves managed in intensive production systems has demonstrated that the day factor can shape cattle’s behavioral patterns [49].

When compared with data from the halter-equipped cohort, elevated feature importance magnitudes were evident across virtually all model specifications trained on datasets from animals with sensors attached via collars. The constructed models achieved high classification metrics, indicating that these algorithmic frameworks successfully mined the selected predictor set to achieve accurate predictions [50]. This empirical observation also suggests that integrating accelerometers with collar-based fixation systems may be preferable to halter-based fixation systems.

In marked distinction to the enclosure and date variables, the features computationally derived from the accelerometer signal streams—those intended to capture dimensions of body motion and postural orientation—yielded the most diminished importance scores across the full range of datasets on which the various model formulations were trained. The independence postulate, which underpins the NBC-based model variants, effectively prevented these formulations from capturing the intricate web of relationships linking motion and orientation data to the animals’ expressed behaviors. All of these derived attributes were jointly engineered from the triaxial accelerometer outputs along the x, y, and z axes, resulting in substantial intercorrelations across the entire set of motion and orientation features. It is these pronounced interdependencies that most plausibly account for the meager importance estimates returned by the RF-based model formulations [51]. Because the importance metric was operationalized through the random permutation of a single predictor’s values while all remaining predictors were left undisturbed, the shuffling of any one accelerometer-derived variable failed to produce a detectable effect on this metric, given that the remaining, unaltered accelerometer-based features continued to supply a portion of the informational signal originally conveyed by the displaced variable.

In circumstances where these motion and orientation attributes prove inadequate for reliably disentangling patterns that are uniquely diagnostic of behavior, model formulations relying on MLP and SVM architectures may instead assign greater weight to the enclosure and date variables, which are better positioned to deliver representations that are simultaneously more transparent and more succinct regarding the constellation of factors capable of modulating behavioral expression in animals. The degree of sophistication built into the chosen network topology of an MLP formulation plays a pivotal role in determining its capacity to recover the subtle dependencies that exist among the predictor variables. Should an MLP topology prove insufficiently elaborate, it may struggle to faithfully represent the structure of the underlying data. This predicament becomes especially acute when operating in high-dimensional, highly nonlinear feature spaces [52]. The emergence of low feature importance estimates in the relevant instances in the current study may be traced to the reliance on default hyperparameter configurations in constructing the MLP-based model formulations. This consideration is equally applicable to the model formulations built around the SVM algorithm, using its default hyperparameter settings.

Conclusion

The full complement of model formulations explored in this investigation achieved elevated classification performance, except for those assembled using the naive Bayes classifier. It follows, therefore, that the deployment of accelerometers integrated into collar-based platforms constitutes a more operationally feasible and logistically practical approach than the continued reliance on halter-based mounting, particularly given the comparative simplicity of animal management afforded by the former. Expanding the dataset to achieve a higher density of observational records—by using shorter temporal aggregation windows—failed to yield meaningful gains in the predictive accuracy of the trained models. Hence, adopting datasets composed of a more modest number of observational records is the more strategically advantageous path, as it can facilitate reductions in both computational overhead and the temporal investment required for model training, while concurrently prolonging the functional battery life of the sensing apparatus.

Acknowledgements

The authors thank the members of UnespFor (Unesp Jaboticabal-SP Forage Team) for their contributions during the field trial setup process and Dr. Walter Maldonado Júnior for his technical support during the initial phase of the experiment.

Conflict of interest

None

Financial support

This work was supported by the São Paulo State Research Foundation (FAPESP, process numbers 2015/16631-5, 2017/18750-7 and 2018/20753-7). Rafael Watanabe received a postdoctoral scholarship from the National Council for Scientific and Technological Development (CNPq, process number 151885/2022-2). Matheus Silva received a master’s scholarship from the Brazilian Federal Coordination of Higher Education (CAPES, grant number 001). Julia Rodrigues received a master’s scholarship from FAPESP and CNPq (process numbers 2022/13986-0 and 130045/2022-5). Guilherme do Val received a doctoral scholarship from CAPES/PROEX (88887.374091/2019-00).

Ethics statement

The study was conducted in accordance with the guidelines of the National Council for Animal Experiment Control and approved by the Ethics Committee for the Use of Animals (CEUA) of Universidade Estadual Paulista (protocol code #007979/18, approved on 14 January 2018).

References

ABIEC. Perfil da pecuária no Brasil – Beef Report 2023 [Internet]. 2023 [cited 2024 Apr]. Available from: https://www.abiec.com.br/publicacoes/beef-report-2023/
Barwick J, Lamb DW, Dobos R, Welch M, Trotter M. Categorising sheep activity using a tri-axial accelerometer. Comput Electron Agric. 2018;145:289-97.
Rayas-Amor AA, Morales-Almaráz E, Licona-Velázquez G, Vieyra-Alberto R, García-Martínez A, Martínez-García CG, et al. Triaxial accelerometers for recording grazing and ruminating time in dairy cows: An alternative to visual observations. J Vet Behav. 2017;20:102-8.
Romanzini EP, Watanabe RN, Fonseca NVB. Modern livestock farming under tropical conditions using sensors in grazing systems. Sci Rep. 2022;12:2654.
Watanabe N, Sakanoue S, Kawamura K, Kozakai T. Development of an automatic classification system for eating, ruminating and resting behavior of cattle using an accelerometer. Grassl Sci. 2008;54(4):231-7.
Wolfger B, Timsit E, White BJ, Orsel K. A systematic review of bovine respiratory disease diagnosis focused on diagnostic confirmation, early detection, and prediction of unfavorable outcomes in feedlot cattle. Vet Clin Food Anim Pract. 2015;31(3):351-65.
Watanabe RN, Bernardes PA, Romanzini EP, Braga LG, Brito TR, Teobaldo RW, et al. Strategy to predict high and low frequency behaviors using triaxial accelerometers in grazing of beef cattle. Animals (Basel). 2021;11(12):3438.
Neethirajan S. The role of sensors, big data and machine learning in modern animal farming. Sens Bio-Sens Res. 2020;29:100367.
Yu H, Deng J, Nathan R, Kröschel M, Pekarsky S, Li G, et al. An evaluation of machine learning classifiers for next-generation, continuous-ethogram smart trackers. Mov Ecol. 2021;9:1-14.
Dentinger JE, Börger L, Holton MD, Jafari-Marandi R, Norman DA, Smith BK, et al. A probabilistic framework for behavioral identification from animal-borne accelerometers. Ecol Modell. 2022;464:109818.
Rast W, Kimmig SE, Giese L, Berger A. Machine learning goes wild: Using data from captive individuals to infer wildlife behaviours. PLoS One. 2020;15(5):e0227317.
Mora M, Riaboff L, David I, Sanchez JP, Piles M. Classifying active and inactive states of growing rabbits from accelerometer data using machine learning algorithms. J Anim Sci. 2024.
https://doi.org/10.48550/arXiv.2407.04729
Aguilar-Lazcano CA, Espinosa-Curiel IE, Ríos-Martínez JA, Madera-Ramírez FA, Pérez-Espinosa H. Machine learning-based sensor data fusion for animal monitoring: scoping review. Sensors (Basel). 2023;23(12):5732.
Tran D-N, Nguyen TN, Khanh PCP, Tran D-T. An IoT-based design using accelerometers in animal behavior recognition systems. IEEE Sens J. 2022;22(18):17515-28.
Arablouei R, Wang L, Currie L, Yates J, Alvarenga FAP, Bishop-Hurley GJ. Animal behavior classification via deep learning on embedded systems. Comput Electron Agric. 2023;207:107707.
Rice M, Jongman EC, Borg S, Butler KL, Hemsworth PH. Characterisation of shy-feeding and feeding lambs in the first week in a feedlot. Appl Anim Behav Sci. 2016;179:39-45.
Rice M, Jongman EC, Butler KL, Hemsworth PH. Relationships between temperament, feeding behaviour, social interactions, and stress in lambs adapting to a feedlot environment. Appl Anim Behav Sci. 2016;183:42-50.
Llonch P, Somarriba M, Duthie CA, Troy S, Roehe R, Rooke J, et al. Temperament and dominance relate to feeding behaviour and activity in beef cattle: implications for performance and methane emissions. Animal. 2018;12(12):2639-48.
Vázquez Diosdado JA, Barker ZO, Hodges HR, Amory JR, Croft DP, Bell NJ, et al. Classification of behaviour in housed dairy cows using an accelerometer-based activity monitoring system. Anim Biotelemetry. 2015;3:e15.
Poulopoulou I, Lambertz C, Gauly M. Are automated sensors a reliable tool to estimate behavioural activities in grazing beef cattle? Appl Anim Behav. 2019;216:1-5.
Barbero RP, Malheiros EB, Aguilar NM, Romanzini EP, Ferrari AC, Nave RLG, et al. Supplementation level increasing dry matter intake of beef cattle grazing low herbage height. J Appl Anim Res. 2020;48:28-33.
Martín P, Bateson P. Measuring behaviour: An introductory guide. 3rd ed. Cambridge: Cambridge University Press; 2007.
R Core Team. R: A language and environment for statistical computing [Internet]. Vienna: R Foundation for Statistical Computing; 2022. Available from: https://www.R-project.org/
Alvarenga FAP, Borges I, Palkovič L, Rodina J, Oddy VH, Dobos RC. Using a three-axis accelerometer to identify and classify sheep behavior at pasture. Appl Anim Behav. 2016;181:91-9.
Python Software Foundation. Python: A dynamic, open-source programming language [Internet]. 2022. Available from: https://www.python.org/
Pedregosa F, Varoquaux G, Gramfort A, Michel V, Thirion B, Grisel O, et al. Scikit-learn: machine learning in Python. J Mach Learn Res. 2011;12:2825-30.
McKinney W. Data structures for statistical computing in Python. In: Proceedings of the 9th Python in Science Conference; 2010; Austin, TX. p. 51-6.
Breiman L. Random forests. Mach Learn. 2001;45(3):5-32.
Mitchell TM. Machine Learning. New York: McGraw-Hill; 1997.
Vapnik VN, Chervonenkis AY. The nature of statistical learning theory. New York: Springer Science & Business Media; 1995.
Rosenblatt F. The perceptron: a probabilistic model for biological recognition. Psychol Rev. 1958;65(6):386.
Rumelhart DE, Hinton GE, Williams RJ. Learning representations by back-propagating errors. Nature. 1986;323(5990):533-6.
Benaissa S, Tuyttens FAM, Plets D, Cattrysse H, Martens L, Vandaele L, et al. Classification of ingestive-related cow behaviors using RumiWatch halter and neck-mounted accelerometers. Appl Anim Behav Sci. 2019;211:9-16.
Sinha VK, Patro KK, Pławiak P, Prakash AJ. Smartphone-based human sitting behaviors recognition using inertial sensor. Sensors (Basel). 2021;21(19):6652.
Wibawa RP, Astuti RI, Pangestu BA. Smartphone-based application "quizizz" as a learning media. Din Pendidik. 2019;14(2):244-53.
Nolfi S, Parisi D. Evolving artificial neural networks that develop in time. In: Morán F, Moreno A, Merelo JJ, Chacón P, editors. Advances in Artificial Life. ECAL 1995. Lecture Notes in Computer Science. Vol. 929. Berlin: Springer; 1995.
Moore KL, Naidu S. Linear quadratic regulation using neural networks. In: IJCNN-91-Seattle International Joint Conference on Neural Networks. Vol. 2. Seattle, WA; 1991. p. 735-9.
Rastogi R, Sharma S, Chandra S. Robust parametric twin support vector machine for pattern classification. Neural Process Lett. 2018;47:293-323.
Cipolla S, Gondzio J. Training very large scale nonlinear SVMs using alternating direction method of multipliers coupled with the hierarchically semi-separable kernel approximations. EURO J Comput Optim. 2022;10:100046.
Kubus M. The problem of redundant variables in random forests. Acta Univ Lodziensis Folia Oeconomica. 2019;6(339):7-16.
Zhu T. Analysis on the applicability of the random forest. J Phys Conf Ser. 2020;1607(1):012123.
Feldman K, Faust L, Wu X, Huang C, Chawla NV. Beyond volume: the impact of complex healthcare data on the machine learning pipeline. In: Towards Integrative Machine Learning and Knowledge Extraction: BIRS Workshop, Revised Selected Papers. Banff, AB: Springer International Publishing; 2015 Jul 24-26. p. 150-69.
Chakravarty P, Cozzi G, Scantlebury DM, Ozgul A, Aminian K. Combining accelerometry with allometry for estimating daily energy expenditure in joules when in-lab calibration is unavailable. Mov Ecol. 2023;11(1):29.
Garde B, Wilson RP, Fell A, Cole N, Tatayah V, Holton MD, et al. Ecological inference using data from accelerometers needs careful protocols. Methods Ecol Evol. 2022;13(4):813-25.
Rahman A, Smith DV, Little B, Ingham AB, Greenwood PL, Bishop-Hurley GJ. Cattle behaviour classification from collar, halter, and ear tag sensors. Inf Process Agric. 2018;5(1):124-33.
Do VM, Quang-Huy T, Van Son N, Van Thanh P, Minh NC, Tran DT, et al. The effect of sensor position deflection on behavior classification performance. In: 2022 International Conference on Advanced Technologies for Communications (ATC). Ha Noi, Vietnam; 2022. p. 126-9.
Jensen MB. The role of social behavior in cattle welfare. In: Advances in cattle welfare. Woodhead Publishing; 2018. p. 123-55.
Parham JT, Tanner AE, Blevins SR, Wahlberg ML, Lewis RM. Cattle acclimate more substantially to repeated handling when confined individually in a pen than when assessed as a group. J Anim Sci. 2022;100(3):skac040.
Giannetto C, Cerutti RD, Scaglione MC, Arfuso F, Pennisi M, Giudice E, et al. Real-time measurement of the daily total locomotor behavior in calves reared in an intensive management system for the possible application in precision livestock farming. Vet Sci. 2023;10(1):64.
Kaneko H. Interpretation of machine learning models for data sets with many features using feature importance. ACS Omega. 2023;8(25):23218-25.
Kaneko H. Cross‐validated permutation feature importance considering correlation between features. Anal Sci Adv. 2022;3(9-10):278-87.
Zelený O, Fryza T. Multi-branch multi layer perceptron: a solution for precise regression using machine learning. In: 2023 33rd International Conference Radioelektronika (RADIOELEKTRONIKA). IEEE; 2023. p. 1-5.

Author information

Ravi Kumar, Neha Sharma, Aniket Deshmukh, Sanjay Kulkarni & Arjun Nair contributed to this work.

Authors and affiliations

Department of Accelerometer-Based Behavior Prediction, Faculty of Agriculture, Indian Agricultural Research Institute, New Delhi, India
Ravi Kumar & Neha Sharma

Department of Sensor Placement for Animal Behavior, Faculty of Agriculture, IIT Bombay, Mumbai, India
Aniket Deshmukh

Department of Sampling Interval Optimization for Feedlot Monitoring, Faculty of Agriculture, Savitribai Phule Pune University, Pune, India
Sanjay Kulkarni

Department of Young Bull Behavior Classification, Faculty of Agriculture, IIT Kharagpur, Kharagpur, India
Arjun Nair

Corresponding author

Correspondence to Ravi Kumar

Rights and permissions

Open Access The author(s) retain copyright. This article is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. It may be shared and adapted for non-commercial purposes with appropriate attribution, an indication of changes, and distribution of adaptations under the same license. Third-party material may be subject to separate terms identified in its credit line. View the license at https://creativecommons.org/licenses/by-nc-sa/4.0/.

About this article

Cite this article

Vancouver
Kumar R, Sharma N, Deshmukh A, Kulkarni S, Nair A. Evaluating Accelerometer Placement and Sampling Intervals for Predicting Young Bull Behaviors in Feedlots. . 2024;3:102.
APA
Kumar, R., Sharma, N., Deshmukh, A., Kulkarni, S., & Nair, A. (2024). Evaluating Accelerometer Placement and Sampling Intervals for Predicting Young Bull Behaviors in Feedlots. Journal of Intelligent Agriculture and Food Systems, 3, 102.
Received
13 April 2024
Revised
14 May 2024
Accepted
03 July 2024
Published
15 September 2024
Version of record
15 September 2024

Share this article

Easily share this article with others using the link below:

Evaluating Accelerometer Placement and Sampling Intervals for Predicting Young Bull Behaviors in Feedlots
Scan to access
this article

Ready to submit?
Start a new submission or continue a submission in progress:
Submission Portal Author Guidelines

Follow this journal
Get notified of new updates and articles.