Next Article in Journal
Feeding Low- and High-Fibre Sunflower Meal to Broiler Chickens—Effects of Inclusion Rate and Age of Birds on the Production Traits, Carcass Composition, Nutrient Digestibility, Gut Viscosity, and Caecal Short-Chain Fatty Acid Content
Previous Article in Journal
Tear Protein Alteration in Dogs with Keratoconjunctivitis Sicca
Previous Article in Special Issue
An Integrated Approach Using Temperature–Humidity Index, Productivity, and Welfare Indicators for Herd-Level Heat Stress Assessment in Dairy Cows
error_outline You can access the new MDPI.com website here. Explore and share your feedback with us.
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Supervised Deep Learning Model Was Developed to Classify Nelore Cattle (Bos indicus) with Heat Stress in the Brazilian Amazon

by
Welligton Conceição da Silva
1,*,
Jamile Andréa Rodrigues da Silva
2,
Lucietta Guerreiro Martorano
3,
Éder Bruno Rebelo da Silva
1,
Cláudio Vieira de Araújo
4,
Raimundo Nonato Colares Camargo-Júnior
1,
Kedson Alessandri Lobo Neves
5,
Tatiane Silva Belo
1,
Leonel António Joaquim
1,
Thomaz Cyro Guimarães de Carvalho Rodrigues
1,
André Guimarães Maciel e Silva
1 and
José de Brito Lourenço-Júnior
1
1
Postgraduate Program in Animal Science (PPGCAN), Institute of Veterinary Medicine, Federal University of Para (UFPA), Federal Rural University of the Amazon (UFRA), Brazilian Agricultural Research Corporation (EMBRAPA), Castanhal 68746-360, PA, Brazil
2
Institute of Animal Health and Production, Federal Rural University of the Amazon (UFRA), Belem 66077-830, PA, Brazil
3
Embrapa Eastern Amazon, Santarem 68010-180, PA, Brazil
4
Department of Agricultural and Environmental Sciences, Federal University of Mato Grosso (UFMT), Sinop 78550-728, MT, Brazil
5
Institute of Animal Science, Federal University of Western Para (UFOPA), Santarem 68040-255, PA, Brazil
*
Author to whom correspondence should be addressed.
Animals 2026, 16(2), 161; https://doi.org/10.3390/ani16020161
Submission received: 7 November 2025 / Revised: 25 December 2025 / Accepted: 4 January 2026 / Published: 6 January 2026

Simple Summary

Intelligent technologies that do not require the handling of animals have been used to monitor agricultural production systems in real time using captured images, enabling efficient decision-making and, consequently, minimizing animal stress. In this way, we used a deep learning model to classify Nelore cattle (Bos indicus) into two groups (comfortable and above thermal comfort) based on data collection at four different times, from June to December 2023, considering abiotic and biotic variables. After analysis, it was possible to see that the model used showed excellent accuracy, high precision and recall but low specificity in animals above comfort. Canonical analysis indicated that rectal temperature (RT) was a reliable predictor variable. Thus, it is concluded that the model has potential, but it is recommended that more variables be adopted to improve its classification capacity.

Abstract

Non-invasive and intelligent technologies have been utilized to monitor agricultural systems in real time, facilitating expedient decision-making and the reduction in animal stress in diverse climatic conditions. The objective of this study was to develop a deep learning supervised model to classify Nelore cattle (Bos indicus) into two groups: those in comfort and those under thermal stress. Thirty cattle, aged between 18 and 20 months, were evaluated between June and December 2023, resulting in 676 samples collected across four daily periods (6:00, 12:00, 18:00, and 24:00). Biotic variables included rectal temperature (RT) and respiratory rate (RR), while abiotic variables included air temperature (AT) and relative humidity (RH). The neural network model exhibited an accuracy and recall of 72% but a low specificity of 42%. These metrics indicate that while the model is effective in detecting stress situations, it faces challenges in correctly identifying animals in thermal comfort, likely due to class imbalance and the need for additional input features to capture environmental adaptability. Consequently, it can be posited that supervised learning models are valuable tools for precision livestock farming, provided that discriminatory limitations are mitigated by refining input characteristics and data balancing.

1. Introduction

Global warming has a direct influence on climate change, bringing with it several concerns, including threats to sustainability and species survival [1,2]. Extreme increases in air temperature (AT) and relative humidity (RH) contribute to the prevalence of heat stress in cattle, particularly in tropical and subtropical regions [3]. The demand for livestock products is growing, but the adverse effects of climate change caused by global warming directly affect productivity, resulting in economic losses for livestock farmers [4,5]. When animals are subjected to excessive heat and are unable to perform the thermoregulation process, a phenomenon known as heat stress is triggered [6,7]. This results in adverse effects on animal physiology due to the extreme temperatures experienced [8]. The effects of heat exposure can alter the conditions of nutrition, production (in dairy or beef cattle), health, development, and immunity, resulting in economic losses for the producer [9,10]. Other physiological issues include decreased milk production [11], panting, elevated body temperature [12,13,14], reduced feed consumption [15], impaired feed conversion rate, and increased respiratory rate [16,17,18].
The assessment of the welfare of grazing animals and the effects of climate variables on animals by researchers is not a recent practice. However, it has increasingly been the subject of scientific research aimed at quantifying the harmful effects and physiological limits of animals [19,20]. Conversely, the concern for animal welfare is a relatively recent phenomenon among livestock farmers, largely due to the negative impacts on productivity. Among consumers, the use of practices that promote the comfort of these animals has also been a point of concern [21]. Heat stress affects the intake and digestibility of ruminants, and since the animal tends to reduce grazing and rumination behavior in an attempt to avoid the production of metabolic heat, it can also cause an increase in body temperature, altering parameters such as heartbeat due to vasodilation, respiration rate, and reproduction of these animals, even resulting in death from heat stress [22,23].
In environments with intense solar radiation and high levels of AT and RH [24,25], animals engage in physiological processes mediated by the hypothalamus, including increased peripheral circulation, vasodilation, and sweating, to dissipate the absorbed heat. In cattle, body temperature can vary between 38.0 and 39.3 °C, thus necessitating the use of different forms of evaluation. These include rectal temperature, vaginal and oral temperature, and surface temperature (head, neck and croup) through infrared thermal imaging [26]. The choice of method is dependent on the animal’s response, invasiveness, and the precision of the chosen method [27,28]. In this context, the application of technologies in precision livestock farming represents a strategy for enhancing production efficiency in the face of climate change, with the objective of mitigating the adverse effects on animals. Consequently, the deployment of sophisticated technologies such as deep learning (DL) is intended to address challenges through intricate algorithms, facilitating the transfer of data to networks of interconnected neurons or neural networks. In the context of livestock farming, the application of DL can facilitate the identification of issues pertaining to animal health, management, nutrition, and welfare [29].
The application of novel technologies for the assessment of thermal comfort in grazing cattle offers promising and innovative approaches based on DL, thereby substantiating the necessity for the utilization of these methodologies in livestock farming, particularly in the Amazon, which is characterized by climatic conditions that are highly distinctive of tropical regions, including elevated temperatures and humidity, as well as intense solar radiation, which has a detrimental impact on the health and well-being of these animals [30]. The conventional methodologies employed to categorize the thermal comfort of cattle entail the utilization of relatively simplistic indices that frequently neglect to encompass the intricate interactions between abiotic and biotic variables, along with their impact on animal comfort [31].
Prior research has illustrated the deployment of DL in property management, livestock farming, with an emphasis on environmental sustainability, and precision livestock farming [32]. Conversely, the advancements observed in DL have the potential to capture the weights of information present in features, offering a distinct advantage over other methods due to its inherent learning process. This enables the updating of new weights related to features, thereby enhancing classification performance and increasing accuracy [33]. Furthermore, the utilization of non-invasive and intelligent technologies to monitor the various breeding systems with immediate responses through the capture of images in real time enables more expedient decision-making, thereby reducing the stress experienced by the animals in diverse climatic conditions [34].
It is evident that supervised machine learning tools, and, in particular, DL tools, offer significant advantages. One such advantage is the ability to establish information relationships between classificatory variables without imposing specific and adjacent assumptions on the distribution of sample data [28]. Nevertheless, given the growing interest in these techniques across various animal science applications and the promising potential of using classification models to assess thermal comfort in beef cattle in the Amazon region, incorporating biotic and abiotic variables [30], further investigation is warranted. In this context, it is postulated that the implementation of a multilayer artificial neural network model, which is deemed an appropriate and highly promising approach for classifying Nelore cattle into thermal comfort ranges, is feasible. This classification is based on the animals’ RR, AT, and RH, which serve as classifying variables and features in the model.
The aim of this study was to develop a supervised deep learning model for the classification of Nelore cattle (Bos indicus) into two groups: those in comfort and that above thermal comfort. In this study, deep learning was chosen for its ability to capture nonlinear relationships and complex interactions between environmental and physiological variables, which are common in thermophysiological responses in cattle.

