The metaheuristic optimization algorithm Harmony search (HS), which imitates the process of music improvisation, is becoming widely used due to its simplicity and easy operation. However, the basic HS has shortcomings of low optimization accuracy and risk of easy falling into local optimum. To overcome these problems, this article develops an ameliorated harmony search algorithm with hybrid convergence mechanism, namely AHS-HCM. For the new method, the so-called hybrid convergence mechanism mainly includes two important schemes. The first scheme is to introduce a convergence coefficient in the harmony improvisation to further adjust the optimization performance, which can improve the final accuracy. The second scheme is to put forward a non-linear convergence domain for the global exploration, it also helps the optimization accuracy and efficiency. Besides, the operation process of new harmony variables generation is modified to enrich the search behavior and contribute to find the global optimum. Fifteen typical CEC's benchmark functions are selected for experiments, and the results clearly proved the effectiveness of the AHS-HCM. It is shown that, in most cases, the proposed AHS-HCM algorithm is superior to other HS variants as well as some similar famous population-based algorithms in terms of optimization accuracy and stability.
Image segmentation is the basis and premise of image processing, though traditional multi-threshold image segmentation methods are simple and effective, they suffer the problems of low accuracy and slow convergence rate. For that reason, this paper introduces the multi-threshold image segmentation scheme by combining the harmony search (HS) optimization algorithm and the maximum between-class variance (Otsu) to solve them. Firstly, to further improve the performance of the basic HS, an ameliorated harmony search (AHS) is put forward by modifying the generation method of the new harmony improvisation and introducing a convergence coefficient. Secondly, the AHS algorithm, which takes the maximum between-class variance as its objective function, namely AHS-Otsu, is applied to image multi-level threshold segmentation. Finally, six test images are selected to verify the multilevel segmentation performance of AHS-Otsu. Peak signal-to-noise ratio (PSNR) and structural similarity index (SSIM) are two commonly used metrics for evaluating the effectiveness of image segmentation, which are both used in this article. Comprehensive experimental results indicate that the AHS-Otsu does not only has fast segmentation processing speed, but also can obtain more accurate segmentation performance than others, which prove the effectiveness and potential of the AHS-Otsu algorithm in the field of image segmentation especially for the multi-threshold.