Next Article in Journal
Prevalence, Diagnosis, and Treatment of Ovarian Cysts in Bitches and Queens: A Meta-Analysis
Previous Article in Journal
Utilization of Urinary Neopterin Levels for Pregnancy Diagnosis in Mated Giant Pandas
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Combined Infrared Thermography and Agitated Behavior in Sows Improve Estrus Detection When Applied to Supervised Machine Learning Algorithms

by
Leila Cristina Salles Moura
1,
Janaina Palermo Mendes
2,
Yann Malini Ferreira
1,3,
Rayna Sousa Vieira Amaral
1,
Diana Assis Oliveira
1,
Fabiana Ribeiro Caldara
4,
Bianca Thais Baumann
2,
Jansller Luiz Genova
5,
Charles Kiefer
2,
Luciano Hauschild
6 and
Luan Sousa Santos
1,2,*
1
Animal Science Graduate Program, Federal Rural University of Rio de Janeiro (UFRRJ), Seropédica 23897-000, RJ, Brazil
2
School of Veterinary Medicine and Animal Science, Federal University of Mato Grosso do Sul (UFMS), Campo Grande 79070-900, MS, Brazil
3
Graduate Program in Animal Biosciences, Department of Animal Biosciences, University of Guelph, Guelph, ON N1G 2W1, Canada
4
School of Agricultural Sciences, Federal University of Grande Dourados (UFGD), Dourados 79804-970, MS, Brazil
5
Department of Animal Science, Federal University of Viçosa (UFV), Viçosa 36570-900, MG, Brazil
6
Faculty of Agricultural and Veterinary Sciences, Universidade Estadual Paulista “Júlio de Mesquita Filho” (FCAV/UNESP), Jaboticabal 14884-900, SP, Brazil
*
Author to whom correspondence should be addressed.
Animals 2025, 15(19), 2798; https://doi.org/10.3390/ani15192798
Submission received: 23 May 2025 / Revised: 17 September 2025 / Accepted: 23 September 2025 / Published: 25 September 2025
(This article belongs to the Section Pigs)

Simple Summary

Estrus detection allows greater fertility success with artificial insemination. Thus, evaluating changes in body surface temperature can provide an accurate model to predict estrus occurrence. Nine LW × LD crossbred sows were studied in this pilot study, and thermographic images were collected post-weaning and in sows subjected to a hormonal induction protocol. The results show that significant temperature differences exist between pre-estrus and estrus, suggesting their potential as an indicator of changes in internal temperature during estrus, with 87% accuracy in estrus identification. They are good indicators for determining estrus in sows.

Abstract

The identification of estrus at the right moment allows for a higher success of fecundity with artificial insemination. Evaluating changes in body surface temperature of sows during the estrus period using an infrared thermography camera (ITC) can provide an accurate model to predict these changes. This pilot study comprised nine crossbred Large White x Landrace sows, providing 59 data records for analysis. Observed changes in the behavior and physiological signs of the sows signaled the identification of estrus. Images of the ocular area, ear tips, breast, back, vulva, and perianal area were collected with the ITC. The images were analyzed using the FLIR Thermal Studio Starter software. Infrared mean temperatures were reported and compared using ANOVA and Tukey–Kramer tests (p < 0.05). Supervised machine learning models were tested using random forest (RF), Conditional inference trees (Ctree), Partial least squares (PLS), and K-nearest neighbors (KNN), and the method performance was measured using a confusion matrix. The orbital region showed significant differences between estrus and non-estrus states in sows. In the confusion matrix, the algorithm predicted estrus with 87% accuracy in the test set, which contained 40% of the data, when agitated behavior was combined with orbital area temperature. These findings suggest the potential for integrating behavioral and physiological observations with orbital thermography and machine learning to detect estrus in sows under field conditions accurately.

1. Introduction

The precise identification of estrus in sows significantly impacts reproductive productivity, decreasing the chances of estrus return, repeat breeding, and the number of non-productive days of females in the herd. However, estrus detection is often labor-intensive and requires experience and careful observation from workers on commercial pig farms.
During estrus, sows exhibit distinct behavioral and physiological changes essential for accurate estrus detection. Behavioral indicators include increased agitation, frequent mounting attempts, reduced feed intake, and vocalizations, which are influenced by elevated estrogen levels and the sow’s receptivity to the boar [1,2]. Physiological signs, such as vulvar swelling (edema), reddening (hyperemia), and mucous discharge, result from estrogen-induced vascular changes in the reproductive tract [2,3]. However, individual variation and parity-related differences can affect the expression of these signs, leading to potential misdiagnosis when relying solely on visual inspection [4].
Alternative approaches to detecting estrus using more technology, such as the use of Infrared thermography cameras (ITC) as a non-contact tool for assessing an animal’s body surface temperature, are applied in livestock [5,6]. Various studies have utilized infrared thermography to detect estrus in different species, including cattle [7,8], buffaloes [9], goats [10], and sheep [11], with promising outcomes. In sows, ITC has been utilized to predict estrus and optimize the timing of artificial insemination [6,12,13,14]. This tool can detect physiological changes associated with estrus, during which surface temperatures typically rise [14] within the range of 37.0 to 39.6 °C in sows [15].
Artificial intelligence (AI) has also been studied for its application in estrus prediction, using machine learning (ML) and deep learning tools. Through these models, studies have been able to predict estrus using data such as sow’s vulva size and postural changes [16], goat’s behavior [17], cow’s vocalization [18] and feeding behavior [19].
Such models offer high interpretability and adaptability, especially in small datasets with mixed data types. When combined with temperature or behavioral data, these algorithms provide reliable tools for estrus classification and decision-making support under field conditions [20].
This study aimed to evaluate the effectiveness of ITC in detecting temperature differences in sows during estrus across distinct body regions, and to test the performance of supervised ML models in classifying estrus status based on thermography and behavioral indicators.

