Abstract:Accurate temperature prediction in mushroom houses is crucial to ensuring the efficient industrial production of edible mushrooms. However, existing predictive models often lack generalizability when applied to mushroom houses located in different regions. Taking into account the disruptive effects of environmental changes caused by equipment in mushroom cultivation houses, and equipment operation state features was integrated to develop a temperature prediction model based on the temporal convolution network and long short-term memory model (TCN-LSTM). This model used TCN to extract local information along the temporal dimension, while LSTM captured the long-term dependencies of time series data. Compared with models that did not integrate device operating state features, the TCN-LSTM model that incorporated these features reduced the MSE by 17.1%, 35.7%, and 44.1%, and reduced MAE by 4.3%, 28.0%, and 38.0% for prediction horizons of 1hour, 2hours, and 3hours, respectively. This result indicated that incorporating equipment operating states had a significantly positive effect on the prediction performance. Compared with other shallow and deep learning models, the TCN-LSTM model achieved the best prediction accuracy for different prediction horizons, with R2 no less than 0.982, and both MSE and MAE no more than 0.57℃ for horizons up to 3 hours, satisfying the requirements of accuracy and duration in temperature predictions for mushroom room environmental control. This study employed transfer learning via pre-training and fine-tuning to adjust network parameters in small sample datasets, achieving rapid construction of temperature prediction models for mushroom rooms at different locations. The results indicated that for prediction horizons of 1hour, 2hours, and 3hours, the prediction models built using different locations as target domains achieved R2 values no less than 0.912, MSE values no more than 4.02℃, and MAE values no more than 2.01℃ in the test set. These results suggested that under small sample conditions, the temperature models constructed for different locations using transfer learning can achieve accurate temperature predictions at different steps.