Artificial Intelligence and Pain Medicine

Jonathan M Hagedorn, 1 Tony K George, Rohit Aiyer, Keith Schmidt, John Halamka, nd Ryan S D’Souza

Abstract

Artificial intelligence was introduced 60 years ago and has evolved immensely since that time. While artificial intelligence is found in nearly all aspects of our life, the use of artificial intelligence in the healthcare industry has only recently become apparent and more widely discussed. It is expected that artificial intelligence will allow improved disease recognition, treatment optimization, cost and time savings, product development, decision making, and marketing. For pain medicine specifically, these same benefits will be translatable and we can expect better disease recognition and treatment selection. As adoption occurs with this impressive technology, it will be imperative for the pain medicine community to be informed on proper definitions and expected use cases for artificial intelligence. Our objective was to provide pain medicine physicians an overview of artificial intelligence, including important definitions to aid understanding, and to offer potential clinical applications pertinent to the specialty.

Introduction

Originally, the term “Artificial Intelligence” (AI) referred to the idea that computers could be taught pattern recognition with little to no human involvement or interaction.1 This initial concept by John McCarthy over 60 years ago has evolved into a larger idea involving rapid analysis of massive data repositories with subsequent machine algorithms to solve problems, drive human behavior, and solve complex problems, all of which previously required human intelligence.2 These human-machine interactions are seen in nearly all aspects of our life and the increased use of AI in the healthcare setting is no surprise. AI has transformed a variety of industries, including the internet (ex. automated search optimization and recommendations), automobiles (ex. autonomous vehicles), sales (ex. online purchase recommendations, targeted advertising), and the stock market (ex. forecasting). AI allows for machines to both learn from experience and fine tune computerized instructions to help mimic and perform human tasks. The use of AI in the healthcare industry has only recently become apparent with its use being explored in multiple avenues, including facilitation of diagnosis and delivery of treatment in patients, automation in workflow for payers and providers, and optimization of technology developed by manufacturers.

Our objective was to provide pain medicine physicians an overview of AI, including important definitions to aid understanding, and to offer potential clinical applications pertinent to the specialty. Through better understanding, we can support and encourage clinical adoption of the many benefits AI offers our patients and ourselves. The importance of this understanding will become increasingly critical as AI becomes integral in the diagnostic and treatment-related aspects of chronic pain management.

Go to:

Important Terms

Artificial Intelligence (AI)

A broad, umbrella term referring to the analysis of large datasets (ie “Big Data”) utilizing computational algorithms to organize, predict, and/or influence future behaviors or outcomes.

Big Data

Large datasets that are analyzed by AI. Typically, the size, complexity, or accrual speed of these datasets is beyond the scope of traditional analysis techniques.

Machine Learning (ML)

A subcategory of AI. It uses pattern recognition within real-world datasets to learn and estimate a future outcome. Depending on the accuracy and ultimate goals, updated real-world datasets can be provided to the machine via human interaction and future estimates can evolve over time. Notably, ML is subject to bias and error if data inputs are mislabeled or inaccurate by the required human involvement. In pain medicine, ML algorithms can be used to analyze patient data and predict treatment outcomes based on patterns and features within the data. Machine learning algorithms can be used to predict the likelihood of a patient experiencing chronic pain based on demographic and clinical characteristics, or other characteristics as defined by the physician providing the data. As an example, a study used ML to study the association between various patient risk factors and patient adherence to medications for opioid use disorder. This ML model identified patients who were at high risk for opioid overdose, allowing clinicians to target these patients with outreach activities related to preventative interventions and medication adherence.3

Deep Learning (DL)

A subcategory of ML and also its most complex. It involves intelligent algorithms that self-analyze, adapt, and predict with little or no human involvement. DL is capable of unsupervised learning from unlabeled and unstructured inputs. This requires sophisticated computer processing capabilities, and an ability to allow the machine to run autonomously and form hidden connections from varying levels of data. Over time, these connections take on the appearance of a diverse neural network.2 For example, a DL algorithm can be trained on a large dataset of patient information, including medical history, genetics, previous pain management strategies, and outcomes. The algorithm would then learn to identify which patterns and features within the data are associated with different treatment outcomes without being prompted to specific areas. Once the algorithm is trained, it can be used to analyze new patient data and predict which pain management strategies are likely to be most effective for that patient. This can help clinicians develop personalized treatment plans that are tailored to each patient’s unique needs and characteristics.