2. Materials and Methods

2.1. Ethics and Location

All experimental procedures involving animals were approved by the Animal Use Ethics Committee in May 2023, with protocol number CEUA-UNAMA 0001-87/2023.
The municipality of Mojuí dos Campos, located in the northern region of the state of Pará, Brazil, served as the setting for this study, specifically on a farm where beef cattle are bred, raised, and fattened. The region is characterized by a hot and humid climate of the Am4 type, with total precipitation reaching 60 mm during the less rainy periods and an annual precipitation range of 1900–2100 mm. The average air temperature is 25.6 °C, with relative humidity of 84% and 86% [35].
In this context, Martorano et al. [36] propose that this is a transitional climatic condition with Aw3 (which refers to A, the tropical climate; W, the dry season; and 3, the details of the climatic patterns) in the Brazilian Amazon. The period from February to April is considered the least rainy, while the period from August to October is the rainiest [36].

2.2. Weather Data

An agrometeorological station (Figure 1A–D) (HOBOWARE Onset H21 002) was previously installed on the property in Mojuí dos Campos, Pará, specifically in the paddock where the animals were kept. This station provided daily data on air temperature (AT °C) and relative humidity (RH %) during the months of June to December 2023. The agrometeorological station was set up in accordance with the recommendations of the World Meteorological Organization (WMO).

2.3. Animals, Management and Breeding Systems

In this study, a total of 30 animals were randomly selected from a population of cattle, all of which were male, uncastrated, with similar coat color and of the Nelore breed. The average weight was 250 ± 36 kg, with a body condition score (BCS) of 3.0 and an age between 18 and 20 months. The sample size (n= 30) and group uniformity were strategically chosen to minimize biological noise and prioritize the environment–physiology interaction, following established standards for intensive physiological studies with repeated measures. This age range was selected due to the availability of animals on the farm and the intention of observing them for six months, during which time they would remain in these systems. In total, nine paddocks were made available, with each breeding system having 3 paddocks, so that the animals could be rotated every 28 days. To divide the systems, the animals were divided into three groups of 10, corresponding to the types of breeding systems: silvopastoral, traditional and integrated.
The experimental groups were as follows (see Figure 2A–C):
  • Silvopastoral System (SP)—which included trees providing shade and access to water and mineral salt;
  • Traditional System (TS)—which did not have trees or shade but did include access to water and mineral salt;
  • Integrated System (IS)—which had trees providing shade, water for bathing and drinking, and mineral salt.
All paddocks contained Brachiaria brizantha cv. Marandú pasture, with an area of 1.7 hectares each, resulting in a total area of 15.3 hectares. The animals were fed basically on pasture and mineral salt ad libitum.
The animals were initially subjected to an adaptation period of seven consecutive days, after which they were gradually introduced to the experimental management procedures, including the handling of the restraint log for the collection of physiological parameters. The animals were led at a slow pace on foot to the pen and then placed in the log appropriately, without the use of stressful stimuli. To ensure data reliability and minimize inter-observer bias, all measurements were conducted by a single trained observer following a standardized protocol every 28 days (four times daily). The data obtained between June and December were submitted to the intelligent system, resulting in a total of 676 observations for the entire study for each physiological parameter evaluated.

2.4. Collection of Respiratory Rate and Rectal Temperature

The RR and RT of the cattle were collected at four different times: 06:00, 12:00, 18:00, and 24:00. These times were selected to align with the months of June to December 2023. Data collection occurred every 28 days, resulting in a total of 676 observations for each physiological variable throughout the entire study. All assessments were conducted by a single trained observer to ensure data reliability and minimize inter-observer bias. The RR was obtained through a macroscopic inspection of the thoraco-abdominal movements of the cattle. Consequently, a digital stopwatch was utilized to ensure that each evaluation was conducted for precisely 60 s. The RT was obtained via transrectal administration of a veterinary clinical thermometer (Model 5198.10, Incoterm, São Paulo, Brazil), which had a maximum range of 44 °C, in accordance with the recommendations of Dirksen et al. [37].

2.5. Benezra Comfort Index (BTCI)

The Benezra index is calculated according to the following formula:
BTCI = RT/38.33 + RR/23
where RT = rectal temperature (°C) and RR = respiratory rate in respiratory movements per minute (rmm).
BTCI values exceeding 2.0 indicate thermal discomfort due to the animals’ inability to adapt to their surrounding environment. Conversely, BTCI values below 2.0 suggest a greater capacity for adaptation.

2.6. Method of Classification of Groups

In this study, RT was utilized as the primary criterion for classifying the animals, as it is a more stable and reliable metric [17,35]. The normal range for RT is 38.0 °C to 39.3 °C. Accordingly, the animals were divided into two categories.
  • In thermal comfort: composed of animals that reached a maximum of 39.3 °C.
  • Above thermal comfort: composed of animals that have exceeded this RT threshold.

2.7. Model Architecture in Deep Learning

The DL model was constructed using a neural network based on the Multilayer Perceptron (NNAMP) architecture, employing a feed-forward type and the backpropagation training algorithm. The choice of this architecture was driven by its ability to model complex non-linear interactions between environmental and physiological variables, a characteristic where linear and traditional tree-based models may face limitations in animal bioclimatology. Furthermore, the MLP was preferred for its capacity to establish informational relationships without strict assumptions regarding sample data distribution, utilizing the BTCI as a biological baseline for performance comparison.
Its objective was to categorize the data into two distinct groups: those indicating comfort and those indicating superior thermal comfort. The backpropagation algorithm was selected for use in this study because it is a standard method for training artificial neural networks. This approach allows the gradient of a loss function to be calculated in relation to all the weights in the network. This enables the weights of the characteristics to be adjusted in a manner that reduces error rates and improves the reliability and accuracy of the model. In the NNAMP architecture, the number of features that fed the input layer was equivalent to the effects of the independent variables. The variables under consideration were RT, RR, AT, and RH (four input variables).
Accordingly, an array of hidden layer configurations was evaluated, including variations in the number of neurons per layer. The initial testing of the neural network involved a single hidden layer with two neurons, representing the input of four features (RT, RR, AT, RH) and the output of one. Subsequently, the number of neurons was augmented until no discernible improvement in accuracy was observed. The most efficient architectural configuration, composed of an input layer with four neurons (one for each input feature) and two hidden layers with six neurons each, yielded the highest accuracy.
To mitigate the issue of overfitting during training, dropout layers with an intensity of 20% were incorporated into the artificial neural network architecture and interspersed between the layers. The dropout technique entails the deliberate omission of neurons that serve as feature detectors within the neural network during each stage of training. The exclusion of each neuron is determined randomly, thereby minimizing the effect of overfitting. This is achieved because each neuron becomes independently sufficient, in the sense that the neurons within the layers learn weight values that are not based on the cooperation of their neighboring neurons. The influence of varying percentages (10, 20, 30, and 40%) was examined. It was observed that from 20% onwards, there were no discernible changes in the accuracy metric.
The activation function employed in the input layers and hidden layers was ReLU (Rectified Linear Unit), whereas in the output layer, the sigmoid activation function was utilized. In the construction of the model, the stochastic descending gradient learning optimization function (Adam) was employed, with a batch size of 16 and a maximum number of iterations of 1000. Batch sizes of 4, 8, 12, 16, 20, and 22 were tested, and the results indicated that a batch size of 16 yielded the most accurate results. Despite imposing a maximum of 1000 iterations, the network exhibited convergence at an earlier point in time. This was merely a precautionary measure in the event that the values obtained for the variance in the gradient descent function remained constant and resulted in a time-consuming computational process.
The NNAMP was constructed using the Python programming language [38] (version 3.13), specifically with the Spyder and the Keras library, which is a TensorFlow. The efficacy of the NNAMP was assessed through the use of a confusion matrix.
The total sample was divided into two distinct subsets: a training sample and a test sample (validation). The training sample constituted 80% of the total sample size, while the test sample accounted for the remaining 20%. The features were standardized using the StandardScaler function of the scikit-learn preprocessing library (version 0.24.2).
Figure 3 illustrates the diagram containing the DL model description information during the preparation and execution of the analysis. This information can be utilized to assist the farmer in classifying the animals and subsequently implementing measures to mitigate the adverse effects of stress on the animal. The receiver operating characteristic (ROC) curve was employed for the assessment of the model’s performance. Information regarding the RT of the animals was employed to categorize them into two distinct classes: Class 1, comprising animals with RT below 39.3 degrees Celsius, and Class 2, comprising animals with RT equal to or greater than 39.3 degrees Celsius. This constituted the structured data essential for supervised machine learning. Accordingly, the DL model employed data from the animals’ respiratory rate records, in addition to air temperature and relative humidity records, as input variables. The total sample was divided into a training set and a validation set, and the quality of the model was assessed based on the accuracy, precision, recall, and F1-score metrics obtained by the model in the validation set.
The model was trained by minimizing the binary cross-entropy loss function. The weights were updated using the Adam optimization algorithm, with a learning rate of 0.01, a value selected automatically during the hyperparameter optimization process. The final choice of hyperparameters was based on maximizing predictive performance in the validation set, ensuring an adequate balance between model fit and generalization, in which different configurations were evaluated based on performance in the validation set, and the model with the best accuracy was selected. The final model selected has the following configuration: Input layer composed of three continuous predictor variables, previously standardized; first fully connected hidden layer, containing 32 neurons and ReLU activation function, followed by a Dropout layer with a rate of 0.20; second fully connected hidden layer with 20 neurons and ReLU activation function, followed by Dropout of 0.30; third fully connected hidden layer with 4 neurons and ReLU activation function; and output layer formed by one neuron, using the sigmoid activation function, appropriate for binary classification problems. The resulting neural network has 877 trainable parameters, reflecting a compact structure appropriate for the size of the dataset, reducing the risk of overfitting.

