Skip to main content

Emotion Classification Through Facial Expressions Using SVM and Convolutional Neural Classifier

  • Conference paper
  • First Online:
Intelligent Human Computer Interaction (IHCI 2022)

Abstract

Emotions being an influential personal state of feelings, have phenomenal importance, and facial expressions are one’s instinctive reflections and photoprints of emotions. These facial expressions that count to be 55% of the total human communication cannot remain unnoticed, especially in today’s expanding world of Human-Computer interaction, where the need of the hour is to train computers to recognize human emotions from facial expressions of images. Four models are developed in this work for emotion classification. This work utilizes HOG (descriptor) and SVM for the first model while employing CNN models with varying input strategies with and without down-sampling in the remaining three models to predict the given FER dataset images into either of the seven universal facial expressions. The first model extracts the histogram of oriented gradient (HOG) from the images and applies classification with a support vector machine (SVM). The second model inputs raw pixel image data for training. The third model uses a novel hybrid feature strategy that maneuvers a combination of HOG features and pixel data of images. The last model uses the same architecture as the previous two CNN models but with a balanced dataset (all classes having the same number of images). Batch normalization, dropout, and L2 regularization reduced the overfitting of models, and the GPU improved the training speed. The hybrid technique (Model-3) performed better than model-1, model-2, and model-4 in terms of accuracy and F1 score. The performance evaluation speaks about the falter arising with downsampling in model-4.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 84.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Similar content being viewed by others

References

  1. Albawi, S., Mohammed, T.A., Al-Zawi, S.: Understanding of a convolutional neural network. In 2017 International Conference on Engineering and Technology (ICET), pp. 1–6 (2017)

    Google Scholar 

  2. Alizadeh, S., Fazel, A.: Convolutional neural networks for facial expression recognition (2017)

    Google Scholar 

  3. Cohen, I., Sebe, N., Sun, Y., Lew, M.S., Huang, T.S.: Evaluation of expression recognition techniques. In: Bakker, E.M., Lew, M.S., Huang, T.S., Sebe, N., Zhou, X.S. (eds.) CIVR 2003. LNCS, vol. 2728, pp. 184–195. Springer, Heidelberg (2003). https://doi.org/10.1007/3-540-45113-7_19

    Chapter  Google Scholar 

  4. Dalal, N., Triggs, B.: Histograms of oriented gradients for human detection, vol. 1, pp. 886–893 (2005)

    Google Scholar 

  5. Shichuan, D., Tao, Y., Martinez, A.M.: Compound facial expressions of emotion. Proc. Natl. Acad. Sci. 111(15), E1454–E1462 (2014)

    Google Scholar 

  6. Durmuÿsoglu, A., Kahraman, Y.: Facial expression recognition using geometric features. In 2016 International Conference on Systems, Signals and Image Processing (IWSSIP), pp. 1–5 (2016)

    Google Scholar 

  7. Korkmaz, S. A., Akÿciÿcek, A., Bt’nol, H., Korkmaz, M.F.: Recognition of the stomach cancer images with probabilistic hog feature vector histograms by using hog features. In: 2017 IEEE 15th International Symposium on Intelligent Systems and Informatics (SISY), pp. 000339–000342 (2017)

    Google Scholar 

  8. Littlewort, G., Frank, M., Lainscsek, C., Fasel, I., Movellan, J.: Automatic recognition of facial actions in spontaneous expressions. J. Multimedia 1, 09 (2006)

    Google Scholar 

  9. Simonyan, K., Zisserman, A.: Very deep convolutional networks for large-scale image recognition. arXiv preprint arXiv:1409.1556 (2014)

  10. Tian, Y.I., Kanade, T., Cohn, J.F.: Recognizing action units for facial expression analysis. IEEE Trans. Pattern Anal. Mach. Intell. 23(2), 97–115 (2001)

    Article  Google Scholar 

  11. Maruyama, T., et al.: Comparison of medical image classification accuracy among three machine learning methods. J. X-ray Sci. Technol. 26(6), 885–893 (2018)

    Google Scholar 

  12. Chaganti, S. Y., et al.: Image classification using SVM and CNN. In: 2020 International Conference on Computer Science, Engineering and Applications (ICCSEA). IEEE (2020)

    Google Scholar 

  13. Rosebrock, A.: Deep learning for computer vision with python: Starter bundle. PyImageSearch (2017)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Varsha Singh .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

Cite this paper

Singh, V., Singh, R.K., Tiwary, U.S. (2023). Emotion Classification Through Facial Expressions Using SVM and Convolutional Neural Classifier. In: Zaynidinov, H., Singh, M., Tiwary, U.S., Singh, D. (eds) Intelligent Human Computer Interaction. IHCI 2022. Lecture Notes in Computer Science, vol 13741. Springer, Cham. https://doi.org/10.1007/978-3-031-27199-1_13

Download citation

  • DOI: https://doi.org/10.1007/978-3-031-27199-1_13

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-031-27198-4

  • Online ISBN: 978-3-031-27199-1

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics