The invention discloses a lightweight dynamic multi-scale segmentation method for a colon polyp. The lightweight dynamic multi-scale segmentation method comprises the following steps: S1, image input and data enhancement; s2,
backbone network feature extraction: constructing a U-shaped
encoder-decoder structure, wherein an
encoder extracts multi-scale features through a dynamic multi-scale
convolution module; s3, local and global feature enhancement: capturing local texture details through a regional detail aggregator, and obtaining global
semantic information through a global context
integrator; and S4, detection and segmentation: integrating the local details and the global
semantic information by a decoder by adopting a hierarchical later fusion strategy, and outputting a final segmentation result. According to the method, the dynamic multi-scale
convolution module is introduced, and the dynamic kernel selection and structure re-parameterization technology is used, so that the multi-scale
feature extraction capability is greatly improved while the light weight of the model is kept; a regional detail aggregator and a global context
integrator are introduced, so that local details and global
semantics are effectively coordinated, and the segmentation precision of the polyp boundary is remarkably improved; compared with the prior art, the colon polyp segmentation method has the advantages that higher accuracy and intersection-union ratio are achieved on colon polyp segmentation tasks, and meanwhile, the colon polyp segmentation method has lower calculation complexity and parameter quantity and is suitable for real-time deployment of a clinical computer-
aided diagnosis system.