2.8. Canonical Correlation

In order to gain insight into the relationship between the neural network input variables (features) and the RT of the animals, as well as the impact of this relationship on the performance of the neural network, a canonical correlation analysis was conducted. RT was a reliable predictor because it is physiologically more stable than respiratory rate. Rectal temperature directly reflects the animal’s core heat balance and is less influenced by transient stimuli such as handling, momentary physical activity, or excitement. In contrast, respiratory rate is a rapid and adaptive response to thermal stress, highly variable and sensitive to immediate factors, which increases its variability and reduces its stability as an isolated predictor. Furthermore, the Nelore breed is highly adapted to high temperatures, such as those found in the tropics.
This analysis considered two groups of variables: biotic variables (RT and RR) and abiotic variables (AT and RH). The canonical correlation analysis was conducted using the eigenvectors associated with the variables employed, with the objective of assessing the degree of covariance between and among the groups of biotic and abiotic variables. This approach was adopted in order to facilitate the interpretation of the neural network evaluation, given that when the correlations between variables are low, the performance of any prediction model is also diminished. It is postulated that the canonical correlation technique is more informative than a Pearson correlation matrix, as it allows for the detection of the contribution of each eigenvalue associated with each eigenvector.

3. Results

The descriptive statistics of the parameters of biotic and abiotic variables in each class are presented in Table 1.
Table 2 presents the descriptive statistics for the predictor variables in the two samples. It can be seen that the random process of sample formation, testing, and training resulted in the emergence of highly similar parameters in both samples.
The performance of the classification model in relation to its different discrimination thresholds can be evaluated by observing the Receiver Operating Characteristic (ROC) curve in Figure 3. In light of the aforementioned classification of animals in thermal comfort, it is possible to posit that those exhibiting positive characteristics could be considered as such, whereas those displaying characteristics above comfort could be regarded as negative. The graphical representation thus depicts the proportion of values classified as negative that are incorrectly classified as positive on the abscissa axis (false positive rate). The false positive rate (FPR) is calculated as follows: FPR = FP/(FP + TN), where FP represents the number of false positives and TN denotes the number of true negatives. Conversely, the ordinate axis represents the true positive rate (TPR), which is the proportion of positive examples that are correctly classified as such. The TPR is calculated as TPR = TP/(TP + FN), where TP is the number of true positives and FN is the number of false negatives.
The random diagonal (dotted line) represents the expected performance of a random classifier. In the case of a random classifier, it is expected that the true positive rate will be equal to the false positive rate, resulting in a ROC curve along this diagonal dotted line. In such a case, the classification model would be deemed inadequate.
The area under the ROC curve (AUC) is a measure of the model’s capacity to discriminate. A higher AUC value indicates superior model performance. An AUC of 0.5 indicates a random performance, whereas an AUC of close to 1.0 indicates a perfect performance. In the evaluated model, the area corresponded to 0.67, indicating a good model performance.
The optimal operating point is defined as the point on the ROC curve that maximizes sensitivity and minimizes the false positive rate. This point represents the optimal equilibrium between accuracy and a graded error rate. In this scenario, the further the ROC curve deviates from the random diagonal towards the upper left quadrant of the graph, the superior the model’s performance, as illustrated in Figure 4.
The confusion matrix related to the model is presented in Table 3. The model demonstrated an accuracy of 0.72, calculated as the sum of the diagonal elements divided by the sum of all values. The model demonstrated an accuracy of approximately 80% in predicting the comfort class, with a recall of 83% for correctly identifying animals belonging to this class. Conversely, the specificity, defined as the proportion of animals classified by the model as belonging to the aforementioned thermal comfort class that was correctly identified, corresponded to 42%. The F1 score, which represents a harmonic mean of precision and recall, is calculated as follows: the F1 score, defined as the harmonic mean of precision and recall, was calculated to be 81.3%.
In conclusion, the high accuracy rate indicates that the model exhibits minimal error in classifying animals within the comfort class when they truly belong to that class. Similarly, the high recall rate suggests that the model also makes a few errors in classifying animals above comfort when they are, in fact, within the comfort class. The accuracy of the model was demonstrated by its ability to correctly classify 72% of all animals in the test sample. Nevertheless, the specificity was 42%. This suggests that the model demonstrated a relatively low level of accuracy in classifying the animals in the aforementioned thermal comfort category.
To enhance comprehension of the neural network’s performance, the outcomes of the canonical correlation analysis were examined. This analysis classified the variables into two groups: the first group encompassed the biotic variables (RT and RR), designated as BV, while the second group comprised the abiotic variables (AT and RH), designated as AV. The findings revealed that the BV group was the primary determinant of the neural network’s behavior.
The RT had a greater influence on the formation of BV and AT with AV (Table 4). The canonical correlations indicated that the most relevant variables were RT and AT, exhibiting a moderate–low correlation. These findings are consistent with those presented in Table 1, which showed that animals in the comfort class exhibited higher RT values and were above the higher AT values, as well as lower RH. Notably, there were no differences in RR between the two classes, indicating adaptability to unfavorable environmental conditions in two of the animals. Therefore, the input features utilized in the neural network were inadequate for differentiating the animals with regard to heat stress.
A comparison of the metrics between the values predicted by the artificial neural network (ANN) model and those derived from the BTCI, with the classification of the animals, revealed a high degree of similarity in the resulting accuracies (0.72 and 0.75), precision (0.80 and 0.88), recall (0.83 and 0.77), and F1-score (0.81 and 0.82) for the ANN model and the BTCI, respectively. These findings are illustrated in the confusion matrices presented in Figure 5.
A comparison of the confusion matrix (Table 5) between the classifications of the ANN model and the BTCI revealed that the accuracy, precision, recall, and F1-score metrics were, respectively, equal to 0.92, 0.99, 0.89, and 0.94. This confirms the similarity between the classification methods.
The innovation of this research lies in the application of deep neural networks specifically adapted for Nelore cattle, a breed recognized for its hardiness but which still requires precise monitoring to optimize performance under climate change scenarios. Unlike previous studies that utilize static models or focus exclusively on taurine breeds (Bos taurus), this work contributes by demonstrating the viability of dynamic learning systems that utilize easily obtainable abiotic and biotic variables. Furthermore, the integration of Canonical Correlation Analysis (CCA) with the ANN provides a crucial layer of biological interpretation, validating the importance of physiological variables in stress prediction—an advancement over traditional ‘black-box’ computational models.
However, it is important to note that both models share a moderate specificity (42%), indicating that while they are highly effective in detecting animals under thermal stress, they tend to generate false alarms for those in thermal comfort. This limitation suggests that the boundary between comfort and the onset of stress is complex and may require additional indicators for a clearer separation between classes. The principal advantage of employing ANN models is that the network can be continually restructured and updated, thereby sustaining a continuous learning process.

