The merged adult sheep-lamb cohort comprised 163 observations from 140 animals in the training pool and 38 observations from 35 independent hold-out animals (Table 1). Rectal temperature ranged from 37.67 to 40.61°C. There was a small subset of febrile observations above 39.5°C. Across candidate models, the random forest achieved the lowest mean cross-validated error (Table 2). The performance gap between random forest and Ridge showed that while nonlinear effects contribute to prediction, some signal can be captured by linear combinations of thermal and environmental features.
On the independent hold-out set, bias remained small, the details of which are given in Table 3. Clinical agreement between predicted and rectal temperature is given in Table 4. Calibration analysis showed slopes of 0.899 in the training pool and 0.914 in the hold-out set, indicating mild regression toward the mean (Table 5). These results indicate that the model provides unbiased estimates on average; however, the spread of differences suggests that individual-level substitution for rectal thermometry remains limited.
Slightly greater variability of surface temperature was noted at higher temperatures (Fig 1). There was a mild regression toward the mean. Specifically, higher temperatures tended to be slightly underestimated, while lower temperatures were slightly overestimated. Our findings are endorsed by other scientific reports
(Liu et al., 2023). Calibration analysis confirmed deviance from the ideal identity relationship. So, although the predictions are reasonably accurate overall, calibration adjustment would be required before clinical deployment or substitution for rectal measurements.
Environmental conditions had a clear impact on performance. Models showed lower error in shade (RMSE ≈ 0.36°C) compared to sunlight (RMSE ≈ 0.45°C) (Table 6). These findings emphasize the importance of accounting for environmental conditions in both model design and practical deployment and suggest that shaded measurements may be more reliable. The influence of environmental on peripheral measurements is consistent with infrared thermography-derived temperatures studied in Murrah bulls
(Ahirwar et al., 2019). Changes in barn microclimate and airflow also change the rectal and peripheral surface temperatures in heifers as per one study
(Rajawat et al., 2026).
This is also consistent with the findings of other scientists. Solar radiation and environmental heat load disrupt the relationship between surface and core temperature
(McManus et al., 2016; Weschenfelder et al., 2013). Simplified deployment-oriented models demonstrated a trade-off between practicality and accuracy. A sparse Ridge model using only muzzle and ambient temperature resulted in higher error (RMSE ≈ 0.41°C) compared to the full engineered feature set (≈ 0.38°C). Although performance decreased, the gap was modest, indicating that reduced-sensor configurations may still be viable for field deployment where simplicity and cost are important considerations.
Mixed-effects models
In the mixed-effects model incorporating head mean temperature and ambient temperature (Model B), ambient temperature showed a statistically significant positive association with rectal temperature (p = 0.021).
In the other model, including muzzle temperature and ambient temperature (Model A), neither predictor demonstrated a statistically significant association with rectal temperature. Taken together, these findings support the use of IRT as a supplementary approach for temperature monitoring rather than as a replacement for rectal thermometry (
Hashimoto, 2026). The models achieved moderate predictive accuracy with minimal bias and reasonable clinical agreement. Similar reported ranges for infrared thermography-based were reported by multiple authors (
McCafferty, 2007;
Tattersall, 2016). The feature importance from random regression is given in Table 7. Limb temperature was the most important predictor, followed by face-derived thermal contrasts. This indicates that peripheral and facial heat signatures carry the strongest association with rectal temperature. The prominence of limb temperature may reflect the peripheral tissues are sensitive to changes in blood flow and environmental heat exchange
(Bakony et al., 2023). The value of peripheral temperature appears to be due to the thermal relationship with rectal temperature and the surrounding environment.
Improving robustness under sunlight and enhancing calibration remain a challenge. Solar radiation directly increases the temperature of exposed body surfaces and changes the thermal gradient between the animal and its surroundings. Consequently, surface temperatures measured under direct sunlight may have more environmental influence. The higher error observed under sunlight suggests that the image acquisition conditions must be taken into consideration before interpretation
(Cross et al., 2024). Larger datasets will be important for refining model stability and extending applicability across diverse farm conditions
(Hussein et al., 2025). Additionally, the dataset needs to be diversified to improve the predictions by the inclusion of more febrile cases.
Overall, the findings indicate that infrared thermography combined with environmental information can provide useful inferences regarding temperature in sheep. However, the method can be a supplementary tool rather than a replacement for rectal thermometry. Further validation will be necessary to establish the robustness and practical applicability of the approach. This should include more of diverse dataset, febrile animals, seasons, environments and environmental measurements.