Manuscript Offprint
arXiv:2611.08928UAV-Based Computer Vision for Cattle Detection and Feed Bunk Spatial Analysis
Pedro Oliveira Torrente Ⓤ, Diego Giaretta Ⓤ, Lucas Pascotti Valem Ⓤ, Jianglong Yan Ⓤ, Everton Castelão Tetila Ⓤ, Jayme Garcia Arnal Barbedo Ⓤ, and Liang Zhao Ⓤ
Abstract—Beef cattle production is central to Brazilian agribusiness and faces growing demands for efficiency, sustainability, and animal welfare. Precision Livestock Farming (PLF) offers tools to address these challenges, particularly through monitoring feeding-related spatial patterns in confined systems. Feeding management plays a decisive role in animal performance, yet its evaluation still relies largely on subjective, labor-intensive visual inspections that are hard to scale and prone to bias. This work proposes a computer vision framework based on Unmanned Aerial Vehicles (UAVs) to quantify cattle alignment and spatial dispersion at the feed bunk under real-world feedlot conditions. A UAV dataset was collected during flight campaigns at a commercial feedlot in Mato Grosso do Sul, Brazil. Images were manually annotated into cattle head and cattle back classes to support object detection and image-level spatial analysis of cattle distribution. You Only Look Once (YOLO) models, namely YOLOv8 and YOLOv11, were evaluated, with YOLOv8 small used for the downstream spatial analysis. The feed bunk region was segmented using the Segment Anything Model (SAM), and geometric metrics based on detected head positions were developed to characterize alignment, spacing regularity, and clustering. The selected detector achieved 84.30% mAP50 and 35.50% mAP50-95, with an inference time of approximately 2.7 ms per image on an NVIDIA RTX 5060 Ti GPU. The resulting metrics distinguished representative regular and irregular spatial distributions by Root Mean Square Deviation - RMSD (1.06 m and 4.26 m), Coefficient of Variation - CV (42.70% and 96.31%), and clustering (0 and 2 clusters), respectively. These findings indicate that the proposed approach can provide indicators for assessing feed bunk spatial patterns in PLF.
Index Terms—Computer Vision, Precision Livestock Farming, UAVs, YOLO, Object Detection, Deep Learning, Cattle
I. INTRODUCTION
Beef cattle production is central to Brazilian agribusiness and the global meat supply chain. Brazil ranks among the world's largest beef exporters, accounting for nearly 21% of global exports and an estimated herd of 194 million animals
in 2024, while generating millions of direct and indirect jobs [1]. In response to increasing global food demand and the need for sustainable intensification, livestock systems in Brazil have progressively incorporated digital technologies, artificial intelligence, and remote sensing tools to improve production efficiency, environmental sustainability, and animal welfare.
Traditional cattle monitoring remains a labor-intensive activity that demands time, specialized personnel, and substantial operational costs, particularly in extensive and confined production systems. In this context, Precision Livestock Farming (PLF) has emerged as a modern and strategic approach to livestock management. As defined by [2], PLF extends the principles of precision agriculture to animal production by enabling repeated and individualized monitoring [3], with the objective of optimizing animal performance, improving resource efficiency, and reducing environmental impacts. Advances in sensing and data acquisition technologies have enabled the collection of large volumes of behavioral and physiological data [4], supporting more accurate and timely management decisions [5].
Among the technologies driving this transition, Unmanned Aerial Vehicles (UAVs) have become increasingly popular due to their ability to rapidly acquire high-resolution images over large areas at relatively low operational expenses [6], [7]. When combined with computer vision and Deep Learning (DL), UAV imagery offers a powerful platform for key livestock management tasks, such as automated counting, weight estimation, and monitoring feeding-related spatial indicators [8], [9], while reducing subjectivity and improving the reliability of zootechnical indicators [10], [11].
In this work, we use a UAV-based dataset collected in a real-world feedlot experiment conducted by the UFGD research group at Campanário Farm, located in Mato Grosso do Sul, Brazil. The imagery was acquired across repeated flight campaigns, providing consistent overhead views. We manually annotated two complementary classes, cattle head and cattle back, to support both effective detection and a more interpretable analysis of animal orientation and spatial distribution at the feed bunk. In this study, feeding-related spatial indicators refer to image-level, instantaneous descriptors of cattle positions relative to the feed bunk, rather than temporal behavioral measurements such as visit frequency, feeding duration, or individual intake. Detecting the cattle head as a distinct class is a choice motivated by its relevance to feeding-related spatial interpretation. Head localization provides evidence of animal orientation relative to the feed bunk and proximity to it, while back detections support future applications such
Pedro Oliveira Torrente, Diego Giaretta, Lucas Pascotti Valem, and Jianglong Yan are with the Institute of Mathematics and Computer Science (ICMC), University of São Paulo (USP), São Carlos - SP, Brazil.
Everton Castelão Tetila is with the Federal University of Grande Dourados (UFGD), Dourados - MS, Brazil, and also with Embrapa Digital Agriculture, Campinas - SP, Brazil.
Jayme Garcia Arnal Barbedo is with Embrapa Digital Agriculture, Campinas - SP, Brazil.
Liang Zhao is with the Faculty of Philosophy, Sciences and Letters at Ribeirão Preto (FFCLRP); University of São Paulo (USP), Ribeirão Preto - SP, Brazil.
Corresponding author: Lucas Pascotti Valem (e-mail: lucas@icmc.usp.br).
This work involved no animal experimentation, handling, or intervention by the authors. The analysis was conducted exclusively on a pre-existing, publicly available dataset of non-invasive UAV imagery, in which cattle were remotely observed during their normal commercial feedlot routine.
as individual identification. This dataset enables evaluation of detection performance and feed bunk alignment metrics under realistic operational constraints.
Feeding management is a key determinant of animal performance in confined systems, and linear feed bunk space plays a central role in shaping competitive interactions among animals. Insufficient feed bunk space intensifies competition, letting dominant animals restrict access and increasing variability in intake and weight gain [12], while inadequate management can cause chronic underfeeding (limiting weight gain) or overfeeding (raising waste and ruminal acidosis risk) [13]. Therefore, accurate monitoring of feeding-related spatial distribution along the feed bunk is essential for optimizing nutritional management and ensuring animal welfare. Recent computer vision approaches have also explored automated monitoring of feed bunks, including individual animal identification and feed bunk condition scoring using overhead cameras and clustering techniques, demonstrating the potential of systems to support feeding management decisions [14].
Within this context, computer vision offers a promising alternative for evaluating cattle alignment and spatial patterns during observed feeding moments [15]. UAV imagery enables non-invasive, wide-area observation, allowing quantitative assessment of how animals distribute themselves around the feed bunk. This study combines deep learning based object detection with geometric analysis of cattle spatial arrangement. Detectors from the You Only Look Once (YOLO) family [16], specifically YOLOv8 and YOLOv11 [17] in configurations ranging from nano to extra large, are evaluated for cattle detection in aerial images. A feed bunk segmentation module defines a precise region of interest for more accurate alignment analysis, and geometric dispersion and uniformity metrics are then computed from the detected positions to support a data-driven evaluation of instantaneous feed bunk spatial patterns. The objective is to propose a computer vision approach using UAV imagery to detect cattle and quantify their spatial dispersion and feeding alignment through YOLO-based models and geometric metrics.
The novelty of this work lies in a practical framework that converts standard computer vision outputs into physical, task-specific geometric indicators for instantaneous assessment of cattle distribution along the feed bunk. The main contributions of this work are summarized as follows:
-
A UAV-based computer vision framework for non-invasive and image-level assessment of cattle spatial distribution at the feed bunk in UAV imagery.
-
A comparative evaluation of multiple YOLO-based object detectors (YOLOv8 and YOLOv11, across model sizes) applied to cattle detection under real farm conditions.
-
A feed bunk segmentation module that defines a precise region of interest for analyzing cattle alignment and spatial distribution at the feed bunk.
-
The development of geometric dispersion and uniformity metrics to quantify cattle distribution along the feed bunk, supporting data-driven monitoring of feed bunk occupation.
-
Experimental evidence that the proposed metrics quantify and discriminate contrasting spatial occupation patterns
at the feed bunk, providing a basis for future decision-support tools in feeding management.
The remainder of this paper is organized as follows. Section II reviews related work on UAV-based livestock monitoring, YOLO-based cattle detection, segmentation models, and feed bunk analysis. Section III describes the proposed methodology, including the dataset preparation, the training and comparison of YOLO detectors, the feed bunk segmentation procedure, and the geometric metrics used to quantify cattle alignment and dispersion. Section IV reports the experimental results, covering both effectiveness and inference time analyses and the evaluation of instantaneous feed bunk spatial patterns using the proposed metrics. Finally, Section V concludes the paper and outlines directions for future work.
YOLO-based detectors have been widely used in agricultural and livestock applications due to their balance between detection accuracy and inference speed [25], including cattle body detection and feeding-activity recognition [26], [27]. Segmentation foundation models such as the Segment Anything Model (SAM) have also been explored in agricultural and remote-sensing scenarios [28]–[30]. Unlike studies that use detection or segmentation as final outputs, this work uses cattle-back and cattle-head detections and feed bunk segmentation as geometric references for downstream spatial analysis.
Cattle detection has also been combined with tracking to monitor individual animals over time. Mar et al. [31] combined animal location and visual appearance to maintain individual identities across video frames, including after temporary occlusions. Moe et al. [32] developed a system for tracking black cattle during the day and at night, reducing model size and processing time. These studies focus on individual cattle tracking in videos from fixed cameras, while our framework quantifies instantaneous cattle distribution relative to the feed bunk in UAV images.
Automated feed bunk monitoring is the closest line of work to this study. Previous approaches have addressed computer vision-based feed bunk management, bunk-score datasets, and automated bunk-score classification [33]–[35]. Related works by Pi et al. [36] and Mendes et al. [14] further combine computer vision, individual animal identification, feed grading, and clustering analysis to support feeding management. The present study differs by using UAV imagery instead of fixed or close-range cameras, focusing on group-level instantaneous spatial distribution rather than individual intake, visit detection, or feed-leftover classification, and integrating cattle-back and cattle-head detection, feed bunk localization using SAM, and geometric metrics to quantify transversal proximity, longitudinal spacing uniformity, and clustering. Therefore, the proposed framework complements existing feed bunk scoring and animal identification methods with interpretable spatial indicators of cattle distribution during feeding.
III. METHODOLOGY
This section describes the proposed method for analyzing cattle spatial distribution relative to the feed bunk using aerial imagery and deep learning. The method integrates object detection, semantic segmentation, and geometric analysis to quantify cattle alignment, proximity, and longitudinal spacing along the feed bunk.
A. Overview
The proposed workflow transforms UAV images into a geometric representation of cattle distribution at the feed bunk. Detected head positions and a segmented feed bunk reference are combined to compute distance and spacing-based metrics that quantify alignment, dispersion, and clustering during observed feeding moments. Figure 1 summarizes the proposed method, which is structured into three main stages:
-
Dataset preparation: selection, cleaning, and dual-class annotation of UAV imagery (cattle-head and cattle-back) to improve robustness to posture and orientation variations;
-
Detector training: training and comparative evaluation of multiple YOLO variants [16], followed by the adoption of YOLOv8 small as the detector for the downstream spatial analysis due to its competitive effectiveness and stable implementation.
-
Inference and spatial analysis: cattle localization, feed bunk segmentation using the Segment Anything Model (SAM) [28], and quantification of spatial dispersion through geometric and statistical metrics.
A detailed description and discussion of each stage are provided in the corresponding subsections.
B. Dataset Preparation
- Dataset: The dataset used in this study was obtained through a field experiment conducted at Campanário Farm, located in the municipality of Caarapó, Mato Grosso do Sul, Brazil. Data acquisition was carried out by a team coordinated by Prof. Dr. Everton Castelão Tetila (UFGD) ¹. This dataset has previously been used in studies on cattle morphology and growth analysis [23] and mounting behavior detection [37]. In this work, the dataset is used to support feed bunk spatial
analysis through cattle-head and cattle-back detection and geometric alignment metrics.
The experiment involved repeated monitoring of a group of 110 Nelore cattle (Bos indicus), kept in a specific corral at the farm from July 10 to October 27, 2024. Each animal was individually identified by a numeric hot-iron brand on the dorsal region, enabling individual traceability throughout all image acquisition campaigns. The farm hosts a total herd of approximately 14,600 cattle of different breeds, which introduces additional challenges for detection methods due to morphological and chromatic variability among animals, directly affecting visual contrast and detection consistency.
Image acquisition was performed using a multirotor unmanned aerial vehicle (UAV), specifically a DJI Phantom 4 Advanced equipped with a 20 MP, 1-inch Sony sensor. Images were captured at a native resolution of 4864 × 3648 pixels (4:3, ≈17.7 MP).
The flight campaigns were conducted periodically, typically every one to three weeks. In each campaign, images were captured at an altitude of 15 meters above ground level. This altitude was selected because it provides a broader view of the confinement area, favoring spatial analysis of cattle dispersion relative to the feed bunk.
The Ground Sampling Distance (GSD) was estimated using image metadata extracted with ExifTool and the camera specifications. Given the camera's pixel pitch of approximately , a real focal length of , and a recorded flight altitude of approximately , the resulting GSD is approximately 4 mm/px (i.e., 1 px ≈ 0.4 cm at ground level), computed as . Because the recorded altitude is referenced to the UAV takeoff point and the terrain is not perfectly level, the height above ground, and therefore the GSD, may vary slightly across the scene and between campaigns. Therefore, we adopt as an approximate conversion factor used to express the geometric metrics in physical units.