2. Materials and Methods

2.1. Animals and Housing

The study was carried out at the swine production facility of the Federal Rural University of Rio de Janeiro (UFRRJ), Brazil. A total of 59 pre-classified information from Large White × Landrace crossbreed sows (30 non-estrus and 29 in estrus) had data collected post-weaning and/or subjected to a hormone induction protocol for estrus synchronization. The sows were housed in individual concrete-floored pens, localized in a naturally ventilated experimental swine facility during the winter season. Each pen was equipped with a stainless-steel nipple drinker and a built-in concrete feeding trough positioned at the front of the enclosure. Pens were fully partitioned to prevent physical contact between animals and allowed unobstructed visual and olfactory interaction. Routine cleaning was performed daily to ensure hygienic conditions. Sows had ad libitum access to water and were fed according to PIC recommendations for gestation and lactation phases.
The protocol to induce estrus involved daily oral administration of 5 mL of altrenogest (Merck Animal Health, Madison, NJ, USA) for 18 days. Estrus signs were monitored starting on day 0, which marked the final day of altrenogest treatment.

2.2. Data Collection and Estrus Detection

Data collection occurred over approximately seven days (starting 5 days before the estrus prediction of the sow and finishing two days after estrus for each sow); however, only two pre-estrus and in-estrus days were used for all analysis. Behavioral data and temperature of sows were obtained twice daily (9:00 a.m. and 2:00 p.m.) by a single trained observer. This observer underwent a standardized protocol prior to data collection, which involved reviewing the ethogram definitions and practicing observation techniques used at the farm. To minimize bias, the observer was blinded to the sow’s hormonal induction status and the exact timing of estrus confirmation via BPT, focusing solely on the real-time behavioral and physical signs. Ambient temperature and relative humidity were recorded using a thermo-hygrometer (KR-42 digital thermo-hygrometer, Instrubras, São Paulo, Brazil).
Estrus was detected by releasing a boar in the experimental stall hall, with signs (Table 1) observed subjectively and classified in physical signs, including vulva reddening (VR), vulva swollen (VS), and vulva mucous discharge (MD). Behavioral signs, like agitated (AG), reduction of appetite (RA), urination in front of the boar (FU), and tremor in front of the boar (TFB). And finally, a reflex test named back-pressure test (BPT), which involves applying firm pressure to the sow’s back to elicit a standing reflex, served as the primary criterion for confirming estrus.
Estrus signs were collected daily during the peri-estrus period. For each sow, the observation window was defined as two days before and two days after the first day estrus was confirmed based on the standing reflex and vulvar changes. This retrospective identification allowed standardized behavioral monitoring in relation to estrus onset. Behavior was recorded twice daily (08:00 and 15:00 h) by the same trained evaluator using a pre-established ethogram. The ethogram included both physical signs (e.g., vulvar reddening, swelling) and behavioral indicators (e.g., agitation, reduced appetite), each noted as present (1) or absent (0) based on direct visual inspection.

2.3. Infrared Thermography

Temperature measurements were recorded with sows inside the pen using a portable infrared thermographic camera (IFT) FLIR C5 (Teledyne FLIR LLC, Wilsonville, OR, USA), which features a 160 × 120 pixels thermal imager. The camera captured images from four different angles at a distance of 0.5 m to achieve each body region of the sow. The IFT images were analyzed using the FLIR Thermal Studio Starter software (Figure 1), and emissivity was set at a default value of 0.98, which is a standard setting for biological surfaces. For each specified body region (ear tips, eyes, breasts, back, vulva, and perianal areas), a Region of Interest (ROI) was manually delineated in the software. The mean temperature within each defined ROI was extracted for analysis, rather than single pixel, maximum, or minimum values, to provide a more representative temperature for the area. No specific filtering or automated outlier removal algorithms were applied post-extraction. Each sow was evaluated calmly within individual pens to minimize stress. When their measuring area presented feces, it was wiped using a paper towel to prevent minor temperature changes or inaccurate readings. The same operator captured and analyzed all images. The images were captured twice a day, once in the morning and again in the afternoon, approximately one hour after the animals were fed. Rectal temperature was also recorded using a digital clinical thermometer (Accumed; G-tech, São Paulo, Brazil) as a reference.

2.4. Statistical and Machine Learning Analysis

