Facial Expressions Recognition Using Machine Learning Classifiers Based HOG Features

Abstract

Facial Expression Recognition (FER) is a critical area of research in computer vision and human-computer interaction. This paper presents a comprehensive study on the use of Histogram of Oriented Gradients (HOG) and machine learning algorithms for FER. We explore the effectiveness of HOG features in capturing facial expressions and evaluate the performance of various machine learning classifiers, including Support Vector Machines (SVM), Random Forests, and Neural Networks, in recognizing facial expressions. Our experiments are conducted on widely used JAFFE dataset. The results demonstrate that HOG features, when combined with SVM, achieve high accuracy in recognizing facial expressions, outperforming other feature extraction methods. This paper also discusses the challenges and future directions in FER systems, emphasizing the need for robust feature extraction and classification techniques in managing high-dimensional feature spaces and its appropriateness for facial expression recognition tasks. Note that SVM was used and we obtained results of 86%, and we used RF and obtained results of 81%. Future studies may focus on combining deep learning methods with hybrid feature extraction methods to improve performance on more complex datasets.

Country : Iraq

1 Mohammed Khalaf Fadel2 Mohammed Chachan Younis

  1. College of Computer Sciences and Mathematics, University of Mosul, Mosul, Iraq
  2. College of Computer Sciences and Mathematics, University of Mosul, Mosul, Iraq

IRJIET, Volume 9, Issue 5, May 2025 pp. 457-465

doi.org/10.47001/IRJIET/2025.905052

