FormalPara Key Summary Points

Why carry out this study?

To highlight the current status of the pain assessments.

To identify the practical tips for improving the pain assessment.

To identify the different applications of artificial intelligence (AI) technology for augmenting pain assessment.

To summarize the challenges of using the AI/machine learning (ML) technology in automated pain assessments.

To identify the future potential for fully automated pain management by integrating AI technology.

What was learned from the study?

Pain is a complex and multidimensional symptom that requires multimodal approaches for accurate assessments.

Various AI techniques such as ML, natural language processing (NLP), computer vision (CV), and wearable devices can be utilized to assess pain.

Evidence is promising regarding incorporating AI tools for objective, personalized, and accurate assessment of pain.

There are some limitations to consider in integrating AI in pain assessment, such as data quality and ethical considerations.

More collaborations between AI experts and healthcare professionals are required to enhance the integration of AI in pain management and improve the patient’s outcome.

Introduction

Pain is an important health issue. It is defined by the International Association for the Study of Pain as “an unpleasant sensory and/or emotional experience associated with, or resembling that associated with, actual or potential tissue damage” [1]. It is a complex and multifactorial symptom. Patients may differ greatly, even with the same diagnosis [2]. Pain is a subjective experience that can be challenging to quantify, especially in people who are not able to report their pain experience or whose expression of pain is hard to interpret [3]. Assessment of pain is an important step for early diagnosis, monitoring disease progression, selecting a treatment plan, and validating the treatment effects [4]. Traditional methods for pain assessment rely mainly on patient self-report scores, which can be influenced by various factors such as cultural, psychological, and social biases. Moreover, the self-report scores are unfeasible for patients who cannot communicate or verbalize their pain experience properly [5]. AI-based approaches have emerged to improve pain assessment by providing automated objective, personalized, and standardized measures [6]. Artificial intelligence (AI) is the term used to describe the use of computers and technology to simulate intelligent behavior and critical thinking comparable to a human being [7]. AI can use data to perform intelligent tasks that humans usually undertake to mimic human cognitive functions, whether self-reports, behavioral scales, physiological markers, or medical records, to develop algorithms to better understand and assess pain and potentially predict treatment outcomes [8]. AI has several applications in the management. Various AI techniques such as machine learning, natural language processing, computer vision, and wearable devices and sensors can be utilized for the assessment, monitoring, and treatment of pain and for predicting the outcomes. They can be used to estimate the intensity of pain, classify different types of pain, continuously monitor pain, and predict treatment responses. The use of AI methods for pain assessment has gained significant attention due to its accuracy and efficiency in pain evaluation [9, 10]. This review highlights the current status of the use of AI in pain assessment, including different techniques, advantages, limitations, and challenges, and provides data for future directions.

Methodology

A computer search was conducted including literature from PubMed, EMBASE, MEDLINE, Web of Science, Cochrane, and Google Scholar. Manual screening of references from relevant sites was also conducted, and additional references were added. The search strategy included articles that were published during the last 10 years (from January 2014 to January 2024). The search strategy included the following keywords: pain assessment, artificial intelligence, AI in pain assessments, machine learning, natural language processing, computer vision, virtual reality, and wearable devices and sensors. Articles that met the inclusion criteria, such as articles published in the English language, relevant to the condition, presented information on the use of AI applications in pain assessments, and involving adult patients, were included. The search strategy included observational, cross-sectional, cohort, case–control, longitudinal studies, systematic reviews, and meta-analyses. The exclusion criteria included non-English language articles, inability to get the full articles, case reports, editorials, conference abstracts or expert opinions, and studies that did not test an AI-based intervention. Search strategy results in (11,672) publications. A total number of (11,672) articles were excluded due to different reasons (e.g., duplicated articles, non-English language, irrelevant, case report or full text unavailable). Final screening results in (44) publications were identified. An additional three publications were added by manual search through international societies (e.g., references no [12, 99, 137]). The final reviewing strategy of the literature search results in a total of (47) articles were included in this review (Fig. 1) [11]. The selected articles were screened by two independent reviewers using the same method of evaluation. This article is based on previously conducted studies and does not contain any new studies with human participants or animals performed by any of the authors.

Fig. 1
figure 1

PRISMA flowchart of included studies [10]

Incorporation of Artificial Intelligence for Objective Pain assessment

Introducing Artificial Intelligence in Healthcare

Artificial intelligence is defined as “the simulation of human intelligence processes by machines, especially computer systems. These processes include learning (the acquisition of information and rules for using the information), reasoning (using rules to reach approximate or definite conclusions), and self-correction.” [12]. AI is a growing branch of computer engineering that implements novel concepts and solutions to resolve complex challenges [13]. The opportunities for AI applications in healthcare from the emergency department, outpatient clinics or primary care, to home care, are huge [14]. The spectrum of AI includes but is not limited to, machine learning, deep learning, data mining, and natural language processing [15]. The medical field may benefit from two main categories of AI applications: physical and virtual. The physical subfield of AI in medicine involves medical equipment and care bots (intelligent robots), which assist in delivering medical care, while the virtual subfield includes machine learning (ML), natural language processing (NLP), and deep learning (DL) [16,17,18]. In general, machine learning is a subset of AI, while deep learning is a subset of machine learning (Fig. 2) [19, 120].

Fig. 2
figure 2

