中国农业气象 ›› 2025, Vol. 46 ›› Issue (4): 483-493.doi: 10.3969/j.issn.1000-6362.2025.04.005

• 农业生态环境栏目 • 上一篇    下一篇

基于遗传算法优化BP神经网络的不同后墙材质日光温室内逐时气温模拟和动态预报

石茗化,魏渠成,乐章燕,王靖,张艳艳,周鹏,张继波   

  1. 1. 河北省气象与生态环境重点实验室,石家庄 050021;2. 河北省廊坊市气象局,廊坊 065000;3. 中国农业大学资源与环境学院,北京 100093;4. 山东省气候中心,济南 250031
  • 收稿日期:2024-05-13 出版日期:2025-04-20 发布日期:2025-04-14
  • 作者简介:石茗化,E-mail:375855571@qq.com
  • 基金资助:
    山东省自然科学基金面上项目(ZR2023MD114);河北省气象局面上项目(22ky12)

Simulation and Dynamic Forecast of Hourly Air Temperature in Solar Greenhouse with the Different Back Wall Materials Based on Optimized BP Neural Network by Genetic Algorithm

SHI Ming-hua, WEI Qu-cheng, LE Zhang-yan, WANG Jing, ZHANG Yan-yan, ZHOU Peng, ZHANG Ji-bo   

  1. 1. Key Laboratory of Meteorology and Ecological Environment of Hebei Province, Shijiazhuang 050021, China; 2. Langfang Meteorological Bureau of Hebei Province, Langfang 065000; 3. College of Resources and Environmental Sciences, China Agricultural University, Beijing 100093; 4. Shandong Provincial Climate Center, Jinan 250031
  • Received:2024-05-13 Online:2025-04-20 Published:2025-04-14

摘要:

为提高日光温室内气温预报准确率,利用温室外实时气象预报数据(气温、相对湿度和风速)和温室内3h气温数据,引入遗传算法(Genetic algorithmGA)对BP神经网络模型的初始权值和阈值进行优化,构建GABP神经网络模型对冬季和春季不同后墙材质(土墙和砖墙)温室内逐时气温进行模拟和动态预报,并与逐步回归Stepwise regressionSRBP神经网络模型模拟结果进行对比。结果表明:在后墙材质为土墙的温室内,SR模型模拟值观测值的均方根误差(RMSE)0.822.01,归一化均方根误差(NRMSE)5.13%9.97%BP神经网络模型模拟值观测值的RMSE0.821.79NRMSE5.13%7.74%GA−BP神经网络模型模拟值观测值的RMSE0.621.47NRMSE3.88%6.40%。在后墙材质为砖墙的温室内,SR模型模拟值观测值的RMSE1.072.60NRMSE5.11%16.98%BP神经网络模型模拟值观测值的RMSE1.112.29NRMSE6.12%14.95%GA−BP神经网络模型模拟值观测值的RMSE0.891.73NRMSE4.76%11.30%。GA−BP神经网络模型误差指标值均小于SRBP模型,引入遗传算法优化BP神经网络,可提高逐时气温的预报精度。由于砖墙的保温性能比土墙稍差,气温的波动性更大,土墙材质的温室内气温预报精度更高。随着预报时间提前,预报误差增加,选取温室外实时气温、相对湿度、风速和室内3h气温数据作为建模因子所建立的GA−BP神经网络模型精度最优。GA−BP神经网络模型具有更高的准确率和稳定性,更适用于预报温室内逐时气温

关键词: 遗传算法, BP神经网络, 逐步回归, 气温, 日光温室, 动态预报

Abstract:

In order to improve the prediction accuracy of air temperature in the solar greenhouse, Genetic algorithm (GA) was introduced to optimize the initial weights and thresholds of BP neural network. Using hourly meteorological forecast data (air temperature, relative humidity, and wind speed) outside the greenhouse and air temperature data of 1−3 hours before the forecast inside the greenhouse, the hourly prediction models of the temperature in the solar greenhouse with earth and brick walls were conducted based on GA−BP neural network. Simulation results by GA−BP neural network were compared with that simulated by the stepwise regression (SR) and BP neural network models. The results showed that in the greenhouse with earth wall, the root mean square error (RMSE) and the normalized root mean square error (NRMSE) between observed and simulated hourly air temperature with the SR model were 0.82−2.01℃ and 5.13%−9.97%, respectively. The RMSE and NRMSE between observed and simulated hourly air temperature with the BP neural network model were 0.82−1.79℃ and 5.13%−7.74%, respectively. The RMSE and NRMSE between hourly air temperature observed and simulated hourly air temperature with the GA−BP neural network model were 0.62−1.47℃ and 3.88%−6.40%, respectively. In the greenhouse with brick wall, the RMSE and NRMSE between observed and simulated hourly air temperature with the SR model were 1.072.60℃ and 5.11%−16.98%, respectively. The RMSE and NRMSE between observed and simulated hourly air temperature with the BP neural network model were 1.112.29℃ and 6.12%−14.95%, respectively. The RMSE and NRMSE between observed and simulated hourly air temperature with the GA−BP neural network model were 0.89−1.73℃ and 4.76%−11.30%, respectively. The error index values representing the difference in observed and simulated hourly air temperatures with the GA−BP neural network model were lower than that with the SR and BP neural network models. The introduction of genetic algorithm to optimize BP neural network can improve the prediction accuracy of hourly temperature. The temperature fluctuation in the greenhouse with the brick wall was greater than that in the greenhouse with the earth wall because the thermal insulation of brick wall was slightly worse than that of earth wall. Therefore, the temperature forecast accuracy for the greenhouse with earth wall was higher than that for the greenhouse with brick wall. The forecast error increased with the advance of the leading time of forecast. The GA−BP model established by selecting hourly air temperature, relative humidity, and wind speed outside the greenhouse and air temperature data of 1−3 hours before the forecast inside the greenhouse as modeling factors had the best accuracy. GA−BP neural network model could be used to predict hourly temperature inside the solar greenhouse with high accuracy and stability.

Key words: Genetic algorithm, BP neural network, Stepwise regression, Air temperature, Solar greenhouse, Dynamic forecast