Fig. 1: Flowchart of the proposed methodology.
¹The dataset is publicly available and can be downloaded at https://github.com/EvertonTetila/NeloreBeefCattleDataset.
- Image Selection and Cleaning: Each captured image contains multiple cattle, representing different grouping formations and positioning patterns relative to the feed bunk. The selected images were divided into three subsets according to the chronological acquisition order: training (July 10, July 31, and August 11), validation (August 21, August 31, September 21, and September 28), and test (October 5, October 12, October 19, and October 27). This chronological split strategy was adopted to reduce temporal and campaign-related bias, while ensuring that images from the same acquisition campaign were not shared across subsets. Therefore, the test set contains later acquisition conditions that were not observed during training or validation.
During this phase, image cleaning was also performed by removing records of farm regions without cattle and discarding images captured at the beginning of flights, where significant variations in UAV altitude occurred.
- Class Annotation: After image selection, the open-source software LabelMe was used to annotate regions of interest corresponding to two classes: cattle-back and cattle-head. This dual-class strategy represents an alternative to single-class cattle detection. Using a single cattle class poses challenges due to variations in posture, orientation, and morphology, which can introduce ambiguities in detections and hinder identification. Therefore, the adoption of two classes is a core aspect of the proposed methodology, enabling discrimination between the dorsal region and the head of cattle, supporting more detailed analyses of orientation and positioning, and expanding the potential applicability of the model in future studies. In particular, separating cattle-head and cattle-back annotations improves the interpretability of the detections for feed bunk spatial analysis: head detections indicate proximity to the feed bunk and, when paired with back detections, may enable orientation analysis in future work.
In commercial livestock systems, such as Campanário Farm, the dorsal region of animals is commonly marked with a unique numeric identifier for individual tracking until slaughter. Thus, detecting only the dorsal region enables automatic cropping of these areas for future applications in animal identification using alternative computer vision techniques. Detecting the head, in turn, is essential for analyzing cattle distribution relative to the feed bunk, as it indicates the animal's orientation. For instance, a bovine facing away from the feed bunk may indicate irregular feed distribution at that location. Additionally, this approach reduces background content within regions of interest and decreases class variability, favoring model performance and convergence.
The distribution of annotations across each dataset subset is presented in Table I. The resulting dataset comprises 232 images and 5,027 manually labeled instances, divided into 97 training images, 47 validation images, and 88 test images. The expanded dataset is publicly available, and the official repository has been updated with Version 2, including the revised annotations and the chronological train/validation/test split used in this study.
Although the total number of images is moderate, the dataset includes many labeled cattle instances from different UAV acquisition campaigns under real commercial feedlot
TABLE I: Distribution of annotated instances across the training, validation, and test subsets, considering cattle-head (head region indicating orientation relative to the feed bunk) and cattle-back (dorsal region). Values are the number of annotated instances (i.e., individual bounding-box labels).
| Subset | Both | cattle-back | cattle-head |
|---|---|---|---|
| Training | 1,911 | 988 | 923 |
| Validation | 1,137 | 579 | 558 |
| Test | 1,979 | 1,007 | 972 |
| Total | 5,027 | 2,574 | 2,453 |
conditions. These images capture natural variations in animal spacing, occlusion, illumination, and background appearance.
C. Detector Training
This stage comprises the training and comparison of two YOLO-family detectors widely used in industry and academia: YOLOv8, an established and commonly adopted version, and YOLOv11. All available model size variants (nano, small, medium, large, and extra-large) were considered to evaluate the trade-off between effectiveness and computational efficiency.
Training hyperparameters were defined to standardize comparison conditions while balancing performance and accessible computational power. Preliminary tests were conducted using YOLOv8 nano to fine-tune parameters. Due to the high resolution of the images and the relatively small dataset size, an input image size of pixels was adopted. This resolution preserves sufficient visual detail for detecting small objects, such as the cattle-head and cattle-back classes, while remaining feasible in low-compute environments. The batch size was set to 16, ensuring good convergence of loss curves without exceeding processing capacity. A maximum of 50 training epochs was defined, which proved sufficient for the dataset size, avoiding excessive iterations and reducing the risk of overfitting. Additionally, a safety patience of 15 epochs was established to interrupt training if no significant performance improvement was observed.
To perform the training and inference-time evaluation, we used a dedicated workstation equipped with an AMD Ryzen 7 9700X CPU, 32 GB of DDR5-5600 memory, and an NVIDIA GeForce RTX 5060 Ti GPU with 16 GB of GDDR7 memory.
D. Inferences and Spatial Dispersion Analysis
The objective of this stage is to analyze the dispersion and alignment of cattle relative to the feed bunk using geometric and statistical measures, such as the distance from a point to a line and the distance between the projections of points onto that line. Images are represented as a Cartesian plane, where one unit corresponds to one image pixel. Figure 2 presents an overview of the proposed inference and spatial dispersion analysis workflow.
For the downstream spatial analysis, YOLOv8 small was adopted as the detection model. Although other variants achieved slightly higher detection metrics, YOLOv8 small provided a favorable balance between detection effectiveness and implementation stability. Its consolidated implementation makes it suitable for the proposed analysis pipeline.
Using this detector, the analyzed UAV images were inferred, with detection and labeling of bounding boxes corresponding to each cattle class. During inference, non-maximum suppression (NMS) with an IoU threshold of 0.10 was applied to remove overlapping detections belonging to the same class before generating the final bounding boxes used in the spatial analysis. The center point of each bounding box was mapped onto the Cartesian plane to support statistical analyses of cattle location relative to the feed bunk.
- Feed Bunk Segmentation and Line Equation: Initially, it was necessary to identify the spatial position of the feed bunk in each image for subsequent geometric analysis. For this purpose, the Segment Anything Model (SAM) was employed as a segmentation tool due to its ability to efficiently isolate objects with minimal manual intervention. In this work, the vit_h version of SAM was used.
An approximate indication of the feed bunk region was provided to the model, allowing SAM to generate a binary mask that approximately delineates the feed bunk region, from which the reference line is derived in the image. This mask was then used to extract reference points required to compute the line equation representing the feed bunk orientation in the image's Cartesian plane.
The vertical central segment of this polygon was approximated by a straight line in the general form: , where A, B, and C are coefficients obtained from a linear fit of the vertical midpoint coordinates of the polygon. This formulation assumes a straight feed bunk, as observed in the evaluated images, while other layouts (e.g., curved or L-shaped) would require adapting the geometric reference and the corresponding distance and projection calculations.
- Transversal Dispersion Measures (Proximity): To analyze cattle offset relative to the feed bunk, the perpendicular distance ( ) between each inferred cattle point (i.e., cattle heads) and the line representing the feed bunk is used, a fundamental concept in analytical geometry [38]. The distance is defined as:
To quantify dispersion, mean and standard deviation alone are insufficient, as measures that penalize large deviations, typical of misalignment or outliers, are required. The aggregated measures adopted are:
• Root Mean Square Deviation (RMSD): A standard metric in statistics and regression analysis that measures average error magnitude by squaring individual distances, disproportionately penalizing points far from the line.
• Maximum Absolute Deviation (Max Dev): Defined as Max Dev = max( ), this metric captures the worst-case deviation, ensuring tolerance limits are respected.
- Longitudinal Uniformity Measures (Spacing): To analyze longitudinal distribution along the feed bunk, the 2D problem is reduced to a 1D formulation by defining an intrinsic coordinate s along the line. This is achieved by orthogonally projecting inferred cattle points (i.e., cattle heads) onto the computed line. Based on linear algebra [38], each point is mapped to on the line as:
A direction vector , perpendicular to the normal vector , defines the orientation along the feed bunk line. Its normalized form gives the unit direction vector:
Selecting a reference point (e.g., the first projected point), the longitudinal coordinate is obtained by projecting onto the unit direction vector :
The ordered set enables computation of physical spacings (gaps) between neighboring animals: , for , with denoting the set of gaps.
The following relative metrics are used to assess longitudinal uniformity:
• Coefficient of Variation (CV): Defined as the ratio between the standard deviation ( ) and mean ( ) of the spacings. Ideal uniformity corresponds to CV 0%.
• Gap Ratio (GR): A geometric metric defined as the ratio between the smallest and largest spacing:
Values approaching 1 indicate similar gap sizes, while values near 0 indicate strong spacing imbalance.
- Qualitative Clustering Analysis: To qualitatively validate clustering along the feed bunk, the DBSCAN (Density-Based Spatial Clustering of Applications with Noise) algorithm is applied to the longitudinal coordinates . DBSCAN identifies clusters by detecting regions of high point density [39]. It is suitable for this context because it does not require a predefined number of clusters and can handle noise.
In this analysis, the neighborhood radius is defined as 50% of the mean inter-animal spacing, and a minimum of three points is required to form a cluster. Points that do not satisfy these criteria are classified as noise. From this procedure, a categorical metric is obtained corresponding to the number of clusters identified along the feed bunk, excluding noise points. Ideally, a uniform animal distribution results in no clusters,