Categories of artificial intelligence [12]

Artificial intelligence (AI) is a broad field that involves machine learning, deep learning, computer vision, natural language processing, and robotics [12]. Its main goal is to develop smart tools that can carry out cognitive functions such as problem-solving, sentiment analysis, and decision-making. Machine learning (ML) algorithms enable systems to learn and improve from experience without being explicitly programmed. It is a subset of AI and delivers predictions and decisions by identifying patterns in its training data. Deep learning (DL) is a subset of machine learning that uses artificial neural networks to model and understand complex patterns and relationships in data. With this model, an algorithm can determine whether a prediction is accurate through a neural network without human intervention. Deep learning models can build extensive knowledge over time, acting as a brain of sorts [12, 19, 20]. Computer vision (CV) is AI systems that can analyze and understand visual data, such as images and videos. Natural language processing (NLP) refers to AI systems that can understand and generate human language, enabling tasks like speech recognition and language translation. Robotics refers to AI systems that can control and interact with physical robots to perform tasks in the physical world [12].

The last few decades have shown a rapidly growing role of AI in healthcare. The implementation of AI in healthcare can automate patient assessment and eliminate human bias. AI will benefit and improve clinical diagnoses, deliver rapid results, offer continuous monitoring of the patients, facilitate decision-making and help select the treatment plan [21].

Augmented Intelligence as opposed to Artificial Intelligence is being applied to augment human cognition but does not replace it. Augmented intelligence is designed to enhance human capabilities by the effective use of information from the huge data sets to augment and support human cognition [22]. Augmented intelligence can be used in different aspects of medicine and guides the physician in early disease recognition, accurate diagnosis, and decision-making for complex diseases [23]. Both AI and augmented intelligence are likely to play an important role in the future. AI is capable of performing tasks that require human intelligence to achieve and replace humans. While augmented intelligence reflects the enhanced capabilities of human clinical decision-making by combining human intelligence and machine-derived outputs to improve health [24].

AI Techniques in Pain Assessment

Various AI interventions have been utilized in recognizing, assessing, understanding, and treating pain, each with its own effectiveness and applicability [15]. It is important to note that the choice of a model will depend on the specific task and dataset and that different models may perform better for different tasks [10, 25]. Several studies have found promising findings of AI-based pain detection through facial expressions [25]. ML and AI can use data, whether self-report measures, physiological markers, or medical records, to create algorithms to better understand pain, assess changes to pain, and potentially predict treatment outcomes [27, 28]. These technologies can help improve the reliability of pain assessment tools. For example, ML algorithms can be used to assess pain by establishing a baseline and then looking at the patient’s changing facial expressions and analyzing and assessing their vocal sounds [5, 10]. Following are some examples of different AI techniques used for pain assessment and how they are beneficial in improving patient outcomes (see Fig. 2).

Machine Learning (ML) Algorithms

ML is defined as the discovery and testing of algorithms that assist pattern recognition, classification, and prediction based on models built from existing data [29]. ML technology has the capability of teaching computers to recognize patterns and images by supplying them with data and an algorithm [30]. ML algorithms, such as support vector machines, random forests, and deep learning models, have been applied to pain assessment tasks. ML techniques are highly beneficial in accurate pain classification, prediction, estimating pain intensity, and identifying personalized treatment in various conditions, like chronic low back pain or neuropathic pain [31]. They have shown promising results in different pain conditions and can handle complex and nonlinear relationships within the data. They can analyze various data sources, such as physiological signals, self-reported scores, imaging data and estimate pain intensity using EEG signals. ML applications can be used in smart units, digital tools, smart watches, smart documentation, and electronic medical records [32].

Several studies developed novel models for pain recognition with ML by analyzing facial expressions. They were able to automatically detect pain successfully with relatively high accuracy in more than 95% of the subjects [33,34,35,36]. Other studies used the AI-based approach to analyze clinical notes and patients’ records with pain assessment information to identify components related to pain classifications and severity [37]. Results of a recent review provide evidence that machine learning, data mining, and natural language processing can improve efficient pain recognition and pain assessment, analyze self-reported pain data, predict pain, and help clinicians and patients to manage chronic pain more effectively [33,34,35,36]. These promising results may help in the creation of new pain assessment instruments with human language technology.

Another application of AI/ML is for patients with severe dementia and those who cannot verbalize or communicate; a novel method of pain assessment that combines a number of technologies, including automated facial recognition and analysis, smart computing, affective computing, and cloud computing could be developed. This new system could help pain assessment in these challenging cases [38, 39].

Deep Learning and Neural Networks

Deep learning is a branch within the area of ML, AI, as well as data science and analytics, due to its learning capabilities from the given data. Deep learning models have been used to recognize and classify pain-related facial expressions [39]. Deep learning techniques, including convolutional neural networks (CNNs), recurrent neural networks (RNNs), and multilayer perceptron (MLP), are the three primary types of deep networks that are extensively used in many different applications, including complex pain-related data [19]. Medical images such as X-rays or MRI scans can be processed to extract meaningful features and patterns, shaping the diagnosis and treatment plan. Electroencephalogram (EEG) readings can also be analyzed to assess pain levels objectively [41]. DL can also be used to analyze itself and, in that way, overcome unexpected challenges and improve overall outcomes [40].

Natural Language Processing (NLP)