Go to:

Delivery of Artificial Intelligence

The platform for accessing data in healthcare and subsequent delivery of AI can vary depending on the specific application and use case. However, there are some common platforms and technologies that are often used in healthcare to store, manage, and analyze data. These same data repositories could be used for delivery of AI.

Electronic Health Records (EHRs)

EHRs are digital versions of a patient’s medical record that can be accessed and shared by healthcare professionals. EHRs can store a wide range of data, including medical history, medications, test results, and imaging data.

Health Information Exchanges (HIEs)

HIEs are networks that allow healthcare organizations to share patient data securely. HIEs can improve care coordination by allowing healthcare professionals to access a patient’s medical record from any location.

Cloud Computing

Cloud computing platforms can be used to store and manage large amounts of healthcare data. Cloud platforms can provide scalability, flexibility, and cost-effectiveness compared to traditional on-premise storage solutions.

Internet of Things (IoT) Devices

IoT refers to a network of physical objects or “things” that are connected to the internet (Wi-Fi, Bluetooth, or cellular networks) and can exchange data with each other. These objects can include devices such as sensors, appliances, vehicles, and wearable devices, as well as everyday objects such as furniture and clothing. The idea behind IoT is to enable these objects to communicate and exchange data in real-time, allowing for increased automation, improved efficiency, and new applications and services. For example, wearable devices can collect data on a patient’s heart rate, activity level, and sleep patterns, which can be used to monitor their health remotely and make adjustments without hospitalization or a clinical appointment.

General Healthcare Applications

The current global healthcare landscape could benefit immensely from AI in a number of different dimensions, including, but not limited to, outcome optimization, cost reductions, new product development, and improved decision making.

Outcome Optimization

As modern healthcare has transitioned to EHR, the collection of Big Data has become increasingly possible. The current EHR includes detailed laboratory results, high-resolution medical imaging findings, and procedural and surgical outcomes, amongst many other collectibles, which can be collated and analyzed with ML. A myriad of outcome analyses could be computed from these datasets. Current need for human input of data into the EHR is one limitation, but with time that too will likely be integrated into an AI function and analysis will evolve into DL.

AI can also help direct optimization of adaptive clinical trials. An example is the randomized, embedded, multi-factorial, adaptive, platform (REMAP) trial.4,5 In this approach, therapies can be randomized (eg spinal cord stimulation versus conventional medical management) within the EHR (platform) and at the point-of-care level (pain medicine physician). The process of randomization in REMAP is adaptive and determined by ML algorithms based on real-time outcomes through Bayesian analysis. From analysis of data that are already accrued, REMAP can increase the likelihood that participants within a trial are randomized to treatments that are more likely to be beneficial. Further, when statistical graduation rules are satisfied, then recruitment is stopped.

Disease Recognition and Prognosis

The technology can be used to identify and link examinations, laboratory results, and imaging findings to more accurately diagnose specific diseases. For example, AI-powered tools may be able to analyze patient records to identify patterns and risk factors that may indicate the presence of a particular condition. This condition could then have treatment options available with data to support successful outcomes.

Cost and Time Savings

The cost of healthcare has grown exponentially over the past few decades.6 When considering the United States alone, healthcare quality metrics in many areas of outcome data do not coincide with its consistently high per capita healthcare expenditures.7 AI has the potential to change that through a variety of mechanisms, including direct cost reduction and identification of inefficiencies being particularly pivotal. AI-powered tools can help physicians and care teams streamline workflow and reduce the time and resources required for certain tasks, such as data entry and analysis. This can help to reduce costs and improve efficiency in all patient care settings. It can also assist by automating certain tasks, such as analyzing patient records or identifying patterns in data. This can free up time for care providers to focus on more complex tasks, such as diagnosis and treatment of patients.

New Product Development

With ML, current product offerings can be minutely scrutinized and weaknesses identified. Using this information, new products will be optimized for enhanced outcomes and longevity. Early adopters of AI have already begun to use similar pathways to improve medical devices.8

Improved Decision Making

Through analysis of Big Data, decision making will occur at ever increasing speeds and with greater accuracy. Current clinical decision making is based on medical knowledge, collaboration, and physician experience, and while this is generally effective, it is comparatively slow and physician dependent. Plus, the burden of information overload, from the EHR and on-going research endeavors, will be relieved and allow physicians to remain focused on the patient. AI will allow institutional, national, and global collaboration and the analysis of these increasingly complex and diverse datasets will foster improved clinical decision making on an international scale.