4. Discussion

The results obtained demonstrate the positive impact of welfare on livestock through the implementation of strategic initiatives and the optimization of the production process. The development of precise models and the implementation of novel technologies in livestock to assess thermal comfort enable livestock farmers to promptly and strategically identify interventions that consider climatic factors to enhance animal management and feeding, thereby impacting herd welfare and animal productivity.
The use of the model allows for interventions and decision-making by the farmer without the need for constant animal management, so the application of the model within rural properties will be important to enhance animal welfare and reduce the time spent during extensive data collection. Therefore, it can promote the efficient switching of animals between pastures or paddocks, as indicated by the model used in this study.
The test sample presented satisfactory parameters, demonstrating a performance of 72%, which indicates the effectiveness of the proposed model. Specifically, low indicates a higher rate of false positives, that is, animals classified as being above thermal comfort when, biologically, they are still in adequate conditions. This limitation suggests that the model tends to prioritize the detection of animals at risk, which may be desirable from an animal welfare perspective, but requires caution in interpreting the results and in the practical use of the model in breeding systems. These results are closely in line with those previously reported by Sousa et al. [39], who obtained 71% (R2 of 0.50) when comparing two groups of Nelore cattle using a neural model with feed-forward and multilayer architecture.
In the study by Sousa et al. [40], which also employed a two-group division of Nellore cattle, the fuzzy classifier yielded a model test performance of 81 (R2 of 0.74%). Both studies aimed to predict stress through the use of physiological variables, with the construction of prediction models.
The application of technologies in livestock farming facilitates the promotion of animal welfare and the assurance of the quality of animal products. This is achieved by providing producers with viable alternatives that can effectively mitigate and prevent the adverse effects of heat stress on animal health, which subsequently reduces losses incurred during the production process [41,42].
Accordingly, the application of the LD model in livestock farming entails the assessment of the influence of climatic variables on the comfort and, subsequently, on the well-being of animals, which is inextricably linked to economic losses and the quality of animal products [43]. The method is effective in identifying and classifying animals according to their level of comfort or heat stress. This enables farmers to implement prevention practices and adapt the environment in which animals are raised, thereby mitigating the impact of climate change on them. Furthermore, the utilization of the LD model exemplifies the capacity for innovation and sustainable adaptation of a property, taking into account the requirements of consumers and environmental resources, such as the promotion of animal well-being throughout the animal’s lifespan and the integration of forest areas within pastures [40].
In order to enhance comprehension of the neural network’s performance, the outcomes of the canonical correlation analysis, which incorporated the biotic variables (RT and RR) in one group and the abiotic variables (AT and RH) in another, revealed that the former group was the primary focus of the neural network.
The RT had a greater influence on the preparation of BV and AT with AV, as indicated by the canonical correlations, which identified RT and AT as the most relevant variables, although with a moderate–low correlation. These findings are consistent with those presented in Table 1, in which the animals in the comfort class exhibited higher RT values and were above the highest AT values, as well as lower RH. Notably, there were no differences in RR between the two classes, indicating that both animals demonstrated adaptability to unfavorable environmental conditions. Therefore, the input characteristics of the neural network were inadequate for differentiating between the animals based on their heat stress levels.
Therefore, the neural network model demonstrates good accuracy, high precision, and high recall but low specificity. This is attributed to the model’s difficulty in detecting animals with conditions above thermal comfort, which has the smallest number of animals and, consequently, less influence on the metrics inherent to the thermal comfort class. This limitation of the model can be attributed to the utilization of input variables (features) that offer minimal contribution to this discrimination.
The use of non-invasive methods to assess physiological conditions and the number of animals through LD makes it possible to associate climatic variables and physiological parameters. The periodic capture of data allows the algorithm to be trained to estimate heat stress indices, thus providing personalized information, the creation of alerts, solutions to mitigate heat stress, and data on the climate [44,45] automatically and in real time, as well as allowing the number of evaluations to be much greater, favoring consulting services and obtaining data for farms and also for the government [46].
The adaptability of cattle to their environment can be attributed to the lower thermal stress and, consequently, a higher level of comfort. This enables the activation of compensatory and adaptive mechanisms, such as changes in physiological functions, which seek to re-establish body homeostasis and, in turn, promote the well-being and survival of animals in hot environments [44].
Another factor that may have contributed is the development of acclimatization, which has been observed to trigger greater water intake in the animal, as well as a reduction in feed consumption and changes in physiological functions, including increased urination and defecation. The combination of these factors can significantly contribute to the majority of cattle being within the comfort zone [47].
The RT demonstrated a moderately low correlation with AT, which can be attributed to the tendency of animals to retain internal heat when exposed to high temperatures, leading to an increase in body temperature [48].
Furthermore, cattle may also exhibit reduced RT even in tropical climates, primarily due to their calm demeanor, robust development, and resilience to parasites [46]. Furthermore, the elevation in body temperature in cattle may be attributed to a multitude of factors, including climate, exercise and digestion, inflammation, and immune response [49]. Furthermore, alterations in the temperature gradient of +1 °C can occur within minutes of exposure, characterizing stress-induced hyperthermia (SIH) or emotional fever [44]. This phenomenon is frequently reported in diverse species, including cattle [50].
It was observed that RR remained unaltered even when AT was high, which coincided with the increase in RT. This may be indicative of the animals’ adaptability to their environment since it is known that RR is a variable used to evaluate stress in cattle [1]. The adaptability of cattle raised on pasture in tropical regions is of great importance, as their tolerance to high temperatures and relative humidity reduces the impact on productivity [51].
In light of these observations, the evolutionary process of animals, as exemplified by the Zebu cattle breed, has led to the development of thermotolerance in regions with more intense heat when compared to taurine breeds. This is attributed to the ability to exchange heat with the environment [30]. Conversely, taurine breeds also demonstrate considerable potential for adaptation to locations with higher temperatures through the process of natural selection [52].
The process of heat exchange that occurs through sweating represents one of the primary mechanisms of body temperature control, a function that is carried out cutaneously and in conjunction with the animal’s breathing. Therefore, when these processes ensure homeothermy, other forms of thermoregulation are not activated [53]. Consequently, the study did not observe any impact of RR, as it was not influenced by the breeding environment.
The findings of this study can be utilized in practical applications to estimate the heat load of animals in relation to their environmental context, employing LD. Furthermore, this model can be integrated into other studies to facilitate the management and nutrition of these animals [54]. Furthermore, the potential for utilizing this technology to facilitate the adaptation of animals to diverse environmental conditions on various livestock farms is noteworthy, making this an innovative technology within the domain of livestock farming [55,56].
One study used a heat stress monitoring model based on artificial intelligence in order to provide methods that would enable greater thermal comfort and showed that the models and processing units automatically activated heat stress reduction measures such as the use of water spray and environment modifiers. In addition, the authors show that the data obtained constitute a robust repertoire and that they can be stored and used in the future to observe the responses of the animals according to temperature variations, identifying the best-adapted animals [57,58] and the use of more favorable and effective production systems for these animals through the evaluation of physiological variables such as RT and RR, for instance.
The neural network model demonstrated satisfactory performance in classifying animals according to thermal comfort, as observed by Rodrigues et al. [59], when evaluating the method for extracting characteristics from infrared thermography data by applying the development of animal thermal stress classifier models. This class had the largest number of animals, and the model exhibited high precision and high recall, as well as good accuracy, based on the calculated metrics. However, the model demonstrated suboptimal performance in classifying the animals in the class above thermal comfort. This is likely due to the smaller number of animals in this class, which resulted in a lower metric value for specificity [60]. This outcome can be attributed to the limited correlation between the classification variables and the RT of the animals, given that the latter was employed for the categorization of the classes.
Other studies such as Brown-Brandl et al. [61], Hernandez-Julio et al. [62], and Pacheco et al. [63] evaluated the use of neural network models to predict thermal and physiological responses in cattle. The studies noted that the use of neural networks was able to capture complex responses between physiological and environmental variables.
One potential explanation for this low correlation between RT and the other model features is the adaptability of the animals to the conditions represented by the sampled rearing systems. Despite this, the animals in the thermal comfort class and those under thermal stress exhibited similar mean RR values, although there were notable differences between the classes in terms of RT, AT, and RH. However, these physiological nuances also highlight critical limitations of the current model.
The low specificity (42%) indicates a high rate of false positives, which is primarily attributed to class imbalance in the training data and the limited number of input features. Biologically, this outcome also reflects the ‘carry-over’ effect in Nelore cattle, where physiological responses such as RT and RR remain elevated for a period even after ambient heat stress diminishes, blurring the comfort-stress decision boundary. From a precision management perspective, this trend represents a conservative safety margin; the model prioritizes high sensitivity (94%) to ensure that heat stress events are not missed, which is more critical for preventive intervention in tropical systems than avoiding false alarms. To enhance environmental adaptability and discriminative power, future improvements should focus on including behavioral and physiological features, applying data balancing techniques, and testing the model across diverse climatic conditions.