NLP denotes the field of study that emphasizes the interactions between human language and computers [42, 43]. NLP represents an evolution in the language analysis for automated pain assessment of patient-reported outcomes, enhancing the efficiency of pain assessment. NLP has proven effective in analyzing text-based pain assessments, such as pain descriptions from patient reports, pain diaries, or electronic health records [10]. NLP techniques include language feature extraction, classification, and prediction. NLP depends on the interaction between computer science and human language, combining AI and linguistics [10]. NLP has several practical applications in medicine. For example, it can enable computerized clinical decision-support systems, improve healthcare management, and can also be used for building tele-triage services and other aims [44]. NLP can be used to analyze data from social media and identify pain-related experiences. NLP can analyze the language used to describe pain, assist in pain assessment and patient triage, and identify pain-related trends or patterns, with the goal of understanding, extracting, and retrieving data from unstructured written and spoken texts, such as patient descriptions of their pain experiences. NLP has been able to extract information on pain intensity, pain location, and duration from social media data (e.g., pain intensity, location, and duration) [45, 46].

Computer Vision

Computer vision is the field of AI that deals with how computers can gain a high-level of understanding of the patient from digital images or videos. The main applications of computer vision are feature extraction and image segmentation. The main goal of feature extraction is to retrieve a restricted number of relevant features from an image in order to facilitate subsequent tasks, such as classification or regression. On the other hand, image segmentation is labeling each pixel of an image with a corresponding class to detect the relevant elements of an image [47].

Computer vision techniques have demonstrated effectiveness in pain assessment by analyzing visual signs or signals like facial expressions, body postures, or movement patterns. Facial expression analysis, for example, can use deep learning models and computer vision to detect and classify facial signs and behavior related to pain, such as grimacing or frowning [48, 49]. CV/ML pain assessment models derived from automated facial expression measurements performed well in detecting clinically significant pain and estimating pain severity at rest and during movement in the postoperative setting in youth. The automated facial expression measurements positively correlated with the patient’s self-reported pain scores [50].

A study conducted at the University of California San Diego examined computer vision-based deep learning models to predict pain measurements using facial images in 77 patients. The computer focused on facial expressions, particularly the eyebrows, lips, and nose. The study found that the Visual Analogue Scale (VAS) is less accurate than the Critical Care Pain Observation Tool (CPOT). This is attributed to two important factors: first, VAS is a subjective measurement that can be more influenced by emotional and other factors than CPOT; second, there is a gap in the continuous observation methods for pain during the perioperative period. The AI model could help improve patient care through real-time continuous and unbiased pain detection [50, 51].

Moreover, computer vision techniques can be applied to automatically identify pain-related facial expressions in specific populations, such as patients with dementia, non-verbal expressions, or impaired communication. Computer vision algorithms have also been utilized in pain assessment during movement analysis based on movement patterns of the patients [5, 48].

Robotics

AI systems can control and interact with physical robots to perform tasks in the physical world. A robot is a type of programmable machine that is designed to perform specific tasks, interact with the surroundings, and perform duties autonomously. Robots perform the tasks with little or no human intervention and with speed and precision. In healthcare, robotics can enhance patient care, quality assurance, and assist medical professionals. Robotic surgery can assist surgeons during complex procedures, with less invasive techniques, therefore reducing the risk of complications and improving outcomes with enhanced precision and accuracy [52].

Robotic technology can also be used in the field of pain management. Most devices and different techniques were used to differentiate perceived pain or anxiety for the treatment of procedural pain. Overall results showed beneficial effects for using robotic technologies to manage pain for both acute and chronic pain conditions [53]. A recent study used social assistive robots for the assessment and management of pain in residents with dementia, their families and caregivers as well. All received five sessions/week for 3 weeks. Results are promising for using robotic technology with some limitations related mainly to staff training [54].

AI-Based Pain Assessment Tools

AI-based pain assessment tools utilize various high-tech tools to improve the efficiency, accuracy, and objectivity of pain assessment. These tools can assist healthcare professionals in properly assessing, diagnosing, monitoring, and managing pain more effectively. The following represent a few examples of the AI-based tools for pain assessments.

Wearable Devices and Mobile Applications

The World Health Organization defines mobile health technologies as medical and public health practices supported by mobile devices [55]. Smart wearable devices or sensors are AI tools that can enable continuous monitoring of human physiological activities, vital signs, and body movements without any disturbance to the activities of daily living [57]. Wearable-based devices equipped with AI technology offer the potential for real-time continuous pain monitoring and personalized interventions [57]. Wearable devices have the potential to continuously collect a huge amount of data from patients to help in the follow-up and management of many chronic conditions, such as diabetes, heart conditions, and chronic pain [58]. These tools collect data on pain levels, physical activity, sleep patterns, and medication adherence. Wearable devices include, for example: wristbands, smart watches, wearable mobile sensors, and smart wearable shirts [5]. Recent literature reviews on the clinical impact of wearable devices and behavior change have shown promising effectiveness for digital technology [59].

