An optimized skin texture model using gray-level co-occurrence matrix

  • 375 Accesses

  • 2 Citations


Texture analysis is devised to address the weakness of color-based image segmentation models by considering the statistical and spatial relations among the group of neighbor pixels in the image instead of relying on color information of individual pixels solely. Due to decent performance of the gray-level co-occurrence matrix (GLCM) in texture analysis of natural objects, this study employs this technique to analyze the human skin texture characteristics. The main goal of this study is to investigate the impact of major GLCM parameters including quantization level, displacement magnitudes, displacement direction and GLCM features on skin segmentation and classification performance. Each of these parameters has been assessed and optimized using an exhaustive supervised search from a fairly large initial feature space. Three supervised classifiers including Random Forest, Support Vector Machine and Multilayer Perceptron have been employed to evaluate the performance of the feature space subsets. Evaluation results using Edith Cowan University (ECU) dataset showed that the proposed texture-assisted skin detection model outperformed pixelwise skin detection by significant margin. The proposed method generates an F-score of 91.98, which is satisfactory, considering the challenging scenario in ECU dataset. Comparison of the proposed texture-assisted skin detection model with some state-of-the-art skin detection models indicates high accuracy and F-score of the proposed model. The findings of this study can be used in various disciplines, such as face recognition, skin disorder and lesion recognition, and nudity detection.

This is a preview of subscription content, log in to check access.

Access options

Buy single article

Instant unlimited access to the full article PDF.

US$ 39.95

Price includes VAT for USA

Subscribe to journal

Immediate online access to all issues from 2019. Subscription will auto renew annually.

US$ 99