References

  1. S. R. Kay, A. Fiszbein, and L. A. Opler, “The Positive and Negative Syndrome Scale (PANSS) for schizophrenia,” Schizophrenia Bulletin, vol. 13, no. 2, pp. 261–276, Jan. 1987, doi: 10.1093/schbul/13.2.261.
  2. Z. Song, “Facial Expression Emotion Recognition model integrating philosophy and machine learning theory,” Frontiers in Psychology, vol. 12, Sep. 2021, doi: 10.3389/fpsyg.2021.759485..
  3. R. A. Elsheikh et al., "Improved facial emotion recognition model based on a novel deep convolutional structure," Scientific Reports, vol. 14, no. 1, p. 29050, 2024.
  4. R. A. Elsheikh, M. A. Mohamed, A. M. Abou-Taleb, and M. M. Ata, “Improved facial emotion recognition model based on a novel deep convolutional structure,” Scientific Reports, vol. 14, no. 1, Nov. 2024, doi: 10.1038/s41598-024-79167-8.
  5. L. Alharbawee and N. Pugeault, "A benchmark of dynamic versus static methods for facial action unit detection," The Journal of Engineering, vol. 2021, no. 5, pp. 252–266, 2021, doi: 10.1049/tje2.12001.
  6. S. Van Hoy, "Facial Expression Perception and Psychological Changes During Space Analogs," Aerospace Medicine and Human Performance, vol. 95, no. 12, pp. 913–918, 2024, doi: 10.3357/amhp.6504.2024.
  7. N. Raut, “Facial emotion recognition using Machine learning,” 2018. doi: 10.31979/etd.w5fs-s8wd.
  8. F. M. A. Mazen, A. A. Nashat, and R. A. A. A. A. Seoud, “Real Time Face Expression Recognition along with Balanced FER2013 Dataset using CycleGAN,” International Journal of Advanced Computer Science and Applications, vol. 12, no. 6, Jan. 2021, doi: 10.14569/ijacsa.2021.0120617.
  9. S. Xie and H. Hu, “Facial expression recognition using hierarchical features with deep comprehensive multipatches aggregation convolutional neural networks,” IEEE Transactions on Multimedia, vol. 21, no. 1, pp. 211–220, Jun. 2018, doi: 10.1109/tmm.2018.2844085.
  10. P. N. Maraskolhe and A. S. Bhalchandra, “Analysis of Facial Expression Recognition using Histogram of Oriented Gradient (HOG),” 2019 3rd International Conference on Electronics, Communication and Aerospace Technology (ICECA), pp. 1007–1011, Jun. 2019, doi: 10.1109/iceca.2019.8821814.
  11. N. M. Kh. Hussien and N. F. M. Ramo, “Facial expression using Histogram of Oriented Gradients and Ensemble Classifier,” Tikrit Journal of Pure Science, vol. 27, no. 2, pp. 52–56, Nov. 2022, doi: 10.25130/tjps.v27i2.67.
  12. N. L. Shen and N. S. Jia, “Three-Dimensional Gabor Wavelets for Pixel-Based Hyperspectral Imagery classification,” IEEE Transactions on Geoscience and Remote Sensing, vol. 49, no. 12, pp. 5039–5046, Jun. 2011, doi: 10.1109/tgrs.2011.2157166..
  13. C. Goodall and I. T. Jolliffe, “Principal component analysis,” Technometrics, vol. 30, no. 3, p. 351, Aug. 1988, doi: 10.2307/1270093..
  14. M. R. Islam, A. R. M. Kamal, N. Sultana, R. Islam, M. A. Moni, and A. Ulhaq, “Detecting depression using K-Nearest Neighbors (KNN) classification technique,” 2018 International Conference on Computer, Communication, Chemical, Material and Electronic Engineering (IC4ME2), pp. 1–4, Feb. 2018, doi: 10.1109/ic4me2.2018.8465641..
  15. Z. Deng, X. Zhu, D. Cheng, M. Zong, and S. Zhang, “Efficient kNN classification algorithm for big data,” Neurocomputing, vol. 195, pp. 143–148, Feb. 2016, doi: 10.1016/j.neucom.2015.08.112..
  16. H. Chen, S. Hu, R. Hua, and X. Zhao, “Improved naive Bayes classification algorithm for traffic risk management,” EURASIP Journal on Advances in Signal Processing, vol. 2021, no. 1, Jun. 2021, doi: 10.1186/s13634-021-00742-6..
  17. B. S. Gandhi, D. A. Megawaty, and D. Alita, “Aplikasi Monitoring dan PenentuanPeringkatKelasMenggunakan Naive Bayes Classifier,” JurnalInformatika Dan RekayasaPerangkat Lunak, vol. 2, no. 1, pp. 54–63, Apr. 2021, doi: 10.33365/jatika.v2i1.722.
  18. A.Kurani, P. Doshi, A. Vakharia, and M. Shah, “A comprehensive comparative study of Artificial Neural Network (ANN) and Support Vector Machines (SVM) on stock forecasting,” Annals of Data Science, vol. 10, no. 1, pp. 183–208, Jun. 2021, doi: 10.1007/s40745-021-00344-x.
  19. X. Zhao, J. Zhu, B. Luo, and Y. Gao, “Survey on Facial Expression Recognition: history, applications, and challenges,” IEEE Multimedia, vol. 28, no. 4, pp. 38–44, Aug. 2021, doi: 10.1109/mmul.2021.3107862..
  20. K. Patel et al., “Facial Sentiment Analysis Using AI Techniques: State-of-the-Art, Taxonomies, and Challenges,” IEEE Access, vol. 8, pp. 90495–90519, Jan. 2020, doi: 10.1109/access.2020.2993803..
  21. L. Alharbawee and N. Pugeault, “Generative adversarial networks for facial expression recognition in the wild,” International Journal of Computing and Digital Systems, vol. 15, no. 1, pp. 1259–1282, Jun. 2024, doi: 10.12785/ijcds/160193..
  22. M. R. Koujan, L. Alharbawee, G. Giannakakis, N. Pugeault, and A. Roussos, “Real-time Facial Expression Recognition ‘In The Wild’ by Disentangling 3D Expression from Identity,” 2021 16th IEEE International Conference on Automatic Face and Gesture Recognition (FG 2021), pp. 24–31, Nov. 2020, doi: 10.1109/fg47880.2020.00084..
  23. S. Subudhiray, H. K. Palo, and N. Das, “K-nearest neighbor based facial emotion recognition using effective features,” IAES International Journal of Artificial Intelligence,vol. 12, no. 1, p. 57, Oct. 2022, doi: 10.11591/ijai.v12.i1.pp57-65..
  24. V. A. Saeed, “A framework for recognition of facial expression using HOG features,” International Journal of Mathematics Statistics and Computer Science, vol. 2, pp. 1–8, May 2023, doi: 10.59543/ijmscs.v2i.7815.
  25. P. D. Marrero-Fernandez, J. M. Buades-Rubio, A. Jaume-I-Capó, and T. I. Ren, “An approach for selecting the most explanatory features for facial expression recognition,” Applied Sciences, vol. 12, no. 11, p. 5637, Jun. 2022, doi: 10.3390/app12115637..
  26. Z. F. Hasan, “An improved facial expression recognition method using combined hog and gabor features,” Science Journal of University of Zakho, vol. 10, no. 2, pp. 54–59, Jun. 2022, doi: 10.25271/sjuoz.2022.10.2.897..
  27. S. Anthwal and D. Ganotra, “Dynamic features based on Flow-Correlation and HOG for recognition of discrete facial expressions,” Revue D Intelligence Artificielle, vol. 34, no. 5, pp. 585–594, Nov. 2020, doi: 10.18280/ria.340508..
  28. Y. Liu, Y. Li, X. Ma, and R. Song, “Facial Expression Recognition with Fusion Features Extracted from Salient Facial Areas,” Sensors, vol. 17, no. 4, p. 712, Mar. 2017, doi: 10.3390/s17040712..
  29. J. Chen, T. Takiguchi, and Y. Ariki, "Facial expression recognition with multithreaded cascade of rotation-invariant HOG," in 2015 International Conference on Affective Computing and Intelligent Interaction (ACII), IEEE, 2015, doi: 10.1109/ACII.2015.7344665.
  30. X. Pan, “Fusing HOG and convolutional neural network spatial–temporal features for video‐based facial expression recognition,” IET Image Processing, vol. 14, no. 1, pp. 176–182, Oct. 2019, doi: 10.1049/iet-ipr.2019.0293..
  31. N. K. H. N, A. S. Kumar, G. P. M. S, and M. A. Shah, “Automatic facial expression recognition combining texture and shape features from prominent facial regions,” IET Image Processing, vol. 17, no. 4, pp. 1111–1125, Nov. 2022, doi: 10.1049/ipr2.12700..
  32. H. S. Dadi and G. K. M. Pillutla, “Improved face recognition rate using HOG features and SVM classifier,” IOSR Journal of Electronics and Communication Engineering, vol. 11, no. 04, pp. 34–44, Apr. 2016, doi: 10.9790/2834-1104013444.
  33. V. Ramalingam, A. Pandian, and L. Jayakumar, "Facial emotion recognition system–a machine learning approach," in Journal of Physics: Conference Series, IOP Publishing, 2018, doi: 10.1088/1742-6596/1000/1/012140.
  34. A.Ali et al., “Machine Learning Based Statistical Analysis of Emotion Recognition using Facial Expression,” RADS Journal of Biological Research & Applied Sciences, vol. 11, no. 1, pp. 39–46, Sep. 2020, doi: 10.37962/jbas.v11i1.262.
  35. Y. Li, R. Lu, R. Huang, and W. Zhang, “Research on face recognition algorithm based on HOG feature,” Journal of Physics Conference Series, vol. 1757, no. 1, p. 012099, Jan. 2021, doi: 10.1088/1742-6596/1757/1/012099..
  36. Y. Zhong, L. Sun, C. Ge, and H. Fan, “HOG-ESRs face Emotion Recognition Algorithm based on HOG feature and ESRS Method,” Symmetry, vol. 13, no. 2, p. 228, Jan. 2021, doi: 10.3390/sym13020228.
  37. P. Viola and M. J. Jones, “Robust Real-Time Face Detection,” International Journal of Computer Vision, vol. 57, no. 2, pp. 137–154, Jan. 2004, doi: 10.1023/b:visi.0000013087.49260.fb.
  38. M. C. Younis and E. Keedwell, “Semantic segmentation on small datasets of satellite images using convolutional neural networks,” Journal of Applied Remote Sensing, vol. 13, no. 04, p. 1, Nov. 2019, doi: 10.1117/1.jrs.13.046510.