Using AI, wearable smart devices can capture and analyze digital biomarkers of pain. “Digital bio-markers” is a term recently defined as the “objective, quantifiable, physiological, and behavioral measures collected using digital devices that are portable, wearable, implantable, or digestible” [60]. Digital devices can capture vital signs such as heart rate, respiration, blood volume pulse, and skin temperature; physiological data such as skin conductance, brain activity, muscle activity, and pattern of body movements; and behavioral signals such as speech, facial expressions, and body movements [4, 5]. Numerous biosignal methods have been used to assess pain: electrocardiography (ECG), electromyography (EMG), electrodermal activity (EDA), photoplethysmography (PPG), blood oxygen saturation (SpO2), and near-infrared spectroscopy (NIRS) [61]. Wearable-based AI systems have also been explored for pain assessment in non-verbal populations, such as infants undergoing vaccinations or individuals with communication impairments and dementia [5, 61].

Wearable sensors used in pain detection in perioperative settings are based on the reaction of the autonomic nervous system to formulate a valuable index as a pain reference. The two most common medical devices that are used to assess perioperative pain are the “analgesia nociception index” [62, 63], which is based on heart rate variability, and the “surgical pleth index” based on plethysmography [64, 65].

A novel approach by health systems integrates information from electronic health records (EHRs) with wearable sensors. Integrating patient data into wearable devices launches a new era of health technology [66, 67]. Accordingly, several healthcare systems have incorporated devices that can connect wearable devices to EHRs. Integrating these new applications could increase patient data transparency and improve patient care quality [68, 69]. However, they lack system interoperability, cannot be easily integrated into EHR systems, and raise privacy concerns [66, 67].

Virtual Reality (VR) and Augmented Reality (AR)

VR is defined as “simulations that use various combinations of interaction between devices and sensory display systems” [70]. VR and AR technologies have the potential to make interactive, customizable, 3D virtual patients “digital twins” effective for educating healthcare professionals with vast applications and to improve the clinicians’ skills. Also, they are valuable for undergraduate basic and clinical sciences learning [71, 72]. VR and AR technologies are used to create environments that simulate pain-inducing scenarios to analyze user responses, such as physiological changes or behavioral reactions. These technologies can also be used as distraction techniques during painful procedures because they command an individual’s focus, reducing their awareness of pain [73]. The immersive nature of VR and AR can transport patients to different environments, engage them in interactive activities, and, thus, alter their perceptions of pain [73, 74]. VR can be used as an alternative therapy for pain management in children and adults [72].

Internet of Things (IoT) Integration

The IoT includes wireless sensor networks, radio frequency identification, universal computation, and machine learning [75, 76]. The IoT allows multiple devices with unique identities to sense, transmit, process, and exchange information to provide automated, remote, and real-time pain monitoring by using of electronic diaries. Clinical studies showed they were more accurate in capturing and recording pain signals with the IoT compared to conventional methods [75, 77]. IoT devices, such as mobile, Internet-connected smart sensors embedded in clothing or furniture, can capture pain-related data like physiological indicators, pain behaviors, body posture, movement, and pressure distribution [78]. AI/ML algorithms can analyze these data and provide real-time and personalized pain assessment tools. They also showed a direct relationship between pain and mental illness, these results may help to improve the understanding of mental illness as a possible enhancer of pain episodes and functionality [79]. For example, they can suggest modifications or adjustments to seating positions. Such devices demonstrated efficacy in some patients with fibromyalgia and other musculoskeletal pain, such as low back pain [3, 79].

Smart Home

Smart home technology is a wireless device system that senses, observes, and recognizes pain-related behaviors in the home setting. They can collect, transfer, store, and analyze data over a network. These tools may be more accurate and minimize the reporting biases found in other clinical methods [59, 80]. Smart home technology continuously monitors routine daily activities and behaviors [81, 82]. Recognizing human behaviors may be helpful in quantifying functional pain interference, thereby creating new ways of assessing pain and supporting people living with pain [80, 83].

Smart home ML models can differentiate behavior markers between groups [84, 85], and predict behavior-based sleep and wake patterns [82]. Automated pain assessment using smart home devices can develop consistent, reliable, more objective pain assessments, detecting patterns in behaviors and activities that exacerbate or relieve pain, and responses to pain medications [80, 86]. Therefore, smart homes are creating new ways of assessing pain and supporting people living with pain [80, 83]. A recent study showed that smart home technology could be used overnight in patients with opioid-use disorders to detect pain, sleep disturbances, opioid withdrawal symptoms, and apnea events [87]. Smart home devices can be applied to detect pain and behavioral changes in special populations, such as patients with dementia and intellectual disability [5, 39, 86].

Applications of AI in Pain Assessment

Assessments of Pain Intensity

AI-driven pain assessment has enabled the development of automated pain assessment tools, such as smartphone applications and wearable devices, to provide real-time monitoring and analysis of pain-related data. Various models based on machine learning have been developed to detect pain and pain intensity objectively and accurately [8]. These smart tools can offer efficient and accurate assessment and management of pain [10]. Implementing AI technology can analyze multiple data, including self-report pain scales, facial expressions, and behavioral and physiological signals, to estimate pain intensity objectively. This multimodal model can provide a more accurate and more comprehensive pain assessment compared to the subjective self-report alone [5, 61].

Several studies showed varying levels of accuracy in the assessments of pain intensity, with overall promising results for the use of AI for automated pain assessment [61]. However, more clinical studies on automated pain recognition are required before approval and can be practically implemented [88]. Fontaine et al. [36] evaluated postoperative pain in adults and showed the following results: sensitivity in pain detection (89.7%), for severe pain (77.5%), with accuracy of estimating the pain intensity (53%), while Bargshady et al. [89] showed a more accurate estimation of shoulder pain as the following: accuracy (89–94%) in two groups of patients. For the estimation of self-induced shoulder pain, Barua et al. [90] showed more accuracy of pain intensity (95.57%).