Marketing

AI assists in generating original content for article blog and social media posts. It allows for quick patient education to be generated with supportive material links.

Drug Development

With development of pharmaceutical drugs, utilization of ML-based techniques have allowed research develops to better evaluate and assess medication characteristics, including absorption, distribution, metabolism and excretion. Data that involve biological and chemical information, are utilized by ML models to help identify and predict molecular properties that can potentially be effective pharmacologically.9

Minimally Invasive Surgery

In recent years, minimally invasive surgery has become more common amongst surgeons, generally due to less blood loss and quicker recovery for patients. AI has allowed for surgical students and trainees to develop necessary motor skills. Sensors that utilize fine tactile stimuli, through processing data sensor input with the help of AI, through interpretation of tactile information.10

Large Language Models (LLMs)

Large Language Models (LLMs) use AI algorithms to generate language that mimics language utilized by people. These models allow machines to answer questions or discuss like people conversing. Individuals can setup potential topics that they want addressed by AI, with LLMs creating texts in response to these suggested themes.11 In the clinical world, LLMs are becoming more and more integrated into various aspects of medical practice. For example, LLMs can be used as translators of medical terminology for patients, and therefore, allow patients to better understand clinical terms with their assistance in converting into daily language terms.11 This as a result, will further optimize patient care in allowing patients to better understand their treatment plans.

Documentation is another clinical aspect that LLMs will play a role in clinical medicine. For example, converting rough clinical documentation into accurate notation, can not only make clinical care more efficient, but also improve the quality provided by physicians by allowing them to spend more time with the patient, and less on note writing.11

Pain Medicine Specific Applications

Opioid Monitoring and Risk Reduction

Machine learning requires large repositories of data. Since the opioid epidemic, prescriptions monitoring is gathering extensive data. Hospitals, ambulatory surgical centers and outpatient clinics generate patient data from admission to discharge which are stored in EHR. AI can utilize this data to recognize patterns, creating labels and decipher them. For example, in patients at risk for opioid use or misuse, AI can identify settings where opioid medication management would be appropriate and other setting where it would be inappropriate. PDMP (Physician Drug Monitoring Portal) is a state specific monitoring portal collecting opioid use data. It monitors opioid use but additionally measures stimulant, buprenorphine, and sedative use. Through this portal machine learning could extract features identifying areas to direct safe opioid prescribing or identify risk factors ultimately helping reduce risk. Other algorithms could extract opioid overdose admissions from hospitals, emergency rooms, and intensive care units to identify patterns and trends unearthing unidentified connections and aiding future prevention. Any voids in opioid knowledge, its effects on sleep and function, its functional impact and opioid effects on comorbidities could be recognized with AI.

Accessibility and Outcome Optimization

Pain psychology is a promising area for implementing AI. Many chronic pain patients have associated anxiety and depression where pain psychologists reduce pain intensity by controlling these psychiatric comorbidities. However, pain psychologists are limited and AI could supplement or supplant these needs. Through machine learning AI could understand individual pain and mood variations. Common behavioral algorithms could be preset with machine learning calibrating for individual pain and mood needs. For example, AI could help create personalized psychological treatment approaches, such as improving cognitive behavioral therapy for chronic pain by identifying patterns in a patient’s behavior and generating personalized CBT worksheets.

Additionally, self-learning and reinforced learning outside of supervised learning could be facilitated by AI without the need for physical supervision by a pain psychologist.

Neuromodulation Device Optimization

Stimulation Optimization for Mood

Anxiety and depression are common in patients with chronic pain. Pain causes mood fluctuation where controlling these symptoms is paramount to controlling pain. Spinal cord stimulation (SCS) has been helpful in controlling affective symptoms. The positive effect of burst stimulation on mood and affective disorders was successfully demonstrated with the SUNBURST randomized controlled trial by Deer et al.12 Studies show lower depression scores in patients responding to SCS.13 AI could build on current understanding of SCS effect on mood through machine learning. A continual feedback analysis loop from dorsal column signals through device calibration could be a starting point for machine learning. AI functionality such as chatbots, mimicking human conversation, can be synched with SCS devices to collect data for machine learning. Validated scales such as Minnesota Multiphasic Personality Inventory (MMPI) can be used as baseline parameters to extract mood-related data from various situations and through AI learning adjusting stimulation parameters accordingly.