Fig. 2: Overview of the steps for the inference and spatial dispersion analysis. Cattle heads are detected using YOLO, the feed bunk is segmented using SAM, the segmentation polygon is approximated by a straight line, and geometric measures are computed based on the Cartesian mapping of bounding box centers.
whereas the occurrence of one or more clusters indicates aggregation and non-uniform longitudinal spacing.
This framework decouples the analyses by allowing the error to quantify transversal dispersion (animal proximity to the feed bunk), while the spatial distribution of the coordinates characterizes longitudinal uniformity. Together, these complementary measures enable a quantitative characterization of animal distribution and may support future correlation analyses with feed uniformity.
IV. EXPERIMENTAL EVALUATION
This section presents the experimental evaluation of the proposed UAV-based framework. First, a comparative analysis of YOLOv8 and YOLOv11 detectors is conducted in Section IV-A, including an effectiveness analysis based on mean Average Precision (mAP) metrics (Section IV-B) and an inference time comparison (Section IV-C). Next, the inference stage is detailed in Section IV-D, covering model selection. Finally, Section IV-E discusses feed bunk mask extraction using SAM, cattle localization, and the evaluation of the proposed geometric metrics for quantifying transversal dispersion, longitudinal spacing, and clustering patterns.
A. Detector Comparison
To perform the comparison between the two YOLO detector families, the post-training performance of each version was analyzed, considering the mAP50 and mAP50-95 metrics relative to the total number of parameters of each model. The behavior of these same metrics with respect to inference speed was also evaluated. Based on this comparison, the detector version that best balances effectiveness and efficiency is selected, in accordance with the scope of this study, and is subsequently used in the inference and cattle dispersion analysis presented in Section IV-D.
B. Effectiveness Analysis
The effectiveness of the trained models can be assessed through the mAP50 and mAP50-95 metrics, which represent the mean average precision computed at an IoU threshold of 50% and averaged over IoU thresholds from 50% to 95%, respectively. In detectors with a larger number of neural network parameters, there is a general tendency for these metrics to increase. This behavior can be observed in the obtained curves.
The mAP50 and mAP50-95 values for each object class and the overall average are presented in Tables II and III, respectively. The metric values are reported as the mean and 95% confidence interval over 10 training runs. Figure 3 shows the overall detection performance as a function of the number of parameters for each YOLO variant.
TABLE II: Average mAP50 for different YOLO variants.
| Model | Param. (M) | Overall (%) | cattle-back Class (%) | cattle-head Class (%) |
|---|---|---|---|---|
| v8n | 3.2 | |||
| v8s | 11.2 | |||
| v8m | 25.9 | |||
| v8l | 43.7 | |||
| v8x | 68.2 | |||
| v11n | 2.6 | |||
| v11s | 9.5 | |||
| v11m | 20.1 | |||
| v11l | 25.4 | |||
| v11x | 57.0 |
TABLE III: Average mAP50-95 for different YOLO variants.
| Model | Param. (M) | Overall (%) | cattle-back Class (%) | cattle-head Class (%) |
|---|---|---|---|---|
| v8n | 3.2 | |||
| v8s | 11.2 | |||
| v8m | 25.9 | |||
| v8l | 43.7 | |||
| v8x | 68.2 | |||
| v11n | 2.6 | |||
| v11s | 9.5 | |||
| v11m | 20.1 | |||
| v11l | 25.4 | |||
| v11x | 57.0 |
It is observed that mAP50 increases sharply in the initial model versions, particularly during the transition from the nano to the small variants. This significant increase likely occurs because, at this stage, the addition of parameters effectively expands the model's representational capacity, allowing it to learn more complex patterns present in the data and consequently improve performance.
In the medium and large variants, the growth of mAP50 becomes less pronounced, suggesting that the models approach a saturation point where added complexity yields limited gains. The extra-large variants show a decline rather than a plateau, with v8x and v11x falling below the small models in both mAP50 and mAP50-95. This is consistent with the relatively small dataset, in which higher-capacity models are more prone to overfitting and thus generalize less well to the chronologically distinct test campaigns.
To assess the impact of the dual-class formulation, an ablation study was conducted with the small models (YOLOv8s and YOLOv11s), comparing the proposed two-class training with single-class models trained separately for cattle-head and cattle-back. As shown in Table IV, the two-class formulation achieved comparable or slightly superior effectiveness in most cases, including under mAP50-95, with differences generally within the confidence intervals. These results indicate that jointly training both classes does not degrade detection performance. The main motivation for the dual-class formulation is therefore interpretability: distinguishing head and back regions provides spatial cues about animal positioning relative to the feed bunk and supports future orientation analysis and individual identification (as described in Section III-B).
TABLE IV: Ablation study: two-class vs. single-class training for cattle-back and cattle-head detection.
| Model | Setting | mAP50 (%) | mAP50-95 (%) | ||
|---|---|---|---|---|---|
| cattle-back | cattle-head | cattle-back | cattle-head | ||
| v8s | Two-class | ||||
| Single-class | |||||
| v11s | Two-class | ||||
| Single-class | |||||
C. Inference Time Comparison
Another important metric is the time required to perform inference on each image. After training, the resulting model can be deployed in real-world applications, often on embedded devices that perform inference locally.
Given the importance of this metric for model selection, an analysis was conducted comparing model effectiveness (in terms of mAP50) with inference time. The corresponding graph is shown in Figure 4.
Although embedded deployment was not experimentally evaluated in this study, previous work has shown that lightweight YOLO models can satisfy real-time constraints on NVIDIA Jetson edge devices [40].
D. Inference Stage
This section presents the inference stage, in which YOLOv8s is applied to UAV images not used for training or validation to detect cattle. The feed bunk mask obtained using SAM provides a geometric reference for quantifying cattle dispersion through statistical and geometric metrics.
Based on the comparative results discussed in the previous section, YOLOv8s was adopted for the inference and dispersion analysis stages. Although YOLOv11s achieved slightly higher average detection metrics, YOLOv8s showed competitive performance while offering a consolidated implementation. Therefore, YOLOv8s was considered a suitable and reliable detector for cattle-head localization in the proposed approach.
E. Analysis of cattle dispersion relative to the feed bunk
In addition to identifying the cattle, another required task is the identification of the feed bunk in order to infer a line equation that represents its spatial location. Due to scope limitations, a pre-trained image segmentation model known as SAM was employed.
After running the model on these images, the segmentation masks are obtained. These masks provide a polygon whose boundary represents a reasonably accurate approximation of the spatial location of the feed bunk. From the extremities of this polygon, it is possible to define a rectangle whose vertical axis allows the extraction of the line equation representing the feed bunk.
To assess the consistency of the feed bunk segmented by SAM, the fitted line obtained from the segmented mask