This is the net price. Taxes to be calculated in checkout.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11


  1. 1.

    Zhang S, Yang H, Singh L (2014) Increased information leakage from text. In: Proceedings of CEUR workshop, vol 1225, no 1, pp 41–42

  2. 2.

    Brown DA, Craw I, Lewthwaite J (2001) A SOM based approach to skin detection with application in real time systems. BMVC 1:491–500

  3. 3.

    Tuceryan M, Jain AK (1993) Texture analysis. In: The handbook of pattern recognition and computer vision, pp 207–248

  4. 4.

    Lloyd K, Rosin PL, Marshall D, Moore SC (2016) Detecting violent crowds using temporal analysis of GLCM texture. arXiv preprint arXiv:1605.05106

  5. 5.

    Haralick RM, Shanmugam K, Dinstein I (1973) Textural features for image classification. IEEE Trans Syst Man Cybern 3(6):610–621

  6. 6.

    Gonzalez RC, Woods RE (2007) Digital image processing, 3rd edn. Prentice Hall, Upper Saddle River

  7. 7.

    Vezhnevets V, Sazonov V, Andreeva A (2003) A survey on pixel-based skin color detection techniques. In: Proceedings of graphicon, vol 85, pp 85–92

  8. 8.

    Gadelmawla ES (2004) A vision system for surface roughness characterization using the gray level co-occurrence matrix. NDT E Int 37(7):577–588

  9. 9.

    Kuffer M, Pfeffer K, Sliuzas R, Baud I (2016) Extraction of slum areas from VHR imagery using GLCM variance. IEEE J Select Top Appl Earth Obs Remote Sens 9(5):1830–1840

  10. 10.

    Daliman S, Rahman SA, Busu I (2014) Segmentation of oil palm area based on GLCM- SVM and NDVI. In: Region 10 symposium IEEE, pp 645–650

  11. 11.

    Renzetti FR, Zortea L (2011) Use of a gray level co-occurrence matrix to characterize duplex stainless steel phases microstructure. Frattura ed Integrita Strutturale 16:43–51

  12. 12.

    Phung SL, Bouzerdoum A, Chai D (2005) Skin segmentation using color pixel classification: analysis and comparison. IEEE Trans Pattern Anal Mach Intell 27(1):148–154

  13. 13.

    Soh L, Tsatsoulis C (1999) Texture analysis of SAR sea ice imagery using gray level co-occurrence matrices. IEEE Geosci Remote Sens 37(2):780–795

  14. 14.

    Clausi DA (2002) An analysis of co-occurrence texture statistics as a function of grey level quantization. Can J Remote Sens 28(1):45–62

  15. 15.

    Zhang D, Zhao M, Zhou Z, Pan S (2013) Characterization of wire rope defects with gray level co-occurrence matrix of magnetic flux leakage images. J Nondestr Eval 32(1):37–43

  16. 16.

    Ou X, Pan W, Xiao P (2014) In vivo skin capacitive imaging analysis by using grey level co-occurrence matrix (GLCM). Int J Pharm 460(1–2):28–32

  17. 17.

    Xian GM (2010) An identification method of malignant and benign liver tumors from ultrasonography based on GLCM texture features and fuzzy SVM. Expert Syst Appl 37(10):6737–6741

  18. 18.

    Maurya R, Singh SK, Maurya AK, Kumar A (2014) GLCM and multi class support vector machine based automated skin cancer classification. In: IEEE international conference on computing for sustainable global development (INDIACom), pp 444–447

  19. 19.

    Zhu H, Zhou S, Wang J, Yin Z (2007) An algorithm of pornographic image detection. In: Fourth international conference image and graphics, 2007, ICIG 2007, pp 801–804

  20. 20.

    Liu Y, Zhang H, Li P (2011) Research on SVM-based MRI image segmentation. J China Univ Posts Telecommun 18(December):129–132

  21. 21.

    Wang X, Zhang X, Yao J (2011) Skin color detection under complex background. In: International conference on mechatronic science, electric engineering and computer, pp 1985–1988

  22. 22.

    Jeniva S (2015) An efficient skin lesion segmentation analysis using statistical texture distinctiveness. Int J Adv Res Trends Eng Technol 3777:111–116

  23. 23.

    Pang H, Chen T, Wang X, Chang Z, Shao S, Zhao J (2017) Quantitative evaluation methods of skin condition based on texture feature parameters. Saudi J Biol Sci 24(3):514–518

  24. 24.

    Gómez W, Pereira WCA, Infantosi AFC (2012) Analysis of co-occurrence texture statistics as a function of gray-level quantization for classifying breast ultrasound. IEEE Trans Med Imaging 31(10):1889–1899

  25. 25.

    De La Casa Almeida M, Serrano CS, Rejano JJJ, Díaz JR, Lugo MLB, Roldán JRR (2015) Reliability of texture analysis using co-occurrence matrices (glcm) on photographic image in the assessment of cellulite in a Spanish population. J Eur Acad Dermatol Venereol 29(2):315–324

  26. 26.

    Zhang X, Weng C, Yu B, Li H (2014) In-vivo differentiation of photo-aged epidermis skin by texture-based classification. In: SPIE/COS photonics Asia international society for optics and photonics

  27. 27.

    Aswin RB, Jaleel JA, Salim S (2014) Hybrid genetic algorithm—artificial neural network classifier for skin cancer detection. In: IEEE international conference on control, instrumentation, communication and computational technologies (ICCICCT), pp 1304–1309

  28. 28.

    Das N, Pal A, Mazumder S, Sarkar S, Gangopadhyay D, Nasipuri M (2013) An SVM based skin disease identification using local binary patterns. In: IEEE third international conference on Advances in computing and communications (ICACC), pp 208–211

  29. 29.

    Pengyu N, Jie H (2013) Pornographic image filtering method based on human key parts. In: Proceedings of the international conference on information technology and software engineering, vol 212, pp 677–688

  30. 30.

    Wang YWY, Wu XWX, Yang LYL (2010) Sensitive body image detection technology based on skin color and texture cues. In: 3rd International congress on image signal processing (CISP), vol 6, pp 2661–2664

  31. 31.

    Yue J, Li Z, Liu L, Fu Z (2011) Content-based image retrieval using color and texture fused features. Math Comput Model 54(3–4):1121–1127

  32. 32.

    El-Khamy SE, Abdel Alim OA, Saii MM (2001) Neural network face recognition using statistical feature and skin texture parameters. In: Proceedings of the eighteenth national on radio science conference NRSC2001, pp 233–240

  33. 33.

    Al Abbadi NK, Dahir NS, Abd Alkareem Z (2013) Skin texture recognition using neural networks. In: 2008 International Arab conference on information technology (ACIT 2008), pp 3–6

  34. 34.

    Schwartz WR, Kembhavi A, Harwood D, Davis LS (2009) Human detection using partial least squares analysis. In: IEEE 12th international conference on computer vision, pp 24–31

  35. 35.

    Clausi DA, Jernigan ME (1998) A fast method to determine co-occurrence texture features. IEEE Trans Geosci Remote Sens 36(1):298–300

  36. 36.

    Zaidan AA, Ahmad NN, Abdul Karim H, Larbani M, Zaidan BB, Sali A (2014) Image skin segmentation based on multi-agent learning Bayesian and neural network. Eng Appl Artif Intell 32:136–150

  37. 37.

    Cao X, Liu H (2012) A skin detection algorithm based on Bayes decision in the YCbCr color space. Appl Mech Mater 126:672–676

  38. 38.

    Khan R, Hanbury A, Stöttinger J, Bais A (2012) Color based skin classification. Pattern Recognit Lett 33(2):157–163

  39. 39.

    Khan R, Hanbury A, Stoettinger J (2010) Skin detection: a random forest approach. In: IEEE 17th international on conference on image processing, pp 4613–4616

  40. 40.

    Zuo H, Hu W, Wu O (2010) Patch-based skin color detection and its application to pornography image filtering. In: Proceedings of 19th international conference on world wide web, pp 1227–1228

  41. 41.

    Maktabdar Oghaz M, Maarof MA, Zainal A, Rohani MF, Yaghoubyan SH (2015) A hybrid color space for skin detection using genetic algorithm heuristic search and principal component analysis technique. PLoS ONE 10(8):e0134828

  42. 42.

    Polpinij J, Chotthanom A, Sibunruang C, Chamchong R, Puangpronpitag S (2006) Content-based text classifiers for pornographic web filtering. In: IEEE international conference on systems, man and cybernetics, pp 1481–1485

  43. 43.

    Yang MH, Kriegman DJ, Ahuja N (2002) Detecting faces in images: a survey. IEEE Trans Pattern Anal Mach Intell 24(1):34–58

  44. 44.

    Phung SL, Bouzerdoum A, Chai D (2005) Skin segmentation using color pixel classification: analysis and comparison. IEEE Trans Pattern Anal Mach Intell 27(1):148–154

  45. 45.

    Lin C (2006) Face detection in non-uniform illumination conditions by using color and triangle-based approach. In: Proceedings of 9th conference on JCIS science, pp 4–7

  46. 46.

    Lee J-S, Kuo Y-M, Chung P-C, Chen E-L (2007) Naked image detection based on adaptive and extensible skin color model. Pattern Recognit 40(8):2261–2270

  47. 47.

    Romero-Lopez A, Giro-i-Nieto X, Burdick J, Marques O (2017) Skin lesion classification from dermoscopic images using deep learning techniques. In: Biomed engineering (NY), pp 49–54

  48. 48.

    Esteva A, Kuprel B, Novoa RA, Ko J, Swetter SM, Blau HM, Thrun S (2017) Dermatologist-level classification of skin cancer with deep neural networks. Nature 542(7639):115–118

  49. 49.

    Liao H (2016) A deep learning approach to universal skin disease classification. Department of Computer Science, University of Rochester, pp 1–8

  50. 50.

    Jafari MH, Karimi N, Nasr-Esfahani E, Samavi S, Soroushmehr SMR, Ward K, Najarian K (2016) Skin lesion segmentation in clinical images using deep learning. In: 23rd international conference on pattern recognition, pp 337–342

  51. 51.

    Li Y, Esteva A, Kuprel B, Novoa R, Ko J, Thrun S (2016) Skin cancer detection and tracking using data synthesis and deep learning, pp 1–4. arXiv preprint arXiv:1612.01074

  52. 52.

    Liu Z, Luo P, Wang X, Tang X (2014) Deep learning face attributes in the wild. In: Proceedings of the IEEE international conference on computer vision, pp 3730–3738

  53. 53.

    Bharati A, Singh R, Vatsa M, Bowyer KW (2016) Detecting facial retouching using supervised deep learning. IEEE Trans Inf Forensics Secur 11(9):1903–1913

  54. 54.

    Xing J, Li K, Hu W, Yuan C, Ling H (2016) Diagnosing deep learning models for high accuracy age estimation from a single image. Pattern Recognit 66:106–116

  55. 55.

    Perez M, Avila S, Moreira D, Moraes D, Testoni V, Valle E, Goldenstein S, Rocha A (2017) Video pornography detection through deep learning techniques and motion information. Neurocomputing 230:279–293

  56. 56.

    Zhang H, Cao X, Ho JKL, Chow TWS (2016) Object-level video advertising: an optimization framework. IEEE Trans Ind Inf 13(99):520–531

  57. 57.

    Zhang H, Li J, Ji Y, Yue H (2017) Understanding subtitles by character-level sequence-to-sequence learning. IEEE Trans Ind Inform 13(2):616–624

  58. 58.

    Kent JT (1983) Information gain and a general measure of correlation. Biometrika 70(1):163–173

  59. 59.

    Witten IH, Frank E, Hall MA, Pal CJ (2016) Data mining: practical machine learning tools and techniques. Morgan Kaufmann, Burlington

  60. 60.

    Lee C, Lee GG (2006) Information gain and divergence-based feature selection for machine learning-based text categorization. Inf Process Manage 42(1):155–165

  61. 61.

    Shehab T, Farooq M (2013) Neural network cost estimating model for utility rehabilitation projects. Eng Constr Archit Manag 20(2):118–126

  62. 62.

    Pivezhandi M, Maybodi BM (2015) Statistical based neural network in human activity recognition. Int J Comput Appl 124(12):1–5

  63. 63.

    Cheddad A, Condell J, Curran K, Mc Kevitt P (2009) A skin tone detection algorithm for an adaptive approach to steganography. Sig Process 89:2465–2478

  64. 64.

    Kawulok M, Kawulok J, Nalepa J (2014) Spatial-based skin detection using discriminative skin-presence features. Pattern Recognit Lett 41:3–13

  65. 65.

    Abdullah-Al-Wadud M, Shoyaib M, Chae O (2008) A skin detection approach based on color distance map. EURASIP J Adv Signal Process 2008(1):814283

  66. 66.

    Dumitrescu CM, Dumitrache I (2013) Human skin detection using texture information and vector processing techniques by neural networks. Adv Intell Control Syst Comput Sci 59–75

  67. 67.

    Al-Mohair HK, MohamadSaleh J, Suandi SA (2015) Hybrid human skin detection using neural network and k-means clustering technique. Appl Soft Comput 33:337–347

  68. 68.

    El Abbadi NK, Dahir N, Alkareem ZA (2013) Skin texture recognition using neural networks. arXiv Preprint arXiv:1311.6049

  69. 69.

    Bilal S, Akmeliawati R, Salami MJE, Shafie AA (2012) Dynamic approach for real-time skin detection. J Real-Time Image Process 10(2):1–15

  70. 70.

    Ng P, Pun C-M (2011) Skin color segmentation by texture feature extraction and k-mean clustering. In: Computational intelligence, communication systems and networks, pp 213–218

  71. 71.

    Lei Y, Xiaoyu W, Hui L, Dewei Z, Jun Z (2011) An algorithm of skin detection based on texture. In: 4th international congress on image and signal processing (CISP), pp 1822–1825

  72. 72.

    Taqa AY, Jalab HA (2010) Increasing the reliability of skin detectors. Sci Res Essays 5(17):2480–2490

  73. 73.

    Fotouhi M, Rohban MH, Kasaei S (2009) Skin detection using contourlet-based texture analysis. In: Fourth international conference on digital telecommunications ICDT’09, pp 367–372

  74. 74.

    Jiang Z, Yao M, Jiang W (2007) Skin detection using color, texture and space information. In: Fourth international conference on fuzzy systems and knowledge discovery FSKD, pp 366–370

Download references


The authors would like to acknowledge ministry of higher education (MOHE) and Universiti Teknologi Malaysia (UTM) for supporting this research under Research University Grant (RUG) vote 10J28 and science fund Grant (MOSTI) vote 01-01-06-SF1167.

Author information

Correspondence to Mahdi Maktabdar Oghaz.

Ethics declarations

Conflict of interest

We would like to state that there is no conflict of interest to declare and corresponding author shall bear full responsibility for the submission.

Rights and permissions

Reprints and Permissions

About this article

Verify currency and authenticity via CrossMark

Cite this article

Maktabdar Oghaz, M., Maarof, M.A., Rohani, M.F. et al. An optimized skin texture model using gray-level co-occurrence matrix. Neural Comput & Applic 31, 1835–1853 (2019).

Download citation


  • Gray-level co-occurrence matrix
  • Skin segmentation
  • Texture analysis
  • GLCM
  • Skin texture