基于小样本量的超声流量计使用中检验模型构建与优化OA
Construction and Optimization of In-service Inspection Model for Ultrasonic Flowmeter Based on Small Sample Size
针对现有基于机器学习的超声流量计使用中检验模型存在建模样本量大、测试周期长、效率偏低的问题,基于国家城镇燃气流量标准装置(不确定度 0.26%,k=2)的实验数据,构建了不同样本量下的反向传播(BP)神经网络与随机森林模型.采用算术平均法将初始样本集(时间间隔 6 s/30 s)减半构建小样本集,对比分析表明,小样本量下2种模型的预测性能(以R²和均方根误差为评价指标)均低于初始样本量模型,且BP神经网络整体表现更优.为提升小样本模型性能,采用 ReliefF、递归特征消除(RFE)、随机森林特征3种算法进行优化,结果显示随机森林特征算法优化效果最佳,各流量点预测准确度最高提升48.65%(884 m³/h流量点).优化后的小样本模型保留9~14个关键特征,其预测性能与初始样本量模型相当,且建模效率显著提升.现场应用验证表明,该模型预测示值误差稳定在±1%以内,可满足天然气输气站超声流量计使用中检验需求.
To address the problems of large sample size,long test cycle and low efficiency in the model construction of existing machine learning-based in-service inspection models for ultrasonic flowmeters,backpropagation(BP)neural network and random forest models under different sample sizes were established based on experimental data from the national urban gas flow standard device(uncertainty 0.26%,k=2).A small sample set was obtained by halving the initial sample set(time interval 6 s,30 s)using the arithmetic mean method.The results show that the prediction performance(evaluated by R² and root mean square erro)of both models under small sample size is lower than that of the initial sample size model,and the BP neural network has an overall better performance.To improve the performance of the small sample model,three feature optimization algorithms(ReliefF,Recursive Feature Elimination,and random forest feature algorithm)were adopted.The results indicate that the random forest feature algorithm achieves the optimal optimization effect,with the maximum improvement of prediction accuracy reaching 48.65%(at 884 m³/h flow point).The optimized small sample model retains 9~14 key features,and its prediction performance is comparable to that of the initial sample size model,with significantly improved modeling efficiency.Field application verification shows that the predicted indication error of the model is stable within±1%,which can meet the in-service inspection requirements of ultrasonic flowmeters in natural gas transmission stations.
何煜迪;李梦娜;李春辉;徐雅;谢代梁
中国计量大学 计量测试与仪器学院,浙江 杭州 310018中国计量科学研究院,北京 100029中国计量科学研究院,北京 100029中国计量大学 计量测试与仪器学院,浙江 杭州 310018中国计量大学 计量测试与仪器学院,浙江 杭州 310018
通用工业技术
流量计量超声流量计使用中检验机器学习小样本量模型特征优化
flow measurementultrasonic flowmeterin-service inspectionmachine learningmodel with small sample sizefeature optimization
《计量学报》 2026 (5)
686-692,7
中国计量科学研究院基本科研业务费重点领域项目(AKYZD2406-1)
评论