This invention discloses an endoscopic polyp detection method based on an improved YOLO v8. Addressing the difficulty in detecting polyps in endoscopic images and the tendency to miss them during
endoscope movement, the YOLO v8 detection model is improved in three ways: Channel attention (CA) is added after several C2f modules in the Backbone and Head
layers of the original model to strengthen the focus on key features and improve the model's representation ability; a
small target detection layer is added to the feature
pyramid output layer to improve
small target detection capability through position regression of small-sized feature maps; and WloU is used instead of CloU in the original model, which can adaptively adjust the loss term according to the target size and shape, improving the accuracy of
small target localization. Based on this, an endoscopic polyp detection method is proposed. The key steps of the method are as follows: First, the relevant public dataset is obtained, preprocessed, and appropriately divided into training, testing, and validation sets; second, a detection model is constructed using the improved YOLO v8; finally, the
model parameters are initialized for model training, and the detection accuracy and generalization ability of the model are evaluated using the
test set. This method can accurately identify polyp areas in endoscopic images, reduce the false negative rate, and improve the accuracy and reliability of endoscopic examinations, thereby assisting
medical staff in improving the accuracy of
pathological analysis and
disease diagnosis, while also increasing the work efficiency of
medical staff.