Classification of the Type of Pain

AI and ML incorporate large datasets with complex compositions, combining multiple modalities from different sources and allow data sharing to extract information from the data that can be transformed into knowledge about the patient’s experience of pain [91]. These data can assist clinicians in identifying the underlying mechanisms of pain and offer appropriate treatment strategies [27]. They can classify pain into nociceptive, neuropathic, or inflammatory pain.

ML algorithms use medical images (e.g., CT and MRI) and reports acquired in the context of a painful condition, i.e., low back pain [92]. An example of this process is its use in disk fissures, where nerve ingrowth may occur along granulation tissue. This has been used to classify fissures and the pain caused by a discography. The dataset included pain-positive discograms and a similar number of control disks [91, 92]. ML programming algorithms can be used to differentiate between individual disks with positive and negative pain provocation on discography. The image diagnostic method was completed with a very high success of 99% and an accuracy of 97%. However, pain was only captured at 71% precision and 69% accuracy [92].

Continuous Monitoring and Management of Pain

AI/ML can offer real-time pain continuous monitoring and assessments of pain levels and detect early signs of pain exacerbation. Several studies report promising correlations between pain scores and objectively measured signals derived from wearable devices. These measurements can provide real-time monitoring and assessment of pain [55].

Furthermore, these smart tools can suggest treatment plans and personalized interventions, such as relaxation techniques or medical treatments [10]. For example, wearable devices or mobile applications could track pain levels throughout the day, alert healthcare providers, and prevent pain-related complications [55]. A recent study compared postoperative analgesia by traditional management versus the application of the newly introduced “analgesia quality index” (AQI) through the application of AI-patient controlled analgesia (AI-PCA) and showed that the AQI decreased the incidence of moderate-to-severe pain, improved the quality of analgesia, and may provide guidance for optimum postoperative pain management [93]. However, the monitoring of physical activity may be affected by many factors, such as personal mood, weather conditions, and other psychosocial factors [94, 95].

Predictive Models

Based on patient characteristics and electronic medical records, applications of AI/ML algorithms can predict pain outcomes, possible treatment responses, and how a treatment will be received. Implementations of these smart algorithms can help choose the best interventions; personalized pain management options are made possible by this predictive capability, which maximizes therapeutic efficacy and minimizes side effects [4, 96].

In the perioperative setting, AL/ML can be applied to predict persistent postoperative pain after surgery. Accordingly, a preventive strategy can be implemented to minimize the risk of the developing more persistent type of pain. ML is used for predicting persistent postoperative pain in women after breast surgery using psychological, demographic, and clinical factors. Prediction of persistent pain with a cross-validated accuracy of 86% and a negative predictive value of approximately 95% [97]. Prediction capability and predictive analytics based on ML may save time and money in clinical trials without compromising accuracy [32].

Decision-Making

AI enables the analysis of a large volume of data, including medical records, imaging results, clinical notes, and guidelines. ML techniques could comprehensively analyze the pain-related data, and therefore a personalized decision-making process could be conducted. AI/ML-based technology can improve the decision-making process by providing a solution for clinicians and researchers to extract hidden knowledge from the huge amount of available data that cannot be discovered if relying only on human effort. Also, ML can support healthcare providers in decision-making regarding pain assessment [98].

AI algorithms can aid healthcare providers and clinicians in pain assessments. Accordingly, they can make decisions for accurate pain diagnosis, minimizing errors, and increasing treatment efficacy [75]. Automated decision-making can be applied to patients who cannot communicate or are otherwise unable to verbalize their pain experience. Alternative methods, such as AI, can be used for assessment and management plans [5].

Research and Data Analysis

To assess the efficacy and safety of AI-based pain assessment tools, long-term studies will provide valuable insights into their real-world impact. Longitudinal data can provide insights into the reliability and effectiveness of AI models over time, enabling evidence-based decision-making [10, 15]. AI is ideally suitable for analyzing large and complex medical research datasets [99].

AI/ML-based technologies provide novel methods and efficient programming interfaces to analyze vast amounts of data to assist medical professionals in making more informed decisions while reducing human errors [32]. AI technology has the capacity to capture data, process it, perform dynamic analyses, and produce results that can be effectively used for medical intervention [98].

AI can perform a comparative analysis using “big data” so that information from a patient is compared with massive datasets and digital images collected from other patients in related settings [98, 100]. Using ML applications for clinical research ensures that data are accessed in real time and it manages the trial associates, and electronic records are used to eliminate database errors [101, 102].

They could improve clinical research by applying advanced predictive analytics to clinical trial applicants, evaluating a broader range of data and reducing the costs and time required for medical tests. AI/ML can be used to identify the optimal trial sample sizes for greater efficacy and eliminate errors [32, 103, 104]. Furthermore, ChatGPT is an AI-based conversational agent that utilizes NLP and machine learning algorithms to simulate human-like conversations [105].

Advantages of AI in Pain Assessment

The advantages of AI in pain assessment include the following:

Standard and Accurate Assessment