Data were analyzed using the SAS statistical software (SAS 9.4 Inst., Cary, NC, USA), using the GLIMMIX procedure for generalized linear mixed models, as shown in Equation (1). For binary response variables (estrus signs: presence/absence), a binomial distribution with a logit link function was specified. For continuous temperature values, a normal distribution was assumed. To account for repeated measures within individual’s sows, Sow ID was included as random effect. The covariance structure for repeated measures was modeled using an unstructured (UN) covariance matrix when feasible, or an autoregressive order 1 (AR(1)) based on the smaller Bayesian Information Criterion (BIC). Fixed covariates such as ambient temperature, humidity and time-of-the-day (morning/afternoon measurements) were considered and initially tested but not included in the final presented model due to not reaching improved BIC values. Significance was declared at p < 0.05.
Y i j k l = μ + α j + β k + γ i + ϵ i j k l
Y i j k l : is the observed temperature or sign for sow i, estrus status j, body region k, time l
μ : overall mean
α j : fixed effect of estrus status (pre-estrus vs. estrus)
β k : fixed effect of region of the temperature
γ i : random intercept effect for sow i
ϵ i j k l : residual error
The supervised ML models were tested for estrus detection using Random Forest (RF), Conditional Inference Trees (Ctree), Partial Least Squares (PLS), and K-Nearest Neighbors (KNN). The classification and regression training (caret) package was employed to conduct all supervised ML analyses using the RStudio software, version 4.5.1 (R Foundation for Statistical Computing, Vienna, Austria). Random Forest algorithms construct an ensemble of decision trees by training on bootstrapped samples of the data and considering random subsets of features at each split. A Conditional Inference Tree is a non-parametric class of regression trees that embeds tree-structured regression models into a well-defined theory of conditional inference procedures. Partial Least Squares is a method related to principal components regression, and the K-Nearest Neighbors algorithm uses proximity to make predictions of classifications about a data point [21].
These algorithms were selected for their ability to handle small datasets, mixed variable types, and higher interpretability. Each model was trained to classify sows as estrus or non-estrus based on a combination of signs and temperature features. For RF, the number of trees (ntree) was set to 500, and the number of variables randomly sampled at each split (mtry) was optimized using 10-fold cross-validation. For Ctree, default parameters were used. For PLS, the number of components was optimized through cross-validation. For KNN, the k parameter was optimized through cross-validation. A fixed random seed was set at the beginning of the analysis (e.g., set.seed(123)). Model performance was evaluated using accuracy, sensitivity, specificity, and confusion matrices, with the dataset (n = 59) randomly partitioned into 60% training and 40% testing sets. This split of dataset was used to maintain the independence of data points. Observations from each individual sow were exclusively assigned to either the training or testing dataset, preventing data leakage across the partitioning. By applying a range of methods, we aimed to evaluate which modeling approach performs best under field conditions and with our mixed-type dataset (binary and continuous outcomes). The goal was to identify the best-performing model for estrus classification under field conditions.
Once a classification was tested using ML algorithms, the method’s performance was measured using a confusion matrix. There were four conditions in the confusion matrix for measuring performance:
True positive (TP)—Indicates the positive data entered the system and positively predicted estrus classification; False positive (FP)—Indicates the negative data entered the system and the positively predicted estrus classification; True negative (TN)—Indicates the negative data entered the system and the negatively predicted estrus classification; False negative (FN)—Indicates the positive data entered the system and classified as negative by the model.
The accuracy (see Equation (2)) was calculated based on the TP, FP, TN and FN values.
A c c u r a c y = T P + T N T P + T N + F P + F N × 100

3. Results

3.1. Signs of Estrus

The observed signs in sows and gilts during estrus and 2 days prior to estrus (Table 2) showed significant differences (p < 0.05), except for RA and TFB. Among the signs, agitation showed the largest increase from pre-estrus to estrus (8% vs. 71%, p < 0.0001). These signs were observed at a very low frequency in females during the experimental period. Considering the back-pressure test (BPT) as a parameter for estrus confirmation, 100% of the females analyzed presented this behavior. Of these, only 77% showed hyperemic vulva, and 74% vulvar edema.

3.2. Infrared Thermography Camera and Rectal Temperature

The temperature data obtained through ITC (Table 3) show significant differences only in the orbital area (left and right eyes) (p < 0.05). The analysis results from the thermographic camera for the right ear, left ear, back, breast, vulvar, and perianal areas were similar between the pre-estrus phase and during estrus in the sows. Rectal temperature measured using a digital thermometer (DT), also showed no statistical difference (p > 0.05) between the two cycle phases.
The orbital area measured by the ITC significantly decreased during estrus (right and left eyes −7.15% and −6.42%, respectively). No other body region showed statistical differences. Rectal temperature remained statistically unchanged (p = 0.07).

3.3. Machine Learning

Figure 2 illustrates the relative importance of each predictor variable used in the Random Forest classification model for estrus detection in sows. Among all variables analyzed, agitation behavior was identified as the most influential factor in predicting estrus, with a normalized importance score of 100.
Infrared thermography (IRT) measurements from specific body regions showed varying degrees of importance. The temperatures of the left ear and right eye ranked as the second and third most important predictors, respectively. Also, the vulvar region ranked lowest in importance in the Random Forest model.
Using 60% of the training data resulted in an accuracy of 100% (90.3–100%, 95% CI). The training set correctly classified 17 positive data points and 19 negative values. For the test set, the accuracy of 40% of the data was 87% (66.4–97.2%, 95% CI) (Table 4).