5. Conclusions

This study demonstrates the effectiveness of deep learning as a technology for identifying thermal stress situations in cattle. While the classification model achieved high recall and precision, ensuring the reliable detection of critical heat stress, it exhibited a notably low specificity. This limitation indicates a significant rate of false alarms for the comfort class, likely stemming from class imbalance in the training dataset and the limited scope of the current input features. These findings suggest that variables such as RT, RR, and THI, while relevant, may not fully capture the biological complexity of environmental adaptability, highlighting the need for a more diverse set of metabolic and physiological indicators to enhance the model’s discriminative power.
Despite these performance constraints, the integration of artificial intelligence into animal monitoring remains a highly valuable tool for improving health management and animal welfare. The application of neural networks provides a robust framework for identifying metabolic profiles and thermal resilience, supporting more precise nutritional and genetic selection in livestock breeding. Future research should focus on balancing datasets and incorporating additional behavioral and environmental variables to improve model robustness and reduce false positive rates. Ultimately, this methodology offers a promising path for the continuous monitoring of animal–environment interactions, facilitating more sustainable and adaptive management practices.

Author Contributions

Experiment design: W.C.d.S., J.A.R.d.S., C.V.d.A., L.G.M. and J.d.B.L.-J. Experiment execution: W.C.d.S., J.A.R.d.S., L.G.M., É.B.R.d.S., K.A.L.N., T.S.B., L.A.J., T.C.G.d.C.R., A.G.M.e.S., R.N.C.C.-J., C.V.d.A. and J.d.B.L.-J. Investigation: W.C.d.S., J.A.R.d.S., C.V.d.A., L.G.M. and J.d.B.L.-J. Experiment execution: W.C.d.S., J.A.R.d.S., L.G.M., É.B.R.d.S., K.A.L.N., T.S.B., L.A.J., T.C.G.d.C.R., A.G.M.e.S., R.N.C.C.-J., C.V.d.A. and J.d.B.L.-J. Data curation: W.C.d.S. and C.V.d.A. Formal analysis: W.C.d.S. and C.V.d.A. Original writing: W.C.d.S. and J.d.B.L.-J. All authors have read and agreed to the published version of the manuscript.

Funding

This study was funded in part by the Federal University of Pará and Coordenação de Aperfeiçoamento de Pessoal de Nível Superior (CAPES) Brasil. This study also received financial support for the publication fee from the Dean of Research and Graduate Studies (PROPESP/UFPA-Announcement-02/2023).

Institutional Review Board Statement

Approved by the Animal Ethics Committee (CEUA/UNAMA), CEUA-UNAMA 0001-87/2023.

Informed Consent Statement

Written informed consent has been obtained from the farm owner to publish this paper.

Data Availability Statement

The data presented in this study are available upon reasonable request from the corresponding author.

Acknowledgments

We would like to thank the Coordination for the Improvement of Higher Education Personnel (CAPES)—Brazil. This study also received financial support for the publication fee from the Dean of Research and Graduate Studies (PROPESP/UFPA). We also extend our gratitude to the Programa de Pós-graduação em Ciência Animal (PPGCAN). We would also like to thank the Conselho Nacional de Desenvolvimento Científico e Tecnológico (CNPq) for funding the project through the Universal Call for Proposals. We would like to thank the research group on Bioclimatology, Animal Welfare, and Nutrition in the Amazon.

Conflicts of Interest

The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

