Skip to main content
NIHPA Author Manuscripts logoLink to NIHPA Author Manuscripts
. Author manuscript; available in PMC: 2021 Jul 1.
Published in final edited form as: Annu Int Conf IEEE Eng Med Biol Soc. 2020 Jul;2020:4534–4538. doi: 10.1109/EMBC44109.2020.9176453

Joint Distribution and Transitions of Pain and Activity in Critically Ill Patients

Florenc Demrozi 1, Graziano Pravadelli 2, Patrick J Tighe 3, Azra Bihorac 4, Parisa Rashidi 5
PMCID: PMC7587040  NIHMSID: NIHMS1637140  PMID: 33019002

Abstract

Pain and physical function are both essential indices of recovery in critically ill patients in the Intensive Care Units (ICU). Simultaneous monitoring of pain intensity and patient activity can be important for determining which analgesic interventions can optimize mobility and function, while minimizing opioid harm. Nonetheless, so far, our knowledge of the relation between pain and activity has been limited to manual and sporadic activity assessments. In recent years, wearable devices equipped with 3-axis accelerometers have been used in many domains to provide a continuous and automated measure of mobility and physical activity. In this study, we collected activity intensity data from 57 ICU patients, using the Actigraph GT3X device. We also collected relevant clinical information, including nurse assessments of pain intensity, recorded every 1–4 hours. Our results show the joint distribution and state transition of joint activity and pain states in critically ill patients.

I. Introduction

After an Intensive Care Unit (ICU) stay, almost 50% of patients described the perceived level of pain, at rest and during commonly performed procedures, between moderate and severe [1], [2], [3]. Typically, opioids and other pain-relief medications are prescribed to alleviate their pain and to maximize patient comfort. Nonetheless, a unilateral approach based on minimizing pain is increasingly seen as an insufficient for optimizing long-term patient outcomes. For example, early mobility has been shown to be associated with improved patient outcomes such as shorter length of stay. Existing studies that examine the relation between pain and activity, typically rely on nurse-assessed activity scales, e.g. the PUMP-PLUS scale or other mobility assessment scales [4], [5]. Such information, while helpful, are assessed sporadically and can be subjective, while not taking into account activity information in between nurse visits. Furthermore, mobility assessment is not part of routine clinical care in all ICUs, further complicating investigation of activity in critically ill patients. In recent years, wearable devices equipped with accelerometer sensors have been used in many domains to measure activity intensity in a more objective and continuous manner [6], [7], [8]. Several previous studies have used accelerometers in the ICU to assess activity, however they have not been used for examining the relation between pain and activity. In this prospective observational study, we examined the relation between granular activity data and pain for the first time. We collected activity information of 57 patients using the Actigraph GTX3X device. Pain and other relevant clinical information were also collected from Electronic Medical Record (EMR) data.

II. Background

After an ICU stay, almost 50% of patients described the perceived level of pain, at rest and during commonly performed procedures, between moderate and severe [1], [2], [3]. Currently, clinical pain decisions are generally oriented towards minimizing pain intensity. An overly narrow emphasis on pain intensity can lead to poor functional outcomes and may contribute to the ongoing opioid crisis [9]. Recent efforts including ERAS (Enhanced Recovery After Surgery) and function-oriented pain assessments highlight this need by moving beyond simple indices of pain intensity [10]. Simultaneous monitoring of pain intensity and function will allow clinicians to make decisions to optimize function that is impaired by pain, rather than just making decisions based on pain intensity alone. A common sensor for recording motor activities is the triaxial accelerometer. A triaxial accelerometer is a sensor that estimates the acceleration along the x, y, and z axes and from which velocity and displacement can also be determined. Accelerometers, nowadays, are used as motion detectors, body-position, and posture sensing, and generally in the human activity recognition context [11], [12]

III. Methodology

In this study, we examined the distribution and state transition of joint pain and activity states in critically ill patients. We recruited 57 patients, and we measured their activity intensity using wearable Actigraph GTX3X device. The following sections provide details of subject recruitment, data preprocessing, and our association analysis.

A. Subject Recruitment

The subjects were recruited from the pool of critically ill patients admitted to the Shands Hospital at University of Florida. The study was approved under IRB 201400546. All patients provided written informed consent. Pain intensity was assessed using the Defense and Veterans Pain Rating Scale (DVPRS) [13], where each patient was asked to assess their pain intensity using a 0–10 scale. DVPRS was used as part of standard clinical practice and provides additional visual and contextual cues related to pain intensity. In the ICU, DVPRS is typically administrated every hour as part of clinical routine care. The frequency of pain assessment can change depending on patient’s condition. For example, sleeping patients might not be disturbed, or if patient has received medication to manage severe pain, pain might be assessed more frequently to observe also the medication effect. Finally, relevant clinical information such as length of stay were included.

We recruited 57 patients in the surgical ICU at the quaternary academic University of Florida Health Hospital. For each patient, activity intensity information was collected using the Actigraph GTX3X device, which is a lightweight device (< 40 g), equipped with a 3-axial accelerometer sensor. Up to three Actigraph GTX3X devices were placed on the wrist, arm, and ankle. At patient request, or depending on the underlying medical conditions, injuries, or discomfort, one or two Actigraph devices were removed. In this study, we examined data from wrist placement. We initially recruited 91 patients. Due to Actigraph removal or unexpected ICU transfers, the final dataset included 57 patients who had complete wrist data. Table I shows data representation of the activity information. Columns one to three show the participant ID, date (mm/dd/year) and time (hh : min : sec.ms). Columns four to six show the activity count values (Ax, Ay, Az) for the x, y, and z-axes of the Actigraph. Finally, column seven shows the vector magnitude obtained by applying Equation (1).

Vm=Ax2+Ay2+Az2 (1)

Table I.

Example of motor activity data captured from a tri-axial accelerometer.

Subject ID Date Time Axis x Ax Axis y Ay Axis z Az Magnitude Vm
31 02/29/2017 14:31:23.100 0 0 0 0
31 02/29/2017 14:32:23.100 10 23 42 49
31 02/29/2017 14:33:23.100 70 59 82 123

B. Data Preprocessing

To prepare our dataset for analysis, we performed several preprocessing tasks. The first step included removing incomplete observation windows, in which either pain or activity information are missing. In this case, this step will dismiss activity data that is not within an hour of any pain assessment. At the end of this processing step, only intervals containing joint pain and activity information will be preserved (± 1 hour). This will allow us to construct joint pain and activity states required for our analysis.

1). Discrete Data Binning:

In the literature, numerical pain scores are sometimes converted to the binned descriptive scores for ease of analysis (e.g. 0–2 = no pain, 3–6 = moderate pain, and 7–10 = severe pain) c[14]. This will facilitate understanding the transitions between different activity/pain states. For example, this will allow as to determine if most patients transition from a 〈lowactivity, severepain〉 state (non-ideal) to 〈highactivity, mildpain〉 state (ideal). Such information could have implications in terms of understanding patient pain trajectory and could be used for adjusting the physical therapy and other interventions. In this study, we applied four discrete binning approaches for pain intensity to perform sensitivity analysis of our methodology (Table II). The same discrete data binning approach was performed on activity data. Since there is not a well-defined activity threshold for critically ill patients, we took a data-driven approach. Table II shows our binning schemas based on (a) Median (b) first quartile (Q1), and (c) third quartile (Q3), resulting in:

  • AE: two levels based on the median of activity vector magnitude value;

  • AF: three levels based on the first quartile (Q1), median, and third (Q3) quartile of activity vector magnitude value.

Table II.

The Defense and Veterans Pain Rating Scale (DVPRS) scale and the discrete data binning intervals. Pn refers to a specific level for the given binned schema.

Level Descriptive Category (1) Binning Schema PA (2) Binning Schema PB (3) Binning Schema PC (4) Binning Schema PD
0 No Pain P1 P1 P1 P1
1 Mild P1 P1 P2 P2
2 Mild P1 P1 P2 P2
3 Mild P1 P1 P2 P3
4 Mild P1 P1 P2 P3
5 Moderate P2 P2 P3 P4
6 Moderate P2 P2 P3 P4
7 Severe P2 P3 P4 P5
8 Severe P2 P3 P4 P5
9 Severe P2 P3 P4 P6
10 Severe P2 P3 P4 P6
Nr. Categories 2 3 4 6

C. The Association between Pain and Activity

