首页|改进YOLOv8n的无人机航拍图像检测算法

改进YOLOv8n的无人机航拍图像检测算法

扫码查看
针对无人机航拍图像中目标小、尺度变化大和背景干扰等因素导致检测精度低、定位不准确的问题,提出一种改进YOLOv8n的无人机航拍图像目标检测算法.首先改进C2f模块,利用可变形卷积(DCN)替换其Bottleneck中的卷积以适应航拍图像中物体的形变和尺度变化,同时,在主干网络引入LSK注意力机制,实现动态调整空间感受野,从而在特征提取阶段更灵活地适应不同目标对背景信息需求的差异;然后改进颈部网络,增加一个较浅的检测层并移除大目标检测层,使网络能更有效地捕获小目标的特征以提升检测精度;最后引入WIoU损失函数,使模型更加关注低质量样本,得到更高的检测精度.在VisDrone2019数据集上进行对比实验和消融实验,mAP50值较基线算法模型提升了 5.2个百分点,参数量减少了20%,检测速度(FPS)达到87帧/s,能够满足实时性的检测需求.与主流算法进行对比实验,所提算法表现优于目前的主流算法.在DOTA数据集上进行泛化实验,mAP50值提升了 1.7个百分点,证明所提算法具有通用性.
A UAV Aerial Image Detection Algorithm Based on Improved YOLOv8n
Target detection for aerial images has high application value in military and civilian fields.To solve the problems of low detection accuracy and inaccurate positioning due to factors such as small size of the targets,wide scale ranges,and background interference in UAV aerial images,a target detection algorithm for UAV aerial images based on the improved YOLOv8n is proposed.Firstly,the C2f module is improved,and the Deformable Convolutional Network(DCN)is used to replace the convolution in its Bottleneck to adapt to the deformation and scale variations of the objects in aerial images.The LSK attention mechanism is introduced into the backbone to dynamically adjust the spatial receptive field,thereby more flexibly adapting to the differences in background information requirements of different targets at the feature extraction stage.Then,the neck structure is improved,a shallow detection layer is added and the big target detection layer is removed,so that the network can more effectively capture the features of small targets to improve detection accuracy.Finally,the WIoU loss function is introduced to make the model focus more on low-quality samples and obtain higher detection accuracy.Comparative experiments and ablation experiments were conducted on the VisDrone2019 dataset.The mAP50value is increased by 5.2 percentage points compared with that of the baseline model,the parameter count is reduced by 20%,and the detection speed reaches 87 frames per second,which can meet the real-time detection requirements.Comparative experiments were conducted with mainstream algorithms,and its performance is better than that of current mainstream algorithms.A generalization experiment was conducted on the DOTA dataset,and the mAP50 is increased by 1.7 percentage points,proving that the algorithm is versatile.

UAV imageYOLOv8nattention mechanismdeformable convolutionWIoU

梁秀满、贾梓涵、刘振东、于海峰、李然

展开 >

华北理工大学电气工程学院,河北唐山 063000

无人机图像 YOLOv8n 注意力机制 可变形卷积 WIoU

2025

电光与控制
中国航空工业洛阳电光设备研究所

电光与控制

北大核心
影响因子:0.424
ISSN:1671-637X
年,卷(期):2025.32(1)