A Novel Image Segmentation Method Based on An Improved Bacterial Foraging Optimization Algorithm

Zhigao Zeng, Lianghua Guan, Yanhui Zhu, Qiang LiuJ. Inf. Hiding Multim. Signal Process 2017

Abstract

This paper introduces an Improved Bacterial Foraging Optimization (IBFO) algorithm designed to address the speed and accuracy limitations inherent in traditional bionic optimization methods for image segmentation. By integrating dynamic step sizes and self-adaptive dispersal probabilities, the IBFO algorithm overcomes the tendency of standard methods to get trapped in local optima. Experimental evaluations on benchmark functions and real-world image datasets demonstrate that IBFO achieves superior segmentation quality and significantly faster convergence compared to standard BFO, Particle Swarm Optimization (PSO), and Ant Colony Optimization (ACO).

Introduction

Image segmentation—the process of partitioning an image into meaningful regions—is a fundamental task in computer vision. While nature-inspired (bionic) algorithms like Genetic Algorithms (GA) or Particle Swarm Optimization (PSO) are robust, they often face a critical trade-off: they are either computationally expensive or prone to settling on sub-optimal solutions due to rigid search parameters.

The standard Bacterial Foraging Optimization (BFO) algorithm, which mimics the nutrient-seeking behavior of E. coli, traditionally uses fixed movement increments and static probabilities for "elimination and dispersal." This rigidity often leads to inefficient searches or the accidental loss of high-performing solutions.

The Improved IBFO Algorithm

The researchers developed IBFO by introducing two primary modifications to the standard BFO framework:

  1. Dynamic Step Size in Chemotaxis: Unlike the original BFO's fixed increments, IBFO utilizes a reduction coefficient ($\omega$) that decreases the step size over time. This allows for a broad "global" search in the early iterations and a precise "local" search as the algorithm converges.
  2. Self-Adaptive Elimination-Dispersal Probability: Instead of a flat probability for relocating a bacterium, IBFO calculates dispersal based on fitness. High-performing bacteria are protected from random elimination, ensuring that the best solutions found are preserved throughout the optimization process.

For image segmentation, the algorithm analyzes the gray-level histogram of an image and uses IBFO to find the optimal threshold that minimizes the "within-class scatter" ($J_C$).

Original image from the dataset showing two white birds in a natural green environment.

Experimental Results and Discussion

The IBFO algorithm was tested against standard BFO, Cat Swarm Optimization (CSO), PSO, and ACO using both mathematical benchmark functions (Griewank and Schaffer) and images from the Berkeley Image Database (BSDS).

Convergence and Speed

IBFO demonstrated a clear advantage in convergence speed. In tests with a sample size of 100, IBFO reached the global optimum in 0.1367 seconds, whereas standard BFO took 0.2023s, and ACO required over 8 seconds.

Convergence plot showing the value of Y over iterations. The IBFO algorithm (red line) reaches the optimal value of 1 significantly faster than competing algorithms.

Segmentation Quality

Using the Regional Gray-Level Contrast (RGLC) metric, where higher values indicate better segmentation, IBFO consistently outperformed its peers. IBFO achieved a score of approximately 1.087, compared to 1.079 for standard BFO and a much lower 0.242 for ACO. The self-adaptive logic ensures that the algorithm settles on thresholds that provide high contrast and low heterogeneity within segmented regions.

Conclusion

The IBFO algorithm represents a significant advancement in bionic optimization for image processing. By making search parameters dynamic and fitness-aware, the authors have created a method that is both faster and more precise than traditional alternatives. Future work will focus on extending IBFO to high-dimensional data, such as multi-spectral images and complex video processing tasks.

Summary updated

BibTeX
@article{zeng2017novel,
  author = {Zhigao Zeng and Lianghua Guan and Yanhui Zhu and Qiang Liu},
  title = {{A Novel Image Segmentation Method Based on An Improved Bacterial Foraging Optimization Algorithm}},
  journal = {J. Inf. Hiding Multim. Signal Process.},
  year = {2017},
}
Figure