To examine the association between pain and activity, initially, we considered the relationship between 2-levels activity (AE) and pain (PA) data:

  1. State 1: 〈Mild Pain, Low Activity〉: Resting, sedation, reducing physical activity to avoid pain,

  2. State 2: 〈Mild Pain, High Activity〉: Functional, recovering,

  3. State 3: 〈Severe Pain, Low Activity〉: Critical,

  4. State 4: 〈Severe Pain, High Activity〉: Agitated, pain due to physical activity (e.g. physical therapy).

The state pairs can be at higher granularity using discrete binning schema with more levels. For lack of space, in our analysis we will show only the association between between 2-levels activity (AE) and pain (PA) data. Examples of both matrices can be seen in Figure 1 and Figure 2.

Fig. 1.

Fig. 1.

Example State Distribution Matrix (SDM) shows the relative distribution of 〈Pain, Activity〉 states.

Fig. 2.

Fig. 2.

Example State Transition Matrix (STM) shows the relative probability of transition from state 〈Pi, Aj〉 to state 〈Pk, Al〉.

State Distribution Matrix (SDM).

This matrix shows what percentage of time is spent in each of these states for all patients. In particular, for pain level Pi and activity level Aj, this shows what percentage of time is spent in state 〈Pi, Aj〉, when normalized for all states.

State Transition Matrix (STM).

This matrix shows the probability of transition from state 〈Pi, Aj〉 to state 〈Pk, Al〉, when normalized for all transitions. Transition are formed when a new pain assessment is available.

IV. Results

This section will discuss the relationship between perceived pain and the amount of activity.

A. Dataset

Starting from the dataset presented in Section III-A, since the patient’s data were sampled at different frequency, we up-sampled all the data to windows of 60 seconds (0.016 Hz). In total, the dataset presents approximately a total of 4000 hours of recorded data for a total of 240000 samples. Table IV shows cohort characteristics of recruited subjects, the majority of the patients (61%) were enrolled in the study for less than four days and the time period between two consecutive pain assessments ranged from 10 minutes to 12 hours, with a median of 3 hours. Each pain sample is associated with the previous time window, of 1 hour, of activity data. Furthermore, the discharge outcomes are categorized as discharged to home and still hospitalized.

Table IV.

Cohort characteristics.

All Participants (N=57)
Max Age 95
Min Age 21
Age(Std) 63.5 (17.3)
Under 63 (%) 21 (37%)
Over 63 (%) 36 (63%)
Male (%) 36 (63%)
Female (%) 21 (37%)
Caucasian (%) 51 (89%)
Afro-American (%) 4 (7%)
Other (%) 2 (4%)
Hispanic (%) 1 (2%)
Not-Hispanic (%) 56 (98%)

In particular, in 24 (42%) cases, the subjects were discharged from the hospital and sent home or to home care. In the remaining 33 (58%) cases, the subjects continued hospitalization in other wards or hospitals. Throughout the dataset, there are time windows of variable length presenting zero motor activity. On average, 5.8% of the data could correspond to time windows during which the subject did not wear the device. The non-wear time was considered as the time interval >2 hours with zero activity.

B. Experimental Results

We constructed the SDM and STM matrices with and without stratification according to gender, patient outcome (home discharge, other outcomes), and age (⩽ 63, > 63).

1). No Stratification:

Figure 3 and Figure 4 shows the resulting SDM and STM matrices without any stratification for all the patients. In particular, Figure 3 presents the results for two levels of pain (PA) and activity (AE). Figure 4 presents the results for three levels of pain (PB) and activity (AE). 31% of subjects show an association between mild pain levels and low activity levels. 39% of subjects show an association between mild pain levels and high activity levels. 14% of subjects show an association between severe pain levels and low activity levels. About 16% of subjects show an association between severe pain levels and high activity levels. Furthermore, based on results showed from the STM we make the following observation:

  • The values on the diagonal are relatively larger than the values of the remaining cells in the respective rows. Thus, the probability of transitioning from one state to a different state is lower than the probability of remaining in the same state;

  • The values on the lower triangular of the matrix show relatively higher values than those on the upper triangular. The probability of transitioning from a state of 〈highactivity, severepain〉 to a state of 〈lowactivity, lowpain〉 is greater than the probability of transitioning from a 〈lowactivity, lowpain〉 to a state of 〈highactivity, severepain〉, 7% overall compared to 5% once marginal probablity is computed over all such states.

  • The probability of transitioning from a mild pain state to a severe pain state is lower than the probability of transitioning from a low activity state to a high activity state, 7% overall compared to 14,5% once marginal probablity is computed over all such states;

  • The probability of transitioning from a severe pain state to a mild pain state is higher than that of transitioning from a high activity state to a low activity state, 16,75% overall compared to 12,25% once marginal probablity is computed over all such states;

  • The probability of transitioning from a severe pain state to a mild pain state is higher than that of transitioning from a mild pain state to a severe pain state, 16,75% overall compared to 8,25% once marginal probablity is computed over all such states.

