This paper discusses the use of Ant Colony Optimization (ACO) in edge detection for mammogram images to improve breast cancer diagnosis. The study compares traditional edge detection methods, such as Sobel, Prewitt, and Canny, with ACO and finds that ACO yields better results in detecting cancerous masses. The results indicate that ACO reduces mean square error and increases peak signal-to-noise ratio compared to conventional methods, enhancing early cancer detection.