Stimulation Optimization for Parameters

SCS has evolved with varying frequency settings to optimize pain reduction. Device companies claim superiority with high-frequency stimulation, burst stimulation, and differential targeted multiplex stimulation to traditional tonic stimulation or other settings.14–16 Each claim could be calibrated with machine learning identifying patterns through subjective pain reduction responses, functional improvement, evoked compound action potentials (ECAP) changes, mood and behavioral improvements etc. Machine learning could reduce variability in currently touted stimulation settings selecting superior patterns of stimulation.

Stimulation Optimization for Treatment Tolerance

Treatment tolerance leads to eventual SCS failure where SCS implants succeed initially but fail later. AI could identify neuron activation changes over time ultimately changing stimulation parameters to maintain efficacy over longer periods.17 Sensors could pick activity and pain variations through periodic AI chatbot inquiries from measuring neuronal activity during sleep to activities of daily living, such as self-care, dressing, bathing, low impact, high impact and exertional activities. Others measurements including sleep behavior, physiologic changes in blood pressure, heart rate with activity levels, and respiratory changes with increase in patient anxiety could be measured. Sensors could extract functional and pain data to work with cloud-based or remote monitoring services. Adaptive SCS devices could create patient specific stimulator device adjustment knowing pain perception and response is unique to each individual.

Addressing Lead Migration

On the technical side, there are flaws with current SCS devices. A common cause of SCS failure is lead migration where as many as 2–27% of leads migrate and cause loss of efficacy.18 AI devices with sensors on simulator leads could calibrate final lead placement on dorsal columns and provide early detection of deviations from baseline to identify lead migration. AI learning could alert individuals of technical device flaws causing therapy failure as opposed to stimulation failure.19 This valuable information could be rectified through lead placement correction as opposed to aberrantly claiming treatment failure leading to unnecessary invasive treatments such as spinal surgery. Similarly lead fractures, electrode disconnection or other technical failures could be identified and rectified sooner through AI recognition and feedback.

Addressing Energy and Charge Distribution

Other technical concerns are SCS battery durability to optimize energy conservation and favorable charge distribution to avoid early battery failure. AI could learn how settings affect energy conservation and charge distribution. Most SCS devices have battery durability of 5–7 years.20,21 Some devices such as high-frequency stimulation need a battery replacement sooner. Machine learning devices can adjust stimulation to activity needs where a need-based function can turn stimulator device off during quiescent periods. Energy conservation could be compromised on paddle or percutaneous leads. SCS paddle leads are flat covering a wider surface whereas percutaneous leads are cylindrical. Paddle leads are theorized to function better due to favorable energy distribution.22 Machine learning can compare charge distribution verifying if lead structure influences efficiency. Lead structure can be modified to select an efficient lead layout to improve pain control and energy optimization.

Image Optimization

AI could optimize pain procedure images. Fluoroscopy machines incorporated with AI can glean imaging information from data deciphering dye spread to optimize precision into injection technique. Currently, AI is used in radiology to discriminate benign and malignant tumors through pattern recognition.23 Elsewhere, it is used to monitor for disease progression through serial image evaluations. Applying this to a pain concept, for example, studies show SI joint injections performed by interventional pain physicians have suboptimal dye spread in two-thirds of sacroiliac joint injection cases.24 AI capable fluoroscopy machines could differentiate optimal from suboptimal images through machine learning and recommend improved physician technique and precision. AI pattern recognition could identify optimal zones for needle advancement and trajectory. This could similarly be applied to epidural injections and other high-volume procedures.

Improve Decision Making

Clinical research requires time, resource, and manpower to change existing knowledge with new information. A substitute able to facilitate research studies without straining resources could be transformative. AI ability to do structured or unstructured research or both using algorithms to address specific research problems (structured) or to answer multiple questions (unstructured) can accelerate pain research. Machine learning can modify current diagnostic and treatment approaches through pattern recognition by analyzing large data. One avenue would be national registries common in specialties such as oncology. Large registries are data mines where AI can be implemented. The Surveillance Epidemiology, and End Results (SEER) national registry run by the national cancer institute reports patient hospital information to a national database.25 A similar pain registry can extract patterns from pain data providing clues for a myriad of questions. However, data is raw and preset unmonitored algorithms can create a data set shift.26 Data set shift is a deviation of machine learning from the original constructed objective. Monitoring for errors and recalibration towards original objective is important for AI run devices. Period algorithm adjustments will enhance new learning helping extract relevant information.

