Abstract
Since the steel plate surface defect image often has complicated background and lots of noise, the segmentation accuracy is low when using the single threshold Otsu method. Therefore, this paper introduces the whale optimization algorithm (WOA) to optimize the threshold of the dual-threshold image segmentation. To avoid the premature convergence, slow convergence speed and easy fall into the local optimum of the original WOA, an improved WOA is proposed. Firstly, the WOA is discretized by using round function; secondly, the sin mapping generation chaotic sequence is used to replace the randomly generated initial population in the initialization process of the WOA to enhance the multiformity of population; thirdly, the global search and local development capabilities are balanced and improved by nonlinear time-varying factors and inertia weights in the position updating mechanism; finally, the improved WOA is applied to the two-dimensional Otsu (2D-Otsu) algorithm to select the optimal threshold for image segmentation. The simulation results of 8 classic benchmark functions show that the improved WOA can obtain the optimal value of the function 0, − 12,569.5. The improved WOA can raise convergence speed and improve the global search ability and get rid of the local optimum. The experimental results show that the proposed algorithm outperforms the Otsu algorithm and can achieve more accurate segmentation of steel plate surface defect image. Compared with 2D-Otsu algorithm, the proposed algorithm reduces running time by 0.34 s and has the highest segmentation efficiency for rolled-in scale defects.
Similar content being viewed by others
References
Zhang, S., Zhang, Q., Gu, J., et al.: Visual inspection of steel surface defects based on domain adaptation and adaptive convolutional neural network. Mech. Syst. Signal Process. 109, 107541–107556 (2021)
Fu, G., Sun, P., Zhu, W., et al.: A deep-learning-based approach for fast and robust steel surface defects classification. Opt. Lasers Eng. 121, 1–5 (2019)
He, Y., Song, K., Meng, Q., et al.: An end-to-end steel surface defect detection approach via fusing multiple hierarchical features. IEEE Trans. Instrum. Meas. 69(4), 1493–1504 (2020)
Huang, Z., Wu, J., Xie, F.: Automatic surface defect segmentation for hot-rolled steel strip using depth-wise separable U-shape network. Mater. Lett. 301, 130271 (2021)
Niu, S., Li, B., Wang, X., et al.: Defect attention template generation cycle GAN for weakly supervised surface defect segmentation. Patt. Recognit. 123, 108396 (2022)
Luo, Q., Fang, X., Liu, L., et al.: Automated visual defect detection for flat steel surface: a survey. IEEE Trans. Instrum. Meas. 69(3), 626–644 (2020)
Andrés, T.G., Pierre, G., Laure, B.É.: Remote sensing image analysis by aggregation of segmentation-classification collaborative agents. Patt. Recognit. 73, 259–274 (2018)
Upadhya, P., Chhabra, J.K.: Multilevel thresholding based image segmentation using new multistage hybrid optimization algorithm. J. Ambient. Intell. Humaniz. Comput. 12(1), 1081–1098 (2021)
Cheng, D., Tian, F., Liu, L., et al.: Image segmentation based on multi-region multi-scale local binary fitting and Kullback-Leibler divergence. SIViP 12, 895–903 (2018)
Yan, W., Wang, Y., Xia, M., et al.: Edge-guided output adaptor: highly efficient adaptation module for cross-vendor medical image segmentation. IEEE Signal Process. Lett. 26(11), 1593–1597 (2019)
Kakhani, N., Mokhtarzade, M., Valadan Zouj, M.J.: Classification of very high-resolution remote sensing images by applying a new edge-based marker-controlled watershed segmentation method. SIViP 13, 1319–1327 (2019)
Zhou, J., Wang, L., Chen, X.: Maximum two-dimensional entropy image segmentation based on improved whale optimization algorithm. Laser Technol. 45(03), 378–385 (2021)
Lei, X., Ouyang, H., Xu, L.: Image segmentation based on equivalent three-dimensional entropy method and artificial fish swarm optimization algorithm. Opt. Eng. 57(10), 103106 (2018)
Anfal, T.H., Javad, R.: Multilevel thresholding of images with improved Otsu thresholding by black widow optimization algorithm. Multimed. Tools Appl. 80(18), 28217–28243 (2021)
Bhuvan C., Bansal S., Gupta R. et al.: (2020) Computer based diagnosis of malaria in thin blood smears using thresholding based approach. In: 2020 7th International conference on signal processing and integrated networks (SPIN). pp 1132–1135.
Huang, C., Li, X., Wen, Y.: An OTSU image segmentation based on fruitfly optimization algorithm. Alex. Eng. J. 60(1), 183–188 (2021)
Cen, R., Li, J.: Application of improved PSO-2D Otsu in continuous casting slab defect image segmentation. China Test 4, 19–24 (2020)
Liu, J., Li, W.: Two dimensional Otsu automatic threshold segmentation method for gray image. J. Automat. 19(01), 101–105 (1993)
Wu, Y., Fan, J., Wu, S.: Improved fast iterative algorithm for threshold segmentation of two-dimensional Otsu method. J. Electron. Measure. Instrum. 25(03), 218–225 (2011)
Sha, C., Hou, J., Cui, H.: A robust 2D Otsu’s thresholding method in image segmentation. J. Vis. Commun. Image Represent. 107, 339–351 (2016)
Maruthi Nagendra Prasad, J., Vamsi, Krishna M.: Lung cancer segmentation in CT images using Fuzzy-C means clustering and artificial bee colony algorithm (Article). Int. J. Innovat. Technol. Explor. Eng. 8(10), 1737–1739 (2019)
Jiang, Y., Ma, Y., Liang, Y., et al.: Otsu lung tissue segmentation algorithm based on fractional sparrow search optimization. Comput. Sci. 48(S1), 28–32 (2021)
Mirjalili, S., Lewis, A.: The whale optimization algorithm. Adv. Eng. Softw. 95(5), 51–67 (2016)
El Aziz, E., Eweesc, A., Hassanien, A.: Whale optimization algorithm and moth-flame optimization for multilevel thresholding image segmentation (Article). Expert Systems with Applications. 83(C), 242–256 (2017)
Hassan, G., Hassanien, A.: Retinal fundus vasculature multilevel segmentation using whale optimization algorithm. SIViP 12, 263–270 (2018)
Zhang, D., Yang, Y., Chu, M., et al.: Image segmentation of steel surface defects based on 2-dimensional whale optimization weighted WGG-Otsu algorithm. J. Anhui Univ. Natl. Sci. Ed. 44(3), 6 (2020)
Liu Z.: Research on complex network community discovery under intelligent algorithm. Chongqing University. 45–57 (2017).
Zou, K.H., Warfield, S.K., Bharatha, A., et al.: Statistical validation of image segmentation quality based on a spatial overlap index1: scientific reports. Acad Radiol 11(2), 178–189 (2004)
Acknowledgements
This work was supported in part by the Changsha University of Science and Technology Innovation Project under Grant SJCX202064, the Natural Science Foundation of Hunan Province under Grant 2021JJ30740 and Grant 2021JJ30732, the National Natural Science Foundation of China under Grant 62073342, and the Hunan Province 2011 Collaborative Innovation Center of Clean Energy and Smart Grid. The authors, hereby, gratefully appreciate their support.
Author information
Authors and Affiliations
Corresponding author
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Springer Nature or its licensor holds exclusive rights to this article under a publishing agreement with the author(s) or other rightsholder(s); author self-archiving of the accepted manuscript version of this article is solely governed by the terms of such publishing agreement and applicable law.
About this article
Cite this article
Xie, Q., Zhou, W., Ma, L. et al. Improved whale optimization algorithm for 2D-Otsu image segmentation with application in steel plate surface defects segmentation. SIViP 17, 1653–1659 (2023). https://doi.org/10.1007/s11760-022-02375-0
Received:
Revised:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s11760-022-02375-0