4. Discussion

A primary limitation of this study is the relatively small sample size of nine sows, which yielded 59 data records. While this pilot study has allowed for an investigation into the combined use of thermography and behavioral data, there are some limitations for the applicability of findings across diverse farm conditions.

4.1. Estrus Signs

During estrus, the vulva appears hyperemic, swollen, and with vaginal discharge [22,23]. The sow becomes more agitated with and without the boar being present [24], increases standing time [6], interacts more with other females [25], and exhibits significantly altered posture changes indicative of estrus receptivity [16]. Other increased signs are pricked ears, sniffing, chomping, and vocalization [26,27]. Observing all these changes is complex, and in pig farms, the back pressure test (BPT) is applied to observe the sow’s reaction. This test is not voluntary behavior, but rather a reflex response of the sow to tactile stimulation. A positive indication of estrus in the back pressure reaction is when the sow appears to stand still and its ears stand still [27], which happened in all the sows during the period of the experiment.
However, only 77% of the females showed hyperemic vulva, and 74% vulvar edema. A reddened vulva refers to increased blood flow (hyperemia) resulting in a pink-to-red coloration. A swollen vulva is caused by fluid accumulation (edema), leading to visible enlargement. Both are estrogen-driven signs commonly associated with the onset of estrus in sows. These results indicate an inevitable failure regarding using these signs to diagnose estrus, mainly because not all females manifested or maintained these physiological signs during the estrus period. These findings might be attributed to the subjective nature of visual assessment or decreased estrogen production after ovulation. This hormone is positively related to the vulva’s hyperemia and edema response [28].

4.2. Rectal Temperature

Rectal temperature did not demonstrate a significant difference between pre-estrus and estrus periods. When compared to the environmental temperature, the average sow’s body temperature followed, in a particular manner, the average variation in environmental temperature. Some diurnal trends were observed, with slightly higher morning values and a general increase in the afternoon. In the estrus period, temperatures were relatively milder, and there was also an increase in afternoon periods (Table 3). These results demonstrate the body’s attempt to maintain homeostasis in the face of climate change, as internal temperature variations were not as pronounced as average temperature changes, indicating a slower rectal temperature balance [29]. Variations between pre-estrus and estrus may demonstrate that, although less significant, internal body temperature can be changed even if less significantly between these periods.
The lack of significant differences contrasts with findings by Sykes et al. [13], who used a controlled indoor environment to mitigate environmental variations. In our study, such control was not possible, which potentially increased temperature variability and reduced statistical power. These results suggest the rectal temperature alone may not be a reliable indicator of estrus under commercial conditions.

4.3. Infrared Thermography Camera

The ITC is a widely studied technique that is used as a non-invasive method to detect estrus in sows. The focus is on the vulvar region because of expected increases in local blood flow and surface temperature during ovulation. However, in our study, the vulvar temperature showed no significance in the IT method or with ITC, which does not support the results presented by several authors [13,30]. The authors observed that sows exhibited an increase in body temperature during estrus and a subsequent drop in temperature after estrus. Greater differences were observed when the environmental temperature was approximately 20 °C, indicating the significant influence of the environment on the results. Different results were observed by Luño et al. [31], where the difference during the estrus was not significantly higher than in the period without estrus. Also, Simões et al. [32] observed a drop in vulvar skin temperature during estrus, despite remaining stable in pre-estrus, with low significance. The lack of significance in our findings may be attributed to several factors. These include changes in environmental conditions, natural differences between individual animals at the time of measurement, or the limitations of handheld thermography. Moreover, despite promising, this tool might not easily detect small changes, especially if these changes are too subtle or only happen for a short time during the animal’s normal behavior.
Interestingly, the orbital area was the only anatomic region to show a significant difference between the pre-estrus and estrus periods, showing a 2 °C difference. This change may seem abrupt, but it is a reading of the average of a set of days. A more frequent (daily) assessment might have yielded more consistent results. It must also be considered that the p-value of eye temperature measured by ITC was the most closely related to the rectal temperature p-value by DT, demonstrating the efficiency of using orbital area temperature measurement to indicate internal animal temperature.
This finding aligns with studies in other species, such as sheep and buffalo, where orbital temperature correlates more closely with internal physiological changes than with external peripheral areas [9,11]. The orbital region is considered a thermal window due to its rich vascularization and high emissivity, making it a stable and responsive site for thermal measurement [5,33]. Unlike the vulvar or perianal areas, it requires no physical manipulation for image capture, which minimizes stress-related temperature artifacts and reduces the risk of dust presence. Capturing images from the orbital area also makes it a practical and animal-friendly option for repeated monitoring, especially on commercial farms.
Several studies have evaluated other body parts, such as the back [12,34], ears [34,35], vulvar region [6,12,13,14,31,36], anal region [30,34], and breast [12], as indicators of estrus in sows and gilts. This study did not find significant results with the IFC for these body parts, but this does not invalidate the technique. Instead, it can be improved and used in conjunction with other technologies and protocols to detect estrus in sows, yielding more accurate results [12,34].
Although other anatomical areas, such as the ears, breast, perianal region, and back, showed no significant impact, combining behavioral signs like agitation with ITC data enhanced the accuracy of estrus classification in machine learning models. The Random Forest algorithm revealed that agitation and orbital temperature were the most significant predictors, while the vulvar region was among the least important. These findings support the growing evidence that using multiple signals, including behavioral and physiological ones, can make estrus detection more reliable than relying on a single trait. However, the observed unexplained left/right asymmetries in variable importance (e.g., left ear vs. right ear, right eye vs. left eye) for estrus prediction in the Random Forest model suggest potential measurement bias or inherent biological variability that was not accounted for in our experimental design.
Multiple studies have shown that Artificial Intelligence and Machine Learning can accurately detect estrus. For example, Chang et al. [37] achieved over 97% recognition using image features from the vulva, while Xue et al. [16] reported 94.1% accuracy based on posture changes in sows. In our study, although the sample size was limited, combining agitation (observed as frequent pacing and pen exploration) and orbital temperature data allowed for effective classification of estrus vs. non-estrus states. These findings were confirmed through confusion matrix evaluation, which showed consistent accuracy and specificity when using the integrated approach (Table 4).
In summary, while traditional methods that rely on vulvar temperature may not produce consistent results in field conditions, the orbital region shows strong potential as a physiological marker for estrus. When paired with behavioral observations and supported by ML models, ITC can become a valuable tool for real-time estrus detection. Future research with larger sample sizes, standardized imaging protocols, and automated behavioral quantification will be crucial for validating and optimizing the use of this technology in commercial pig production systems.

