Abstract: Endoscopic imaging plays a pivotal role in diag-nosing and managing gastrointestinal diseases, where precise segmentation of images is essential for accurate disease detection and treatment.