Fig. 3.

Fig. 3.

Results for all patients without stratification, SDM and STM on two levels of pain and activity.

Fig. 4.

Fig. 4.

Results for all patients without stratification, SDM and STM on three levels of pain and two levels of activity.

2). Gender Based Results:

Figure 5 and Figure 6 show the result when stratified by gender. Figure 5 shows the results taking into account only 21 female subjects among the overall 57 subjects of the ICU dataset. Figure 6 shows the results of taking into account the remaining 36 male subjects. For both females and males, the SDM shows that the state distribution probability is almost the same. In particular, both low and severe pain is related to high activity. Furthermore, the STM upper triangle (Figure 5) related to the female group shows that the probability of transitioning from a mild pain state to a severe pain state is lower compared to the case of male subjects (Figure 6), 7,25% overall compared to 8,25%.

Fig. 5.

Fig. 5.

SDM and STM on two levels of pain and activity differentiating by gender, 21 female patients.

Fig. 6.

Fig. 6.

SDM and STM on two levels of pain and activity differentiating by gender, 36 male patients.

3). Outcome and Age based results:

Finally, Figure 7, Figure 8, Figure 9, and Figure 10 show the SDM and STM matrices results stratified by discharge outcomes and age. Also, in these tests, we see that both high and mild pain levels are associated with a high activity level. This relationship (42% / 16%) is mainly observed in subjects over the age of 63. Furthermore, this group shows a lower probability of remaining in a state of severe pain (49%) than that (60%) shown by subjects under the age of 63. In the same way, we observe that the subjects discharged from the hospital, during the period of hospitalizations, show a higher probability of remaining in the same state of severe pain 56%) than that shown by patients who remained hospitalized (52%) even after data collection.

Fig. 7.

Fig. 7.

Results obtained differentiating by outcome, 24 subjects discharged to home care.

Fig. 8.

Fig. 8.

Results obtained differentiating by outcome, 33 subjects who continued hospital treatments.

Fig. 9.

Fig. 9.

Results obtained differentiating by age, 21 patients older than 63 years.

Fig. 10.

Fig. 10.

Results obtained differentiating by age, 36 patients younger than 63 years.

V. Discussion

In this study, we examined the relation between sates formed from granular activity and pain data, and we also examined the transition amongst such states. Our results show an association between mild pain levels and high activity levels for majority of patients (39%). Nonetheless, the remaining patients exhibit either severe pain or low activity levels, which shows the need for joint optimization of pain management routines and early mobilization of patients. The observed patterns deserve additional analyses and exploration to determine the nature of the observed correlations, including under the context of additional clinical and patient-oriented outcomes. In our future studies, we plan to examine these pain/activity state transitions in temporal manner, over the course of patient hospitalization.

Table III.

Discrete data binning of activity levels. For sensitivity analysis, we will use two different binning schemas.

Binning Schema (1) Activity Category AE Description
ValueMedian A1 Low
Value > Median A2 High
Binning Schema (2) Activity Category AF Description
ValueQ1 A1 Low
Q1 < ValueQ3 A2 Average
Value > Q3 A3 High

VI. ACKNOWLEDGMENT

AB and PR were supported by R01 GM110240 from the NIGMS, and by the National Institute of Biomedical Imaging and Bioengineering (grant R21EB027344–01). PR was supported by CAREER award, NSF-IIS 1750192, from the National Science Foundation (NSF), Division of Information and Intelligent Systems (IIS). PTJ and PR were supported by R01GM114290 from the NIGMS.

Contributor Information

Florenc Demrozi, Computer Science Department, Univeristy of Verona, Italy.

Graziano Pravadelli, Computer Science Department, Univeristy of Verona, Italy.

Patrick J Tighe, Department of Anesthesiology, College of Medicine, University of Florida, Gainesville, FL, USA.

Azra Bihorac, Department of Nephrology, College of Medicine, University of Florida, Gainesville, FL, USA.