5. Conclusions

The combination of orbital area temperature with agitated behavior within ML models demonstrated potential for improving estrus detection in sows. Our findings reveal an integrated approach that offers a promising non-invasive strategy to enhance the estrus detection in sows, particularly under commercial conditions. However, further validation with larger and more diverse sow populations will enable a more accurate model for routine implementation.

Author Contributions

L.C.S.M.—Conceptualization, writing, original draft preparation; J.P.M.—Conceptualization, writing, original draft preparation; Y.M.F.—Conceptualization, software, investigation, resources; R.S.V.A.—investigation, resources; D.A.O.—investigation, resources; F.R.C.—Conceptualization, resources; B.T.B.—investigation, resources; J.L.G.—Conceptualization, resources; C.K.—Conceptualization, supervision; L.H.—software, resources, supervision; L.S.S.—Conceptualization, supervision, funding acquisition, writing, review, and editing. All authors have read and agreed to the published version of the manuscript.

Funding

This study was granted by APQ1 FAPERJ (E26/211.603/2021), the Conselho Nacional de Desenvolvimento Científico e Tecnológico (CNPq) Universal Grant 406106/2023-1, and the Federal University of Mato Grosso do Sul (UFMS).

Institutional Review Board Statement

The animal study protocol (protocol code 0114-01-2021) was approved by the Institutional Review Board of the Federal Rural University of Rio de Janeiro (UFRRJ).

Informed Consent Statement

Not applicable.

Data Availability Statement