References

  1. Silva, W.C.D.; Silva, J.A.R.D.; Silva, É.B.R.D.; Barbosa, A.V.C.; Sousa, C.E.L.; Carvalho, K.C.D.; Santos, M.R.P.D.; Neves, K.A.L.; Martorano, L.G.; Camargo Júnior, R.N.C.; et al. Characterization of Thermal Patterns Using Infrared Thermography and Thermolytic Responses of Cattle Reared in Three Different Systems during the Transition Period in the Eastern Amazon, Brazil. Animals 2023, 13, 2735. [Google Scholar] [CrossRef] [PubMed]
  2. da Silva, W.C.; da Silva, É.B.R.; Santos, M.R.P.D.; Junior, R.N.C.C.; Barbosa, A.V.C.; da Silva, J.A.R.; Vinhote, J.A.; de Sousa, E.D.V.; de Brito Lourenço Júnior, J. Behavior and thermal comfort of light and dark coat dairy cows in the Eastern Amazon. Front. Vet. Sci. 2022, 9, 1006093. [Google Scholar] [CrossRef]
  3. Mota-Rojas, D.; Titto, C.G.; Orihuela, A.; Martínez-Burnes, J.; Gómez-Prado, J.; Torres-Bernal, F.; Flores-Padilla, K.; Carvajal-De la Fuente, V.; Wang, D. Physiological and behavioral mechanisms of thermoregulation in mammals. Animals 2021, 11, 1733. [Google Scholar] [CrossRef]
  4. da Silva, W.C.; Printes, O.V.N.; Lima, D.O.; da Silva, É.B.R.; Santos, M.R.P.D.; Júnior, R.N.C.C.; Barbosa, A.V.C.; da Silva, J.A.R.; Silva, A.G.M.E.; Silva, L.K.X.; et al. Evaluation of the temperature and humidity index to support the implementation of a rearing system for ruminants in the Western Amazon. Front. Vet. Sci. 2023, 10, 1198678. [Google Scholar] [CrossRef]
  5. Felini, R.; Cavallini, D.; Buonaiuto, G.; Bordin, T. Assessing the impact of thermoregulatory mineral supplementation on thermal comfort in lactating Holstein cows. Vet. Anim. Sci. 2024, 24, 100363. [Google Scholar] [CrossRef]
  6. Tulu, D.; Hundessa, F.; Gadissa, S.; Temesgen, T. Review on the influence of water quality on livestock production in the era of climate change: Perspectives from dryland regions. Cogent Food Agric. 2024, 10, 2306726. [Google Scholar] [CrossRef]
  7. Nzeyimana, J.B.; Fan, C.; Zhuo, Z.; Butore, J.; Cheng, J. Heat stress effects on the lactation performance, reproduction, and alleviating nutritional strategies in dairy cattle, a review. J. Anim. Behav. Biometeorol. 2023, 11, 2023018. [Google Scholar] [CrossRef]
  8. Idris, M.; Sullivan, M.; Gaughan, J.B.; Keeley, T.; Phillips, C.J.C. Faecal cortisol metabolites, body temperature, and behaviour of beef cattle exposed to a heat load. Animal 2024, 18, 101112. [Google Scholar] [CrossRef] [PubMed]
  9. Rhoads, M.L. Reproductive consequences of whole-body adaptations of dairy cattle to heat stress. Animal 2023, 17, 100847. [Google Scholar] [CrossRef]
  10. Veissier, I.; Laer, E.V.; Palme, R.; Moons, C.P.H.; Ampe, B.; Sonck, B.; Andanson, S.; Tuyttens, F.A. Heat stress in cows at pasture and benefit of shade in a temperate climate region. Int. J. Biometeorol. 2018, 62, 585–595. [Google Scholar] [CrossRef]
  11. Ali, W.; Ali, M.; Ahmad, M.; Dilawar, S.; Firdous, A.; Afzal, A. Application of Modern Techniques in Animal Production Sector for Human and Animal Welfare. Turk. J. Agric.-Food Sci. Technol. 2020, 8, 457–463. [Google Scholar]
  12. Buller, H.; Blokhuis, H.; Lokhorst, K.; Silberberg, M.; Veissier, I. Animal welfare management in a digital world. Animals 2020, 10, 1779. [Google Scholar] [CrossRef] [PubMed]
  13. Ventura, G.; Lorenzi, V.; Mazza, F.; Clemente, G.A.; Iacomino, C.; Bertocchi, L.; Fusi, F. Best farming practices for the welfare of dairy cows, heifers and calves. Animals 2021, 11, 2645. [Google Scholar] [CrossRef]
  14. Sadiq, M.B.; Ramanoon, S.Z.; Mansor, R.; Syed-Hussain, S.S.; Mossadeq, W.S. Dairy farmers’ knowledge, awareness and practices regarding bovine lameness in Malaysian dairy farms. Trop. Anim. Health Prod. 2024, 56, 45. [Google Scholar] [CrossRef] [PubMed]
  15. Brcko, C.C.; da Silva, J.A.R.; Garcia, A.R.; Silva, A.G.M.; Martorano, L.G.; Vilela, R.A.; Nahúm, B.d.S.; Barbosa, A.V.C.; da Silva, W.C.; Rodrigues, T.C.G.d.C.; et al. Effects of Climatic Conditions and Supplementation with Palm Cake on the Thermoregulation of Crossbred Buffaloes Raised in a Rotational Grazing System and with Natural Shade in Humid Tropical Regions. Animals 2023, 14, 53. [Google Scholar] [CrossRef]
  16. Farooq, U.; Samad, H.; Shehzad, F.; Qayyum, A. Physiological responses of cattle to heat stress. World Appl. Sci. J. 2010, 8, 38–43. [Google Scholar]
  17. Costa, D.A.D.; Santos, V.M.D.; Oliveira, A.V.D.D.; Souza, C.L.D.; Moreira, G.R.; Rosa, B.L.; Reis, E.M.B.; Queiroz, A.M.D. Seasonality effect on the physiological and productive responses of crossbred dairy cows to the equatorial Amazon climate. Ciência Anim. Bras. 2023, 24, e-73559E. [Google Scholar]
  18. Blond, B.; Majkić, M.; Spasojević, J.; Hristov, S.; Radinović, M.; Nikolić, S.; Anđušić, L.; Čukić, A.; Marinković, M.D.; Vujanović, B.D.; et al. Influence of Heat Stress on Body Surface Temperature and Blood Metabolic, Endocrine, and Inflammatory Parameters and Their Correlation in Cows. Metabolites 2024, 14, 104. [Google Scholar] [CrossRef]
  19. Uddin, J.; McNeill, D.M.; Lisle, A.T.; Phillips, C.J.C. A sampling strategy for the determination of infrared temperature of relevant external body surfaces of dairy cows. Int. J. Biometeorol. 2020, 64, 1583–1592. [Google Scholar] [CrossRef]
  20. Whittaker, A.L.; Muns, R.; Wang, D.; Martínez-Burnes, J.; Hernández-Ávalos, I.; Casas-Alvarado, A.; Domínguez-Oliva, A.; Mota-Rojas, D. Assessment of Pain and Inflammation in Domestic Animals Using Infrared Thermography: A Narrative Review. Animals 2023, 13, 2065. [Google Scholar] [CrossRef] [PubMed]
  21. Mota-Rojas, D.; Ogi, A.; Villanueva-García, D.; Hernández-Ávalos, I.; Casas-Alvarado, A.; Domínguez-Oliva, A.; Lendez, P.; Ghezzi, M. Thermal Imaging as a Method to Indirectly Assess Peripheral Vascular Integrity and Tissue Viability in Veterinary Medicine: Animal Models and Clinical Applications. Animals 2023, 14, 142. [Google Scholar] [CrossRef]
  22. Ribeiro, I.P.; Gonçalves, P.H.D.; Rodrigues, M.S.; Nascimento, G.B.D.; Baptista, R.S.; Filho, J.R.L.C.; Wolf, A.; Wolf, S.H.G. Infrared thermography for detection of clinical and subclinical mastitis in dairy cattle: Comparison between Girolando and Jersey breeds. Ciência Anim. Bras. 2023, 24, e-76726. [Google Scholar] [CrossRef]
  23. Ghezzi, M.D.; Napolitano, F.; Casas-Alvarado, A.; Hernández-Ávalos, I.; Domínguez-Oliva, A.; Olmos-Hernández, A.; Pereira, A.M. Utilization of Infrared Thermography in Assessing Thermal Responses of Farm Animals under Heat Stress. Animals 2024, 14, 616. [Google Scholar] [CrossRef]
  24. Marquez, H.P.; Schaefer, A.L.; Bench, C.J. Use of fidget and drinking behaviour in combination with facial infrared thermography for diagnosis of bovine respiratory disease in a spontaneous model. Animal 2024, 18, 101096. [Google Scholar] [CrossRef]
  25. Tan, C.; Sun, F.; Kong, T.; Zhang, W.; Yang, C.; Liu, C. A survey on deep transfer learning. In Artificial Neural Networks and Machine Learning–ICANN 2018, Proceedings of the 27th International Conference on Artificial Neural Networks, Rhodes, Greece, 4–7 October 2018; Springer: Cham, Switzerland, 2018; pp. 270–279. [Google Scholar]
  26. Jiang, B.; Wu, Q.; Yin, X.; Wu, D.; Song, H.; He, D. FLYOLOv3 deep learning for key parts of dairy cow body detection. Comput. Electron. Agric. 2019, 166, 104982. [Google Scholar] [CrossRef]
  27. Zhang, J.; Sun, G.; Zheng, K.; Mazhar, S. Pupil detection based on oblique projection using a binocular camera. IEEE Access 2020, 8, 105754–105765. [Google Scholar] [CrossRef]
  28. Kang, S.; Kim, D.H.; Lee, S.; Lee, T.; Lee, K.W.; Chang, H.H.; Choi, Y.H. An acute, rather than progressive, increase in temperature-humidity index has severe effects on mortality in laying hens. Front. Vet. Sci. 2020, 7, 568093. [Google Scholar] [CrossRef]
  29. Xu, Y.; Wu, T.; Gao, F.; Charlton, J.R.; Bennett, K.M. Improved small blob detection in 3D images using jointly constrained deep learning and Hessian analysis. Sci. Rep. 2020, 10, 326. [Google Scholar] [CrossRef]
  30. Gjergji, M.; de Moraes Weber, V.; Silva, L.O.C.; da Costa Gomes, R.; De Araújo, T.L.A.C.; Pistori, H.; Alvarez, M. Deep learning techniques for beef cattle body weight prediction. In Proceedings of the 2020 International Joint Conference on Neural Networks (IJCNN), Glasgow, UK, 19–24 July 2020; pp. 1–8. [Google Scholar]
  31. Psota, E.T.; Luc, E.K.; Pighetti, G.M.; Schneider, L.G.; Fryxell, R.T.; Keele, J.W.; Kuehn, L.A. Desenvolvimento e validação de uma rede neural para detecção automatizada de moscas-dos-chifres em bovinos. Informática Eletrônica Agric. 2021, 180, 105927. [Google Scholar]
  32. Mahmud, M.S.; Zahid, A.; Das, A.K.; Muzammil, M.; Khan, M.U. A systematic literature review on deep learning applications for precision cattle farming. Comput. Electron. Agric. 2021, 187, 106313. [Google Scholar] [CrossRef]
  33. Chapman, N.H.; Chlingaryan, A.; Thomson, P.C.; Lomax, S.; Islam, M.A.; Doughty, A.K.; Clark, C.E. A deep learning model to forecast cattle heat stress. Comput. Electron. Agric. 2023, 211, 107932. [Google Scholar] [CrossRef]
  34. Roopaei, M.; Bergmann, C.; Azemi, A.; Hardyman, K.; Hampton, J. Advancing Cattle Health: AI-Driven Innovations in Lameness Detection and Management. In Proceedings of the 2024 IEEE 14th Annual Computing and Communication Workshop and Conference (CCWC), Las Vegas, NV, USA, 8–10 January 2024. [Google Scholar]
  35. Köppen, W.; Geiger, R. Klimate der Erde. In Wall-Map 150 cm × 200 cm; Verlag JustusPerthes: Gotha, Germany, 1928; pp. 91–102. [Google Scholar]
  36. Martorano, L.G.; Vitorino, M.I.; da Silva, B.P.P.C.; Lisboa, L.S.; Sotta, E.D.; Reichardt, K. Climate conditions in the eastern amazon: Rainfall variability in Belem and indicative of soil water deficit. Afr. J. Agric. Res. 2017, 12, 1801–1810. [Google Scholar] [CrossRef]
  37. Dirksen, G.; Gründer, H.D.; Stöber, M. Rosenberger Exame Clínico dos Bovinos, 3rd ed.; Guanabara Koogan: Rio de Janeiro, Brazil, 1993; p. 419. [Google Scholar]
  38. Python Software Foundation. Python Language Reference, Version 2.7. Available online: http://www.python.org (accessed on 1 May 2024).
  39. de Sousa, R.V.; Canata, T.F.; Leme, P.R.; Martello, L.S. Development and evaluation of a fuzzy logic classifier for assessing beef cattle thermal stress using weather and physiological variables. Comput. Electron. Agric. 2016, 127, 176–183. [Google Scholar] [CrossRef]
  40. de Sousa, R.V.; da Silva Rodrigues, A.V.; de Abreu, M.G.; Tabile, R.A.; Martello, L.S. Predictive model based on artificial neural network for assessing beef cattle thermal stress using weather and physiological variables. Comput. Electron. Agric. 2018, 144, 37–43. [Google Scholar] [CrossRef]
  41. Neethirajan, S. Artificial intelligence and sensor innovations: Enhancing livestock welfare with a human-centric approach. Hum. -Centric Intell. Syst. 2024, 4, 77–92. [Google Scholar]
  42. Jiang, B.; Tang, W.; Cui, L.; Deng, X. Precision livestock farming research: A global scientometric review. Animals 2023, 13, 2096. [Google Scholar] [CrossRef]
  43. Antanaitis, R.; Džermeikaitė, K.; Šimkutė, A.; Girdauskaitė, A.; Ribelytė, I.; Anskienė, L. Use of Innovative Tools for the Detection of the Impact of Heat Stress on Reticulorumen Parameters and Cow Walking Activity Levels. Animals 2023, 13, 1852. [Google Scholar] [CrossRef]
  44. Neves, S.F.; Silva, M.C.; Miranda, J.M.; Stilwell, G.; Cortez, P.P. Predictive Models of Dairy Cow Thermal State: A Review from a Technological Perspective. Vet. Sci. 2022, 9, 416. [Google Scholar] [CrossRef]
  45. Neethirajan, S. Transforming the adaptation physiology of farm animals through sensors. Animals 2020, 10, 1512. [Google Scholar] [CrossRef]
  46. Nepomuceno, G.L.; Cecchin, D.; Damasceno, F.A.; Amaral, P.I.S.; Caproni, V.R.; Ponciano Ferraz, P.F. Compost barn system and its influence on the environment, comfort and welfare of dairy cattle. Comf. Welf. Dairy Cattle 2023, 21, 1233–1245. [Google Scholar] [CrossRef]
  47. Silveira, R.M.F.; Façanha, D.A.E.; McManus, C.; Asensio, L.A.B.; da Silva, I.J.O. Intelligent methodologies: An integrated multi-modeling approach to predict adaptive mechanisms in farm animals. Comput. Electron. Agric. 2024, 216, 108502. [Google Scholar] [CrossRef]
  48. Gupta, S.; Singh, B.; Rengarajan, A. Assessing the Temperature Conditions and Behavioral Habits in a Farm to Ensure Cattle Welfare. Rev. Electron. Vet. 2024, 25, 24–31. [Google Scholar]
  49. Theusme, C.; Macías-Cruz, U.; Castañeda-Bustos, V.; López-Baca, M.A.; García-Cueto, R.O.; Vicente-Pérez, R.; Mellado, M.; Vargas-Villamil, L.; Avendaño-Reyes, L. Holstein heifers in desert climate: Effect of coat color on physiological variables and prediction of rectal temperature. Trop. Anim. Health Prod. 2023, 55, 183. [Google Scholar] [CrossRef]
  50. Pontiggia, A.; Münger, A.; Eggerschwiler, L.; Holinger, M.; Stucki, D.; Ammer, S.; Bruckmaier, R.; Dohme-Meier, F.; Keil, N. Behavioural responses related to increasing core body temperature of grazing dairy cows experiencing moderate heat stress. Animal 2024, 18, 101097. [Google Scholar] [CrossRef]
  51. Mader, T.L.; Gaughan, J.B.; Johnson, L.J.; Hahn, G.L. Tympanic temperature in confined beef cattle exposed to excessive heat load. Int. J. Biometeorol. 2010, 54, 629–635. [Google Scholar] [CrossRef]
  52. Bouwknecht, J.A.; Olivier, B.; Paylor, R.E. The stress-induced hyperthermia paradigm as a physiological animal model for anxiety: A review of pharmacological and genetic studies in the mouse. Neurosci. Biobehav. Rev. 2007, 31, 41–59. [Google Scholar] [CrossRef] [PubMed]
  53. Shephard, R.W.; Maloney, S.K. A review of thermal stress in cattle. Aust. Vet. J. 2023, 101, 417–429. [Google Scholar] [CrossRef]
  54. Sanger, M.E.; Doyle, R.E.; Hinch, G.N.; Lee, C. Sheep exhibit a positive judgement bias and stress-induced hyperthermia following shearing. Appl. Anim. Behav. Sci. 2011, 131, 94–103. [Google Scholar] [CrossRef]
  55. Oka, T.; Oka, K. Mechanisms of psychogenic fever. Adv. Neuroimmune Biol. 2012, 3, 3–17. [Google Scholar] [CrossRef]
  56. Čukić, A.; Rakonjac, S.; Djoković, R.; Cincović, M.; Bogosavljević-Bošković, S.; Petrović, M.; Savić, Ž.; Andjušić, L.; Andjelić, B. Influence of heat stress on body temperatures measured by infrared thermography, blood metabolic parameters and its correlation in sheep. Metabolites 2023, 13, 957. [Google Scholar] [CrossRef]
  57. Islam, M.A.; Lomax, S.; Doughty, A.; Islam, M.R.; Jay, O.; Thomson, P.; Clark, C. Automated monitoring of cattle heat stress and its mitigation. Front. Anim. Sci. 2021, 2, 737213. [Google Scholar] [CrossRef]
  58. Bernatchez, L.; Ferchaud, A.L.; Berger, C.S.; Venney, C.J.; Xuereb, A. Genomics for monitoring and understanding species responses to global climate change. Nat. Rev. Genet. 2024, 25, 165–183. [Google Scholar]
  59. Rodrigues, A.V.; Martello, L.S.; Pacheco, V.M.; de Souza Sardinha, E.J.; Pereira, A.L.V.; de Sousa, R.V. Thermal signature: A method to extract characteristics from infrared thermography data applied to the development of animal heat stress classifier models. J. Therm. Biol. 2023, 115, 103609. [Google Scholar] [CrossRef]
  60. Zhao, H.; Yan, L.; Hou, Z.; Lin, J.; Zhao, Y.; Ji, Z.; Wang, Y. Error Analysis Strategy for Long-term Correlated Network Systems: Generalized Nonlinear Stochastic Processes and Dual-Layer Filtering Architecture. IEEE Internet Things J. 2025, 12, 33731–33745. [Google Scholar]
  61. Brown-Brandl, T.M.; Jones, D.D.; Woldt, W.E. Evaluating modelling techniques for cattle heat stress prediction. Biosyst. Eng. 2005, 91, 513–524. [Google Scholar] [CrossRef]
  62. Hernández-Julio, Y.F.; Yanagi, T., Jr.; de Fátima Ávila Pires, M.; Aurélio Lopes, M.; Ribeiro de Lima, R. Models for prediction of physiological responses of Holstein dairy cows. Appl. Artif. Intell. 2014, 28, 766–792. [Google Scholar] [CrossRef]
  63. Pacheco, V.M.; Sousa, R.V.; Sardinha, E.J.; Rodrigues, A.V.; Brown-Brandl, T.M.; Martello, L.S. Deep learning-based model classifies thermal conditions in dairy cows using infrared thermography. Biosyst. Eng. 2022, 221, 154–163. [Google Scholar] [CrossRef]
