 The paper presents a novel hybrid metaheuristic algorithm, BAABC, for pre-processing skin lesion images prior to segmentation. The algorithm uses a statistical transformation function to enhance the contrast of the images, which is then used to estimate the optimal parameters for the search space. The algorithm was tested on three publicly available datasets and compared with other state-of-the-art segmentation algorithms. The results showed that the proposed model improved the dice coefficient to 94.6%, demonstrating its effectiveness in pre-processing skin lesion images. This article was authored by Shariah Malik, Taha Akram, Muhammeda Wise, and others.