The utilization of AI algorithms in pain assessment enables the analysis of large-scale datasets, pattern identification, and the emergence of trends and correlations within these datasets, leading to valuable insights into pain mechanisms, risk factors, and treatment efficacy. Clinical studies showed that the application of AI-based algorithms is associated with better pain relief and improved quality of analgesia [8, 15, 93, 106]. Clinical application can provide guidance for optimum pain management in a postoperative setting [93, 106]. Evidence suggests that facial expressions of pain are sensitive and specific to pain and that these expressions can be distinguished from facial expressions associated with basic emotions [107, 108].

Objective Assessment of Pain

Accurate pain assessment facilitates the early detection, diagnosis, and continuous monitoring of pain. The main elements for pain assessments include pain severity, distribution, and duration [109]. AI-based tools provide more objective measures of pain, reducing reliance on subjective self-reports. This objectivity can eliminate individual differences or cultural variations [5, 8].

Digital therapeutics have been successfully used in the monitoring and treatment of opioid-use disorder [110] and to assists patients decrease and manage their opioid use [111]. A recent review found a significant decrease in pain, indicating a clear significant impact of digital health interventions in pain management or opioid-use reduction [110].

Efficiency, Time-Saving, and Low Costs

AI provides innovative solutions in the healthcare sector by enhancing patient care and improving its effectiveness and efficiency without increasing costs [112,113,114]. In clinical settings, AI/ML algorithms can quickly manage huge amounts of data, enabling efficient pain assessment and decision-making. This saves time for healthcare providers, allowing them to focus on treatment planning and patient care. It also frees up healthcare providers’ time to focus on patient care rather than searching or entering information [15, 32].

Technologically advanced hospitals are now exploring the use of AI technologies to help improve the accuracy of practice [115] and lower the cost of operations by presenting detailed information on various treatment options [115, 116].

Personalized Approach

AI models can consider individual patient characteristics, genetic factors, medical records, and imaging to tailor personalized pain assessment and management strategies. This strategy can improve treatment outcomes and patient satisfaction. Another benefit of ML in the healthcare business is giving individualized therapies that are more dynamic and efficient by combining personal health with predictive analytics [103, 104]. ML-based tools are used to provide various treatment alternatives and individualized treatments and improve the overall efficiency of hospitals and healthcare systems while lowering the cost of care [32].

Early Detection and Preventive Intervention

AI-based technology can detect changes in the patient’s behavior or even slight changes in the pain intensity, duration, type or patterns. Additionally, AL/ML algorithms can enable early intervention to prevent the progression of acute pain to persistent and chronic conditions. This can be achieved by analyzing the patient's data, medical records, imaging, risk factors, or pain predictors and suggesting interventions. ML has the ability of predicting and recommending preventive strategies. Accordingly, physicians can implement preventive and preemptive strategies for pain management [117, 118]. One of AI's most important benefits is promoting the preventive strategy in the healthcare system that will render all humans healthy [119, 120]. AI can also assist in the self-management of musculoskeletal pain [121]. This form of pain intervention outlines rehabilitation and exercise for treatment and recovery and has been shown to be as effective as in-person treatment [122].

Pain Detection in Complex Situations

AI can be helpful in the detection of pain in difficult and complex situations, such as in patients who are unable to communicate verbally, critically ill patients, pediatric patients, and patients with dementia. Moreover, it can be applied during the perioperative period while the patients are unconscious and still under anesthesia [5, 88, 123, 124].

Differentiate True versus False Pain

AI technologies are applied to diagnosis data to reduce false positives and false negatives [125]. Some studies suggest that AI/ML can differentiate true pain versus faked pain and identify malingering [126]. This is of great importance in different situations, such as detecting patients seeking compensation [127], requesting unjustifiable sick leaves, and preventing unnecessary narcotics prescriptions for drug abusers and people with a substance-use disorder; this has the potential to reduce health care costs [26, 88, 107].

Remote Health Care

Remote patient monitoring is an emerging field of health care, which concerns the assessment and management of the patient with the goal of treating or diagnosing illness using information technology and telecommunication tools [6, 119]. Jiang [128] developed a wearable telehealth system to monitor the patients and elderly [6]. Telehealth systems are also gaining importance, especially with the COVID-19 pandemic [129]. Remote health care offers many advantages. It helps to save time, effort, and resources for both patients and health care system [129, 130].

Challenges and Limitations

Ethical Considerations

