计算机与现代化Issue(2):24-31,8.DOI:10.3969/j.issn.1006-2475.2026.02.003
基于改进SegFormer的轻量级坝体裂缝检测模型
Lightweight Dam Crack Detection Model Based on Improved SegFormer
摘要
Abstract
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.关键词
深度学习/坝体裂缝检测/SegFormer/多尺度/注意力机制/梯度极差正则Key words
deep learning/dam crack detection/SegFormer/multi-scale/attention mechanism/gradient difference regularization分类
信息技术与安全科学引用本文复制引用
陈玉权,吴媚,张欣..基于改进SegFormer的轻量级坝体裂缝检测模型[J].计算机与现代化,2026,(2):24-31,8.基金项目
云南省重大科技专项计划项目(202002AE090010) (202002AE090010)