Comparative of Effectiveness When Classifying Colors Using RGB Image Representation with PSO with Time Decreasing Inertial Coefficient and GA Algorithms as Classifiers

  • Martín MontesEmail author
  • Alejandro Padilla
  • Juana Canul
  • Julio Ponce
  • Alberto Ochoa
Part of the Studies in Computational Intelligence book series (SCI, volume 749)


Several transformations from basic RGB representation in digital color images have been developed, CIELab and HSV are commonly applied for color classification, because in this colors spaces there is only a single value adjusted for a specific color detection, nevertheless this transformation require high computational power for transforming every single pixel in a picture. Artificial intelligence (AI) algorithms have been applied before for color classification, but using indistinctly RGB, CIELab and HSV representations among other color transformations even when this transformation can be omitted since they were developed for color classification without AI algorithms. In this paper, is proposed an algorithm for optimizing line equations obtained from three spaces directly generated as a dimensional reduction of the RGB space and we show the comparison of the achieved results optimizing these equations with a GA and PSO algorithms.


Color classification PSO GA Color spaces 


  1. 1.
    N.A. Baykan, N. Yılmaz, G. Kansun, Case study in effects of color spaces for mineral identification. Sci. Res. Essays 5(11), 1243–1253 (2010)Google Scholar
  2. 2.
    A. Bovik, Handbook of Image and Video Processing (Academic Press, Department of Electrical and Computer Engineering. Austin, Texas 2000)Google Scholar
  3. 3.
    N.A. Ibraheem, M.M. Hasan, R.Z. Khan, P.K. Mishra, Understanding color models: a review. ARPN J. Sci. Technol. 2(3), 265–275Google Scholar
  4. 4.
    M. Montes Rivera, A. Padilla Díaz, J. Canul Reich, J.C. Ponce Gallegos, A. Ochoa Zezzatti, Comparative between RGB and HSV color representations for color segmentation when it is applied with artificial neural networks and evolutionary algorithms. Avances en las tecnologías de la información ANIEI 2016Google Scholar
  5. 5.
    M.C. Murillo, F. García Lamont, A.D. Cuevas Rasgado, Segmentación de imágenes de color imitando la percepción humana del color. Res. Comput. Sci. 114, 71–81 (2016)Google Scholar
  6. 6.
    T. Gevers, A.W.M. Smeulders, Color-based object recognition. Pattern Recognit. 32, 453–464 (1999)CrossRefGoogle Scholar
  7. 7.
    Z.H. Al-Tairi, R.W. Rahmat, M.I. Saripan, P.S. Sulaiman, Skin segmentation using YUV and RGB color spaces. J. Inf. Process Syst. 10(2), 283–299Google Scholar
  8. 8.
    O. Severino Jr., A. Gonzaga, HSM: a new color space used in the processing of color images. RITA XVI Número 2 (2009)Google Scholar
  9. 9.
    R. Nayyer, B. Sharma Use and analysis of color models in image processing. Int. J. Adv. Sci. Res. 1(8), 329–330 (2015)Google Scholar
  10. 10.
    M. Deswal, N. Sharma, A fast HSV image color and texture detection and image conversion algorithm. Int. J. Sci. Res (IJSR). 3(6) (2014)Google Scholar
  11. 11.
    T. Weise, Global optimization algorithms: theory and application. E-Book obtained from: 27 Jan 2016, published 2009
  12. 12.
    K.O. Jones, Comparison of genetic algorithm and particle swarm optimization, in International Conference on Computer Systems and Technologies CompSysTech (2005)Google Scholar
  13. 13.
    A. Hanbury, J. Serra, A 3D-polar coordinate color representation suitable for image analysis. Pattern Recognition and Image Processing Group Institute of Computer Aided Automation Vienna University of Technology Technical Report December 16 2002Google Scholar
  14. 14.
    A. Bogdan, Haifa, V. Bacârea, O. Iacob, T. Călinici, A. Schiopu, Comparison between digital image processing and spectrophotometric measurements methods. Application in electrophoresis interpretation. Appl. Med. Inf. 28(1), 29–36 (2011)Google Scholar
  15. 15.
    S. Dutta, B.B. Chaudhuri, A color edge detection algorithm in RGB color space, in 2009 International Conference on Advances in Recent Technologies in Communication and Computing (2009)Google Scholar
  16. 16.
    M.H. Nadian, S. Rajiee, M. Aghbashlo, S. Hosseinpour, S.S. Mohtasebi, Continuous real-time monitoring and neural network modeling of apple slices color changes during hot air drying. Food Bioprod. Process. 94, 263–274 (2015)Google Scholar
  17. 17.
    U. Saeed, S. Ahmad, J. Alsadi, D. Ross, G. Rizvi, Implementation of neural network for color properties of polycarbonates, in Proceedings of PPS-29 AIP Conference Proceedings, vol. 1593, pp. 56–59 (2014)Google Scholar
  18. 18.
    H.K. Al-Mohair, J. Mohamad-Saleh, S.A. Suandi, Color space selection for human skin detection using color-texture features and neural networks, in International Conference on Computer and Information Sciences (ICCOINS) (2014)Google Scholar
  19. 19.
    C. Cengiz, E. Köse, Modelling of color perception of different eye colors using artificial neural networks. Neural Comput. Appl. 23, 2323–2332 (2013)CrossRefGoogle Scholar
  20. 20.
    A. Amelio, C. Pizzuti, A genetic algorithm for color image segmentation, in LNCS EvoApplications, ed. by A.I. Esparcia-Alcázar et al., pp. 314–323 (2013)Google Scholar
  21. 21.
    R. Vijayanandh, G. Balakrishnan, Performance measure of human skin region detection based on hybrid particle swarm optimization. Int. J. Comput. Theory Eng. 4(5) (2012)Google Scholar
  22. 22.
    J.A. Nasiri, H.S. Yazdi, A PSO tuning approach for lip detection on color images, in Second UKSIM European Symposium on Computer Modeling and Simulation (2008)Google Scholar
  23. 23.
    C. Darwin, The Origin of Species (John Murray, Penguin Classics, 1985 edition, 1859)Google Scholar
  24. 24.
    M. Melanie, An Introduction to Genetic Algorithms (A Bradford Book The MIT Press Cambridge, Massachusetts, London, England Fifth printing, 1999)Google Scholar
  25. 25.
    B.L. Miller, D.E. Goldberg, Genetic algorithms, tournament selection, and the effects of noise. Complex Syst. 9, 193–212 (1995)MathSciNetGoogle Scholar
  26. 26.
    A. Lazinica: Particle swarm optimization. In-Tech Kirchengasse 43/3, A-1070 Vienna, Austria Hosti 80b, 51000 Rijeka, Croatia 2009Google Scholar
  27. 27.
    D.P. Rini, S.M. Shamsuddin, S.S. Yuhaniz: Particle swarm optimization: technique, system and challenges. Int. J. Comput. Appl. 14(1) (2011)Google Scholar
  28. 28.
    R. Poli, J. Kennedy, T. Blackwell, Particle Swarm Optimization an overview (Springer Science Business Media, 2007)Google Scholar

Copyright information

© Springer International Publishing AG 2018

Authors and Affiliations

  • Martín Montes
    • 1
    Email author
  • Alejandro Padilla
    • 2
  • Juana Canul
    • 3
  • Julio Ponce
    • 2
  • Alberto Ochoa
    • 4
  1. 1.Universidad Politécnica de AguascalientesAguascalientesMexico
  2. 2.Universidad Autónoma de AguascalientesAguascalientesMexico
  3. 3.Universidad Juárez Autónoma de TabascoVillahermosaMexico
  4. 4.Universidad Autónoma de Ciudad JuárezCiudad JuárezMexico

Personalised recommendations