Figure 1. Installation of agrometeorological sensors. (A) The agrometeorological box in an open position, with the sensor in hand. (B) The sensor fitted to the interior of the agrometeorological box. (C) The box assembled with the sensor, and (D) the agrometeorological box installed on the fence that forms the experiment paddock.
Figure 1. Installation of agrometeorological sensors. (A) The agrometeorological box in an open position, with the sensor in hand. (B) The sensor fitted to the interior of the agrometeorological box. (C) The box assembled with the sensor, and (D) the agrometeorological box installed on the fence that forms the experiment paddock.
Animals 16 00161 g001
Figure 2. Experimental groups. (A) Integrated System (IS), which had trees providing shade, water for bathing and drinking, and mineral salt; (B) Traditional System (TS), which had no trees or shade, but included access to water for drinking and mineral salt; (C) Silvopastoral System (SP), which included trees providing shade and access to water and mineral salt.
Figure 2. Experimental groups. (A) Integrated System (IS), which had trees providing shade, water for bathing and drinking, and mineral salt; (B) Traditional System (TS), which had no trees or shade, but included access to water for drinking and mineral salt; (C) Silvopastoral System (SP), which included trees providing shade and access to water and mineral salt.
Animals 16 00161 g002
Figure 3. Detailed diagram of the information describing the deep learning model used during the preparation and execution of the analysis to classify cattle. DL = deep learning.
Figure 3. Detailed diagram of the information describing the deep learning model used during the preparation and execution of the analysis to classify cattle. DL = deep learning.
Animals 16 00161 g003
Figure 4. Receiver Operating Characteristic (ROC) curve obtained by the model in the test sample to evaluate the model performance.
Figure 4. Receiver Operating Characteristic (ROC) curve obtained by the model in the test sample to evaluate the model performance.
Animals 16 00161 g004
Figure 5. Comparison of metrics between values predicted by the ANN model and through the BTCI.
Figure 5. Comparison of metrics between values predicted by the ANN model and through the BTCI.
Animals 16 00161 g005
Table 1. Average of the data analyzed for RT, RR, AT and RH considering the standard deviation, lower (Lm.) and upper (Um.) values of the average confidence interval and sample size (n) for the thermal comfort classes.
Table 1. Average of the data analyzed for RT, RR, AT and RH considering the standard deviation, lower (Lm.) and upper (Um.) values of the average confidence interval and sample size (n) for the thermal comfort classes.
In Thermal Comfort (n = 452)
AverageSDLm.Um.
Rectal Temperature (°C)38.750.3338.7238.79
Respiratory Rate (mpm)31.356.5230.7531.95
Air temperature (°C)27.753.4227.4328.06
Relative Humidity (%)59.9515.8458.4861.41
Above Thermal Comfort (n = 224)
AverageSDLm.Um.
Rectal Temperature (°C)39.560.2039.5339.59
Respiratory Rate (mpm)31.866.8030.9632.76
Air temperature (°C)29.352.8328.9829.72
Relative Humidity (%)55.5616.2353.4257.70
Note: SD = standard deviation. Lm = lower mean. Um = upper mean.
Table 2. Estimates of mean, standard deviation and sample size (n) for RT, RR, AT and RH, in the training samples, test samples and in the total sample.
Table 2. Estimates of mean, standard deviation and sample size (n) for RT, RR, AT and RH, in the training samples, test samples and in the total sample.
Training Sample (n = 540)
CriminatorsAverageSDMin.Max.
Respiratory Rate (mpm)31.766.5420.0060.00
Air Temperature (°C)28.313.2622.1034.00
Relative Humidity (%)58.2216.2730.0084.00
Test Sample (n = 136)
AverageSDMin.Max.
Respiratory Rate (mpm)30.576.8416.0056.00
Air Temperature (°C)28.163.5622.1034.00
Relative Humidity (%)59.5915.3932.0084.00
Total Sample Size (n = 676)
AverageSDMin.Max.
Respiratory Rate (mpm)31.526.6216.0060.00
Air Temperature (°C)28.283.3222.1034.00
Relative Humidity (%)58.4916.0930.0084.00
Note: SD = standard deviation. Min = minimum. Max = maximum.
Table 3. Confusion matrix for the classification of the animals obtained by the model in relation to the actual classification, in the comfort and above thermal comfort classes.
Table 3. Confusion matrix for the classification of the animals obtained by the model in relation to the actual classification, in the comfort and above thermal comfort classes.
RealPredicted
In ComfortAbove Comfort
In Comfort8317
Above Comfort2115
Table 4. Canonical coefficients between biotic (BV) and abiotic (AV) variables, with canonical correlations between the original and canonical variables (VA and VB).
Table 4. Canonical coefficients between biotic (BV) and abiotic (AV) variables, with canonical correlations between the original and canonical variables (VA and VB).
DiscriminatorsStandardized Coefficient of the First
Canonical Pair
Biotic VariablesBV
Rectal Temperature (°C)0.9503
Respiratory Rate (mpm)0.2295
Abiotic VariablesAV
Air Temperature (°C)1.0796
Relative Humidity (%)0.1888
Canonical correlation
Biotic VariablesBVAV
Rectal Temperature (°C)0.970.34
Respiratory Rate (mpm)0.320.11
Abiotic VariablesAVBV
Air Temperature (°C)0.980.35
Relative Humidity (%)−0.34−0.12
Note: BV = biotic variables, AV = abiotic variables.
Table 5. Comparison of the confusion matrix between the classifications of the ANN model with the BTCI.
Table 5. Comparison of the confusion matrix between the classifications of the ANN model with the BTCI.
ANN PredictedBTCI Predicted
In ComfortAbove Comfort
In Comfort8610
Above Comfort139
Note: ANN = Artificial Neural Net; BTCI = Benezra Comfort Index.
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Silva, W.C.d.; Silva, J.A.R.d.; Martorano, L.G.; Silva, É.B.R.d.; Araújo, C.V.d.; Camargo-Júnior, R.N.C.; Neves, K.A.L.; Belo, T.S.; Joaquim, L.A.; Rodrigues, T.C.G.d.C.; et al. A Supervised Deep Learning Model Was Developed to Classify Nelore Cattle (Bos indicus) with Heat Stress in the Brazilian Amazon. Animals 2026, 16, 161. https://doi.org/10.3390/ani16020161

