EVOLUTION OF IMAGE SEGMENTATION METHODS: CLASSICAL ALGORITHMS AND DEEP LEARNING
Abstract
Background. Text image binarization is an important preprocessing task in document analysis, optical character recognition, and automated information extraction. The task becomes challenging when images contain blur, noise, low contrast, or background degradation.
Materials and Methods. This study compares classical and lightweight neural methods for binarizing degraded text images. The evaluation was conducted on a paired text binarization dataset comprising degraded input images and their corresponding clean binary target masks. The evaluated methods included simple global thresholding, Otsu binarization, adaptive thresholding, K-means clustering, Fuzzy C-means clustering, watershed segmentation, region growing, region splitting and merging, Canny edge detection, Laplacian of Gaussian filtering, and a U-Net model. Tunable parameters were selected on the validation subset, while final results were reported on the independent test subset. The methods were assessed using Intersection over Union (IoU, Jaccard index), Dice similarity coefficient (DSC), Pixel Accuracy (PA), Precision, Recall, and execution time.
Results and Discussion. Adaptive thresholding achieved the best performance among classical methods: IoU = 0.785, DSC = 0.877, PA = 0.961, Precision = 0.851, and Recall = 0.923. Simple global thresholding was the fastest method, with a runtime of 0.0015 ms/image, but lower Precision. K-means, Fuzzy C-means, Otsu, and region growing demonstrated high Recall values above 0.97, but lower Precision, indicating that degraded background regions were often classified as foreground. Edge-based methods produced lower IoU and DSC because they mainly detected character contours. The Tiny U-Net model achieved the highest overall quality: IoU = 0.959, DSC = 0.979, PA = 0.994, Precision = 0.979, and Recall = 0.979.
Conclusion. The results show that different binarization methods are suitable for different scenarios, depending on the required accuracy, runtime constraints, and available resources. Classical methods remain useful for low-latency processing, while lightweight neural models provide higher accuracy when sufficient computational resources are available. Pixel Accuracy should be interpreted carefully because background pixels dominate document images.
Keywords: text binarization, image segmentation, thresholding, clustering, U-Net, evaluation metrics.
Full Text:
PDFReferences
[1] Sauvola, J., & Pietikäinen, M. (2000). Adaptive document image binarization. Pattern Recognition, 33(2), 225–236. https://doi.org/10.1016/S0031-3203(99)00055-2
[2] Gatos, B., Pratikakis, I., & Perantonis, S. J. (2006). Adaptive degraded document image binarization. Pattern Recognition, 39(3), 317–327. https://doi.org/10.1016/j.patcog.2005.09.010
[3] Sahoo, P. K., Soltani, S., & Wong, A. K. (1988). A survey of thresholding techniques. Computer Vision, Graphics, and Image Processing, 41(2), 233-260. https://doi.org/10.1016/0734-189X(88)90022-9
[4] Otsu, N. (1979). A Threshold Selection Method from Gray-Level Histograms. IEEE Transactions on Systems, Man, and Cybernetics, 9(1), 62-66. https://doi.org/10.1109/TSMC.1979.4310076
[5] Bradley, D., & Roth, G. (2007). Adaptive Thresholding Using the Integral Image. Journal of Graphics Tools, 12(2), 13-21.https://doi.org/10.1080/2151237X.2007.10129236
[6] MacQueen, J. (1967). Some methods for classification and analysis of multivariate observations. Proceedings of the Fifth Berkeley Symposium on Mathematical Statistics and Probability, 1(14), 281-297.https://projecteuclid.org/euclid.bsmsp/1200512992
[7] Bezdek, J. C. (1981). Pattern Recognition with Fuzzy Objective Function Algorithms. Plenum Press. https://doi.org/10.1007/978-1-4757-0450-1
[8] Beucher, S., & Lantuéjoul, C. (1979). Use of Watersheds in Contour Detection. International Workshop on Image Processing: Real-time Edge and Motion Detection/Estimation.https://people.cmm.minesparis.psl.eu/users/beucher/publi/watershed.pdf
[9] Adams, R., & Bischof, L. (1994). Seeded Region Growing. IEEE Transactions on Pattern Analysis and Machine Intelligence, 16(6), 641-647. https://doi.org/10.1109/34.295913
[10] Horowitz, S. L., & Pavlidis, T. (1974). Picture segmentation by a directed graph of regions and edges. Proceedings of the 2nd International Joint Conference on Pattern Recognition, 424-433.
[11] Canny, J. (1986). A Computational Approach to Edge Detection. IEEE Transactions on Pattern Analysis and Machine Intelligence, (6), 679-698. https://doi.org/10.1109/TPAMI.1986.4767851
[12] Marr, D., & Hildreth, E. (1980). Theory of Edge Detection. Proceedings of the Royal Society of London. Series B. Biological Sciences, 207(1167), 187-217. https://doi.org/10.1098/rspb.1980.0020
[13] Garcia-Garcia, A., Orts-Escolano, S., Oprea, S., Villena-Martinez, V., & Garcia-Rodriguez, J. (2018). A survey on deep learning techniques for image and video semantic segmentation. Applied Soft Computing, 70, 41–65. https://doi.org/10.1016/j.asoc.2018.05.018
[14] Ronneberger, O., Fischer, P., & Brox, T. (2015). U-Net: Convolutional Networks for Biomedical Image Segmentation. In Medical Image Computing and Computer-Assisted Intervention – MICCAI 2015, 234–241. https://doi.org/10.1007/978-3-319-24574-4_28
[15] Müller, D., Soto-Rey, I., & Kramer, F. (2022). Towards a guideline for evaluation metrics in medical image segmentation. BMC Research Notes, 15, 210. https://doi.org/10.1186/s13104-022-06096-y
[16] Everingham, M., Van Gool, L., Williams, C. K., Winn, J., & Zisserman, A. (2010). The Pascal Visual Object Classes (VOC) Challenge. International Journal of Computer Vision, 88(2), 303-338.https://doi.org/10.1007/s11263-009-0275-4
[17] Dice, L. R. (1945). Measures of the Amount of Ecologic Association Between Species. Ecology, 26(3), 297-302.https://doi.org/10.2307/1932409
[18] Fellarrusto. Text Binarization Dataset. Kaggle. Available online: https://www.kaggle.com/datasets/fellarrusto/text-binarization
DOI: http://dx.doi.org/10.30970/eli.34.6
Refbacks
- There are currently no refbacks.

Electronics and information technologies / Електроніка та інформаційні технології