Fig. 3: Effectiveness curves as a function of the number of parameters for each model.

Fig. 4: Comparison between effectiveness and inference time.
was compared with manual annotations. The resulting angular deviation was relatively small (0.44 ± 0.68°), indicating that SAM provides a reasonably consistent reference for the proposed spatial analysis under the evaluated conditions.
The spatial analysis was first illustrated with two representative images, referred to as the regular and irregular spatial distribution scenarios, and then extended to a set of 18 UAV images with at least five detected heads, not used for detector training or validation, covering multiple acquisition campaigns and different occupation patterns of the feed bunk. However, some of these images were acquired on the same days as training or validation images and may depict similar scenes, although these specific frames were not annotated. Here, regularity refers to relative differences in cattle alignment and spacing, without implying feeding quality. For each image, cattle heads were detected with the selected YOLOv8 small model, the feed bunk was segmented with SAM, and the transversal and longitudinal metrics defined in Section III-D were computed from the central points of the detected bounding boxes. The images were then grouped according to the DBSCAN clustering of the projected head
positions: 6 images presented no cluster under the adopted settings and 12 presented at least one cluster (localized aggregation along the bunk). This grouping provides an image-level indicator of feed bunk occupation and allows the metrics to be summarized beyond the two illustrative examples. For these images, inference was performed using the trained model to identify the central points corresponding to the positions of each animal's head.
Combined with the obtained line equation, the positions of the detected objects can be mapped onto a Cartesian plane in which the origin is located at the upper-left corner of the image and each unit corresponds to one pixel of the original image. Once this mapping is established, it becomes possible to apply the equations introduced in Section III-D.
Finally, with the inferred points and the calculated feed bunk line equation, Equations 1 and 3 are applied to quantify instantaneous cattle spatial distribution relative to the feed bunk. Equation 1 computes the orthogonal distance of each animal to the feed bunk, indicating individual spatial displacement from the feed bunk, while Equation 3 projects the points onto the feed bunk line, enabling the analysis of longitudinal distribution along its length. Additionally, the longitudinal coordinates representing the projected points in one dimension are computed using Equation 5, allowing the evaluation of the mean and variability of the gaps between animals, as well as clustering analysis using DBSCAN.
Figures 5 and 6 present dashboards that summarize these metrics for two representative scenarios, respectively illustrating regular spatial distribution (more even longitudinal coverage and consistent proximity to the feed bunk) and irregular spatial distribution (uneven coverage, large deviations, and clustering). The regular scenario is characterized by cattle positioned closer to the feed bunk and more evenly spaced along its extension. This configuration is reflected by lower values in the orthogonal distance metrics and lower variability in the longitudinal spacing between adjacent animals.
We used a DBSCAN radius of half the mean spacing
() and a minimum of three points for dense neighborhoods (minPts = 3). These settings target local concentrations of animals and prevent isolated pairs from forming clusters. Larger or smaller minPts can increase the proportion of images with clusters, affecting the resulting image grouping.
Tables V and VI report the quantitative values corresponding to the dashboards shown in Figures 5 and 6. In Table V, the mean orthogonal distance indicates the typical separation of animals from the feed bunk, while the RMSD penalizes larger deviations, being more sensitive to animals that are significantly distant. The maximum deviation identifies the most distant animal, revealing extreme cases of spatial displacement from the feed bunk. Low values for these metrics indicate close spatial alignment with the feed bunk.
TABLE V: Transversal dispersion metrics: orthogonal distances of animals relative to the feed bunk. The regular and irregular scenarios illustrate spatial distributions (single-image values), while the without/with cluster rows report the mean over feed bunk images. All values are in centimeters (GSD 4 mm/px).
| Image / Group | Mean | Standard Deviation | RMSD | Maximum Deviation |
|---|---|---|---|---|
| Regular scenario | 102.78 | 23.97 | 105.54 | 127.23 |
| Irregular scenario | 293.18 | 309.03 | 425.97 | 973.46 |
| Without cluster | 146.66 | 59.31 | 163.41 | 262.43 |
| With cluster | 470.72 | 393.68 | 615.30 | 1,104.04 |
Table VI evaluates longitudinal distribution uniformity through the spacing (gaps) between consecutive animals projected onto the feed bunk line. The Coefficient of Variation (CV) quantifies spacing regularity: low values indicate a uniform distribution, while high values indicate irregular spacing. The Gap Ratio (GR) complements this analysis by computing the ratio between the smallest and largest spacing, where values close to 1.0 indicate similar gap sizes and values close to 0 indicate strong spacing imbalance. The number of clusters detected by the DBSCAN algorithm identifies local aggregations: zero clusters indicate no aggregation detected under the adopted settings, while one or more clusters reveal concentrated group formation.
TABLE VI: Longitudinal uniformity metrics describing the spacing between animals along the feed bunk. The regular and irregular scenarios illustrate spatial distributions (single-image values), while the without/with cluster rows report means, except for cluster counts, which are summarized by the mode. Mean and standard deviation in centimeters (GSD 4 mm/px) and the remaining metrics are dimensionless.
| Image / Group | Mean | Standard Deviation | Clusters (mode) | CV | GR |
|---|---|---|---|---|---|
| Regular scenario | 70.54 | 30.12 | 0 | 42.70% | 0.0509 |
| Irregular scenario | 109.97 | 105.92 | 2 | 96.31% | 0.0387 |
| Without cluster | 152.76 | 72.22 | 0 | 52.16% | 0.1690 |
| With cluster | 88.28 | 75.44 | 1 | 86.05% | 0.0395 |
The grouped results show that images with clusters presented higher transversal dispersion than images without clusters, with RMSD increasing from 163.41 94.05 cm to 615.30 223.39 cm. Longitudinal irregularity also increased
in clustered images, with CV rising from 52.16 24.97% to 86.05 21.57%, indicating less uniform spacing along the feed bunk. Given the limited sample and variability across images, these results should be interpreted as feasibility trends rather than findings from statistically powered comparisons.
Comparing the presented scenarios, the image with regular spatial distribution exhibits an RMSD of 105.54 cm and a maximum deviation of 127.23 cm, in contrast to 425.97 cm and 973.46 cm in the irregular distribution image, approximately 4.04 and 7.65 times larger, respectively. This disparity indicates that, in the irregular scenario, animals are not only farther away on average, but some individuals are positioned extremely far from the feed bunk. Since the distance metrics scale linearly with GSD, a hypothetical 10% variation in this factor would change the RMSD by 10.55 cm and 42.60 cm in the regular and irregular scenarios, respectively. Regarding longitudinal distribution, the regular image presents a lower CV of 42.70% and no cluster formation, although its low GR (0.0509) indicates local gap imbalance, while the irregular image shows a CV of 96.31%, a GR of only 0.0387, and the formation of two distinct clusters. Notice that GR tends to saturate near zero in clustered cases, making it less sensitive to clustering severity and somewhat redundant with CV in indicating spacing imbalance. Therefore, it is retained only for completeness.
These metrics are visualized through the dashboards generated for each image (Figures 5 and 6), which present complementary visualizations: (1) original points and their orthogonal projections onto the feed bunk line, (2) a dispersion map relating longitudinal position and orthogonal distance to the feed bunk, (3) a histogram of orthogonal distances with markers for RMSD and maximum deviation, (4) analysis of spacing between consecutive animals, and (5) a one-dimensional distribution along the feed bunk with cluster identification. These results objectively quantify the qualitative difference between two opposing feed bunk spatial distribution scenarios and can support the analysis of instantaneous cattle alignment and spacing at the feed bunk.
V. CONCLUSION
This paper investigated UAV-based computer vision to support Precision Livestock Farming, focusing on cattle detection and assessing feed bunk alignment and instantaneous spatial distribution under real-world feedlot conditions. A UAV dataset annotated into cattle-head and cattle-back classes enabled not only effective cattle detection under the evaluated conditions but also a more interpretable analysis of animal spatial arrangement relative to the feed bunk.
By modeling the segmented feed bunk as a geometric reference and computing orthogonal distances and longitudinal projections of detected cattle, the proposed framework translates qualitative spatial distribution patterns observed during feeding into objective and interpretable metrics, including dispersion, spacing regularity, and clustering. Experimental results on contrasting scenarios and UAV feed bunk images indicated that these metrics are sensitive to differences in alignment and spatial dispersion, discriminating more regular
Detections in the original image

