- 1Design Interactive, Inc., Orlando, FL, United States
- 2Arcanium Software, LLC, Tampa, FL, United States
- 3ATLAS Lab, College of Aeronautics, Florida Institute of Technology, Melbourne, FL, United States
Pain is one of the most common symptoms reported by individuals presenting to hospitals and clinics and is associated with significant disability and economic impacts; however, the ability to quantify and monitor pain is modest and typically accomplished through subjective self-report. Since pain is associated with stereotypical physiological alterations, there is potential for non-invasive, objective pain measurements through biosensors coupled with machine learning algorithms. In the current study, a physiological dataset associated with acute pain induction in healthy adults was leveraged to develop an algorithm capable of detecting pain in real-time and in natural field environments. Forty-one human subjects were exposed to acute pain through the cold pressor test while being monitored using electrocardiography. A series of respiratory and heart rate variability features in the time, frequency, and nonlinear domains were calculated and used to develop logistic regression classifiers of pain for two scenarios: (1) laboratory/clinical use with an F1 score of 81.9% and (2) field/ambulatory use with an F1 score of 79.4%. The resulting pain algorithms could be leveraged to quantify acute pain using data from a range of sources, such as ECG data in clinical settings or pulse plethysmography data in a growing number of consumer wearables. Given the high prevalence of pain worldwide and the lack of objective methods to quantify it, this approach has the potential to identify and better mitigate individual pain.
Introduction
Pain is one of the most common symptoms reported by individuals presenting to hospitals and clinics (1) and is defined as an unpleasant sensory and emotional experience induced by noxious stimuli detected by nociceptive neurons (2). The economic cost of pain including medical care, lost wages, and reduced productivity eclipses heart disease, cancer, and diabetes (3). The concurrent opioid and COVID-19 epidemics have accelerated the costs associated with pain along with an increasing number of overdoses (4). Previous research has defined the underlying mechanisms associated with nociceptive pain and distinguished two types, including first pain, and secondary/affective pain (5). First pain is associated with myelinated A-Delta fibers which synapse onto primary somatosensory cortex, and provide fast localization of injury, triggering withdrawal reactions. Secondary pain is associated with the activation of slower, unmyelinated C-fibers which synapse onto the forebrain/affective areas, providing the emotional context to pain. Pain can also be characterized by the duration or time course; while acute pain allows for rapid localization of injury, prevention of self-harm, and generally persists while tissues heal, up to one third of individuals in the United States experience chronic pain and associated disability associated with diseases such as cancer, post-surgical and post-traumatic pain, neuropathic pain, headache, visceral, and musculoskeletal pain (6). Given its significant economic and social impacts, the ability to quantify and treat pain is of high importance.
Pain is commonly assessed through self-report (7), but such approaches are highly variable, subjective, and are influenced by a number of internal and external factors (8). For example, recent reports indicate that common self-reported pain scales used for screening only have modest accuracy (7), and some patients will systematically under or over-report pain (9, 10). Given the risks of relying on self-reported pain, other groups have attempted to leverage clinical imaging such as fMRI to analyze brain regions associated with pain, which have revealed a pain matrix of regions reliably activated by painful stimuli (11). These regions include the somatosensory cortex which localizes pain, the anterior cingulate cortex and insula, which are associated with the emotional and motivational aspects of pain (12), along with higher brain areas. While such an approach has provided for the development of high specificity/high sensitivity biomarkers for pain (13), it still requires the use of expensive imaging equipment and highly trained personnel. There is thus a need for an objective approach to pain identification that is both cost-effective and scalable to minimize the reliance on costly and limited neuroimaging.
Available evidence suggests that pain has objective, physiological signatures that manifest outside of the brain. For example, acute and chronic pain are associated with stereotypical physiological alterations (14) such as increasing cardiovascular activity including heart rate (HR), blood pressure and heart rate variability (HRV) (14–17), respiration rate and depth (18), and electrodermal activity (19, 20). Such observations form the scientific basis for current guidelines for patient care in anesthesiology (21), but also have the potential to objectively assess pain in ambulatory settings. Combined with advances in non-invasive persistent physiological monitoring devices, physiological pain assessment may allow for real-time, objective pain sensing and mitigation. In the current study, a physiological dataset associated with acute pain induction in healthy adults was leveraged to develop algorithms capable of detecting pain in real-time. These methodologies provide a foundation for future work in developing advanced pain classification algorithms to be used in field/ambulatory environments using wearable sensors.
Methods
Participants
All methods involving human subjects were approved by an independent Institutional Review Board (Copernicus Group, Durham, NC). Forty-one participants [thirty-eight male; average age 21.8 ± 2.4 (SD) years] completed and received payment of $100 USD for participation in the study. The demographics were designed to correlate with the United States military service member population. All participants were recruited from the community and met minimum requirements including age (18–30), normal visual acuity, and no medical conditions such as endocrine disorders.
Data collection procedure
Upon arrival, participants provided written informed consent and completed a demographics questionnaire. Wireless physiological sensors were then placed on the participants, followed by a 5-min recording of baseline (BL) physiological activity while participants remained seated. Participants then underwent the cold pressor test (CPT), consisting of up to 3 min of non-dominant hand immersion in ice cold water (1–2°C) under experimenter observation. The CPT was initially developed in 1932 as a clinical cardiovascular challenge to monitor changes to HR and blood pressure (17) and is considered a reliable experimental method for controlled pain induction (22). Physiological measures (detailed in Section “Physiological measurements”) were captured throughout the baseline and pain-induction phases. At the end of the experiment, participants were debriefed and paid for their participation.
Physiological measurements
Participants were fitted with a 3-lead electrocardiogram (ECG) with bandlimits set between 1 and 35 Hz. ECG was sampled at 500 Hz and wirelessly sent to an MP-150 system running AcqKnowledge software (Biopac Systems, Goleta CA). Gain was set on the ECG channel to 2000.
Data featurization
Peak detection was used to identify and extract the R-R intervals (RRI) for each ECG recording (Figure 1). For each recording, the RRIs were separated into 60-second, non-overlapping epochs to coordinate with known temporal dynamics of pain (23). This RRI data was analyzed to convert the time-series data into featurized observations for use as model inputs (Figure 1). These features (N = 46) fell into one of four categories: (1) time domain HRV, n = 18; (2) frequency domain HRV, n = 20; and (3) nonlinear HRV, n = 4; and (4) respiration, n = 4 which are described in the following sections.
HRV features were calculated using the pyHRV open source toolbox (24). The toolbox bundles a selection of functions to compute time domain, frequency domain, and nonlinear HRV features. Time domain features contain statistical information from two different classes: (a) features derived directly from RRI or instantaneous HR, and (b) those derived from the differences between successive RRI. Time domain features included RRI (min, max, mean, count), differences in successive RRI (RRIdiff; mean, min, max), heart rate (HR; mean, min, max, standard deviation), standard deviation of RRI (SDNN), root mean square of RRI (RMSSD), standard deviation of successive RRIdiff (SDSD), number of RRI greater than 50 ms (RRI-50), ratio between RRI-50 and total number of RRI (pRRI-50), number of RRIdiff greater than 20 ms (RRI-20), and the ratio between RRI-20 and the total number of RRI (pRRI-20).
Frequency domain HRV was obtained using Fast Fourier Transform to compute the power spectral density, followed by an analysis of very low frequency (VLF) power (0–0.04 Hz), low frequency (LF) power (0.04–0.15 Hz), indicative of sympathetic activity, high frequency (HF) power (0.15–0.4 Hz), indicative of vagal activity, and very high frequency (VHF) power (0.4–3 Hz) (25). For each frequency band, peak frequency, absolute power, log power, and relative power were calculated. Normalized power was also calculated for LF and HF, along with LF/HF ratio and total power.
Nonlinear HRV parameters were also included to enhance the unpredictability of the R-R series caused by various complex physiological dynamics of the cardiovascular system that lead to HRV (26, 27). The Poincaré plot is a scatter plot where a given RRI is plotted against its successor RRI, which allows a rapid first judgment of a subject's health as the shape of the scatter plot provides a visual representation of the overall HRV (28). In addition to the plot, analysis of the Poincaré ellipse provides additional parameters that can be used for an analysis of the RRI scatter plot: standard deviation of the minor axis (SD1), standard deviation of the major axis (SD2), SD1/SD2 ratio, and the ellipse area.
Respiration was derived from RRI data by leveraging the respiratory sinus arrhythmia (RSA). RSA represents HRV in synchrony with respiration, by which the RRI on an ECG is shortened during inspiration and prolonged during expiration (29). First, the RRIs were linearly interpolated to create a uniformly sampled time-series (fs = 4 Hz). This interpolated time-series data was then filtered using a Butterworth bandpass filter in the range of 0.2–0.8 Hz to isolate the frequency components relevant for respiration. Then, a peak detection algorithm was run on the bandpass-filtered signal to detect breaths. The inter-breath intervals (IBI) were then calculated (in ms) for each of the detected peaks/breaths. Finally, the IBIs were converted to respiration rate (in breaths per minute). The respiratory features used to create the pain classifier were calculated based on the instantaneous respiration rate data. These included a total of four time domain features (mean, min, max, standard deviation) in breaths/min.
After calculating all features (N = 46) for each epoch, the features were baseline normalized. This was done to reduce the confounding influence of interindividual variability on the classifier. This normalization process began by pairing each participant's BL epochs with all of their other epochs. The features were then subtracted between each of these BL/BL and BL/CPT epoch pairs, and the absolute values of the differences were taken. The resulting data that were used as classifier inputs therefore describe the magnitude of the difference between an epoch of data and a physiological baseline for a given participant.
Data modeling
To ensure that a pain classification approach was developed that could be used outside of controlled environments, two pain classification pipelines were generated: (1) laboratory grade classifier, which is more computationally intensive and intended to be used on higher-end computing equipment; and (2) field grade classifier leveraging only time-domain HRV features and intended to be used with current wearable sensors (Figure 1). RRIs were used for derivation of all features and initial model selection of the field grade classifier in an effort to mimic a real-world collection scenario from a smartwatch.
Training and test datasets were created dynamically using the Leave-One-Subject-Out (LOSO) cross-validation method. LOSO was utilized in evaluation to allow for better subject-to-subject variation in training while also limiting autocorrelation for a single subject. Next, a BL vs. CPT preprocessing and classification pipeline was developed utilizing Python's Scikit-learn (sklearn) library (30). The pipeline applied a standard scaler (i.e., subtract mean and divide by standard deviation) to all features as well as a principal component analysis (PCA) for dimensionality reduction. Finally, a logistic regression classifier was implemented to differentiate BL vs. CPT.
Data analysis and statistics
For each classifier developed, several classification metrics were calculated using the sklearn library including precision, recall, support, and F1 score. Precision is defined as the ratio of true positives to the sum of true and false positives. Recall is defined as the ratio of true positives to the sum of true positives and false negatives. The F1 score is the weighted harmonic mean of precision and recall with a maximum value of 1.0 and a minimum value of 0.0. Support is the number of occurrences of the given class in the overall dataset.
Results
The sociodemographic characteristics of the participants in the study are presented in Table 1. Participant ages ranged from 19 to 30, with a mean of 21.9 ± 2.4 (SD) years. The average duration of the CPT was 2.51 (0.80) min, with 29/41 participants completing the full 3-min duration. Among the 12 individuals who did not complete the CPT, the average duration was 1.34 (0.44) min.
Feature permutation importance
Box plots in Figure 2 show the feature importance values across iterations of the algorithm for all 41 participants. These values are used to compute the average feature importance and the corresponding standard deviations shown in the bar chart. The x-axis shows the impact that permuting a given feature had on the model's prediction score. The y-axis shows the different features in the relative importance order. The minimum, first quartile, median, third quartile, and a maximum of the feature importance values across different iterations of the algorithm are shown by each box.
![www.frontiersin.org](https://www.frontiersin.org/files/Articles/1044518/fpain-03-1044518-HTML-r1/image_m/fpain-03-1044518-g002.jpg)
Figure 2. Permutation importance utilized to estimate individual feature importance. Boxplots for each feature are plotted by importance level, with median shown as vertical lines, standard deviation bars, and outliers shown as small circles. LF, low frequency; HF, high frequency; VLF, very low frequency; VHF, very high frequency; P, power; Rel, relative; Abs, absolute; SD1, standard deviation of minor axis; SD2, standard deviation of major axis; RRI, R-R interval; RRIdiff, differences in successive RRI; RMSSD, root mean square of RRI; SDNN, standard deviation of RRI; SDSD, standard deviation of successive RRIdiff; RRI-20, number of RRIdiff greater than 20 ms; RRI-50, number of RRI greater than 50 ms; pRRI-20, ratio between RRI-20 and total RRI; pRRI-50, ratio between RRI-50 and total RRI.
HRV time domain features most heavily influenced the model F1 score. To further illustrate the importance of these features in classifying pain, Figures 3, 4 show boxplots to visualize differences in features for the BL and CPT (pain) conditions. The top four contributing HRV time domain features included the maximum HR, mean and max RRI and RMSSD. Figure 3 shows clear differences within these top features across the BL and CPT classes. Conversely, the lowest contributing HRV features included low frequency peak, the minimum respiration rate, Poincare ratio, and VLF frequency peak. Figure 4 shows little distinction within these lowest four features across the BL and CPT classes.
![www.frontiersin.org](https://www.frontiersin.org/files/Articles/1044518/fpain-03-1044518-HTML-r1/image_m/fpain-03-1044518-g003.jpg)
Figure 3. Baseline-normalized, HRV time domain features contributing most to the model included maximum HR, RMSSD, mean RRI, and max RRI. The data overlay on each boxplot represents the entire dataset (blue circles) used to generate the corresponding boxplot with medians shown in red and outliers shown as black circles.
![www.frontiersin.org](https://www.frontiersin.org/files/Articles/1044518/fpain-03-1044518-HTML-r1/image_m/fpain-03-1044518-g004.jpg)
Figure 4. Baseline-normalized, non-HRV time domain features contributing least to the model included low frequency (LF) peak, the minimum respiration rate, Poincare ratio, and very low frequency (VLF) peak. The data overlay on each boxplot represents the entire dataset (blue circles) used to generate the corresponding boxplot with medians shown in red and outliers shown as black circles.
Laboratory/clinical classifier
The computationally intensive, laboratory/clinical pain classifier was generated utilizing all available features (N = 46, listed in Figure 2). This laboratory-grade approach classified pain at an F1 level of 81.9% (Table 2).
Field/ambulatory classifier
Since HRV time-domain features had the highest influence on the model, the same preprocessing and classification pipeline described above was utilized to create a field grade classification model with only the HRV time-domain features (n = 18). This algorithm was capable of classifying pain at an F1 level of 79.4% (Table 3). Finding the optimal balance between model complexity and performance ensures both that the model can run efficiently when deployed and that the potential for overfitting is minimized.
![www.frontiersin.org](https://www.frontiersin.org/files/Articles/1044518/fpain-03-1044518-HTML-r1/image_m/fpain-03-1044518-t003.jpg)
Table 3. Sklearn classification report for field grade pain algorithm with HRV time domain features.
Discussion
The current study demonstrated the ability to create a series of algorithms capable of automatically detecting pain in controlled and natural environments. Two algorithms were developed, one that is more computationally intensive with a higher number of features and an F1 score of 81.9%, as well as a less computationally intensive classifier more suited for field settings with fewer features and an F1 score of 79.4%. Such approaches could be leveraged to quantify acute pain in the presence of RRI data from a range of sources, from ECG data in clinical settings to data derived from PPG in consumer wearables. The use of the CPT allowed for controlled, replicable pain induction promotes a moderately painful but rapidly reversible stimulus, as widely reported via self-report (31) or behavioral change (32). Given the high prevalence of pain worldwide, which reaches up to 25% of the population in some countries (33), and the lack of objective methods to classify pain, this approach has the potential to identify and better mitigate individual pain.
A number of previous groups reported physiology-based approaches to pain classification, but to date such approaches require the use of laboratory equipment or controlled settings (34), and have leveraged modest sample sizes. For instance, one group leveraged fMRI data and support vector machines to develop a pain algorithm with 81% accuracy in a group of 24 subjects (35). Another group reported an electroencephalography (EEG)-based pain algorithm by analyzing 64 channels of EEG data with an accuracy of 80% in a group of 29 subjects (36). Multimodal approaches integrating cardiovascular, respiratory, electrodermal, and electromyography sensors were able to classify acute heat pain at 76% accuracy in a group of 30 subjects but required significant experimental setup and was not realistic for field environments (37). Previous ECG-based methods developed for postoperative patients have reported accuracy levels from 62% to 84% in a group of 25 subjects, but were targeted only to clinical environments (38). Deep-learning approaches are expected to improve on this accuracy, at the cost of significant algorithm complexity and reduced transparency (39). Remarkably, the current study presented an 79.4% accurate classifier of acute pain leveraging only HRV features from sample size approximately 25% larger than previous work, allowing for field grade classification in natural environments.
Various approaches to HRV quantification have been used in the past to classify pain. A systematic review argued for the use of frequency domain measures, including increased low frequency (sympathetic) and decreased high frequency (vagal) HRV for monitoring acute pain (15). The authors recommended assessing individual differences and the impact of alterations on pain induction tasks to HRV. An additional systematic review focused on changes to HRV under chronic pain (40). Leveraging both time and frequency domain HRV metrics, the authors identified a moderate to large effect of decreased high-frequency HRV in chronic pain, indicative of decreased parasympathetic activity. Our data suggests that acute thermal pain induction, using cold stimuli can be assessed with high accuracy in field settings using time domain HRV. As various HRV changes have also been noted following psychological stress (41), movement (42), and mental workload (43), understanding context is critical to the successful use of limited sensor approaches to quantifying human status.
The current effort achieved comparable accuracy to previous approaches by leveraging RRI data which is becoming common in emerging wearable fitness devices. Such data can be obtained via monitoring changes to HR from optical sources including PPG, ECG recordings, or radio frequency at various body sites including the chest, wrist, or earlobe (44). Increasingly, the ability to gather cardiovascular data from non-traditional sources, such as cameras or smartphones, will allow for more persistent and accurate tracking. For instance, independent component analysis of visual spectrum imagery from the face, followed by Fast Fourier Transform within a biologically relevant frequency band was capable of extracting cardiac pulse with high accuracy from multiple subjects simultaneously in the presence of motion artifacts, differences in skin coloration, and illumination (45). In addition, digital phenotypes (46) developed using sensors embedded in smartphones and machine learning have shown the potential to extract cardiovascular variables without the need for external monitoring devices (47).
The average duration of the CPT was similar to previous studies (48), but the percentage of participants that did not complete the CPT was approximately double previously reported percentages (49). Duration of CPT has been used previously as a proxy for pain tolerance (32). In our study, participants found the CPT highly painful, unpleasant, difficult to complete, and stressful (49). Since pain experience is associated with significant individual differences, various demographic factors including age and ethnic group, along with genetic and psychosocial factors could contribute to the individual differences in pain toleration observed in this study (50). Additionally, physiological differences were seen in baseline-normalized responses to pain-induction tasks, reflected by the outlier datapoints observed in Figures 3, 4, and could be associated with underlying cardiovascular health (51), or pain tolerance (52). Sex-related influences on pain and analgesia have also been previously reported (53). However, such largely self-reported differences are not associated with discernible differences between sexes in cardiovascular activity under pain (16). Thus, although the sample population was majority male, the algorithms reported in this manuscript could be expected to perform well in both sexes. However, additional replication, expansion, and increasing the diversity of the underlying dataset is needed prior to generalizing to a larger cohort.
In summary, a high accuracy classification of acute pain using HRV time domain features was developed with potential to be implemented with existing and emerging tools in natural environments. Current work is focused on altering the binary output to reporting pain on a scale to more closely model existing pain reporting scales. Current work is also focused on leveraging this approach to quantify and mitigate pain in fighter pilots, who are at high risk for experiencing chronic pain in the upper back and neck due to exposure to high G-forces while flying (54). A mobile application that implements the automated pain classification algorithm along with flight approved, wireless wearable sensors are being leveraged to detect and mitigate pain.
Data availability statement
The raw data supporting the conclusions of this article will be made available by the authors, without undue reservation.
Ethics statement
The studies involving human participants were reviewed and approved by All methods involving human subjects were approved by an independent Institutional Review Board (Copernicus Group, Durham, NC). The patients/participants provided their written informed consent to participate in this study.
Author contributions
BW and MC designed the experiments. BW, RK, KW and JH analyzed the data. BW, RK, KW, EM, and JH wrote the manuscript. All authors contributed to the article and approved the submitted version.
Funding
This work was supported by grants from the Office of Naval Research (N00014-12-G-0427) and the United States Air Force (FA864920P0199).
Conflict of interest
BW, RK, KW, EM, and JH were employed by Design Interactive, Inc. JH was employed by Arcanium Software, LLC. The remaining author declares that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
Publisher's note
All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.
References
1. Finley CR, Chan DS, Garrison S, Korownyk C, Kolber MR, Campbell S, et al. What are the most common conditions in primary care? Systematic review. Can Fam Physician. (2018) 64(11):832–40.30429181
2. Raja SN, Carr DB, Cohen M, Finnerup NB, Flor H, Gibson S, et al. The revised international association for the study of pain definition of pain: concepts, challenges, and compromises. Pain. (2020) 161(9):1976–82. doi: 10.1097/j.pain.0000000000001939
3. Gaskin DJ, Richard P. The economic costs of pain in the United States. J Pain. (2012) 13(8):715–24. doi: 10.1016/j.jpain.2012.03.009
4. Slavova S, Rock P, Bush HM, Quesinberry D, Walsh SL. Signal of increased opioid overdose during COVID-19 from emergency medical services data. Drug Alcohol Depend. (2020) 214:108176. doi: 10.1016/j.drugalcdep.2020.108176
5. Almeida TF, Roizenblatt S, Tufik S. Afferent pain pathways: a neuroanatomical review. Brain Res. (2004) 1000(1–2):40–56. doi: 10.1016/j.brainres.2003.10.073
6. Treede R-D, Rief W, Barke A, Aziz Q, Bennett MI, Benoliel R, et al. Chronic pain as a symptom or a disease: the iasp classification of chronic pain for the international classification of diseases (icd-11). Pain. (2019) 160(1):19–27. doi: 10.1097/j.pain.0000000000001384
7. Krebs EE, Carey TS, Weinberger M. Accuracy of the pain numeric rating scale as a screening test in primary care. J Gen Intern Med. (2007) 22(10):1453–8. doi: 10.1007/s11606-007-0321-2
8. Lee J, Mawla I, Kim J, Loggia ML, Ortiz A, Jung C, et al. Machine learning-based prediction of clinical pain using multimodal neuroimaging and autonomic metrics. Pain. (2019) 160(3):550. doi: 10.1097/j.pain.0000000000001417
9. Smith L, Westrick R, Sauers S, Cooper A, Scofield D, Claro P, et al. Underreporting of musculoskeletal injuries in the us army: findings from an infantry brigade combat team survey study. Sports Health. (2016) 8(6):507–13. doi: 10.1177/1941738116670873
10. Young SR, Azari S, Becker WC, Edelman EJ, Liebschutz JM, Roy P, et al. Common and challenging behaviors among individuals on long-term opioid therapy. J Addict Med. (2020) 14(4):305–10. doi: 10.1097/ADM.0000000000000587
12. Salomons TV, Iannetti GD, Liang M, Wood JN. The “pain matrix” in pain-free individuals. JAMA Neurol. (2016) 73(6):755–6. doi: 10.1001/jamaneurol.2016.0653
13. Wager TD, Atlas LY, Lindquist MA, Roy M, Woo CW, Kross E. An fmri-based neurologic signature of physical pain. N Engl J Med. (2013) 368(15):1388–97. doi: 10.1056/NEJMoa1204471
14. Cowen R, Stasiowska MK, Laycock H, Bantel C. Assessing pain objectively: the use of physiological markers. Anaesthesia. (2015) 70(7):828–47. doi: 10.1111/anae.13018
15. Koenig J, Jarczok MN, Ellis RJ, Hillecke TK, Thayer JF. Heart rate variability and experimentally induced pain in healthy adults: a systematic review. Eur J Pain. (2014) 18(3):301–14. doi: 10.1002/j.1532-2149.2013.00379.x
16. Lowery D, Fillingim RB, Wright RA. Sex differences and incentive effects on perceptual and cardiovascular responses to cold pressor pain. Psychosom Med. (2003) 65(2):284–91. doi: 10.1097/01.psy.0000033127.11561.78
17. Streff A, Kuehl LK, Michaux G, Anton F. Differential physiological effects during tonic painful hand immersion tests using hot and ice water. Eur J Pain. (2010) 14(3):266–72. doi: 10.1016/j.ejpain.2009.05.011
18. Jafari H, Courtois I, Van den Bergh O, Vlaeyen JWS, Van Diest I. Pain and respiration: a systematic review. Pain. (2017) 158(6):995–1006. doi: 10.1097/j.pain.0000000000000865
19. Ledowski T, Bromilow J, Wu J, Paech MJ, Storm H, Schug SA. The assessment of postoperative pain by monitoring skin conductance: results of a prospective study. Anaesthesia. (2007) 62(10):989–93. doi: 10.1111/j.1365-2044.2007.05191.x
20. Loggia ML, Juneau M, Bushnell MC. Autonomic responses to heat pain: heart rate, skin conductance, and their relation to verbal ratings and stimulus intensity. Pain. (2011) 152(3):592–8. doi: 10.1016/j.pain.2010.11.032
21. Anesthesiologists ASo. Guidelines for patient care in anesthesiology. ASA house of delegates (2011).
22. Mitchell LA, MacDonald RA, Brodie EE. Temperature and the cold pressor test. J Pain. (2004) 5(4):233–7. doi: 10.1016/j.jpain.2004.03.004
23. Schneider S, Junghaenel DU, Ono M, Stone AA. Temporal dynamics of pain: an application of regime-switching models to ecological momentary assessments in patients with rheumatic diseases. Pain. (2018) 159(7):1346–58. doi: 10.1097/j.pain.0000000000001215
24. Caridade Gomes PM. Development of an open-source python toolbox for heart rate variability (Hrv): Hochschule für angewandte Wissenschaften Hamburg (2019).
25. Jaffe RS, Fung DL, Behrman KH. Optimal frequency ranges for extracting information on autonomic activity from the heart rate spectrogram. J Autonom Nervous Syst. (1993) 46:37–46. doi: 10.1016/0165-1838(94)90142-2
26. Billman GE. Heart rate variability - a historical perspective. Front Physiol. (2011) 2:86. doi: 10.3389/fphys.2011.00086
27. Shaffer F, Ginsberg JP. An overview of heart rate variability metrics and norms. Front Public Health. (2017) 5:258. doi: 10.3389/fpubh.2017.00258
28. Tayel MB, AlSaba EI. Poincaré plot for heart rate variability. Int J Biomed Biol Eng. (2015) 9(9):708–11.
29. Yasuma F, Hayano J-I. Respiratory Sinus arrhythmia: why does the heartbeat synchronize with respiratory rhythm? Chest. (2004) 125(2):683–90. doi: 10.1378/chest.125.2.683
30. Pedregosa F, Varoquaux G, Gramfort A, Michel V, Thirion B, Grisel O, et al. Scikit-Learn: machine learning in python. J Mach Learn Res. (2011) 12:2825–30. doi: 10.48550/arXiv.1201.0490
31. Koenig J, Jarczok MN, Ellis RJ, Bach C, Thayer JF, Hillecke TK. Two-week test–retest stability of the cold pressor task procedure at two different temperatures as a measure of pain threshold and tolerance. Pain Pract. (2014) 14(3):E126–E35. doi: 10.1111/papr.12142
32. McIntyre MH, Team AR, Kless A, Hein P, Field M, Tung JY. Validity of the cold pressor test and pain sensitivity questionnaire via online self-administration. PLoS One. (2020) 15(4):e0231697. doi: 10.1371/journal.pone.0231697
33. Jackson TP, Stabile VS, McQueen KK. The global burden of chronic pain. ASA Monitor. (2014) 78(6):24–7.
34. Werner P, Lopez-Martinez D, Walter S, Al-Hamadi A, Gruss S, Picard R. Automatic recognition methods supporting pain assessment: a survey. IEEE Trans Affect Comput. (2019) 13(1):530–2. doi: 10.1109/TAFFC.2019.2946774
35. Brown JE, Chatterjee N, Younger J, Mackey S. Towards a physiology-based measure of pain: patterns of human brain activity distinguish painful from non-painful thermal stimulation. PLoS ONE. (2011) 6(9):e24124. doi: 10.1371/journal.pone.0024124
36. Huang G, Xiao P, Hung YS, Iannetti GD, Zhang ZG, Hu L. A novel approach to predict subjective pain perception from single-trial Laser-evoked potentials. Neuroimage. (2013) 81:283–93. doi: 10.1016/j.neuroimage.2013.05.017
37. Jiang M, Mieronkoski R, Syrjala E, Anzanpour A, Terava V, Rahmani AM, et al. Acute pain intensity monitoring with the classification of multiple physiological parameters. J Clin Monit Comput. (2019) 33(3):493–507. doi: 10.1007/s10877-018-0174-8
38. Naeini EK, Subramanian A, Calderon M-D, Zheng K, Dutt N, Liljeberg P, et al. Pain recognition with electrocardiographic features in postoperative patients: method validation study. J Med Internet Res. (2021) 23(5):e25079. doi: 10.2196/25079
39. Lim H, Kim B, Noh G-J, Yoo SK. A deep neural network-based pain classifier using a photoplethysmography signal. Sensors. (2019) 19(2):384. doi: 10.3390/s19020384
40. Tracy LM, Ioannou L, Baker KS, Gibson SJ, Georgiou-Karistianis N, Giummarra MJ. Meta-Analytic evidence for decreased heart rate variability in chronic pain implicating parasympathetic nervous system dysregulation. Pain. (2016) 157(1):7–29. doi: 10.1097/j.pain.0000000000000360
41. Taelman J, Vandeput S, Spaepen A, Huffel SV. Influence of mental stress on heart rate and heart rate variability. In: 4th European conference of the international federation for medical and biological engineering; Springer (2009).
42. Tonello L, Rodrigues FB, Souza JW, Campbell CS, Leicht AS, Boullosa DA. The role of physical activity and heart rate variability for the control of work related stress. Front Physiol. (2014) 5:67. doi: 10.3389/fphys.2014.00067
43. Jorna PG. Spectral analysis of heart rate and psychological state: a review of its validity as a workload index. Biol Psychol. (1992) 34(2-3):237–57. doi: 10.1016/0301-0511(92)90017-O
44. Dian FJ, Vahidnia R, Rahmati A. Wearables and the internet of things (iot), applications, opportunities, and challenges: a survey. IEEE Access. (2020) 8:69200–11. doi: 10.1109/ACCESS.2020.2986329
45. Poh M-Z, McDuff DJ, Non-Contact PR. Automated cardiac pulse measurements using video imaging and blind source separation. Opt Express. (2010) 18(10):10762–74. doi: 10.1364/OE.18.010762
46. Jain SH, Powers BW, Hawkins JB, Brownstein JS. The digital phenotype. Nat Biotechnol. (2015) 33(5):462–3. doi: 10.1038/nbt.3223
47. Owens AP. The role of heart rate variability in the future of remote digital biomarkers. Front Neurosci. (2020) 14:582145. doi: 10.3389/fnins.2020.582145
48. Schwabe L, Haddad L, Schachinger H. Hpa axis activation by a socially evaluated cold-pressor test. Psychoneuroendocrinology. (2008) 33(6):890–5. doi: 10.1016/j.psyneuen.2008.03.001
49. Schwabe L, Schachinger H. Ten years of research with the socially evaluated cold pressor test: data from the past and guidelines for the future. Psychoneuroendocrinology. (2018) 92:155–61. doi: 10.1016/j.psyneuen.2018.03.010
50. Fillingim RB. Individual differences in pain: understanding the mosaic that makes pain personal. Pain. (2017) 158(Suppl. 1):S11. doi: 10.1097/j.pain.0000000000000775
51. Umeda M, Okifuji A. Prediction of pain responses to subsequent cold pressor test via baseline heart rate variability in healthy adults. Eur J Pain. (2022) 26(8):1811–20. doi: 10.1002/ejp.2007
52. Walsh NE, Schoenfeld L, Ramamurthy S, Hoffman J. Normative model for cold pressor test. Am J Phys Med Rehabil. (1989) 68(1):6–11. doi: 10.1097/00002060-198902000-00003
53. Fillingim RB, King CD, Ribeiro-Dasilva MC, Rahim-Williams B, Riley JL. Sex, gender, and pain: a review of recent clinical and experimental findings. J Pain. (2009) 10(5):447–85. doi: 10.1016/j.jpain.2008.12.001
Keywords: pain, classification, machine learning, heart rate variability, wearable devices
Citation: Winslow BD, Kwasinski R, Whirlow K, Mills E, Hullfish J and Carroll M (2022) Automatic detection of pain using machine learning. Front. Pain Res. 3:1044518. doi: 10.3389/fpain.2022.1044518
Received: 14 September 2022; Accepted: 24 October 2022;
Published: 10 November 2022.
Edited by:
Erying Zhao, Harbin Medical University, ChinaReviewed by:
Scott Holmes, Boston Children's Hospital and Harvard Medical School, United StatesWeiwei Peng, Shenzhen University, China
© 2022 Winslow, Kwasinski, Whirlow, Mills, Hullfish and Carroll. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.
*Correspondence: Brent D. Winslow brent.winslow@designinteractive.net
Specialty Section: This article was submitted to Pain Research Methods, a section of the journal Frontiers in Pain Research