The invention discloses an
image detection method based on an improved YOLO
algorithm. The method comprises the following steps: collecting a
nuclear magnetic resonance image with a focus; a target detection
network model is constructed: basic framework improvement is carried out based on YOLOv8, an improved
backbone network comprises a C2f module, a
convolution module and an improved multichannel spatial
pyramid pooling module SPPMC, and the image
feature extraction capability is enhanced; the improved neck network comprises an up-sampling layer, a splicing layer, a C2f module, a
convolution layer and an embedded attention mechanism UECA module, multi-scale feature map fusion is carried out, and the
feature fusion efficiency is improved; the improved header network adopts an improved bounding box regression
loss function L (iS-IoU), the convergence speed of the model is increased, and the positioning precision is improved; inputting a training image set into the target detection
network model for training; and performing image focus detection by using the trained target detection
network model. The method has the characteristic of effectively improving the robustness and the
detection performance of the target detection model.