基于Transformer的水库垂向水温预测方法研究OA
Research On Reservoir Vertical Water Temperature Prediction Method Based On Transformer
水库坝前水温分布是决定水库叠梁门分层取水能否取得成效的关键因素之一,但关于垂向水温预测的方法多为数值模拟,其较低的计算效率及较多的参数设置限制了其在实际工程中的应用,为了快速预测水库坝前垂向水温,提出了基于Transformer结构的垂向水温预测方法,在此基础上将滑动窗口内的时间序列均值与方差统一至相同分布类型,解决时间序列分布偏移问题改进传统模型,以溪洛渡2020-2023年1月至5月垂向水温分布数据开展训练和验证,最后对比了传统Transformer模型与改进模型误差,研究结果表明:传统Transformer模型能够较好模拟垂向水温分布趋势,但在温跃层及深水层处的水温模拟效果略差,验证集垂向水温均方根误差为0.286℃,平均绝对误差为0.203℃;将滑动窗口内的时间序列均值与方差统一至相同分布类型后,改进模型验证集垂向水温均方根误差为0.169℃,平均绝对误差为0.107℃,模拟精度相较传统模型得到大幅提高.通过研究提供了一种水库坝前垂向水温预测方法,可为实际工程中叠梁门分层取水方案编制提供垂向水温预测工具.
The distribution of water temperature in front of the reservoir dam is one of the key factors determining the effectiveness of stratified water intake through stoplogs in reservoirs.However,most methods for predicting vertical water temperature rely on numerical simulations,which are limited in practical engineering applications due to their low computational efficiency and extensive parameter settings.To quickly predict the vertical water temperature in front of the reservoir dam,this paper proposes a vertical water temperature prediction method based on the Transformer structure.By unifying the time series mean and variance within the sliding window to the same distribution type,this method addresses the issue of time series distribution skewness and improves the traditional models.Training and validation were conducted using vertical water temperature distribution data from Xiluodu Reservoir from January to May during 2020-2023.Finally,the errors of the traditional Transformer model and the improved model were compared.The research results show that the traditional Transformer model can simulate the vertical water temperature distribution trend well,but the simulation effect is slightly worse in the thermocline and deep water layers.The root mean square error(RMSE)of the vertical water temperature in the validation set is 0.286℃,and the mean absolute error(MAE)is 0.203℃.After unifying the time series mean and variance within the sliding window to the same distribution type,the RMSE of the vertical water temperature in the validation set of the improved model is 0.169℃,and the MAE is 0.107℃.The simulation accuracy has been significantly improved compared to the traditional model.This study provides a method for predicting vertical water temperature in front of the reservoir dam,offering a vertical water temperature prediction tool for the formulation of stratified water intake schemes through stoplogs in practical engineering.
王飞龙;唐玉川
中国长江三峡集团有限公司,湖北 宜昌 443133中国长江三峡集团有限公司,湖北 宜昌 443133
建筑与水利
垂向水温TransformerRevIN水温预测
vertical water temperatureTransformerRevINwater temperature prediction
《中国农村水利水电》 2026 (5)
18-22,29,6
中国长江三峡集团有限公司科研项目(NBZZ202400531)国家重点研发计划项目(2022YFC3002703).
评论