Related Experiment Video
Updated: Aug 24, 2025

Using a Thermal Camera to Measure Heat Loss Through Bird Feather Coats
Published on: June 17, 2020
A Hybrid Model for Temperature Prediction in a Sheep House
Dachun Feng1,2,3, Bing Zhou1,2,3, Shahbaz Gul Hassan1,2,3
1Guangzhou Key Laboratory of Agricultural Products Quality & Safety Traceability Information Technology, Zhongkai University of Agriculture and Engineering, Guangzhou 510225, China.
Accurate sheep house temperature prediction is crucial for animal health. This study introduces an optimized PCA-PSO-XGBoost model, significantly improving prediction accuracy and stability over traditional methods.
Area of Science:
- Agricultural Engineering
- Environmental Monitoring
- Machine Learning Applications
Background:
- Extreme temperatures in sheep housing pose significant risks to animal health and growth.
- Accurate temperature prediction and early warning systems are vital for maintaining optimal sheep husbandry conditions.
- Traditional Extreme Gradient Boosting (XGBoost) models face challenges with parameter selection randomness and empirical limitations.
Purpose of the Study:
- To develop an optimized Extreme Gradient Boosting (XGBoost) model for predicting sheep house temperature.
- To address parameter selection issues in traditional XGBoost by integrating Principal Component Analysis (PCA) and Particle Swarm Optimization (PSO).
- To enhance the accuracy and stability of temperature prediction models for intensive sheep farming.
Main Methods:
- Implemented Principal Component Analysis (PCA) for dimensionality reduction and identification of key temperature influencing factors.
- Utilized Particle Swarm Optimization (PSO) to perform a global search and determine optimal hyperparameters for the XGBoost model.
- Developed and validated the PCA-PSO-XGBoost model using temperature data from an intensive sheep breeding base.
Main Results:
- The PCA-PSO-XGBoost model achieved high prediction accuracy with metrics: RMSE of 0.0433, MSE of 0.0019, R² of 0.9995, and MAE of 0.0065.
- Demonstrated significant improvements over the traditional XGBoost model, with RMSE, MSE, and MAE enhanced by 68%, 90%, and 94%, respectively.
- The proposed model exhibited superior accuracy and stability compared to existing temperature prediction methods.
Conclusions:
- The PCA-PSO-XGBoost model provides a highly accurate and stable solution for predicting sheep house temperatures.
- The model offers effective guidance for monitoring and regulating temperature in intensive housing environments.
- Potential for extension to predict environmental parameters in other animal housing systems, such as pig and cow houses.
Related Concept Videos
Assessing Body Temperature - Axilla
Step 1: Perform hand hygiene and put on clean gloves to maintain infection control and prevent cross-contamination.
Step 2: Prepare the patient by explaining the procedure to ensure understanding and cooperation. Ensure privacy, expose the axilla, and inform the patient that minimal movement is crucial for an accurate reading.
Step 3: Adjust the patient’s clothing to expose only the axilla. It minimizes...
Equipments Used to Measure Body Temperature
Glass-bulb Thermometer:
Glass-bulb thermometers are hollow glass tubes with a bulb tip containing liquid such as ethanol or mercury. Historically, glass bulb mercury thermometers were the standard device to measure body temperature. Today, mercury thermometers are prohibited in many countries due to the hazardous effects of mercury and the risk of exposure if the glass bulb breaks. In general,...
Temperature Measurement Sites
Oral: When assessing oral temperature, the thermometer tip should be placed under the tongue in the posterior sublingual pocket. It offers accurate readings and can be...
Assessing Body Temperature - Temporal Artery
Step 1: Perform hand hygiene and don a fresh pair of gloves to prevent cross-infection and ensure patient safety.
Step 2: Explain the procedure to the patient to establish trust. Clear communication establishes trust with the patient, ensures they understand what to expect, promotes cooperation, and enhances comfort during the procedure.
Step 3: Assess the patient's...
Thermoregulation
Factors Affecting Body Temperature
Factors may include:

