Open Access iconOpen Access


An Automated and Real-time Approach of Depression Detection from Facial Micro-expressions

Ghulam Gilanie1, Mahmood ul Hassan2, Mutyyba Asghar1, Ali Mustafa Qamar3,*, Hafeez Ullah4, Rehan Ullah Khan5, Nida Aslam6, Irfan Ullah Khan6

1 Department of Artificial Intelligence, Faculty of Computing, The Islamia University of Bahawalpur, Pakistan
2 Department of Computer Skills, Deanship of Preparatory Year, Najran University, Najran, Saudi Arabia
3 Department of Computer Science, College of Computer, Qassim University, Buraydah, Saudi Arabia
4 Biophotonics Imaging Techniques Laboratory, Institute of Physics, The Islamia University of Bahawalpur, Pakistan
5 Department of Information Technology, College of Computer, Qassim University, Buraydah, Saudi Arabia
6 Department of Computer Science, College of Computer Science and Information Technology, Imam Abdulrahman Bin Faisal University, Dammam, Saudi Arabia

* Corresponding Author: Ali Mustafa Qamar. Email: email

Computers, Materials & Continua 2022, 73(2), 2513-2528.


Depression is a mental psychological disorder that may cause a physical disorder or lead to death. It is highly impactful on the social-economical life of a person; therefore, its effective and timely detection is needful. Despite speech and gait, facial expressions have valuable clues to depression. This study proposes a depression detection system based on facial expression analysis. Facial features have been used for depression detection using Support Vector Machine (SVM) and Convolutional Neural Network (CNN). We extracted micro-expressions using Facial Action Coding System (FACS) as Action Units (AUs) correlated with the sad, disgust, and contempt features for depression detection. A CNN-based model is also proposed in this study to auto classify depressed subjects from images or videos in real-time. Experiments have been performed on the dataset obtained from Bahawal Victoria Hospital, Bahawalpur, Pakistan, as per the patient health questionnaire depression scale (PHQ-8); for inferring the mental condition of a patient. The experiments revealed 99.9% validation accuracy on the proposed CNN model, while extracted features obtained 100% accuracy on SVM. Moreover, the results proved the superiority of the reported approach over state-of-the-art methods.


Cite This Article

G. Gilanie, M. Ul Hassan, M. Asghar, A. Mustafa Qamar, H. Ullah et al., "An automated and real-time approach of depression detection from facial micro-expressions," Computers, Materials & Continua, vol. 73, no.2, pp. 2513–2528, 2022.

cc This work is licensed under a Creative Commons Attribution 4.0 International License , which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
  • 2246


  • 724


  • 0


Share Link