基于改进SegFormer的轻量级坝体裂缝检测模型OA
Lightweight Dam Crack Detection Model Based on Improved SegFormer
电站坝体裂缝的即时检测对保障电站的安全稳定运行及人员安全至关重要.针对传统人工巡检效率低以及现有深度学习模型在复杂环境下检测精度不足的局限,提出一种基于改进SegFormer模型的坝体裂缝检测方法.该方法创新性地引入轻量化多尺度线性注意力机制.首先,通过并行多尺度特征提取,增强模型对不同尺度裂缝特征的捕获能力.其次,用ReLU线性注意力替代传统的Softmax注意力,大幅减少模型参数量,提高计算效率.最后,结合Focal损失和梯度极差正则项设计改进的损失函数,有效缓解裂缝与背景类别不平衡问题,并提升细小裂缝的检测能力.实验结果表明,改进模型在mIoU、mFscore和mRecall指标上分别达到0.6954、0.7897和0.7875,较原始SegFormer模型分别提升了0.0275、0.0287和0.0710.该方法不仅显著提高了分割精度,还有效降低了模型参数量并加快了运行速度,为高效、高精度的坝体裂缝检测提供了新思路.
Real-time detection of cracks in the dam body is crucial for ensuring the safe and stable operation of the power station and ensuring personnel safety.To address the low efficiency of traditional manual inspections and insufficient detection accuracy of existing deep learning models in complex environments,a dam crack detection method based on improved SegFormer model is proposed.This method innovatively introduces a lightweight multi-scale linear attention mechanism.Firstly,parallel multi-scale feature extraction is utilized to enhance the model's capability to capture crack features at different scales.Secondly,ReLU lin-ear attention is used to replace traditional Softmax attention,significantly reducing the number of parameters and improving com-putational efficiency.Finally,an improved loss function combining Focal loss and gradient extremum regularization is designed to effectively mitigate the class imbalance problem and improve the detection of fine cracks.The experimental results show that the improved model achieves 0.6954,0.7897 and 0.7875 in mIoU,mFscore,and mRecall metrics,respectively,representing improvements of 0.0275,0.0287 and 0.0710 over the original SegFormer model.The segmentation accuracy is maintained at a high level,while the number of parameters is significantly reduced,and processing speed is enhanced.This method offers a novel approach for efficient and accurate crack detection in dam body.
陈玉权;吴媚;张欣
江苏方天电力技术有限公司,江苏 南京 211100江苏方天电力技术有限公司,江苏 南京 211100江苏方天电力技术有限公司,江苏 南京 211100
信息技术与安全科学
深度学习坝体裂缝检测SegFormer多尺度注意力机制梯度极差正则
deep learningdam crack detectionSegFormermulti-scaleattention mechanismgradient difference regularization
《计算机与现代化》 2026 (2)
24-31,8
云南省重大科技专项计划项目(202002AE090010)
评论