The code can be requested from the corresponding authors. The data are not publicly available due to being part of an ongoing study and privacy.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. ABCS. Produção de Suínos: Teoria e Prática; Associação Brasileira de Criadores de Suínos—Coordenação técnica da Integrall Soluções em Produção Animal: Brasília, Brazil, 2014. [Google Scholar]
  2. Hafez, B.; Hafez, E.S.E. Reprodução Animal, 7th ed.; Editora Manole: Barueri, Brazil, 2004. [Google Scholar]
  3. Langendijk, P.; Van Den Brand, H.; Soede, N.M.; Kemp, B. Effect of boar contact on follicular development and on estrus expression after weaning in primiparous sows. Theriogenology 2000, 54, 1295–1303. [Google Scholar] [CrossRef] [PubMed]
  4. Frare, A.L.; Pontili, A.D.; Bini, D.; Jacobovski, D.A.; Teixeira, E.; Malherbi, G.; Meirelles, C. Ciclo Estral dos Suínos; Faculdade Assis Gurgaz: Cascavel, Brazil, 2013. [Google Scholar]
  5. Godyń, D.; Herbut, P. Applications of continuous body temperature measurements in pigs—A review. Ann. Wars Univ. Life Sci—SGGW—Anim. Sci. 2018, 56, 209–220. [Google Scholar] [CrossRef]
  6. Zhang, Z.; Zhang, H.; Liu, T. Study on body temperature detection of pig based on infrared technology: A review. Artif. Intell. Agric. 2019, 1, 14–26. [Google Scholar] [CrossRef]
  7. Perez Marquez, H.J.; Ambrose, D.J.; Schaefer, A.L.; Cook, N.J.; Bench, C.J. Evaluation of infrared thermography combined with behavioral biometrics for estrus detection in naturally cycling dairy cows. Animal 2021, 15, 100205. [Google Scholar] [CrossRef] [PubMed]
  8. Talukder, S.; Thomson, P.C.; Kerrisk, K.L.; Clark, C.E.F.; Celi, P. Evaluation of infrared thermography body temperature and collar-mounted accelerometer and acoustic technology for predicting time of ovulation of cows in a pasture-based system. Theriogenology 2015, 83, 739–748. [Google Scholar] [CrossRef]
  9. De Ruediger, F.R.; Yamada, P.H.; Bicas Barbosa, L.G.; Mungai Chacur, M.G.; Pinheiro Ferreira, J.C.; De Carvalho, N.A.T.; Soriano, G.A.M.; Codognoto, V.M.; Oba, E. Effect of estrous cycle phase on vulvar, orbital area and muzzle surface temperatures as determined using digital infrared thermography in buffalo. Anim. Reprod. Sci. 2018, 197, 154–161. [Google Scholar] [CrossRef]
  10. Façanha, D.A.E.; Peixoto, G.C.X.; Ferreira, J.B.; Souza, J.E.R.D.; Paiva, R.D.M.; Ricarte, A.R.F. Detecting estrus in Canindé goats by two infrared thermography methods. Acta Vet. Bras. 2018, 12, 49–54. [Google Scholar] [CrossRef]
  11. de Freitas, A.C.B.; Vega, W.H.O.; Quirino, C.R.; Junior, A.B.; David, C.M.G.; Geraldo, A.T.; Rua, M.A.S.; Rojas, L.F.C.; Filho, J.E.d.A.; Dias, A.J.B. Surface temperature of ewes during estrous cycle measured by infrared thermography. Theriogenology 2018, 119, 245–251. [Google Scholar] [CrossRef]
  12. Weng, R.-C. Variations in the body surface temperature of sows during the post weaning period and its relation to subsequent reproductive performance. Asian-Australas J. Anim. Sci. 2020, 33, 1138–1147. [Google Scholar] [CrossRef]
  13. Sykes, D.; Couvillion, J.; Cromiak, A.; Bowers, S.; Schenck, E.; Crenshaw, M.; Ryan, P. The use of digital infrared thermal imaging to detect estrus in gilts. Theriogenology 2012, 78, 147–152. [Google Scholar] [CrossRef]
  14. Lee, J.H.; Lee, D.H.; Yun, W.; Oh, H.J.; An, J.S.; Kim, Y.G.; Kim, G.M.; Cho, J.H. Quantifiable and feasible estrus detection using the ultrasonic sensor array and digital infrared thermography. J. Anim. Sci. Technol. 2019, 61, 163–169. [Google Scholar] [CrossRef]
  15. Hannon, J.P.; Bossone, C.A.; Wade, C.E. Normal physiological values for conscious pigs used in biomedical research. Lab. Anim. Sci. 1990, 40, 293–298. [Google Scholar]
  16. Xue, H.; Chen, J.; Ding, Q.; Sun, Y.; Shen, M.; Liu, L.; Chen, X.; Zhou, J. Automatic detection of sow posture and estrus based on convolutional neural network. Front. Phys. 2022, 10, 1037129. [Google Scholar] [CrossRef]
  17. Arakawa, T. Possibility of Autonomous Estimation of Shiba Goat’s Estrus and Non-Estrus Behavior by Machine Learning Methods. Animals 2020, 10, 771. [Google Scholar] [CrossRef]
  18. Wang, J.; Chen, H.; Wang, J.; Zhao, K.; Li, X.; Liu, B.; Zhou, Y. Identification of oestrus cows based on vocalisation characteristics and machine learning technique using a dual-channel-equipped acoustic tag. Animal 2023, 17, 100811. [Google Scholar] [CrossRef]
  19. Cairo, F.; Pereira, L.; Campos, M.; Tomich, T.; Coelho, S.; Lage, C.; Fonseca, A.; Borges, A.; Alves, B.; Dorea, J. Applying machine learning techniques on feeding behavior data for early estrus detection in dairy heifers. Comput. Electron. Agric. 2020, 179, 105855. [Google Scholar] [CrossRef]
  20. Choi, R.Y.; Coyner, A.S.; Kalpathy-Cramer, J.; Chiang, M.F.; Campbell, J.P. Introduction to Machine Learning, Neural Networks, and Deep Learning. Transl. Vis. Sci. Technol. 2020, 9, 14. [Google Scholar] [CrossRef]
  21. Greener, J.G.; Kandathil, S.M.; Moffat, L.; Jones, D.T. A guide to machine learning for biologists. Nat. Rev. Mol. Cell Biol. 2022, 23, 40–55. [Google Scholar] [CrossRef]
  22. Soede, N.M.; Kemp, B. Expressionof oestrus and timing of ovulation in pigs. J. Reprod. Fertil. 1997, 52, 91–103. [Google Scholar]
  23. Romoser, M.R.; Hale, B.J.; Seibert, J.T.; Gall, T.; Rademacher, C.J.; Stalder, K.J.; Baumgard, L.H.; Keating, A.F.; Ross, J.W. Methods for reproductive tract scoring as a tool for improving sow productivity12. Transl. Anim. Sci. 2020, 4, 275–284. [Google Scholar] [CrossRef]
  24. Bressers, H.P.M. Monitoring Individual Sows in Group—Housing: Possibilities for Automation. Ph.D. Thesis, Agricultural University, Wageningen, The Netherlands, 1993. [Google Scholar] [CrossRef]
  25. Lei, K.; Zong, C.; Du, X.; Teng, G.; Feng, F. Oestrus Analysis of Sows Based on Bionic Boars and Machine Vision Technology. Animals 2021, 11, 1485. [Google Scholar] [CrossRef]
  26. JMcGlone, J.; Aviles-Rosa, E.O.; Archer, C.M.; Wilson, M.; Jones, K.D.M.; Matthews, E.; Gonzalez, A.A.; Reyes, E. Understanding Sow Sexual Behavior and the Application of the Boar Pheromone to Stimulate Sow Reproduction. In Animal Reproduction in Veterinary Medicine; Aral, F., Payan-Carreira, R., Quaresma, M., Eds.; IntechOpen: London, UK, 2021. [Google Scholar] [CrossRef]
  27. Thompson, R.; Matheson, S.M.; Plötz, T.; Edwards, S.A.; Kyriazakis, I. Porcine lie detectors: Automatic quantification of posture state and transitions in sows using inertial sensors. Comput. Electron. Agric. 2016, 127, 521–530. [Google Scholar] [CrossRef]
  28. Abrams, R.M.; Thatcher, W.W.; Bazer, F.W.; Wilcox, C.J. Effect of Estradiol-17β on Vaginal Thermal Conductance in Cattle. J. Dairy Sci. 1973, 56, 1058–1062. [Google Scholar] [CrossRef]
  29. De Oliveira, N.C.; Vieira, M.D.L.; Dos Santos, W.B.R.; Pedroso, L.B.; Ribeiro, J.C.; Cezário, A.S.; Oliveira, E.M.B.; De Souza, C.M. Influência da temperatura na produção e bem-estar de suínos. Colloq. Agrar. 2017, 13, 254–264. [Google Scholar] [CrossRef]
  30. Scolari, S.; Clark, S.; Knox, R.; Tamassia, M. Vulvar skin temperature changes significantly during estrus in swine as determined by digital infrared thermography. J. Swine Health Prod. 2011, 19, 151–155. [Google Scholar] [CrossRef]
  31. Luño, V.; Gil, L.; Jerez, R.A.; Malo, C.; González, N.; Grandía, J.; de Blas, I. Determination of ovulation time in sows based on skin temperature and genital electrical resistance changes. Vet. Rec. 2013, 172, 579. [Google Scholar] [CrossRef]
  32. Simões, V.G.; Lyazrhi, F.; Picard-Hagen, N.; Gayrard, V.; Martineau, G.-P.; Waret-Szkuta, A. Variations in the vulvar temperature of sows during proestrus and estrus as determined by infrared thermography and its relation to ovulation. Theriogenology 2014, 82, 1080–1085. [Google Scholar] [CrossRef]
  33. Schmidt, M.; Lahrmann, K.-H.; Ammon, C.; Berg, W.; Schon, P.; Hoffmann, G. Assessment of body temperature in sows by two infrared thermography methods at various body surface locations. J. Swine Health Prod. 2013, 21, 203–209. [Google Scholar] [CrossRef]
  34. Weng, R.-C.; Ndwandwe, S. Application of modern estrus detection protocols in small scale Hybrid Black pig production systems. J. Agric. Crop. Res. 2020, 8, 120–131. [Google Scholar] [CrossRef]
  35. Geers, R.; Janssens, S.; Jourquin, J.; Goedseels, V.; Goossens, K.; Ville, H.; Vandoorne, N. Measurement of Ear Base Temperature as a Tool for Sow Management. Trans. ASAE 1996, 39, 655–659. [Google Scholar] [CrossRef]
  36. Chem, V.; Mun, H.-S.; Ampode, K.M.B.; Mahfuz, S.; Chung, I.-B.; Dilawar, M.A.; Yang, C.-J. Heat Detection of Gilts Using Digital Infrared Thermal Imaging Camera. Adv. Anim. Vet. Sci. 2022, 10, 2142–2147. [Google Scholar] [CrossRef]
  37. Chang, S.-C.; Wu, X.-R.; Kuan, H.-Y.; Peng, S.-Y.; Chang, C.-Y. Using deep learning to accurately detect sow vulva size in a group pen with a single camera. J. Anim. Sci. 2024, 102, skad407. [Google Scholar] [CrossRef] [PubMed]
