A Patch and Attention Mechanism-Based Model for Multi-Parameter Prediction of Rabbit House Environmental Parameters
The health and productivity of rabbits are highly sensitive to the environmental conditions within the rabbit house, particularly to fluctuations and deviations in temperature, relative humidity, and carbon dioxide (CO<sub>2</sub>) concentration. However, owing to the thermal inertia and residual evaporation effects inherent in ventilation and cooling systems, environmental changes often exhibit delayed responses, rendering real-time control inadequate. Accurate prediction of key environmental parameters is indispensable for formulating effective environmental control strategies, as it enables consideration of their future dynamics and thereby enhances the rationality of regulation in rabbit farming. Existing prediction models often exhibit unsatisfactory accuracy and weak generalization, which restricts the incorporation of prediction into effective environmental control strategies. To address these limitations, summer indoor and outdoor environmental data were collected from rabbit houses in Nanping, Fujian; Jiyuan, Henan; and Qingyang, Gansu, China-three climatically distinct regions-forming three datasets. Based on these datasets, a multi-parameter time-series prediction model, Patch and Cross-Attention Enhanced Transformer for Rabbit House Prediction (PatchCrossFormer-RHP), is introduced, integrating patching and attention mechanisms. The model partitions the sequences of rabbit house temperature, relative humidity, and CO<sub>2</sub> concentration into patches and incorporates auxiliary parameters, such as indoor air velocity and outdoor temperature and humidity, to enhance feature representation. Furthermore, it applies cross-attention with differentiated encoding to disentangle multi-parameter relationships and improve predictive performance. This study used the Fujian dataset as the primary benchmark. On this dataset, PatchCrossFormer-RHP achieved root mean square error (RMSE) values of 0.290 °C, 1.554%, and 38.837 ppm for rabbit house temperature, humidity, and CO<sub>2</sub> concentration, respectively, with corresponding R<sup>2</sup> values of 0.963, 0.956, and 0.838, consistently outperforming RNN, GRU, and LSTM. Transfer experiments with single- and multi-source pretraining followed by fine-tuning on Fujian demonstrated that strong cross-regional generalization can be achieved with only limited target-domain data.
Authors
- Zhongying Liu (ORCID: https://orcid.org/0000-0001-6039-0045)
- Hou-rning Chang
- Ronghua Ji
- Guoxin Wu (ORCID: https://orcid.org/0009-0008-8449-8155)
- Zhonghong Wu
Institutions
- China Agricultural University (CN)
Publication Details
- Journal
- Animals
- Published
- 2025-11-02
- DOI
- https://doi.org/10.3390/ani15213192
- Primary Topic
- Rabbits: Nutrition, Reproduction, Health
- Type
- article
- Field-Weighted Citation Impact
- 0.00