As AI becomes more integrated into health care services, addressing the ethical considerations such as obtaining informed consent, maintaining confidentiality and patient privacy, data security, and potential biases take on extreme importance. In a clinical setting, it is important to know the potential harms that should be balanced against the expected benefits [131]. The value of transparency cuts across both with trust in the medical profession and health care systems at stake [131].

  • Data privacy and security:

    The AI/ML algorithms depend on vast amounts of sensitive patient data. One of the concerns regarding digital health is data privacy. Ensuring data privacy and security is of utmost importance. Strong privacy measures and adherence to regulatory frameworks are crucial to maintaining patient confidentiality and trust in AI-driven pain assessment systems [132, 133]. Furthermore, raw data acquired from patients and hospitals are used by AI/ML systems, and ethical considerations should be considered while collecting these data [133]. It is crucial to develop guidelines and regulations to ensure transparency, fairness, and accountability in AI algorithms and their deployment [133, 134].

  • Considerations related to patient privacy:

    Concerns are being raised regarding patient privacy and autonomy. For example, patients should provide informed consent beforehand, as they may refuse facial analysis. Furthermore, algorithms might be trained for particular demographics, further marginalizing already vulnerable groups [26, 135, 136]. Additionally, using AI/ML algorithms to detect pain through facial expressions has several limitations [26, 135, 136]. Their application may be limited by many factors, e.g., the patient’s age, gender, behavior, as well as the head position and movements. Moreover, some medical conditions can affect facial shape and mobility, such as Parkinson’s, stroke, facial injury, or deformity. All these factors can reduce the accuracy and sensitivity of the AI/ML to automatically detect pain experiences [26, 135, 136].

    The “WHO” reiterates the importance of applying ethical principles and appropriate governance, as enumerated in the WHO guidance on the ethics and governance of AI for health, when designing, developing, and deploying AI for health. The six core principles identified by WHO are: (1) protect autonomy; (2) promote human well-being, human safety, and the public interest; (3) ensure transparency, explainability, and intelligibility; (4) foster responsibility and accountability; (5) ensure inclusiveness and equity; (6) promote AI that is responsive and sustainable [137].

  • Interpretability, explainability, and transparency:

    The lack of transparency in making a decision is referred to as the “black box” of AI. Since AI models often operate as black boxes, it can be challenging to understand the underlying decision-making process. This lack of interpretability can raise ethical concerns and limit clinical adoption [131]. Efforts have been made in the recent years to enhance the interpretability, explainability, and transparency of AI/ML algorithms with deep learning models. It is essential to mimic human judgment regarding the interpretation and explainable skills to provide clear explanations for the assessments, build trust, and help clinicians understand the decision-making process [138, 139].

Data Quality, Potentials of Error, and Bias

The risk of biases within the data built into AI algorithms could lead to inaccurate pain assessments and wrong decisions [26, 131]. It is essential to consider the potential for errors and inaccuracies in pain detection models, which could lead to inappropriate decisions, such as misdiagnosis, inappropriate treatment, unnecessary surgery, patient injury, or even significant legal and financial implications [140]. Sometimes the data collected from hospitals is inaccurate or of insufficient quality. Data errors are among the top challenges in medical data processing via AI. False decisions in automated diagnosis may have very harmful results [141]. Moreover, some studies have found that ML algorithms are prone to misinterpreting unpleasant disgust as pain in facial expressions [141].

The Complex Nature of Pain

Automatic pain detection is challenging because it is complex, subjective, and subject to a variety of factors, such as personal and social-cultural perspectives, as well as past experiences of pain [143]. Several studies worldwide are engaged in the field of automatic pain assessments, but the lack of adequate knowledge can represent an obstacle to the potential translation into clinical practice. Such limitations contribute to the gap between the development of an AI algorithm and its application [10, 144]. The most important limitation of these studies is attributed to the tools that determine only the presence or absence of pain but not pain quality or characteristics [145].

Human–Machine Interaction

AI technology may improve the accuracy of assessments, diagnosis, and care planning. It will be an integral part of health care services and will be incorporated into several aspects of clinical care [146]. However, the role of healthcare providers in the setting of AI-based pain assessment should be carefully considered. Establishing effective human–machine interactions and prioritizing clinical expertise and judgment are essential to ensure the responsible use of AI tools. The increasing focus of AI has raised the question of whether AI-based systems will ultimately replace physicians in some specializations or augment physicians’ role without actually replacing them. Research studies conclude that AI-based systems will augment physicians and are unlikely to replace the traditional physician–patient relationship [147]. Collaborative efforts between AI experts and healthcare professionals are necessary to ensure the smooth integration of AI tools into clinical workflows [8].

Future Perspectives for AI in Pain Assessment

AI is a rapidly growing new field that shows effectiveness and benefits for application in many aspects of health care. The AI models should be designed to continuously learn and adapt from new data, improving their accuracy and performance over time. This continuous learning and adaptation process will enhance the effectiveness and reliability of AI-based pain assessment systems. The future of AI in pain assessment involves different aspects.

Integration with Telemedicine

The integration of AI in telemedicine platforms has emerged as an innovative approach. It has the potential to change the delivery of healthcare services and enhance remote patient care, and improve overall healthcare outcomes. This virtual system can provide patient information and assessments, offer basic medical advice, and schedule appointments [129]. AI in telemedicine can facilitate the way for the patients to interact with healthcare providers remotely and can assist in the diagnostic process [129, 147]. AI algorithms can analyze patient-reported data, video consultations, and other relevant information to provide clinicians with valuable insights for accurate pain evaluation and treatment recommendations. More research is required to facilitate the ethical and practical implications of AI integration in telemedicine to ensure patient safety and improve health outcomes [129, 147, 149].

Integration of Behavioral and Biometric Data

AI-based technology can integrate behavioral and biometric data, such as facial expressions, body movements, or physiological signals. This will offer a more comprehensive, multimodal pain assessment and enhance the accuracy of pain evaluation [10, 149].

Digital Twins

Digital Twins are described by Fuller et al. [150] as an effortless data integration between a physical and virtual machine in either direction. In pain assessment and management, digital twins can be conceptualized as virtual customized representations of an individual’s pain experience. These digital twins can be created by collecting and analyzing various data sources, such as physiological measurements, medical records, and patient-reported outcomes. AI algorithms can then analyze this data to identify patterns and correlations that may further deepen our understanding of pain’s underlying causes and mechanisms.