Figure 1. Demonstration of a thermographic image captured by an infrared thermography camera. (A) Rostral region; (B) Lateral view; (C) Dorsal region; (D) Caudal region.
Figure 1. Demonstration of a thermographic image captured by an infrared thermography camera. (A) Rostral region; (B) Lateral view; (C) Dorsal region; (D) Caudal region.
Animals 15 02798 g001
Figure 2. Variable importance from Random Forest considering agitated behavior and infrared thermography (IFT) temperature from different body regions of sows.
Figure 2. Variable importance from Random Forest considering agitated behavior and infrared thermography (IFT) temperature from different body regions of sows.
Animals 15 02798 g002
Table 1. Observed estrus signs and their descriptions used by the observer.
Table 1. Observed estrus signs and their descriptions used by the observer.
CategoryCodeObservationDescription
Physical signsVRVulva reddened Vulva with a slight change in color to reddish tones
VSVulva swollenVulva slightly swollen compared to previous assessments
MDVulva mucous dischargeThe presence of mucous discharge from the vulva
Behavioral signsAGAgitatedElevated activity levels, including inquietly in pen, pacing and increased vocalization
RAReduction of appetite (leftover feed)Noticeable decrease in feed consumption, characterized by leftovers of feed in the feeder
FUFrequent urinationIncreased urination, especially in the presence of the boar
TFBTrembling in front of the boarMuscular trembling observed in the presence of the boar
Reflex testBPTBack-pressure testA positive standing and rigid reflex when pressure is applied to her back
Table 2. Percentages of observed estrus signs in pre-estrus and estrus phases of sows.
Table 2. Percentages of observed estrus signs in pre-estrus and estrus phases of sows.
SignsCycle PhaseSEMp-Value
Pre-Estrus (%)Estrus (%)
VR42.077.00.0790.0020
VS42.074.00.0800.0049
MD17.051.00.0750.0016
AG8.071.00.064<0.0001
RA0.06.00.0280.1499
FU3.020.00.0520.0216
TFB0.03.00.0200.3139
BPT0.0100--
VR = vulva reddened; VS = vulva swollen; MD = Vulva mucous discharge; AG = Agitated; RA = reduction of appetite (leftover feed); FU = frequent urination; TFB = trembling in front of the boar; BPT = Back-pressure test.
Table 3. Mean Temperatures recorded with an Infrared Thermography Camera (IFT) and Rectal Temperature measured with a Digital Clinical Thermometer (DT) in pre-estrus and estrus phases.
Table 3. Mean Temperatures recorded with an Infrared Thermography Camera (IFT) and Rectal Temperature measured with a Digital Clinical Thermometer (DT) in pre-estrus and estrus phases.
RegionCycle PhaseSEMp-Value
Pre-EstrusEstrus
Right eye29.3527.250.5260.0058
Left eye29.3027.420.5120.0109
Right ear25.1224.220.9370.4967
Left ear25.2024.381.0260.5738
Back27.9027.550.6640.7074
Breast29.6029.790.4700.7742
Vulvar area31.2930.720.4220.3655
Perianal area32.4832.250.3530.6538
Rectal Temperature38.1737.960.0800.0708
Table 4. Confusion matrix and accuracy with training and test partition using the random forest selected model.
Table 4. Confusion matrix and accuracy with training and test partition using the random forest selected model.
Predicted
EstrusNon-EstrusAccuracy (±95% CI)
Training set (60%)
Estrus1701.0 (0.93–1.00)
Non-estrus019
Test set (40%)
Estrus910.87 (0.66–0.97)
Non-estrus211
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