- Dispersion map: position vs. distance

- Cattle-head and orthogonal projections

- Distribution of orthogonal distances

- Spacing between points

- 1D Distribution along the line (0 Clusters)

Fig. 5: Dashboard summarizing the spatial distribution metrics for an example with regular spatial distribution, characterized by more even longitudinal coverage and consistent proximity to the feed bunk. The relatively low RMSD (105.54 cm), limited maximum deviation (127.23 cm), moderate CV (42.70%) and absence of clusters indicate a more regular pattern.
occupation patterns from irregular or clustered ones under the evaluated conditions.
A limitation of this study is the relatively small image-level dataset, so the results should be interpreted as feasibility evidence under the evaluated feedlot conditions. The regular and irregular spatial distribution scenarios were defined by our qualitative visual assessment, without independent validation against expert bunk scores or zootechnical measurements. The
explicit detection of the head region also supports extensions toward future temporal analyses, such as estimating how long animals remain engaged in feeding. In future work, we intend to extend the framework to other feed bunk layouts and validate it against expert bunk scores or zootechnical measurements across different farms, breeds, and environmental conditions. We also intend to extend the approach toward fully automated segmentation, animal tracking, and the integration
Detections in the original image

- Cattle-head and orthogonal projections

- Dispersion map: position vs. distance

