Quantifying pain: An AI-driven approach to detecting pain levels via facial expressions
Article Sidebar
Issue Vol. 22 No. 1 (2026)
-
Development of dead-reckoning sensor system for indoor environments
Toshihiro YUKAWA1-19
-
A real-time adaptive traffic light control algorithm at urban intersections for smart cities
Chahrazad HAMBLI, Mourad AMAD20-34
-
A text-guided vision model for enhanced recognition of small instances
Hyun-Ki JUNG35-46
-
Reinforcement learning for solving optimization problems: Opportunities and limitations on the example of the assignment problem
Wojciech MISZTAL, Sybilla NAZAREWICZ47-62
-
SCADA-Driven big data framework for fault prediction in spiral steel pipe manufacturing using fuzzy and neural network models
Bakhshali BAKHTIYAROV, Aynur JABIYEVA, Mahabbat KHUDAVERDIYEVA63-81
-
Enhanced ELECTRE III method with interval-valued hesitant fuzzy linguistic sets for multi-criteria group decision-making in smart supply networks
Fadoua TAMTAM, Amina TOURABI82-98
-
Models for calculating the integral quality indicator of the offset printing process for the IIOT-system
Vyacheslav REPETA, Pavlo RYVAK, Oleksandra KRYKHOVETS99-109
-
A scalable and cost-effective forest fire detection approach using deep transfer learning on a Raspberry Pi cluster
Achraf Nasser Eddine BELFERD, Hamdan BENSENANE, Abdellatif RAHMOUN110-122
-
Addressing non-stationarity with stochastic trend in the context of limited time series data: An experimental survey in healthcare analytics
Apollinaire BATOURE BAMANA, Yannick SOKDOU BILA LAMOU, David Jaures FOTSA-MBOGNE, Mahdi SHAFIEE KAMALABAD123-139
-
Efficient multi-robot exploration of unknown environments using inverted ant colony optimization and reinforcement learning
Nabila RAHMOUNE, Adel RAHMOUNE140-153
-
A comprehensive review of metaheuristic algorithms for mobile robot path planning
Sheren SADIQ, Araz ABRAHIM, Haval SADEEQ154-170
-
Smart Autolube: Optimized machine learning-based pressure prediction for AIoT lubrication systems
Ali KHUMAIDI, Risanto DARMAWAN; Lukman ADITYA; Wardhana Halking HAMKA, Hudzaifah Al JIHAD171-183
-
Application of artificial intelligence methods to determine the optimal process parameters in resistance projection welding of steel nuts
Szymon KARSKI, Michał AWTONIUK, Mirosław SZALA184-198
-
Development of non-destructive vibration method for classification of bone fracture severity
Jignesh JANI, Nikunj RACHCHH199-213
-
Quantifying pain: An AI-driven approach to detecting pain levels via facial expressions
Abeer A. Mohamad ALSHIHA
Archives
-
Vol. 22 No. 3
2026-09-30 15
-
Vol. 22 No. 2
2026-06-30 15
-
Vol. 22 No. 1
2026-03-31 15
-
Vol. 21 No. 4
2025-12-31 12
-
Vol. 21 No. 3
2025-09-30 12
-
Vol. 21 No. 2
2025-06-30 12
-
Vol. 21 No. 1
2025-03-31 12
-
Vol. 20 No. 4
2024-12-31 12
-
Vol. 20 No. 3
2024-09-30 12
-
Vol. 20 No. 2
2024-06-30 12
-
Vol. 20 No. 1
2024-03-30 12
-
Vol. 19 No. 4
2023-12-31 10
-
Vol. 19 No. 3
2023-09-30 10
-
Vol. 19 No. 2
2023-06-30 10
-
Vol. 19 No. 1
2023-03-31 10
-
Vol. 18 No. 4
2022-12-30 8
-
Vol. 18 No. 3
2022-09-30 8
-
Vol. 18 No. 2
2022-06-30 8
-
Vol. 18 No. 1
2022-03-31 8
Main Article Content
Authors
Abstract
The automatic recognition of pain intensity from facial expression has great potential to enhance the objective and non-invasive assessment of pain. In this study, we explore supervised learning methods based on deep learning for the intensity classification of facial pain in 16 different levels. Three CNN architectures (EfficientNetB0, MobileNetV2, Small CNN) were tested to compare pretrained and task specific approaches to fine-grained pain classification. After suitable face image preprocessing and data augmentation, the models were trained and tested on facial images. The following metrics were used to evaluate the performance: accuracy, balanced accuracy, precision, recall, F1-score, specificity, Cohen’s kappa, Matthews’s correlation coefficient and log loss. EfficientNetB0 had the highest accuracy (98.00%), balanced accuracy (97.61%), precision (97.88%), recall (97.61%) and F1 score (97.74%). The MobileNetV2 reached the accuracy of 95.00% and F1 score of 94.61% while the Small CNN reached the accuracy of 88.00% and F1 score of 87.37%. The efficientNetB0 also had the smallest log loss with 0.0683. The results show that deep learning is a viable approach to fine-grained pain-intensity classification on faces, and that state-of-the-art architectures can be used to discriminate between different pain-levels. External validation and access to more subject diversity and temporal facial information should be investigated further to evaluate robustness in practical and clinical settings.
Keywords:
Sustainable Development Goal (SDG)
- Good health and well-being
References
Acevedo, D., Negri, P., Buemi, M. E., Fernandez, F. G., & Mejail, M. (2017). A simple geometric-based descriptor for facial expression recognition. Proceedings of the 12th IEEE International Conference on Automatic Face and Gesture Recognition (FG 2017), 802–808. https://doi.org/10.1109/FG.2017.101 DOI: https://doi.org/10.1109/FG.2017.101
Agha, M. A. M., & Aziz, M. H. (2023). Binary Detection Using for Features Extraction. Tianjin Daxue Xuebao (Ziran Kexue Yu Gongcheng Jishu Ban)/Journal of Tianjin University Science and Technology, (January), 197–208. https://doi.org/10.17605/OSF.IO/BN2DQ
Al-Neama, M. W., Abdulrahman, E. H., & Ali, S. M. (2025). A parallel algorithm for facial expression recognition for student engagement monitoring in classrooms. Mathematical Modelling of Engineering Problems, 12(3). DOI: https://doi.org/10.18280/mmep.120305
Al-Neama, M. W., Alshiha, A. A., & Saeed, M. G. (2023). A parallel algorithm of multiple face detection on multi-core system. Indonesian Journal of Electrical Engineering and Computer Science, 29(2), 1166–1173. https://doi.org/10.11591/ijeecs.v29.i2.pp1166-1173 DOI: https://doi.org/10.11591/ijeecs.v29.i2.pp1166-1173
Alshiha, A., Al-Neama, M., & Qubaa, A. (2023). Parallel hybrid algorithm for face recognition using multi-linear methods. International Journal of Electrical and Electronics Research, 11(4), 1013–1021. DOI: https://doi.org/10.37391/ijeer.110419
Alshiha, A. A., Al-Neama, M. W., & Qubaa, A. R. (2023). Biometric face recognition method using graphics processing unit system. Indonesian Journal of Electrical Engineering and Computer Science, 30(1), 183–191. DOI: https://doi.org/10.11591/ijeecs.v30.i1.pp183-191
Andersen, P. H., et al. (2021). Towards machine recognition of facial expressions of pain in horses. Animals, 11(6), 1643. https://doi.org/10.3390/ani11061643 DOI: https://doi.org/10.3390/ani11061643
Bargshady, G. (2020). Enhanced deep learning predictive modelling approaches for pain intensity recognition from facial expression video images (Master’s thesis). Southern Queensland University.
Baumeister, R., & Vohs, K. (2012). Facial expression of emotion. In Encyclopedia of Social Psychology. https://doi.org/10.4135/9781412956253.n209 DOI: https://doi.org/10.4135/9781412956253.n209
Ekman, P., & Rosenberg, E. L. (2012). What the face reveals: Basic and applied studies of spontaneous expression using the Facial Action Coding System (FACS). Oxford University Press. https://doi.org/10.1093/acprof:oso/9780195179644.001.0001 DOI: https://doi.org/10.1093/acprof:oso/9780195179644.001.0001
El Morabit, S., Rivenq, A., Zighem, M. E. N., Hadid, A., Ouahabi, A., & Taleb-Ahmed, A. (2021). Automatic pain estimation from facial expressions: A comparative analysis using off-the-shelf CNN architectures. Electronics, 10(16), 1926. https://doi.org/10.3390/electronics10161926 DOI: https://doi.org/10.3390/electronics10161926
Janssen, B. (2021). Pain by association: Role of individual difference variables. 2020–2021.
Kaltwang, S. (2015). Regression-based estimation of pain and facial expression intensity. Imperial College London, Department of Computing, 43(5), 127–137.
Leo, M., Carcagnì, P., Mazzeo, P. L., Spagnolo, P., Cazzato, D., & Distante, C. (2020). Analysis of facial information for healthcare applications: A survey on computer vision-based approaches. Information, 11(3), 128. https://doi.org/10.3390/info11030128 DOI: https://doi.org/10.3390/info11030128
Nour, N., Elhebir, M., & Viriri, S. (2020). Face expression recognition using convolution neural network (CNN) models. International Journal of Grid Computing and Applications, 11(4), 1–11. https://doi.org/10.5121/ijgca.2020.11401 DOI: https://doi.org/10.5121/ijgca.2020.11401
Raja, S. N., et al. (2020). The revised International Association for the Study of Pain definition of pain: Concepts, challenges, and compromises. Pain, 161(9), 1976–1982. https://doi.org/10.1097/j.pain.0000000000001939 DOI: https://doi.org/10.1097/j.pain.0000000000001939
Saddam, E., Mutashar, S., & Ali, W. (2021). A study of patient’s pain assessment based on facial expression: Issues and challenges. Engineering Technology Journal, 39(10), 1514–1527. https://doi.org/10.30684/etj.v39i10.2079 DOI: https://doi.org/10.30684/etj.v39i10.2079
Schroff, F., & Philbin, J. (2015). FaceNet: A unified embedding for face recognition and clustering. arXiv. DOI: https://doi.org/10.1109/CVPR.2015.7298682
Shier, W. A. (2017). Automated pain recognition using analysis of facial expressions. https://doi.org/10.11575/PRISM/25076
Virrey, R. A., De Silva Liyanage, C., Iskandar bin Pg Hj Petra, M., & Emeroylariffion Abas, P. (2019). Visual data of facial expressions for automatic pain detection. Journal of Visual Communication and Image Representation, 61, 209–217. https://doi.org/10.1016/j.jvcir.2019.03.023 DOI: https://doi.org/10.1016/j.jvcir.2019.03.023
Article Details
Abstract views: 308
Downloads: 12
License

This work is licensed under a Creative Commons Attribution 4.0 International License.
All articles published in Applied Computer Science are open-access and distributed under the terms of the Creative Commons Attribution 4.0 International License.