Moura, L.C.S.; Mendes, J.P.; Ferreira, Y.M.; Amaral, R.S.V.; Oliveira, D.A.; Caldara, F.R.; Baumann, B.T.; Genova, J.L.; Kiefer, C.; Hauschild, L.; et al. Combined Infrared Thermography and Agitated Behavior in Sows Improve Estrus Detection When Applied to Supervised Machine Learning Algorithms. Animals 2025, 15, 2798. https://doi.org/10.3390/ani15192798

AMA Style

Moura LCS, Mendes JP, Ferreira YM, Amaral RSV, Oliveira DA, Caldara FR, Baumann BT, Genova JL, Kiefer C, Hauschild L, et al. Combined Infrared Thermography and Agitated Behavior in Sows Improve Estrus Detection When Applied to Supervised Machine Learning Algorithms. Animals. 2025; 15(19):2798. https://doi.org/10.3390/ani15192798

Chicago/Turabian Style

Moura, Leila Cristina Salles, Janaina Palermo Mendes, Yann Malini Ferreira, Rayna Sousa Vieira Amaral, Diana Assis Oliveira, Fabiana Ribeiro Caldara, Bianca Thais Baumann, Jansller Luiz Genova, Charles Kiefer, Luciano Hauschild, and et al. 2025. "Combined Infrared Thermography and Agitated Behavior in Sows Improve Estrus Detection When Applied to Supervised Machine Learning Algorithms" Animals 15, no. 19: 2798. https://doi.org/10.3390/ani15192798

APA Style

Moura, L. C. S., Mendes, J. P., Ferreira, Y. M., Amaral, R. S. V., Oliveira, D. A., Caldara, F. R., Baumann, B. T., Genova, J. L., Kiefer, C., Hauschild, L., & Santos, L. S. (2025). Combined Infrared Thermography and Agitated Behavior in Sows Improve Estrus Detection When Applied to Supervised Machine Learning Algorithms. Animals, 15(19), 2798. https://doi.org/10.3390/ani15192798

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