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 ALSHIHA214-227
Archives
-
Vol. 22 No. 1
2026-03-31 15
-
Vol. 21 No. 4
2025-12-31 12
-
Vol. 21 No. 3
2025-10-05 12
-
Vol. 21 No. 2
2025-06-27 12
-
Vol. 21 No. 1
2025-03-31 12
-
Vol. 20 No. 4
2025-01-31 12
-
Vol. 20 No. 3
2024-09-30 12
-
Vol. 20 No. 2
2024-08-14 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
DOI
Authors
Abstract
Accurate pain assessment remains a cornerstone of effective clinical care as it significantly influences diagnosis, treatment planning, and evaluation of therapeutic outcomes. Traditional pain assessment tools such as the Visual Analog Scale (VAS), Numerical Rating Scale (NRS), and Verbal Rating Scale (VRS) rely heavily on the patient's ability to self-report their level of discomfort. However, these conventional approaches are inadequate for patient populations with impaired communication abilities, including individuals with neurological disorders, dementia, or those in postoperative recovery. To overcome these challenges, this study presents a novel, automated pain assessment framework that uses artificial intelligence (AI) and facial expression analysis to objectively quantify pain levels. The proposed system incorporates transfer learning and deep neural network models to improve the accuracy of pain detection using facial cues. Using the UNBC-McMaster Shoulder Pain Expression Archive Database, a widely recognized benchmark in pain research, the model was trained to identify and classify facial expressions associated with different levels of pain. A key innovation of this research is the development of an enhanced multilevel pain scale, which extends the traditional ten-point scale to sixteen different levels, allowing for more precise and granular assessment. Despite the inherent problem of class imbalance within the dataset, the model achieved a commendable classification accuracy of 91%. The results highlight the viability of AI-based tools as reliable, non-invasive alternatives to traditional self-report methods, particularly for non-communicative patients. This advancement promises to improve patient care by supporting clinicians with objective, data-driven pain assessment techniques.
Keywords:
References
Acevedo, D., Negri, P., Buemi, M. E., Fernandez, F. G., & Mejail, M. (2017). A simple geometric-based descriptor for facial expression recognition. 2017 12th IEEE International Conference on Automatic Face & Gesture Recognition (FG 2017) (pp. 802–808). IEEE. https://doi.org/10.1109/FG.2017.101
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).
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. https://doi.org/10.11591/ijeecs.v30.i1.pp183-191
Andal Virrey, R., 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
Andersen, P. H., Broomé, S., Lahrmann, M., Rashid, M., Nyström, M., Lundblad, J., Ask, K., & Gleerup, K. B. (2021). Towards machine recognition of facial expressions of pain in horses. Animals, 11(6), 1643. 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, University of Southern Queensland].
Baumeister, R. F., & Vohs, K. D. (2012). Facial expression of emotion. In V. S. Ramachandran (Ed.), Encyclopedia of social psychology. SAGE Publications. https://doi.org/10.4135/9781412956253.n209
Cohn, J. F., & Schmidt, K. L. (2013). UNBC–McMaster shoulder pain expression archive database [Data set]. Department of Computer Science, University of Western Ontario. Retrieved from https://www.csd.uwo.ca/faculty/elaine/UNBCMcMaster/
Ekman, P., & Rosenberg, E. L. (Eds.). (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
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), Article 1926. https://doi.org/10.3390/electronics10161926
IEEE DataPort. (n.d.). UNBC-McMaster Pain Expression Database [Data set]. Retrieved March 23, 2026, from https://ieee-dataport.org/open-access/unbc-mcmaster-pain-expression-database
James, I., & Osubor, V. (2025). Machine learning evidence towards eradication of malaria burden: A scoping review. Applied Computer Science, 21(1), 44–69.
Janssen, B. (2021). Pain by association: Role of individual difference variables [Unpublished manuscript].
Kaltwang, S. (2015). Regression-based estimation of pain and facial expression intensity [Doctoral dissertation, Imperial College London].
Karpiński, R., Krakowski, P., Jonak, J., Machrowska, A., & Maciejewski, M. (2023). Comparison of selected classification methods based on machine learning as a diagnostic tool for knee joint cartilage damage based on generated vibroacoustic processes. Applied Computer Science, 19(4), 136–150. https://doi.org/10.35784/acs-2023-40
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), Article 128. https://doi.org/10.3390/info11030128
Machrowska, A., Karpiński, R., Maciejewski, M., Jonak, J., & Krakowski, P. (2024). Application of EEMD-DFA algorithms and ANN classification for detection of knee osteoarthritis using vibroarthrography. Applied Computer Science, 20(2), 90–108. https://doi.org/10.35784/acs-2024-18
Na, H. C., & Kim, Y. S. (2024). Study on deep learning models for VR sickness levels classification. Applied Computer Science, 20(4), 1–13. https://doi.org/10.35784/acs-2024-37
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
Papers With Code. (n.d.). UNBC-McMaster Shoulder Pain Expression Database [Data set]. Retrieved March 23, 2026, from https://paperswithcode.com/dataset/unbc-mcmaster
Raja, S. N., Carr, D. B., Cohen, M., Finnerup, N. B., Flor, H., Gibson, S., Keefe, F. J., Mogil, J. S., Ringkamp, M., Sluka, K. A., Song, X. J., Stevens, B., Sullivan, M. D., Tutelman, P. R., Ushida, T., & Vader, K. (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
Saddam, E., Mutashar, S., & Ali, W. (2021). A study of patient’s pain assessment based on facial expression: Issues and challenges. Engineering and Technology Journal, 39(10), 1514–1527. https://doi.org/10.30684/etj.v39i10.2079
Schroff, F., Kalenichenko, D., & Philbin, J. (2015). FaceNet: A unified embedding for face recognition and clustering. ArXiv, abs/1503.03832. https://doi.org/10.48550/arXiv.1503.03832
Shier, W. A. (2017). Automated pain recognition using analysis of facial expressions [Master's thesis, University of Calgary]. PRISM. https://doi.org/10.11575/PRISM/25076
Article Details
Abstract views: 0
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.
