Grayscale Image Segmentation Using Multilevel Thresholding and Nature-Inspired Algorithms

  • Genyun SunEmail author
  • Aizhu Zhang
  • Zhenjie Wang


Multilevel image thresholding plays a crucial role in analyzing and interpreting the digital images. Previous studies revealed that classical exhaustive search techniques are time consuming as the number of thresholds increased. To solve the problem, many nature-inspired algorithms (NAs) which can produce high-quality solutions in reasonable time have been utilized for multilevel thresholding. This chapter discusses three typical kinds of NAs and their hybridizations in solving multilevel image thresholding. Accordingly, a novel hybrid algorithm of gravitational search algorithm (GSA) with genetic algorithm (GA), named GSA-GA, is proposed to explore optimal threshold values efficiently. The chosen objective functions in this chapter are Kapur’s entropy and Otsu criteria. This chapter conducted experiments on two well-known test images and two real satellite images using various numbers of thresholds to evaluate the performance of different NAs.


Image segmentation Multilevel thresholding Nature-inspired algorithms (NAs) Gravitational search algorithm (GSA) Genetic algorithm (GA) Kapur’s entropy Otsu 



This work was supported by the Chinese Natural Science Foundation Projects (No. 41471353, No. 41271349), Fundamental Research Funds for the Central Universities (No. 14CX02039A, No. 15CX06001A), and the China Scholarship Council.


  1. 1.
    Zhang, A.Z., Sun, G.Y., Wang, Z.J., Yao, Y.J.: A hybrid genetic algorithm and gravitational search algorithm for global optimization. Neural. Netw. World. 25, 53–73 (2015)CrossRefGoogle Scholar
  2. 2.
    Ghamisi, P., Couceiro, M.S., Martins, F.M., Atli, B.J.: Multilevel image segmentation based on fractional-order Darwinian particle swarm optimization. IEEE. Trans. Geosci. Remote. Sens. 52, 2382–2394 (2014)CrossRefGoogle Scholar
  3. 3.
    Kang, W.X., Yang, Q.Q., Liang, R.P.: The comparative research on image segmentation algorithms. In: 2009 First International Workshop on Education Technology and Computer Science, pp. 703-707. IEEE (2009)Google Scholar
  4. 4.
    Bhandari, A.K., Singh, V.K., Kumar, A., Singh, G.K.: Cuckoo search algorithm and wind driven optimization based study of satellite image segmentation for multilevel thresholding using Kapur’s entropy. Expert. Syst. Appl. 41, 3538–3560 (2014)CrossRefGoogle Scholar
  5. 5.
    Dey, S., Bhattacharyya, S., Maulik, U.: Quantum Behaved Multi-objective PSO and ACO Optimization for Multi-level Thresholding. IEEE, New York (2014)CrossRefGoogle Scholar
  6. 6.
    Horng, M.H.: Multilevel thresholding selection based on the artificial bee colony algorithm for image segmentation. Expert. Syst. Appl. 38, 13785–13791 (2011)Google Scholar
  7. 7.
    Bhandari, A.K., Kumar, A., Singh, G.K.: Tsallis entropy based multilevel thresholding for colored satellite image segmentation using evolutionary algorithms. Expert. Syst. Appl. 42, 8707–8730 (2015)CrossRefGoogle Scholar
  8. 8.
    Otsu, N.: A threshold selection method from gray-level histograms. IEEE. Trans. Syst. Man Cybern. 9, 62–66 (1979)CrossRefGoogle Scholar
  9. 9.
    Kapur, J.N., Sahoo, P.K., Wong, A.K.: A new method for gray-level picture thresholding using the entropy of the histogram. Comput. Vison Graph. 29, 273–285 (1985)CrossRefGoogle Scholar
  10. 10.
    Huang, L.K., Wang, M.J.J.: Image thresholding by minimizing the measures of fuzziness. Pattern Recogn. 28, 41–51 (1995)CrossRefGoogle Scholar
  11. 11.
    Qiao, Y., Hu, Q.M., Qian, G.Y., Luo, S.H., Nowinski, W.L.: Thresholding based on variance and intensity contrast. Pattern. Recogn. 40, 596–608 (2007)CrossRefzbMATHGoogle Scholar
  12. 12.
    Li, X.Q., Zhao, Z.W., Cheng, H.D.: Fuzzy entropy threshold approach to breast cancer detection. Inf. Sci. Appl. 4, 49–56 (1995)Google Scholar
  13. 13.
    Kittler, J., Illingworth, J.: Minimum error thresholding. Pattern Recogn. 19, 41–47 (1986)CrossRefGoogle Scholar
  14. 14.
    Li, C.H., Tam, P.K.S.: An iterative algorithm for minimum cross entropy thresholding. Pattern Recogn. Lett. 19, 771–776 (1998)CrossRefzbMATHGoogle Scholar
  15. 15.
    de Albuquerque, M.P., Esquef, I.A., Mello, A.R.G.: Image thresholding using Tsallis entropy. Pattern. Recogn. Lett. 25, 1059–1065 (2004)CrossRefGoogle Scholar
  16. 16.
    Kurban, T., Civicioglu, P., Kurban, R., Besdok, E.: Comparison of evolutionary and swarm based computational techniques for multilevel color image thresholding. Appl. Soft Comput. 23, 128–143 (2014)CrossRefGoogle Scholar
  17. 17.
    Akay, B.: A study on particle swarm optimization and artificial bee colony algorithms for multilevel thresholding. Appl. Soft. Comput. 13, 3066–3091 (2013)CrossRefGoogle Scholar
  18. 18.
    Ali, M., Ahn, C.W., Pant, M.: Multi-level image thresholding by synergetic differential evolution. Appl. Soft. Comput. 17, 1–11 (2014)CrossRefGoogle Scholar
  19. 19.
    Chander, A., Chatterjee, A., Siarry, P.: A new social and momentum component adaptive PSO algorithm for image segmentation. Expert. Syst. Appl. 5, 4998–500 (2011)CrossRefGoogle Scholar
  20. 20.
    Coello, C.C., Lamont, G.B., Van Veldhuizen, D.A.: Evolutionary algorithms for solving multi-objective problems. Springer Science & Business Media, Berlin (2007)zbMATHGoogle Scholar
  21. 21.
    Hammouche, K., Diaf, M., Siarry, P.: A multilevel automatic thresholding method based on a genetic algorithm for a fast image segmentation. Comput. Vis. Image Underst. 109, 163–175 (2008)CrossRefGoogle Scholar
  22. 22.
    Tao, W.B., Tian, J.W., Liu, J.: Image segmentation by three-level thresholding based on maximum fuzzy entropy and genetic algorithm. Pattern Recogn. Lett. 24, 3069–3078 (2003)CrossRefGoogle Scholar
  23. 23.
    Yin, P.Y.: A fast scheme for optimal thresholding using genetic algorithms. Signal Process. 72, 85–95 (1999)CrossRefzbMATHGoogle Scholar
  24. 24.
    Zhang, J., Percy, R.G., McCarty Jr., J.C.: Introgression genetics and breeding between Upland and Pima cotton: a review. Euphytica 198, 1–12 (2014)CrossRefGoogle Scholar
  25. 25.
    Ayala, H.V.H., dos Santos, F.M., Mariani, V.C., dos Santos Coelho, L.: Image thresholding segmentation based on a novel beta differential evolution approach. Expert. Syst. Appl. 42, 2136–2142 (2015)Google Scholar
  26. 26.
    Sarkar, S., Das, S., Chaudhuri, S.S.: A multilevel color image thresholding scheme based on minimum cross entropy and differential evolution. Pattern Recogn. Lett. 54, 27–35 (2015)CrossRefGoogle Scholar
  27. 27.
    Storn, R., Price, K.: Differential evolution-a simple and efficient heuristic for global optimization over continuous spaces. J. Global. Optim. 11, 341–359 (1997)MathSciNetCrossRefzbMATHGoogle Scholar
  28. 28.
    Kirkpatrick, S.: Optimization by simulated annealing: quantitative studies. J. Stat. Phys. 34, 975–986 (1984)MathSciNetCrossRefGoogle Scholar
  29. 29.
    Drigo, M., Maniezzo, V., Colorni, A.: Ant system: optimization by a colony of cooperation agents. IEEE Trans. Syst. Man Cybern. B 26, 29–41 (1996)CrossRefGoogle Scholar
  30. 30.
    Tao, W.B., Jin, H., Liu, L.M.: Object segmentation using ant colony optimization algorithm and fuzzy entropy. Pattern Recogn. Lett. 28, 788–796 (2007)CrossRefGoogle Scholar
  31. 31.
    Karaboga, D.: An idea based on honey bee swarm for numerical optimization. In: Broy, M., Dener, E. (eds.) Software Pioneers, pp. 10–13. Springer, Heidelberg (2002)Google Scholar
  32. 32.
    Civicioglu, P.: Transforming geocentric cartesian coordinates to geodetic coordinates by using differential search algorithm. Comput. Geosci. 46, 229–247 (2012)CrossRefGoogle Scholar
  33. 33.
    Clerc, M., Kennedy, J.: The particle swarm-explosion, stability, and convergence in a multidimensional complex space. IEEE Trans. Evol. Comput. 6, 58–73 (2002)CrossRefGoogle Scholar
  34. 34.
    Nabizadeh, S., Faez, K., Tavassoli, S., Rezvanian, A.: A Novel Method for Multi-level Image Thresholding Using Particle Swarm Optimization Algorithms. IEEE, New York (2010)CrossRefGoogle Scholar
  35. 35.
    Yin, P.Y.: Multilevel minimum cross entropy threshold selection based on particle swarm optimization. Appl. Math. Comput. 184, 503–513 (2007)MathSciNetzbMATHGoogle Scholar
  36. 36.
    Baniani, E.A., Chalechale, A.: Hybrid PSO and genetic algorithm for multilevel maximum entropy criterion threshold selection. Int. J. Hybrid Inf. Technol. 6, 131–140 (2013)CrossRefGoogle Scholar
  37. 37.
    Juang, C.F.: A hybrid of genetic algorithm and particle swarm optimization for recurrent network design. Proc IEEE Trans. Syst. Man Cybern. B 34, 997–1006 (2004)Google Scholar
  38. 38.
    Patel, M.K., Kabat, M.R., Tripathy, C.R.: A hybrid ACO/PSO based algorithm for QoS multicast routing problem. Ain Shams Eng. J. 5, 113–120 (2014)CrossRefGoogle Scholar
  39. 39.
    Zhang, Y.D., Wu, L.N.: A robust hybrid restarted simulated annealing particle swarm optimization technique. Adv. Comput. Sci. Appl. 1, 5–8 (2012)Google Scholar
  40. 40.
    Boussaïd, I., Chatterjee, A., Siarry, P., Ahmed-Nacer, M.: Hybrid BBO-DE Algorithms for Fuzzy Entropy-based Thresholding. Springer, Heidelberg (2013)CrossRefGoogle Scholar
  41. 41.
    Gong, W.Y., Cai, Z.H., Ling, C.X., Li, H.: A real-coded biogeography-based optimization with mutation. Appl. Math. Comput. 216, 2749–2758 (2010)MathSciNetzbMATHGoogle Scholar
  42. 42.
    John, H.: Holland. Adaptation in Natural and Artificial Systems. MIT Press, Cambridge (1992)Google Scholar
  43. 43.
    Li, C.H., Lee, C.: Minimum cross entropy thresholding. Pattern Recogn. 26, 617–625 (1993)CrossRefGoogle Scholar
  44. 44.
    Tsai, W.H.: Moment-preserving thresolding: a new approach. Comput. Vison Graph. 29, 377–393 (1985)CrossRefGoogle Scholar
  45. 45.
    Blum, C., Li, X.: Swarm Intelligence in Optimization. Springer, Heidelberg (2008)CrossRefGoogle Scholar
  46. 46.
    Kenndy, J., Eberhart, R.C., Labahn, G.: Particle Swarm Optimization. Kluwer, Boston (1995)CrossRefGoogle Scholar
  47. 47.
    Yang, X.S., Deb, S.: Cuckoo Search via Lévy Flights. IEEE, New York (2009)Google Scholar
  48. 48.
    Yang, X.S., Hossein, G.A.: Bat algorithm: a novel approach for global engineering optimization. Eng. Comput. 29, 464–483 (2012)CrossRefGoogle Scholar
  49. 49.
    Mirjalili, S., Mirjalili, S.Z.M., Lewis, A.: Grey Wolf Optimizer. Adv. Eng. Softw. 69, 46–61 (2014)CrossRefGoogle Scholar
  50. 50.
    Gong Y.J., Li, J.J., Zhou, Y., Li, Y., Chung, H.S.H., Shi, Y.H., Zhang, J.: Genetic learning particle swarm optimization. IEEE Trans. Cybern., 1–14 (2015)Google Scholar
  51. 51.
    Zhang, Y.D., Wu, L.N.: Optimal multi-level thresholding based on maximum Tsallis entropy via an artificial bee colony approach. Entropy 13, 841–859 (2011)CrossRefzbMATHGoogle Scholar
  52. 52.
    Alihodzic, A., Tuba, M.: Bat algorithm (BA) for image thresholding. Recent Res. Telecommun. Inf. Electron. Signal Process, 17–19 (2013)Google Scholar
  53. 53.
    Alihodzic, A., Tuba, M.: Improved bat algorithm applied to multilevel image thresholding. Sci World J. (2014). doi: 10.1155/2014/176718 Google Scholar
  54. 54.
    Ye, Z.W., Wang, M.W., Liu, W., Chen, S.B.: Fuzzy entropy based optimal thresholding using bat algorithm. Appl. Soft. Comput. 31, 381–395 (2015)CrossRefGoogle Scholar
  55. 55.
    Li, Y.Y., Jiao, L.C., Shang, R.H., Stolkin, R.: Dynamic-context cooperative quantum-behaved particle swarm optimization based on multilevel thresholding applied to medical image segmentation. Inf. Sci. 294, 408–422 (2015)MathSciNetCrossRefGoogle Scholar
  56. 56.
    Rashedi, E., Nezamabadi-Pour, H., Saryazdi, S.: GSA: a gravitational search algorithm. Inf. Sci. 179, 2232–2248 (2009)CrossRefzbMATHGoogle Scholar
  57. 57.
    Birbil, S., Fang, S.C.: An electromagnetism-like mechanism for global optimization. J. Global. Optim. 25, 263–282 (2003)MathSciNetCrossRefzbMATHGoogle Scholar
  58. 58.
    Kaveh, A., Talatahari, S.: A novel heuristic optimization method: charged system search. Acta. Mech. 213, 267–289 (2010)CrossRefzbMATHGoogle Scholar
  59. 59.
    Biswas, A., Mishra, K.K., Tiwari, S., Misra, A.K.: Physics-inspired optimization algorithms: a survey. J. Optim. 2013, 1–16 (2013)CrossRefGoogle Scholar
  60. 60.
    Wolpert, D.H., Macready, W.G.: No free lunch theorems for optimization. IEEE Trans. Evol. Comp. 1, 67–82 (1997)CrossRefGoogle Scholar
  61. 61.
    Jiang, S., Wang, Y., Ji, Z.: Convergence analysis and performance of an improved gravitational search algorithm. Appl. Soft Comput. 24, 363–384 (2014)CrossRefGoogle Scholar
  62. 62.
    Kumar, J.V., Kumar, D.V., Edukondalu, K.: Strategic bidding using fuzzy adaptive gravitational search algorithm in a pool based electricity market. Appl. Soft Comput. 13, 2445–2455 (2013)CrossRefGoogle Scholar
  63. 63.
    Mirjalili, S., Hashim, S.Z.M., Sardroudi, H.M.: Training feedforward neural networks using hybrid particle swarm optimization and gravitational search algorithm. Appl. Math. Comput. 218, 11125–11137 (2012)MathSciNetzbMATHGoogle Scholar
  64. 64.
    Sabri, N.M., Puteh, M., Mahmood, M.R.: A review of gravitational search algorithm. Int. J. Adv. Soft Comput. Appl. 5, 1–39 (2013)Google Scholar
  65. 65.
    Sun, G.Y., Zhang, A.Z., Yao, Y.J., Wang, Z.J.: A novel hybrid algorithm of gravitational search algorithm with genetic algorithm for multi-level thresholding. Appl. Soft Comput. 46, 703–730 (2016). doi: 10.1016/j.asoc.2016.01.054 CrossRefGoogle Scholar
  66. 66.
    Mirjalili, S., Hashim, S.Z.M.: A new hybrid PSOGSA algorithm for function optimization. IEEE, New York (2010)CrossRefGoogle Scholar
  67. 67.
    Mirjalili, S., Lewis, A.: Adaptive gbest-guided gravitational search algorithm. Neural Comput. Appl. 25, 1569–1584 (2014)CrossRefGoogle Scholar
  68. 68.
    Herrera, F., Lozano, M., Verdegay, J.L.: Fuzzy connectives based crossover operators to model genetic algorithms population diversity. Fuzzy. Set. Syst. 92, 21–30 (1997)CrossRefGoogle Scholar
  69. 69.
    Sahoo, P.K., Soltani, S., Wong, A.K.C.: A survey of thresholding techniques. Neural. Comput. Appl. 41, 233–260 (1988)Google Scholar
  70. 70.
    Derrac, J., García, S., Molina, D., Herrera, F.: A practical tutorial on the use of nonparametric statistical tests as a methodology for comparing evolutionary and swarm intelligence algorithms. Swarm Evol. Comput. 1, 3–18 (2011)CrossRefGoogle Scholar
  71. 71.
    Liang, J.J., Qin, A.K., Suganthan, P.N., Baskar, S.: Comprehensive learning particle swarm optimizer for global optimization of multimodal functions. IEEE Ttans. Evolut. Comput. 10, 281–295 (2006)CrossRefGoogle Scholar

Copyright information

© Springer International Publishing AG 2016

Authors and Affiliations

  1. 1.School of GeosciencesChina University of PetroleumQingdaoChina

Personalised recommendations