<span lang="EN-US">This paper’s goal is to suggest an image segmentation technique for use with medical images, specifically computer tomography scan images, to aid doctors in understanding the images. To address a variety of picture segmentation issues, it is necessary to investigate and apply novel evolutionary algorithms. The study focuses on pulmonary carcinoma, which is the cancer that affects males the most frequently across the globe. For proper treatment and life-saving measures, early identification of lung cancer is essential. To identify lung cancer, doctors frequently employ the computed tomography imaging technique. In order to extract tumours from lung scans, the study analyses the effectiveness of three optimization algorithms: k-means clustering, particle swarm optimization, and modified guaranteed convergence particle swarm optimization. The study also examines the pre-processing performance of four filters, namely the mean, bilateral, gaussian, and laplacian filters, shows that the bilateral filter is best suited for CT scans of the body. To test the proposed technique on 30 examples of lung scans. The proposed algorithm is tested on 30 sample lung images. The results show that the modified guaranteed convergence particle swarm optimization algorithm has the highest accuracy of 96.01%.</span>