The complexity of pain processing in the brain is well known where multiple areas of the cortical and subcortical surface are involved. Deciphering this complex processing has been challenging and neuroimaging biomarkers such as functional MRI have attempted to make sense to aid pain diagnosis, prognosis and identifying targets for interventions and responders to therapy. With advancements in AI, big data interpretation could yield new neuroimaging markers for the brain and spinal cord for chronic pain. Deep learning through biomarker interpretation could helping identify individuals at risk of developing, progressing or exacerbating a painful condition and predict those able to respond to treatments, such as medications, injections and stimulation.27

AI is adaptive and an iterative process allowing measurement in real time. Its continuous machine learning can measure research outcomes continually, unlike fragmented investigator monitored measurements at 6-month, 1-year, and 2-year intervals. New treatment success will be identified sooner using data and algorithms improving patient outcome and reducing financial cost. Furthermore, Food and Drug Administration approval may mean satisfying the litmus test of success through AI testing. Similarly with cost involved in development, production, marketing and selling, devices may need to validate their claims and integrate AI involvement into their product development to benefit the company and patient.

The Future Pain Medicine Clinic

A potential workflow of a future pain medicine clinic is provided in This is hypothetical at this point, but platforms are being created to more seamlessly provide efficient healthcare and improve outcomes. This potential workflow highlights those aspects.

Potential workflow of a future pain medicine clinic.

Challenges

Machine learning and deep learning occur with large data. In social media websites, millions of users generate big data from multiple sources every hour. Through pattern recognition, trends and new directions for movement are identified with curated information provided to individual users. For SCS, data from external stimuli and social interaction can calibrate a device for individual users. However, unlike computers and phones, available to billions, SCS device prevalence is limited. At best thousands of spinal cord stimulator implants are implanted nationally. Individual stimulator data could be enhanced if a central monitoring device collectively gathers information from other stimulator devices. However, sensitive patient information with collected data could be a breach of privacy. A central device could violate patient confidentiality and privacy rights needing permission before implementing. The Health Insurance Portability and Accountability Act (HIPAA) laws from the 1996 US federal legislation defined these standards and will appraise any incorporation of AI technology.28 Information transfer would need to be encrypted from the source point to the final point, including security audits and access control. Responsible use of AI in pain medicine means ensuring that existing pain diagnosis and treatment disparities falling along racial, ethnic, and gender lines are not further exacerbated.29

AI data conclusions could be disruptive where industry collaboration would mean boldness risking device failure and potential emergence of superior devices. Measuring stimulation differences between devices could mean overriding proprietary claims of each stimulator device. If comparison between companies is challenging comparison within company devices should be feasible such as comparing device stimulation parameters to traditional tonic stimulation. Most systems can revert to traditional stimulation if burst or high-frequency stimulation fails. AI features including pattern recognition, feature extraction and dimensionality reduction can compare settings to extrapolate success or failure of new devices settings to other devices or its own.

Pain and function are common end points to measure. Objective measures, such as function, are easier to measure whereas subjective measures, such as pain, can be challenging. For example, function impairments are common in Parkinson’s patient with tremor and rigidity. These patients are unable to initiate and maintain steady movements. AI and machine learning could correct and calibrate device function to improve normal movement. On the contrary, pain is difficult to calibrate and objectifying pain has been futile. In 1996 the American Pain Society attempted to objectify pain with the pain scale.30 However, the multi-dimensionality of pain, its various pathways, and models of pain processing unclear, a pain scale alone is rudimentary where multiple variables will help construct algorithms for the pain experience. Next pattern generation would create new layers of machine learning improving pain understanding and device development. It is also likely data shift will occur in these scenarios involving multiple variables eventually needing recalibration through external input.

Conclusion

AI has the potential to greatly enhance the field of healthcare by improving diagnostic accuracy, reducing workload on healthcare providers, reducing costs, and enabling personalized treatment plans. It accomplishes this by streamlining workflow, automating tasks, assisting with diagnosis and treatment optimization, and reducing errors. However, there are also challenges that must be addressed, such as the need for robust ethical frameworks and the potential for AI to exacerbate existing healthcare inequities. As research and development in this area continues, it is important to carefully consider these issues and work towards solutions that can maximize the benefits of AI for patients and healthcare providers alike. Regardless, it is imperative that pain medicine physicians educate themselves on AI and ready their practices for clinical adoption.