One of the key advantages of digital twins is their ability to capture the multidimensional nature of pain. Pain is a complex and subjective experience influenced by various factors such as genetics, environment, and psychological state. By integrating data from different sources, digital twins can provide a holistic view of an individual’s pain experience, enabling healthcare providers to tailor treatment plans accordingly [150,151,152].

AI algorithms can also analyze the data from digital twins to predict pain outcomes and optimize treatment strategies. For example, machine learning algorithms can identify patterns in the data that may indicate the effectiveness of different interventions or predict the likelihood of chronic pain development. These patterns assist healthcare providers in their clinical decision-making process, personalizing care, and improving patient outcomes [151, 152].

Furthermore, digital twins could also facilitate remote monitoring, telemedicine, and telehealth for pain management [153]. Patients could use wearable devices or smartphone apps to collect data on their pain levels, activity levels, and medication usage, which can be integrated into their digital twin [154]. Healthcare providers could remotely access this data and make real-time adjustments to the treatment plan, reducing the need for in-person visits and improving patient convenience.

Integrating Multimodal Approaches

Since pain is a multidimensional phenomenon, a promising direction is to combine different data from different sources and various channels to supplement each other and finally lead to significant improvement in the accuracy, specificity, and sensitivity of the assessments [8]. Integrating multiple modalities from different sources, such as self-reports, electronic medical reports, physiological and behavioral signals, and imaging data can allow a more comprehensive understanding of pain and facilitate fully automated and personalized treatment approaches [48]. A recent systematic review demonstrated the importance of multimodal approaches for automatic pain assessment, especially in clinical settings [8]. Recent approaches involve multimodal strategies by combining behaviors with neurophysiological findings can enhance the accuracy of AI-based technology in pain assessments [6, 10].

Brain–Computer Interaction (BCI)

Brain–computer interfaces (BCI) are defined as communication and control systems in which the thoughts of the human mind are translated into real-world interactions without the use of the common neural pathways and muscles [155]. Recent advances in BCI development are offering numerous application in healthcare [156], including novel pain assessment and management approaches. BCIs are devices that establish a direct communication pathway between the brain and an external device, such as a computer. When deployed safely and responsibly, they could be leveraged to measure and interpret brain activity associated with pain perception.

BCIs could provide objective measures of pain, overcoming the limitations of self-reporting, which can be subjective and influenced by various factors. By analyzing brain activity patterns, AI algorithms can identify neural signatures of pain and quantify its intensity. This objective assessment could help healthcare providers better understand and manage pain, especially in cases where patients are unable to communicate their pain levels, such as infants or individuals with severe cognitive impairments [157,158,159].

BCIs could also be used to develop closed-loop systems for pain management [160]. By continuously monitoring brain activity, AI algorithms could be deployed to detect pain-related changes and trigger interventions, such as drug delivery or neuromodulation techniques, to alleviate pain in real-time. This personalized and adaptive approach has the potential to provide more effective pain relief and minimize the risk of adverse effects [161].

Limitations

This review is mainly limited to adults and excluded pediatric populations. The applications of AI for automated pain assessment are very beneficial in the most vulnerable groups of patients, e.g., pediatrics, geriatric patients with dementia, intellectual disability and unconscious patients. However, those most vulnerable groups were not included in this review. This is a narrative review and not a prospective study or a systematic review. This is a very new topic and few clinical studies have been conducted; some of the studies we found were pilot studies. Finally, the integration of AI in health care generally and in pain management specifically is relatively a new technology and still in early development. Further research is required to identify the knowledge gaps, risk–benefit ratio, and proper applications of the AI-based technology in the healthcare systems.

Summary and Conclusions

This comprehensive review shows how incorporating AI/ML-based technologies offers a promising opportunity to deliver unbiased, objective, and personalized pain assessments. Over the past few years, studies have demonstrated tremendous progress in providing accurate, effective, continuous, and real-time pain assessments. These studies show how AI/ML-based therapies could enhance the ability to identify, predict, and provide effective self-management of pain. These new methods may also help prevent pain before it starts. There are obstacles and limitations regarding the application of AI/ML-based technology in healthcare in general and pain management specifically. The main goals are to enhance accuracy, objectivity, and personalization in pain management through the application of AI. Furthermore, the integrations between clinical practice guidelines, health care authorities, and human–computer interaction with AI/ML-based technology are the key steps for improving pain management and overall patient outcomes. The ethical considerations and successful use of AI in clinical practice will depend on overcoming obstacles pertaining to patient privacy, data security, quality, transparency, and interpretability. Sustained investigation, multidisciplinary research, and cooperation between AI professionals and health care providers by establishing effective human–machine interaction are essential to ensure the responsible use of AI tools. In the near future, it is essential to fully utilize AI technology in the evaluation and management of pain and enhance overall patient outcomes. A multimodal approach could also help pain assessment for nonverbal patients or those who have limited language skills or other communication barriers. Further research is required to develop an updated model, improve the accuracy of pain assessments, work in a more complex environment, and practically implement AI in real-world healthcare settings to improve their effectiveness, safety, and impact on patient outcomes.