基于STM32的城市地下空间智能防汛监控系统设计OA
Design of an Intelligent Flood Monitoring System for Urban Underground Space Based on STM32
针对城市地下空间防汛监测中因水波扰动导致误报率高及边缘计算节点算力受限的问题,设计了一种基于STM32 的异构数据融合自适应测控系统.在方法上,首先构建基于时空统计特征的动态加权模型,依据传感器数据的长期方差与短期偏差自适应分配权重,从源头抑制单一信源的随机误差;其次,针对微控制器无浮点运算单元(FPU)的限制,提出基于 Q15 格式的定点化模糊卡尔曼滤波算法,利用二维查表法动态调整测量噪声协方差矩阵,将复杂的浮点矩阵运算重构为高效的整数移位操作.实验结果表明,该系统在 10~40 mm 有效测量区间内,最大绝对误差控制在 1.65 mm以内,对应的最大相对误差不超过5.5%,线性拟合优度提升至 0.98 以上;与标准浮点滤波算法相比,定点化算法单次运算耗时由820 μs 降至68 μs,运算效率提升12.05 倍,阶跃响应收敛时间缩短至200 ms.结论显示,该方法有效解决了低成本边缘节点的高精度实时滤波难题,显著提高了复杂流体环境下防汛监测的鲁棒性与响应速度,但受限于实验条件,本次实验仅验证了算法在小量程模型的有效性,为未来大深度实地监测及多节点协同感知提供了技术支撑.
To address the issues of high false alarm rates caused by water wave disturbances and the limited computing power of edge nodes in urban underground space flood monitoring,an STM32-based heterogeneous data fusion adaptive measurement and control sys-tem is designed.Methodologically,a dynamic weighting model based on spatio-temporal statistical features is first constructed.This model adaptively assigns weights according to the long-term variance and short-term deviation of sensor data to suppress random errors from single sources at the root.Secondly,to overcome the lack of a Floating Point Unit(FPU)in microcontrollers,a Q15 format-based fixed-point fuzzy Kalman filtering algorithm is proposed.By utilizing a 2D lookup table to dynamically adjust the measurement noise co-variance matrix,complex floating-point matrix operations are reconstructed as efficient integer shift operations.Experimental results indi-cate that within the 10~40 mm effective measurement range,the maximum absolute error is controlled within 1.65 mm,and the corre-sponding maximum relative error does not exceed 5.5%,while the goodness of linear fit is improved to above 0.98.Compared with the standard floating-point filtering algorithm,the single operation time of the fixed-point algorithm is reduced from 820 μs to 68 μs,impro-ving the computational efficiency by approximately 12.05 times,and the step response convergence time is shortened to 200 ms.In con-clusion,the proposed method effectively addresses the challenge of high-precision real-time filtering for low-cost edge nodes,signifi-cantly improving the robustness and response speed of flood monitoring in complex fluid environments.However,limited by experimental conditions,this study only verifies the effectiveness of the algorithm on a small-scale model,providing technical support for future large-depth field monitoring and multi-node collaborative perception.
邱炳文;李小玉
新疆农业大学 计算机与信息工程学院,新疆 乌鲁木齐 830052新疆农业大学 计算机与信息工程学院,新疆 乌鲁木齐 830052
信息技术与安全科学
地下空间防汛边缘计算多源数据融合定点模糊卡尔曼滤波韧性防灾STM32
underground space flood controledge computingmulti-source data fusionfixed-point fuzzy Kalman filterresilient disaster preventionSTM32
《计算机技术与发展》 2026 (9)
15-23,30,10
国家自然科学基金项目(32560419)大学生创新训练计划项目(dxscx2025258)
评论