AMA Style

Silva WCd, Silva JARd, Martorano LG, Silva ÉBRd, Araújo CVd, Camargo-Júnior RNC, Neves KAL, Belo TS, Joaquim LA, Rodrigues TCGdC, et al. A Supervised Deep Learning Model Was Developed to Classify Nelore Cattle (Bos indicus) with Heat Stress in the Brazilian Amazon. Animals. 2026; 16(2):161. https://doi.org/10.3390/ani16020161

Chicago/Turabian Style

Silva, Welligton Conceição da, Jamile Andréa Rodrigues da Silva, Lucietta Guerreiro Martorano, Éder Bruno Rebelo da Silva, Cláudio Vieira de Araújo, Raimundo Nonato Colares Camargo-Júnior, Kedson Alessandri Lobo Neves, Tatiane Silva Belo, Leonel António Joaquim, Thomaz Cyro Guimarães de Carvalho Rodrigues, and et al. 2026. "A Supervised Deep Learning Model Was Developed to Classify Nelore Cattle (Bos indicus) with Heat Stress in the Brazilian Amazon" Animals 16, no. 2: 161. https://doi.org/10.3390/ani16020161

APA Style

Silva, W. C. d., Silva, J. A. R. d., Martorano, L. G., Silva, É. B. R. d., Araújo, C. V. d., Camargo-Júnior, R. N. C., Neves, K. A. L., Belo, T. S., Joaquim, L. A., Rodrigues, T. C. G. d. C., Silva, A. G. M. e., & Lourenço-Júnior, J. d. B. (2026). A Supervised Deep Learning Model Was Developed to Classify Nelore Cattle (Bos indicus) with Heat Stress in the Brazilian Amazon. Animals, 16(2), 161. https://doi.org/10.3390/ani16020161

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop