The invention relates to the technical field of underground garage safety management, in particular to an underground garage iron nail safety
inspection method and device. The method comprises the following steps: S1, constructing a training
data set containing three marked values of normality, iron nail throwing and iron nail throwing; s2, importing the training
data set into a YOLOv8 target detection model for training to obtain an iron nail recognition model; a round hyper-parameter and a batch hyper-parameter in the YOLOv8 target detection model are determined through a speed
delay particle swarm algorithm, and the rest hyper-parameters use default values; according to the speed
delay particle swarm optimization, speed
delay parameters are increased to serve as a third state option of the particles, so that the speed of the particles at the next iteration times is kept unchanged; s3, obtaining and preprocessing an original
video image to obtain an input
video image; s4, inputting the input
video image into the iron nail recognition model, and outputting a recognition result; and S5, when the identification result is that the iron nail is thrown or the iron nail is thrown, the intelligent inspection vehicle is controlled to process the iron nail, and real-time early warning monitoring and
processing can be carried out on the iron nail.