机构地区:[1]农业农村部规划设计研究院,北京100125 [2]山东农业大学机械与电子工程学院,泰安271018 [3]农业农村部农业设施结构设计与智能建造重点实验室,北京100125
出 处:《农业工程学报》2024年第18期194-201,共8页Transactions of the Chinese Society of Agricultural Engineering
基 金:农业农村部规划设计研究院自主研发计划项目(SP202101);国家自然科学基金项目(32201657);山东省自然科学基金项目(ZR2021QF091);山东省重点研发计划重大科技创新工程项目(2022CXGC020708);山东省重点研发计划乡村振兴科技创新提振行动计划项目(2023TZXD065)。
摘 要:构建精确的温室空气温度预测模型是采用模型预测控制等控制算法实现温室空气温度精准控制的前提条件。长短记忆神经网络(long short-term memory,LSTM)以处理时间序列数据方面的优势而广泛应用于温室空气温度预测,然而其面对长时间序列数据存在由于数据遗忘而导致温室空气温度预测精度降低的问题。为解决以上问题,该研究将LSTM模型与注意力机制(attention mechanism,AT)结合构建LSTM-AT模型,根据LSTM模型隐藏层输出状态重要性程度为隐藏层输出分配权重,以提高温室空气温度长时间预测精度。该研究在不同预测时长(12、24和48 h)和不同天气状况两种情况下将LSTM-AT模型与递归神经网络、门控循环单元、双向长短记忆网络、LSTM模型进行对比。结果表明,LSTM-AT模型空气温度预测值与测量值变化趋势较为一致,模型计算值与空气温度测量值的决定系数最小为0.95,均方根误差最大为1.34℃,平均绝对误差最大为10.51%;LSTM-AT模型、LSTM模型、门控循环单元、递归神经网络、双向长短记忆网络5种模型温室空气温度预测均方根误差平均值分别为0.89、1.42、1.89、2.10、1.51℃,平均绝对百分比误差平均值分别为4.26%、8.96%、13.57%、17.70%、10.67%。由此可知,相较于其他4种模型,该研究提出的LSTM-AT模型具有更高的预测精度,能够精确预测温室空气温度。An accurate prediction model of greenhouse air temperature can be required for the greenhouse environment control using control algorithm,such as model predictive control.Long short-term memory neural networks(LSTM)have been widely used to predict time series data,such as air temperature.However,the prediction accuracy of LSTM can be reduced for the long time series data,due to data forgetting.In this study,the LSTM model was combined with the attention mechanism to construct the LSTM-AT model.The query vector,key vector,and value vector were calculated,according to attention mechanism and output states of LSTM’s hidden layer.The similarity between the query and key vector was calculated to obtain the similarity score.Softmax function was used to obtain attention distribution for the normalization processing.The larger the attention value was,the higher the relevance of input information to the task objective was.The dot product operation was carried out with the normalized weight and value vector to obtain the output of the attention mechanism.The local information integration and data dimension transformation were carried out through the full connection layer.Finally,the output data was obtained in the output layer of the LSTM-AT model.The weights were assigned to the output states of LSTM’s hidden layer,according to the degree of importance.The forgetting of long time series data was effectively solved to improve the prediction accuracy of indoor air temperature.The prediction performances were verified and compared on the LSTM-AT,LSTM,recurrent neural network(RNN),gated recurrent unit(GRU),and bi-directional long short-term memory(BiLSTM)model in the different prediction horizons(12,24 and 48 h).The results showed that the prediction accuracy of the five models shared a decreasing trend with the increase in prediction time.The maximum and minimum RMSE for the LSTM-AT model were 1.34 and 0.59℃,respectively.The maximum and minimum RMSE for the rest four models were 3.37 and 0.66℃,respectively.The maximu
关 键 词:温室 空气温度 长短记忆神经网络 注意力机制 预测模型
分 类 号:S24[农业科学—农业电气化与自动化]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...