CattleFever: An Automated Cattle Fever Estimation System

Trong Thang Pham1, Ethan Coffman1, Beth Kegley1, Jeremy G. Powell1, Jiangchao Zhao1, and Ngan Le1

1 University of Arkansas

Abstract

Farmers face the critical challenge of monitoring cattle well-being for both ethical and economic success, relying on signals like body temperature and facial expressions to assess their animals' health. However, these indicators have traditionally relied on human observation with manual measurement, which is time-consuming and subjective. Despite this clear need, no automated system currently exists for monitoring cattle body temperature, and available datasets remain limited in scope.

To address these challenges, we make two key contributions: (i) We introduce CattleFace-RGBT, a novel RGB-Thermal (RGB-T) Cattle Facial Landmark dataset consisting of 2,300 paired RGB and thermal images (4,600 images in total), each with associated ground-truth temperature measurements. The dataset was developed through a structured pipeline involving data acquisition, data processing, and semi-automated annotation with 13 facial keypoints; (ii) We propose CattleFever, an automated framework that uses thermal imagery to predict core body temperature. Our CattleFever system comprises three main components: facial keypoint detection, region-of-interest segmentation, feature selection, and temperature estimation. For the temperature estimation component, we explore two approaches: heuristic methods and machine learning approaches. Extensive experiments across various combination of facial regions of interest demonstrate the effectiveness of our framework, with machine learning models significantly outperforming traditional methods. Notably, Random Forest Regression achieves the highest accuracy in predicting core body temperature with a mean square error of 0.13–0.21 square degrees Fahrenheit, highlighting the potential of RGB-T data and AI-driven analysis for advancing precision livestock health monitoring.

System overview

Overview of the CattleFever automated cattle fever estimation system
The pipeline integrates facial keypoint detection, thermal region segmentation, feature extraction, and predictive modeling to estimate cattle core body temperature non-invasively. Multiple facial-region combinations are evaluated using heuristic and machine-learning approaches, with Random Forest Regression delivering the strongest performance. The resulting temperature estimates provide a practical basis for fever screening and continuous health monitoring.

Experimental setup

Thermal and RGB camera setup for cattle temperature collection
The setup combines an ICI FMX 400 thermal camera and a standard webcam to simultaneously capture thermal and RGB video of cattle in a chute. IR Flash Pro provides real-time thermal visualization and temperature readings, while manual temperature measurements and animal IDs are recorded as ground-truth data.

Qualitative results

Qualitative results of the CattleFever system
Qualitative results of CattleFever. We demonstrate four sequential stages applied to thermal images of cattle faces: Input (original thermal images), Key-Points (facial landmark detection with green markers identifying 13 key facial features), Segmentation (region-of-interest extraction showing segmented facial areas in blue and red/orange), and Output (temperature predictions from multiple estimation methods). The keypoints are predicted by the model with a ResNet101 backbone.

Quantitative results

Table 1 compares different backbones for cattle facial landmark detection using RGB and thermal images. For RGB data, ResNet-101 achieves the highest bounding-box AP of 76.12% and keypoint AP of 94.37%, while all models reach 100% keypoint AP50. Performance is lower on thermal images because facial boundaries and landmarks have weaker visual contrast. ResNet-101 provides the strongest thermal bounding-box detection with 72.30% AP, whereas Swin-B achieves the highest thermal keypoint AP of 73.16%. Overall, the results show that cattle facial landmarks can be detected reliably across both imaging modalities, although thermal landmark localization remains more challenging.

Table 2 evaluates fever estimation using individual facial regions. Random Forest clearly outperforms the heuristic and other regression methods, achieving MSE values between 0.13 and 0.19 and R² values between 0.65 and 0.87. Eyes and nostrils provide the most predictive temperature information, while forehead features are generally less effective. Compared with heuristic approaches, which produce extremely large errors and negative R² values, Random Forest reduces prediction error by more than 99%.

CattleFever quantitative results for Tables 1 and 2

Table 3 presents results using pairs of facial regions. Random Forest again achieves the best and most consistent performance, with MSE values of 0.14–0.21 and R² values of 0.77–0.87. The eye–forehead combination provides the highest R² of 0.87, while eye–ear and nostril–ear combinations also achieve low MSE values of 0.14. These results confirm that combining selected regions can provide reliable temperature estimates, although some conventional models become unstable for particular feature combinations.

Table 4 evaluates combinations of three or more facial regions. Random Forest maintains stable performance, with MSE values of 0.16–0.17 and R² values of 0.81–0.82 across all configurations. Using every facial region does not improve performance over smaller combinations, indicating that most relevant temperature information is already captured from a limited number of regions.

CattleFever quantitative results for Tables 3 and 4

These findings are particularly promising because they demonstrate a non-contact framework that combines RGB–thermal facial landmark detection with automated body-temperature estimation. The strong performance obtained from only a few facial regions suggests that accurate fever screening may be possible without invasive sensors or manual temperature measurements, supporting scalable and less stressful cattle health monitoring.

BibTeX

@article{pham2025cattlefever,
  title={CattleFever: An Automated Cattle Fever Estimation System},
  author={Pham, Thang and Coffman, Ethan and Kegley, Beth and Powell, Jeremy G and Zhao, Jiangchao and Le, Ngan},
  journal={Available at SSRN 5394232},
  year={2025}
}