A Modified CNN Network for Automatic Pain Identification Using Facial Expressions
- 1 Rochester Institute of Technology, Dubai, UAE
- 2 Rochester Institute of Technology, Dubai, UAE
- 3 Rochester Institute of Technology, Dubai, UAE
Abstract
Pain is a strong symptom of diseases. Being an involuntary unpleasant feeling, it can be considered a reliable indicator of health issues. Pain has always been expressed verbally, but in some cases, traditional patient self-reporting is not efficient. On one side, there are patients who have neurological disorders and cannot express themselves accurately, as well as patients who suddenly lose consciousness due to an abrupt faintness. On another side, medical staff working in crowded hospitals need to focus on emergencies and would opt for the automation of the task of looking after hospitalized patients during their entire stay, in order to notice any pain-related emergency. These issues can be tackled with deep learning. Knowing that pain is generally followed by spontaneous facial behaviors, facial expressions can be used as a substitute to verbal reporting, to express pain. In this paper, a convolutional neural network (CNN) model was built and trained to detect pain through patients’ facial expressions, using the UNBC-McMaster Shoulder Pain dataset. First, faces were detected from images using the Haarcascade Frontal Face Detector provided by OpenCV, and preprocessed through gray scaling, histogram equalization, face detection, image cropping, mean filtering, and normalization. Next, preprocessed images were fed into a CNN model which was built based on a modified version of the VGG16 architecture. The model was finally evaluated and fine-tuned in a continuous way based on its accuracy, which reached 92.5%.
- IASP (2021) International Association for the Study of Pain. https://www.iasp-pain.org/about/
- Roy, S.D., Bhowmik, M.K., Saha, P. and Ghosh, A.K. (2016) An Approach for Automatic Pain Detection through Facial Expression. Procedia Computer Science, 84, 99-106.
- University of Pittsburgh (2011) UNBC-McMaster Shoulder Pain Expression Archive Database. https://www.pitt.edu/~emotion/um-spread.htm
- Xu, X.J., Huang, S.R., Children’s Hospital and De Sa, V.R. (2019) Pain Evaluation in Video Using Extended Multitask Learning from Multidimensional Measurements. Proceedings of Machine Learning Research, 116, 141-154.
- Yin, L., Chen, X., Sun, Y., Worm, T. and Reale, M. (2008) A High-Resolution 3D Dynamic Facial Expression Database. 2008 8th IEEE International Conference on Automatic Face and Gesture Recognition, Amsterdam, 17-19 September 2008.
- Bargshady, G., Soar, J., Zhou, X., Deo, R.C., Whittaker, F. and Wang, H. (2019) A Joint Deep Neural Network Model for Pain Recognition from Face. 2019 IEEE 4th International Conference on Computer and Communication Systems, Singapore, 23-25 February 2019, 52-56.
- Dai, L., Broekens, J. and Truong, K.P. (2019) Real-Time Pain Detection in Facial Expressions for Health Robotics. 2019 8th International Conference on Affective Computing and Intelligent Interaction Workshops and Demos, Cambridge, 3-6 September 2019.
- Tavakolian, M. and Hadid, A. (2018) Deep Binary Representation of Facial Expressions: A Novel Framework for Automatic Pain Intensity Recognition. International Conference on Image Processing, Athens, 7-10 October 2018.
- Hammal, Z. and Cohn, J.F. (2012) Automatic Detection of Pain Intensity. Proceedings of the ACM International Conference on Multimodal Interaction (ICMI’12), 2012, 47-52.
- Rodriguez, P., et al. (2017) Deep Pain: Exploiting Long Short-Term Memory Networks for Facial Expression Classification. IEEE Transactions on Cybernetics, 1-11. https://doi.org/10.1109/TCYB.2017.2662199
- Chen, Z., Ansari, R. and Wilkie, D. (2019) Learning Pain from Action Unit Combinations: A Weakly Supervised Approach via Multiple Instance Learning. IEEE Transactions on Affective Computing, 1 p. https://doi.org/10.1109/TAFFC.2019.2949314
- Kharghanian, R., Peiravi, A. and Moradi, F. (2016) Pain Detection from Facial Images Using Unsupervised Feature Learning Approach. Proceedings of the Annual International Conference of the IEEE Engineering in Medicine and Biology Society, Orlando, 16-20 August 2016.