Research on Prediction of Building Secondary Water Supply Based on Intelligent Algorithm
摘要
针对建筑二次供水系统能耗预测精度低、缺乏可解释性的问题,以西安市某民用小区供水泵房2024年实测数据为基础,融合节假日(法定节假日、调休上班日、距离节假日天数等8维)和天气(最高/最低温度、降雨量等5维)特征,比较了支持向量机(SVM)、卷积神经网络(CNN)、长短期记忆网络(LSTM)、BP神经网络(BPNN)、径向基神经网络(RBFNN)、自回归积分滑动平均(ARI-MA)和极限梯度提升(XGBoost)7种方法的预测性能.结果表明,LSTM性能最优,测试集MAE为4.00 m3/d、R2 达 0.74;XGBoost 次之(MAE=4.60 m3/d、R2=0.68);ARIMA 最差(MAE=9.70 m3/d、R2=0.32).SHAP可解释分析显示,最高温度为最强正向驱动特征(mean|SHAP|=3.45 m3/d),降雨总量与国庆标记为主要负向抑制因素,二者交互效应显著.基于供水基础数据、节假日特征及气象条件构建融合数据集,有效提高了供水量预测精度,为二次供水泵站精细化调度、能耗优化及异常预警提供了可解释决策依据,具有较高的工程应用价值.
To address the issues of low prediction accuracy and lack of interpretability in build-ing secondary water supply systems,this study utilizes measured data from a residential communi-ty's water pump room in Xi'an in 2024 as the basis.By integrating holiday features(8 dimen-sions,including statutory holidays,make-up workdays,and distance to nearest holiday)and weather features(5 dimensions,including maximum/minimum temperature and precipitation),seven methods:support vector machine(SVM),convolutional neural network(CNN),long short-term memory(LSTM),back propagation neural network(BPNN),radial basis function neural network(RBFNN),autoregressive integrated moving average(ARIMA),and extreme gradient boosting(XGBoost)were compared for water supply forecasting performance.Results show that LSTM achieved the best performance with MAE of 4.00 m3/d and R2 of 0.74 on the test set;XG-Boost ranked second(MAE=4.60 m3/d,R2=0.68);ARIMA performed worst(MAE=9.70 m3/d,R2=0.32).SHAP interpretability analysis revealed that maximum temperature was the stron-gest positive driver(mean|SHAP|=3.45 m3/d),while precipitation and National Day markers were primary negative suppressors,with significant interaction effects.Constructing a fused data-set based on basic water supply data,holiday characteristics,and meteorological conditions effec-tively improves the accuracy of water supply prediction,provides an interpretable decision-making basis for refined scheduling,energy consumption optimization,and anomaly warning of secondary water supply pumping stations,and holds high engineering application value.