Parisa Rashidi, Department of Biomedical Engineering, University of Florida, Gainesville, FL, USA.

References

  • [1].Chanques G, Sebbane M, Barbotte E, Viel E, Eledjam J-J, and Jaber S, “A prospective study of pain at rest: incidence and characteristics of an unrecognized symptom in surgical and trauma versus medical intensive care unit patients,” Anesthesiology: The Journal of the American Society of Anesthesiologists, vol. 107, no. 5, pp. 858–860, 2007. [DOI] [PubMed] [Google Scholar]
  • [2].Stanik-Hutt JA, Soeken KL, Belcher AE, Fontaine DK et al. , “Pain experiences of traumatically injured patients in a critical care setting,” American Journal of Critical Care, vol. 10, no. 4, p. 252, 2001. [PubMed] [Google Scholar]
  • [3].Puntillo KA, Wild LR, Morris AB, Stanik-Hutt J, Thompson CL, and White C, “Practices and predictors of analgesic interventions for adults undergoing painful procedures,” American journal of critical care, vol. 11, no. 5, pp. 415–429, 2002. [PubMed] [Google Scholar]
  • [4].Titsworth WL, Hester J, Correia T, Reed R, Guin P, Archibald L, Layon AJ, and Mocco J, “The effect of increased mobility on morbidity in the neurointensive care unit,” Journal of neurosurgery, vol. 116, no. 6, pp. 1379–1388, 2012. [DOI] [PubMed] [Google Scholar]
  • [5].Malheiro L, Gomes A, Barbosa P, Santos L, and Sarmento A, “Infectious complications of intrathecal drug administration systems for spasticity and chronic pain: 145 patients from a tertiary care center,” Neuromodulation: Technology at the Neural Interface, vol. 18, no. 5, pp. 421–427, 2015. [DOI] [PubMed] [Google Scholar]
  • [6].Tipping CJ, Bailey MJ, Bellomo R, Berney S, Buhr H, Denehy L, Harrold M, Holland A, Higgins AM, Iwashyna TJ et al. , “The icu mobility scale has construct and predictive validity and is responsive. a multicenter observational study,” Annals of the American Thoracic Society, vol. 13, no. 6, pp. 887–893, 2016. [DOI] [PubMed] [Google Scholar]
  • [7].Trost SG, Loprinzi PD, Moore R, and Pfeiffer KA, “Comparison of accelerometer cut points for predicting activity intensity in youth,” Medicine & Science in Sports & Exercise, vol. 43, no. 7, pp. 1360–1368, 2011. [DOI] [PubMed] [Google Scholar]
  • [8].Linton SJ, “The relationship between activity and chronic back pain,” Pain, vol. 21, no. 3, pp. 289–294, 1985. [DOI] [PubMed] [Google Scholar]
  • [9].Brummett CM, Waljee JF, Goesling J, Moser S, Lin P, Englesbe MJ, Bohnert AS, Kheterpal S, and Nallamothu BK, “New persistent opioid use after minor and major surgical procedures in us adults,” JAMA surgery, vol. 152, no. 6, pp. e170 504–e170 504, 2017. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [10].Georgiou E, Hadjibalassi M, Lambrinou E, Andreou P, and Papathanassoglou ED, “The impact of pain assessment on critically ill patients’ outcomes: a systematic review,” BioMed research international, vol. 2015, 2015. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • [11].Ravi N, Dandekar N, Mysore P, and Littman ML, “Activity recognition from accelerometer data,” in Aaai, vol. 5, no. 2005, 2005, pp. 1541–1546. [Google Scholar]
  • [12].Wang J, Chen Y, Hao S, Peng X, and Hu L, “Deep learning for sensor-based activity recognition: A survey,” Pattern Recognition Letters, vol. 119, pp. 3–11, 2019. [Google Scholar]
  • [13].Buckenmaier III CC, Galloway KT, Polomano RC, McDuffie M, Kwon N, and Gallagher RM, “Preliminary validation of the defense and veterans pain rating scale (dvprs) in a military population,” Pain Medicine, vol. 14, no. 1, pp. 110–123, 2013. [DOI] [PubMed] [Google Scholar]
  • [14].Prkachin KM and Solomon PE, “The structure, reliability and validity of pain expression: Evidence from patients with shoulder pain,” Pain, vol. 139, no. 2, pp. 267–274, 2008. [DOI] [PubMed] [Google Scholar]

RESOURCES