Abstract
Image segmentation is the basis and premise of image processing. While traditional multi-threshold image segmentation methods are simple and effective, they often suffer from low accuracy and slow convergence rates. This paper introduces a multi-threshold image segmentation scheme that combines an Ameliorated Harmony Search (AHS) optimization algorithm with the maximum between-class variance (Otsu) method. By modifying the generation method of new harmony improvisation and introducing a convergence coefficient, the AHS algorithm significantly improves the performance of the basic Harmony Search (HS). Experimental results using Peak Signal-to-Noise Ratio (PSNR) and Structural Similarity Index (SSIM) on standard test images demonstrate that the AHS-Otsu approach offers fast processing speeds and superior segmentation accuracy compared to existing methods.
Introduction
Image segmentation—the process of partitioning an image into meaningful regions—is a cornerstone of computer vision. One of the most popular techniques is Otsu’s method, which finds optimal thresholds by maximizing the variance between different classes of pixels. While Otsu’s method works efficiently for simple binary segmentation, it faces a "computational wall" in multi-thresholding scenarios. As the number of thresholds increases, the search space grows exponentially, making exhaustive searches impractical for real-time applications.
To address this, researchers utilize meta-heuristic optimization algorithms to approximate the best thresholds. However, standard algorithms like the Harmony Search (HS) often suffer from low accuracy and a tendency to get stuck in local optima. This paper proposes the AHS-Otsu algorithm to overcome these limitations.
The Ameliorated Harmony Search (AHS) Algorithm
The core innovation of this research is the "Ameliorated" Harmony Search (AHS), which refines the music-inspired HS algorithm to enhance global search capabilities and local refinement. The process is governed by a structured logic that balances exploration and exploitation.
The AHS algorithm improves upon the basic HS in three key ways:
- New Improvisation Strategy: Drawing inspiration from Particle Swarm Optimization (PSO) and Differential Evolution (DE), the strategy incorporates the distance difference between four randomly selected variables and the current global optimal variable to generate new potential solutions.
- Convergence Coefficient (β): A dynamic coefficient adjusts the search, maintaining diversity in early stages and shifting toward refinement in later stages to improve numerical accuracy.
- Dynamic Pitch Adjustment Rate (PAR): Instead of a fixed value, the PAR follows an exponential decay model, allowing for high exploration at the start and high exploitation toward the end of the process.
Experimental Results and Discussion
The study utilized six standard test images from the BSDS300 (Berkeley Segmentation Dataset) to verify the algorithm's robustness across various textures and complexities. The AHS-Otsu was compared against six other well-known HS variants.
Breaking the Exponential Curse
A significant finding is the comparison of processing times. While the traditional Otsu method's time consumption explodes as thresholds increase (from 0.01s at $m=2$ to over 600s at $m=5$), the AHS-Otsu remains nearly constant at approximately 0.1s. Furthermore, the AHS variant eliminates the need to manually preset the "bandwidth" ($bw$) parameter, which is notoriously difficult to tune in standard Harmony Search.
Accuracy and Quality
AHS-Otsu consistently achieved the highest PSNR and SSIM across almost all test cases. For example, in image I1 with 5 regions, AHS-Otsu achieved a PSNR of 27.8095, outperforming all other tested HS variants. Qualitative results show that AHS-Otsu preserves fine details—such as complex textures and small objects—better than competing optimization methods.
Conclusion
The AHS-Otsu algorithm demonstrates clear superiority in speed and accuracy for grayscale multi-thresholding. By blending the global search capabilities of HS with the local refinement logic of PSO and DE, the authors created an algorithm that is both computationally efficient and highly precise. Future work may involve extending this approach to multi-dimensional color spaces (RGB or Lab) and testing its stability at much higher levels of segmentation (e.g., $m=10+$ thresholds) for practical deployment on edge computing devices.
Summary updated