The invention discloses a bridge
disease detection method based on a
diffusion model and a bitter fish optimization
algorithm, and relates to the technical field of bridge detection. The method comprises the following steps: fixing a
visual angle and a distance at an easy-to-peel or crack position of a bridge, and collecting and aligning visible light and near-
infrared images; carrying out multi-scale downsampling on the image, and carrying out
wavelet denoising, brightness correction and texture
smoothing; inputting the preprocessing result into an improved
diffusion model, weighting the edge during forward
diffusion, and reversely generating and applying texture and contour
smoothing; the multi-source feature channel and the reconstructed image are combined and input into a deep segmentation network, shadow and
stain are eliminated by using a local
difference function, and global search is performed on a segmentation threshold, a
noise coefficient and the like based on a
disease detection rate, a
false detection rate and the like by using a bitter fish
algorithm; training and correcting the high-
noise area again according to the optimal parameters; and uniformly marking
disease areas. According to the method, the recognition
recall rate of tiny spalling and irregular cracks in an
extreme environment can be greatly improved, and the intelligent level and the practical effect of bridge
disease detection are improved.