- Distribution of orthogonal distances

- Spacing between points

- 1D Distribution along the line (2 Clusters)

Fig. 6: Dashboard summarizing the spatial distribution metrics for an example with irregular spatial distribution, characterized by uneven coverage and large distances from the feed bunk. The substantially higher RMSD (425.97 cm), maximum deviation (973.46 cm), elevated CV (96.31%), low GR (0.0387), and two clusters indicate fragmented spacing and local aggregation.
of feed availability information to further strengthen its applicability in Precision Livestock Farming. In addition, we intend to evaluate the impact of different UAV flight altitudes on detection performance and geometric feeding metrics.
ACKNOWLEDGMENTS
We thank the Fazenda Campanário for providing access to the feedlot facilities and cattle. We also express our appreciation
to the farm's team for their valuable collaboration and technical support during the field data collection activities. This work was also supported by the São Paulo Research Foundation (FAPESP) under Grants #2023/03870-8, #2022/09319-9, #2024/15430-5, #2025/10602-5; by the Brazilian National Council for Scientific and Technological Development (CNPq) under Grants #406417/2022-9, #403307/2025-2, and #306788/2023-3; and by the University of São Paulo under
PRPI Ordinance No. 1032 (New Faculty Support Program).
REFERENCES
[1] M. d. A. Pereira, D. J. Bungenstab, V. P. B. Euclides, G. C. Malafacia, P. H. N. Biscola, G. R. O. Menezes, U. G. P. d. Abreu, V. A. Laura, E. Nogueira, R. d. A. Mauro, M. P. da Silva, A. C. Nicacio, R. G. d. Almeida, R. d. C. Gomes, J. C. B. Silva, and V. F. de Souza, "From traditionally extensive to sustainably intensive: A review on the path to a sustainable and inclusive beef farming in brazil," Animals, vol. 14, no. 16, 2024.
[2] D. Berckmans, “General introduction to precision livestock farming,” Animal Frontiers, vol. 7, no. 1, pp. 6–11, 01 2017.
[3] R. Dulal, L. Zheng, and M. A. Kabir, “Mhaff: Multihead attention feature fusion of cnn and transformer for cattle identification,” IEEE Transactions on AgriFood Electronics (TAFE), vol. 3, no. 2, pp. 506–517, 2025.
[4] L. Yuan, W. Li, J. Yue, Z. Li, Y. Zhao, Q. Li, W. Feng, and G. Kou, “A review of cattle behavior recognition methods based on computer vision and deep learning,” Smart Agricultural Technology, p. 101867, 2026.
[5] R. A. Rajagukug, S. yeon Lee, J. yeon Park, K. F. Daniel, C. rin Lee, Z. Chen, D. Liu, T. Norton, J. Park, and S. woon Hong, “Deep learning for visual animal monitoring (detection, tracking, pose estimation, and behavior classification): A comprehensive review,” Smart Agricultural Technology, vol. 12, p. 101539, 2025.
[6] J. G. A. Barbedo and L. V. Koenigkan, “Perspectives on the use of unmanned aerial systems to monitor cattle,” Outlook on agriculture, vol. 47, no. 3, pp. 214–222, 2018.
[7] J. G. A. Barbedo, “A review on the use of unmanned aerial vehicles and imaging sensors for monitoring and assessing plant stresses,” Drones, vol. 3, no. 2, p. 40, 2019.
[8] P. Guarnido-Lopez, Y. Pi, J. Tao, E. D. M. Mendes, and L. O. Tedeschi, “Computer vision algorithms to help decision-making in cattle production,” Animal Frontiers, vol. 14, no. 6, pp. 11–22, 01 2025. [Online]. Available: https://doi.org/10.1093/afv/veae028
[9] I. Leal, A. Jayson, R. Lira, R. Veloso, A. Oseas, and M. Benjamin, “Automatic cattle detection and counting system in aerial images using computer vision algorithms,” in Anais do XXI Encontro Nacional de Inteligência Artificial e Computacional. Porto Alegre, RS, Brasil: SBC, 2024, pp. 472–483.
[10] Z. Xu, T. Wang, A. K. Skidmore, and R. Lamprey, “A review of deep learning techniques for detecting animals in aerial and satellite images,” International Journal of Applied Earth Observation and Geoinformation, vol. 128, p. 103732, 2024.
[11] M. Adam, J. Song, W. Yu, and Q. Li, “Deep learning approaches for automatic livestock detection in uav imagery: State-of-the-art and future directions,” Future Internet, vol. 17, no. 9, 2025.
[12] T. J. DeVries, “Feeding behavior, feed space, and bunk design and management for adult dairy cattle,” Veterinary Clinics of North America: Food Animal Practice, vol. 35, no. 1, pp. 61–76, 2019, housing to Optimize Comfort, Health and Productivity of Dairy Cattle.
[13] R. H. Pritchard and K. W. Bruns, “Controlling variation in feed intake through bunk management,” Journal of Animal Science, vol. 81, no. 14_suppl_2, pp. E133–E138, 02 2003.
[14] E. D. M. Mendes, J. Wooley, Y. Pi, J. Tao, and L. O. Tedeschi, “419 automated individual animal identification and feeding bunk scoring: a computer vision approach for beef cattle at calan gate feeding system,” Journal of Animal Science, vol. 102, no. Supplement 3, pp. 2–3, 09 2024. [Online]. Available: https://doi.org/10.1093/jas/skae234.002
[15] J. O. Chelotti, L. S. Martinez-Rau, M. Ferrero, L. D. Vignolo, J. R. Galli, A. M. Planisich, H. L. Rufiner, and L. L. Giovanini, “Livestock feeding behaviour: A review on automated systems for ruminant monitoring,” Biosystems Engineering, vol. 246, pp. 150–177, 2024.
[16] J. Terven, D.-M. Córdova-Esparza, and J.-A. Romero-González, “A comprehensive review of yolo architectures in computer vision: From yolov1 to yolov8 and yolo-nas,” Machine Learning and Knowledge Extraction, vol. 5, no. 4, pp. 1680–1716, 2023.
[17] R. Khanam and M. Hussain, “Yolov11: An overview of the key architectural enhancements,” 2024. [Online]. Available: https://arxiv.org/abs/2410.17725
[18] T. Norton, C. Chen, M. Larsen, and D. Berckmans, “Review: Precision livestock farming: building ‘digital representations to bring the animals closer to the farmer,” Animal, vol. 13, no. 12, pp. 3009–3017, 2019.
[19] I. L. Bretas, J. C. B. Dubaux Jr., P. J. R. Cruz, K. T. Oduor, L. D. Queiroz, D. S. M. Valente, and F. H. M. Chizzotti, “Precision livestock farming applied to grazingland monitoring and management - a review,” Agronomy Journal, vol. 116, no. 3, pp. 1164–1186, 2024.
[20] J. G. A. Barbedo, L. V. Koenigkan, P. M. Santos, and A. R. B. Ribeiro, “Counting cattle in uav images—dealing with clustered animals and animal/background contrast changes,” Sensors, vol. 20, no. 7, 2020.
[21] K. M. Bastos, J. P. Barcelona, G. F. Orioli, and S. T. Nascimento, “Use of drones for trough reading, animal counting, and production monitoring in feedlot systems,” AgriEngineering, vol. 6, no. 4, pp. 4460–4475, 2024.
[22] Y. Wang, L. Kooistra, S. Mücher, and W. Wang, “Integrated unmanned aerial vehicle-based lidar and rgb data for individual cattle growth monitoring in precision livestock farming,” Scientific Data, vol. 12, no. 1, p. 1318, 2025.
[23] J. Yan, E. C. Tetila, L. Zhao, R. C. Gonçalves, L. F. Castanheiro, L. P. Valem, and J. G. Barbedo, “Deep learning-based uav framework for automated morphological and growth analysis of feedlot cattle,” Computers and Electronics in Agriculture, vol. 245, p. 111559, 2026.
[24] A. Bhujel, Y. Wang, Y. Lu, D. Morris, and M. Dangol, “A systematic survey of public computer vision datasets for precision livestock farming,” Computers and Electronics in Agriculture, vol. 229, p. 109718, 2025.
[25] C. M. Badgujar, A. Poulose, and H. Gan, “Agricultural object detection with you only look once (yolo) algorithm: A bibliometric and systematic literature review,” Computers and Electronics in Agriculture, vol. 223, p. 109090, 2024.
[26] Y. Qiao, Y. Guo, and D. He, “Cattle body detection based on yolov5-assf for precision livestock farming,” Computers and Electronics in Agriculture, vol. 204, p. 107579, 2023.
[27] P. Guarnido-Lopez, J.-F. Ramirez-Agudelo, E. Denimal, and M. Benaouda, “Programming and setting up the object detection algorithm yolo to determine feeding activities of beef cattle: A comparison between yolov8sm and yolov10m,” Animals, vol. 14, no. 19, 2024.
[28] A. Kirillov, E. Mintun, N. Ravi, H. Mao, C. Rolland, L. Gustafson, T. Xiao, S. Whitehead, A. C. Berg, W.-Y. Lo, P. Dollar, and R. Girshick, “Segment anything,” in Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), October 2023, pp. 4015–4026.
[29] Y. Li, D. Wang, C. Yuan, H. Li, and J. Hu, “Enhancing agricultural image segmentation with an agricultural segment anything model adapter,” Sensors, vol. 23, no. 18, 2023.
[30] B. Gui, A. Bhardwaj, and L. Sam, “Evaluating the efficacy of segment anything model for delineating agriculture and urban green spaces in multiresolution aerial and spaceborne remote sensing images,” Remote Sensing, vol. 16, no. 2, 2024.
[31] C. C. Mar, T. T. Zin, P. Tin, K. Honkawa, I. Kobayashi, and Y. Horii, “Cow detection and tracking system utilizing multi-feature tracking algorithm,” Scientific Reports, vol. 13, no. 1, p. 17423, 2023.
[32] A. S. T. Moe, T. T. Zin, P. Tin, M. Aikawa, and I. Kobayashi, “Minimizing resource usage for real-time network camera tracking of black cows,” in Tenth International Conference on Multimedia and Image Processing (ICMIP 2025), Y.-W. Chen, Ed., vol. 13701, International Society for Optics and Photonics. SPIE, 2025, p. 137010B.
[33] J. R. R. Dorea and S. Cheong, “PSXI-2 a computer vision system for feed bunk management in beef cattle feedlot,” Journal of Animal Science, vol. 97, no. Suppl. 3, pp. 389–390, Dec. 2019.
[34] B. M. de Paula, G. R. da Silva, S. E. Ferreira, B. L. C. Maia, M. E. G. Almeida, V. M. S. Júnior, L. M. da Silva Maciel, and A. S. Chaves, “Dataset of feed bunk score images of cattle feedlot,” Data in Brief, vol. 47, p. 108996, 2023.
[35] G. R. da Silva, B. M. de Paula, L. S. Santana, B. L. C. Maia, M. E. G. Almeida, S. E. Ferreira, L. M. d. S. Maciel, S. M. Villela, and A. S. Chaves, “Feed bunk score images classification using deep transfer learning,” Signal, Image and Video Processing, vol. 19, no. 13, p. 1064, 2025. [Online]. Available: https://doi.org/10.1007/s11760-025-04670-y
[36] Y. Pi, J. Wooley, E. D. M. Mendes, K. Kaniyamattam, L. O. Tedeschi, J. Tao, and N. Duffield, “Individual animal identification and feed grading using computer vision and unsupervised statistical clustering,” 2024, sSRN preprint, posted July 25, 2024.
[37] J. Yan, E. C. Tetila, L. Zhao, W. P. Amorim, and J. G. A. Barbedo, “Overcoming extreme sample scarcity: Deep learning-based real-time detection of cattle mounting behavior from uav imagery and video,” IEEE Transactions on AgriFood Electronics, pp. 1–9, 2026.
[38] D. C. Lay, S. R. Lay, and J. J. McDonald, Linear Algebra and Its Applications, 5th ed. Pearson, 2016.
[39] M. Ester, H.-P. Kriegel, J. Sander, X. Xu et al., “A density-based algorithm for discovering clusters in large spatial databases with noise,” in kdd, vol. 96, no. 34, 1996, pp. 226–231.
[40] L. Rey, A. M. Bernardos, A. D. Dobrzycki, D. Carramifiana, L. Bergesio, J. A. Besada, and J. R. Casar, “A performance analysis of you only look once models for deployment on constrained computational edge devices in drone applications,” Electronics, vol. 14, no. 3, 2025.