Enhancing Medical Image Segmentation with Deep Learning and Diffusion Models