Browse Subject Areas

Click through the PLOS taxonomy to find articles in your field.

For more information about PLOS Subject Areas, click here.

  • Loading metrics

Predicting pain among female survivors of recent interpersonal violence: A proof-of-concept machine-learning approach

  • Edward Lannon ,

    Roles Writing – original draft, Writing – review & editing

    Affiliations Department of Psychiatry and Human Behavior, University of Mississippi Medical Center, Jackson, Mississippi, United States of America, Department of Psychology, University of Tulsa, Tulsa, Oklahoma, United States of America, Department of Anesthesiology, Perioperative and Pain Medicine, Stanford University, Stanford, CA, United States of America

  • Francisco Sanchez-Saez,

    Roles Data curation, Formal analysis, Methodology, Software

    Affiliation School of Engineering and Technology, Universidad Internacional de La Rioja, Logroño, Spain

  • Brooklynn Bailey,

    Roles Conceptualization, Investigation, Methodology, Writing – review & editing

    Affiliation Department of Psychology, The Ohio State University, Columbus, Ohio, United States of America

  • Natalie Hellman,

    Roles Investigation, Methodology, Project administration, Writing – review & editing

    Affiliation Department of Psychology, University of Tulsa, Tulsa, Oklahoma, United States of America

  • Kerry Kinney,

    Roles Data curation, Formal analysis, Writing – review & editing

    Affiliations Department of Psychiatry and Human Behavior, University of Mississippi Medical Center, Jackson, Mississippi, United States of America, Department of Psychiatry, College of Medicine, University of Illinois at Chicago, Chicago, IL, United States of America

  • Amber Williams,

    Roles Writing – review & editing

    Affiliation Department of Psychiatry and Human Behavior, University of Mississippi Medical Center, Jackson, Mississippi, United States of America

  • Subodh Nag,

    Roles Conceptualization, Investigation, Project administration, Resources, Supervision

    Affiliation Department of Neuroscience and Pharmacology, Meharry Medical Center, Tennessee, United States of America

  • Matthew E. Kutcher,

    Roles Writing – review & editing

    Affiliation Department of Surgery, University of Mississippi Medical Center, Jackson, Mississippi, United States of America

  • Burel R. Goodin,

    Roles Conceptualization, Writing – review & editing

    Affiliation Department of Psychology, University of Alabama at Birmingham, Birmingham, Alabama, United States of America

  • Uma Rao,

    Roles Conceptualization, Funding acquisition, Resources, Supervision, Writing – review & editing

    Affiliations Department of Psychiatry & Human Behavior, Department of Pediatrics, and Center for the Neurobiology of Learning and Memory, University of California–Irvine, Irvine, California, United States of America, Children’s Hospital of Orange County, Orange, CA, United States of America

  • Matthew C. Morris

    Roles Conceptualization, Data curation, Formal analysis, Funding acquisition, Investigation, Methodology, Project administration, Resources, Supervision, Validation, Visualization, Writing – original draft, Writing – review & editing

    Affiliation Department of Psychiatry and Human Behavior, University of Mississippi Medical Center, Jackson, Mississippi, United States of America

Predicting pain among female survivors of recent interpersonal violence: A proof-of-concept machine-learning approach

  • Edward Lannon, 
  • Francisco Sanchez-Saez, 
  • Brooklynn Bailey, 
  • Natalie Hellman, 
  • Kerry Kinney, 
  • Amber Williams, 
  • Subodh Nag, 
  • Matthew E. Kutcher, 
  • Burel R. Goodin, 
  • Uma Rao


Interpersonal violence (IPV) is highly prevalent in the United States and is a major public health problem. The emergence and/or worsening of chronic pain are known sequelae of IPV; however, not all those who experience IPV develop chronic pain. To mitigate its development, it is critical to identify the factors that are associated with increased risk of pain after IPV. This proof-of-concept study used machine-learning strategies to predict pain severity and interference in 47 young women, ages 18 to 30, who experienced an incident of IPV (i.e., physical and/or sexual assault) within three months of their baseline assessment. Young women are more likely than men to experience IPV and to subsequently develop posttraumatic stress disorder (PTSD) and chronic pain. Women completed a comprehensive assessment of theory-driven cognitive and neurobiological predictors of pain severity and pain-related interference (e.g., pain, coping, disability, psychiatric diagnosis/symptoms, PTSD/trauma, executive function, neuroendocrine, and physiological stress response). Gradient boosting machine models were used to predict symptoms of pain severity and pain-related interference across time (Baseline, 1-,3-,6- follow-up assessments). Models showed excellent predictive performance for pain severity and adequate predictive performance for pain-related interference. This proof-of-concept study suggests that machine-learning approaches are a useful tool for identifying predictors of pain development in survivors of recent IPV. Baseline measures of pain, family life impairment, neuropsychological function, and trauma history were of greatest importance in predicting pain and pain-related interference across a 6-month follow-up period. Present findings support the use of machine-learning techniques in larger studies of post-IPV pain development and highlight theory-driven predictors that could inform the development of targeted early intervention programs. However, these results should be replicated in a larger dataset with lower levels of missing data.


Interpersonal violence (IPV) can take the form of intimate partner violence, domestic violence, violent crime, and can involve intimidation/harassment or physical/sexual assault. Women are at especially high risk for exposure to IPV [13]. Indeed, results from the WHO Multi-country Study on Women’s Health and Domestic Violence against Women suggest a lifetime prevalence of physical/sexual partner violence between 15%-17% [4]. IPV is a major public health concern and is associated with severe complications including higher rates of injury and disability, negative medical (e.g., respiratory, cardiovascular, and endocrine dysfunction) [5, 6] and mental health outcomes (e.g., posttraumatic stress disorder [PTSD], depression, anxiety), and increased mortality [6].

IPV is strongly associated with the emergence and/or worsening of chronic pain. For example, IPV is related to worse headaches, back pain, pelvic pain, painful intercourse, fibromyalgia, and abdominal pain, and is more generally associated with disabling pain and increased pain severity [712]. Daily pain complaints are common in the early aftermath of IPV and associated with increased risk for chronic pain development [1316]. Although there is a strong association between IPV exposure and risk for chronic pain, under what circumstances and to what extent IPV exposure leads to chronic pain is highly variable [5, 7, 10]. Hence, identifying predictors of pain development after an incident of IPV is crucial to aid in the early detection and prevention of chronic pain.

The combined shared vulnerability and mutual maintenance model of post-injury disability [17] proposes that preexisting biological and psychosocial vulnerabilities place individuals at increased risk of developing both PTSD and chronic pain. Consistent with this model, a range of biopsychosocial factors (e.g., genetic, neurobiological, cognitive, sociodemographic, and environmental) have been implicated in risk for chronic pain [1823]. However, researchers have yet to identify the most reliable predictors of pain after IPV. Improved prediction of pain can potentially be achieved by simultaneously examining a diverse array of cognitive, behavioral, biological, and environmental factors. Machine-learning (ML) methods can be used to identify patterns from data that enhance predictive performance [24]; these algorithms can handle large, complex data structures and are better-suited to predict the development of pain than general linear models [25]. Indeed, ML models have been previously used on data from the current study to successfully predict PTSD onset in young women who recently experienced interpersonal violence [26].

Past studies have successfully used ML strategies to predict chronic pain symptoms and development (e.g., post-surgical and rheumatoid arthritis) [2732]. Lötsch and colleagues [27] used a ML approach to successfully categorize patients into persistent pain versus non-persistent pain groups after breast cancer surgery; the most relevant predictors included age, body mass index, depression, and anxiety. Further, Lötsch and colleagues [28] used ML to identify pre-surgical cold pressor task responses as predictors of post-surgical pain. However, ML has not been used to predict the development of pain in IPV survivors.

This proof-of-concept study builds on the extant literature by using a ML approach to identify theory-driven cognitive, behavioral, and biological factors (e.g., coping, disability, psychiatric diagnosis/symptoms, PTSD/trauma, executive function, neuroendocrine, physiological stress response, and acute pain) in recent IPV survivors that are most relevant to pain prediction over a 6-month follow-up period.

Materials and methods

All procedures were approved by the Meharry Medical College Research Ethics Board. Participants gave oral and written consent to partake in the study. The presented data is a secondary analysis of a larger study investigating predictors of the development of PTSD after a recent IPV event.


Participants were young adult women (n = 47), ages 18 to 30, who had experienced IPV (e.g., physical and/or sexual assault, mugging) within three months before their baseline assessment. Although this IPV incident was the focus of PTSD assessments throughout the study, prior trauma exposure was common (mean number of prior traumatic events = 7.0, SD = 3.2). Recruitment occurred through online advertisements and research participant registries, local agencies coordinating services for survivors of domestic violence and sexual assault, and through a team of nurse practitioners providing medical legal exams to rape survivors in a local hospital. Exclusion criteria included: active substance use disorder; active major depressive disorder (MDD) that preceded their index trauma; active PTSD resulting from a traumatic event that occurred prior to the three-month window; active/in remission bipolar or psychotic disorder; serious health conditions known to influence hypothalamic-pituitary-adrenal (HPA) activity (e.g., Cushing’s or Addison’s Disease, hyperthyroidism); pregnancy; and current use of prescription (e.g., corticosteroids, antidepressant medication) or non-prescription drugs known to affect HPA activity. Participants were not excluded if they were currently using oral contraceptives. MDD was assessed using the Structured Clinical Interview for DSM-IV [SCID-I]) [33] and PTSD was determined with the CAPS-IV (Clinician Administered PTSD Scale for DSM-IV) [34]. Assessment measures were based on DSM-IV because data collection was initiated prior to the introduction of DSM-5 criteria and creation of validated DSM-5 assessment materials.


Assessments were conducted at baseline, and at 1-, 3-, and 6-month follow-up intervals. Each assessment was conducted over two visits. Semi-structured clinical interviews (i.e., SCID-I, CAPS-IV) were administered at the first visit. Between visits, participants were asked to complete two days of at-home saliva collection to determine diurnal cortisol and alpha-amylase secretion and to complete online questionnaires via Research Electronic Data Capture (REDCap) [35], including the Short-Form McGill Pain Questionnaire (SF-MPQ) [36] and PROMIS (Patient-Reported Outcomes Measurement Information System) Pain Interference Short Form [37]. On the second visit, a modified version of the Trier Social Stress Test (TSST) [38] was administered. The present study reports data on baseline predictors and on pain outcomes assessed at baseline and over the follow-up periods.

Predictors & outcomes

Predictors from nine categories were assessed: sociodemographic, coping, disability, psychiatric diagnosis/symptoms, PTSD/trauma, executive function, neuroendocrine, physiological stress response, and pain. All outcomes and the majority of predictors were assessed at all time points (Baseline, 1-, 3-, 6- Follow up). For our current analysis, all 4 time points of the SF-MPQ overall and pain interference were used while only the baseline data of all other variables were used.


Age, race, ethnicity, height, weight, marital status, household income, and years of education were collected through self-report.


Primary/secondary control coping, disengagement coping, and involuntary engagement/disengagement were assessed with the Response to Stress Questionnaire (RSQ) [39]. The RSQ is a 57-item measure where each item is scored on a scale of 1 (Not at all) to 4 (A lot). The RSQ has good internal consistency (α = .73 to .85) and construct validity [39].

Pain catastrophizing was determined by the Pain Catastrophizing Scale (PCS) [40]. The PCS is a 13-item scale that has a total score and 3 subscale scores (rumination, magnification, helplessness). The PCS has adequate internal consistency (total α = .87, rumination α = .87; magnification α = .66, and helplessness α = .78).


Impairment experienced at work/school and/or in the social and family spheres due to trauma-related symptoms was assessed with the Sheehan Disability Scale (SDS) [41]. Each subscale of the SDS ranges from 0 (not at all) to 10 (extremely) with higher scores indicating increased disruption. The SDS has adequate sensitivity (.83) and specificity (.69) [42]. Health service utilization (i.e., medical and mental health treatment) in the previous three months was assessed via self-report.

Psychiatric diagnosis/symptoms.

The SCID-I [33] assessed current and past diagnoses, age of onset, and number of episodes for mood and anxiety disorders. Anxiety was assessed using the Generalized Anxiety Disorder 7-item scale (GAD-7) [43] (scores ranging from 0 to 21; α = .83 - .93) [44] and the State-Trait Anxiety Inventory (only the trait version was used) [45] (Reliability = .65 - .86) [45]. Current depression severity was assessed with the Beck Depression Inventory second edition (BDI-II) [46]. The BDI-II is a validated, highly reliable (α = .93 among college students, α = .92 among outpatients) 21-item scale with scores ranging from 0 to 63 [46, 47].


Posttraumatic stress symptom severity was assessed with the CAPS-IV interview [34] and the self-report PTSD Checklist for DSM-IV [48]. Number of prior traumatic life events was assessed using the Life Events Checklist (LEC) [49]. The LEC is a reliable (mean item Kappa = .61; Test-Retest r = .82) and valid measure [49]. Dissociation during trauma was assessed with the Peri-traumatic Dissociative Experiences Questionnaire (PDEQ) [50]. The PDEQ is a 10-item, 5-point-Likert-scaled, and is the most widely used self-report measure of peri-traumatic dissociation. High scores on the PDEQ are strongly associated with PTSD and MDD symptoms, general dissociative tendencies, and severity of trauma [51].

Childhood abuse and neglect were assessed with the Childhood Trauma Questionnaire (CTQ) [52]. The CTQ has five subscales: emotional abuse, physical abuse, sexual abuse, emotional neglect, and physical neglect. The CTQ has good reliability (intraclass correlation = .88) and validity (Factors α = .79 - .94) [52]. Stress levels for major life events and daily hassles were assessed with the young adult social stress version of the Perceived Events Scale (PES) [53]. Participants were asked to indicate whether each event occurred during this time, and to rate the valence of those events on a 9-point scale (-4 = Extremely Bad; +4 = Extremely Good). A total score for negative events occurring in the past 6 months was calculated by summing across all events rated -1 to -4 on desirability. Total recent stress level scores were multiplied by -1, so that higher scores indicate higher stress levels.

Trauma-related cognitive appraisals (self, world, and self-blame) were assessed with the Posttraumatic Cognitions Inventory (PTCI) [54]. The PTCI Is a 33-item instrument with good validity and reliability (α = .97; Test-Retest reliability = .74) [54].

Executive function.

Abstract reasoning, set shifting, and problem solving were assessed using the Wisconsin Card Sorting Test (WCST) [55]. Set shifting abilities (Trails), cognitive flexibility (Design Fluency), and inhibition (Color-Word) were determined using selected Delis–Kaplan Executive Function System (D-KEFS) subtests [56].

Neuroendocrine secretion.

Diurnal cortisol and alpha-amylase were determined with saliva samples collected at home (Sarstedt Inc., Netwon, NC) at five established times (waking, 30 minutes after awakening, before lunch, 3pm, and 9pm or bedtime) over two consecutive days (See assay details in Physiological Stress Response section). Daily output was computed using the area under the curve with respect to ground (AUCg) formula [57]; average AUCg was determined across both collection days. Cortisol and alpha-amylase awakening responses were determined by the mean difference, across both collection days, from awakening to 30 minutes after awakening. Diurnal cortisol and alpha-amylase slopes were averaged individualized regression coefficients for each participant’s daily samples [58]. Prolonged HPA secretion was determined by hair cortisol concentrations from 3cm hair segments as described previously [59]. Intra- and inter-assay coefficients of variation for this assay are below 12%.

Physiological stress response.

The Trier Social Stress Test (TSST) [38], a social-evaluative stress task, was used to induce a stress response. Cortisol and alpha-amylase reactivity were determined using four pre-TSST [38] samples collected at 30-minute intervals and seven post-TSST samples collected at 10-minute intervals. Reactivity index was the difference between cortisol/alpha-amylase on the final pre-TSST sample and the maximum post-TSST level. For diurnal secretion and reactivity measures, free cortisol levels were determined by commercial chemiluminescence immunoassay [60] and alpha-amylase levels were determined by a quantitative enzyme kinetic method [61]. Intra- and inter-assay coefficients of variation for these assays were below 6%. Throughout the TSST, we continuously recorded heart rate using a Polar H7 chest-strap (Polar, Finland) and Actigraph wrist watch; we computed mean resting heart rate (over a TSST 20-minute period prior to the instructions), anticipatory heart rate (over 5 minutes immediately preceding the TSST), mean heart rate during the 10-minute TSST, and recovery heart rate (over a 20-minute period immediately following the TSST).


Self-reported sensory/affective pain and current pain intensity (Visual Analog Scale [VAS]) were determined by the Short-Form McGill Pain Questionnaire (SF-MPQ) [36]. The SF-MPQ has adequate test-retest reliability (.62-.95) [62]. Pain severity was measured by the SF-MPQ Overall subscale of the SF-MPQ. Pain-related functional disability over the week prior to assessment was assessed with the PROMIS Pain Interference Short Form [37]. The PROMIS pain interference uses item response theory and has excellent psychometric properties in its item bank including reliability equivalent to .96-.99 in a subset of scores [63].

Data analysis

Data preprocessing.

All variables were examined for distributional properties and cases were screened for univariate outliers. Three outliers were detected for diurnal cortisol and alpha-amylase levels, which were Winsorized at three standard deviations [64]. Missing values in predictor data were imputed using Classification and Regression Trees (CART) proximity algorithm method [65] of the Multivariate Imputation by Chained Equations (MICE) library [66] in R [67]. To control for the variability in assessment timing between participants, two variables were constructed: 1) Days since trauma and 2) Days since baseline evaluation.

Ensemble machine-learning.

Two Gradient Boosting Machine (GBM) models were used to predict pain interference, and SF-MPQ overall pain scores over follow-up from baseline data. GBM models assemble small decision trees to build prediction models for regression and classification problems. Gradient boosting adds models sequentially and trains weak models with corrections learned previously. Gradient boosting in combination with cross-validation provides slow learning accurate models with protections against overfitting. Baseline and SF-MPQ overall pain and pain interference scores were included in all models. SF-MPQ overall was treated as a binomial classification model (0: SF-MPQ overall pain = no pain or mild pain, n = 65; 1: SF-MPQ overall pain = discomforting pain, distressing pain, horrible pain or excruciating pain, n = 39) whereas pain interference was conducted as a regression model. Two nested repeated cross-validation models were constructed (Inner loops had 3 repetitions with 4-folds; Outer loops had 3 repetitions with 5-folds). GBM models were conducted using library “xgboost” [68] in R [67]. The hyperparameters of the GBM models (depth of trees, minimum child weight, and number of rounds) [24] were chosen using the inner loop mean squared error estimations. The minimum child weight is the minimum sum of instance weight needed in a child. If the tree partition step results in a leaf node with the sum of instance weight less than minimum child weight, then the building process will stop further partitioning. When instances are equally weighted, this simply corresponds to minimum number of instances needed to be in each node. The larger the minimum child weight, the more conservative the algorithm will be [24].


Sample characteristics

The mean age of participants was 24.2 years (SD = 3.4; range = 18 to 30). Participants included 24 White/Caucasian (51%), 13 Black/African American (27%), 6 Asian (12%), and 4 Hispanic (8%) women. Most women were single (83%) and reported a mean of 15 years of education (SD = 4) (See Table 1 for a summary of missing demographic/ clinical information and data). The mean duration from index trauma to baseline assessment was 45.1 days (SD = 24.6 days). Overall, and SF-MPQ VAS Pain Intensity (See Fig 1) and Pain interference reduce over time (See Fig 2).

Fig 1. Reduction of pain intensity Short-Form McGill Questionnaire visual analog scale over time in young women with recent interpersonal violence.

Red shade represents 95% CI. Gray lines represent individual changes in pain interference over time.

Fig 2. Reduction of pain interference over time in young women with recent interpersonal violence.

Red shade represents 95% CI. Gray lines represent individual changes in pain interference over time.

Table 1. Descriptive and clinical characteristics and missing data of recent interpersonal violence survivors.

Predictors of pain scores

From the GBM models the most relevant predictors of pain interference and MPQ overall pain were obtained.

The pain interference model characteristics (Mean Max Depth = 6.27, SD = 2.40; Mean Child Weight = 6.73, SD = 1.39; Mean number of rounds = 174.27, SD = 13.82) suggest adequate performance (Train RMSE = 2.29, R2 = .86; Test RMSE = 4.83, R2 = .31). The five most important predictors included: baseline pain interference (PROMIS), family life impairment (SDS), childhood emotional abuse (CTQ), pain intensity (SF-MPQ VAS), sensory pain (SF-MPQ) (See Table 2).

Table 2. Relevant features (>1% importance) in gradient boosting machine models predicting pain interference.

The SF-MPQ overall model characteristics (Mean Max Depth = 6.47, SD = 1.92; Mean Minimum Child Weight = 2.13, SD = .99; Mean number of rounds = 175.67, SD = 11.82) suggests excellent performance (Train AUC = .98, Accuracy = .92; Test AUC = .81, Accuracy = .76). The five most important predictors included: baseline pain interference (PROMIS), pain intensity (SF-MPQ VAS), days since trauma, conceptual responses (WCST), sensory pain (SF-MPQ) (See Table 3 for results & S1 Table for confusion matrix).

Table 3. Relevant features (>1% importance) in gradient boosting machine models predicting SF-MPQ overall.


Chronic pain is a major global health problem [69]. Interpersonal violence (IPV) is associated with the emergence and/or worsening of pain [712]. However, there is a critical gap in our understanding of the factors that predict worsening pain in IPV survivors. This proof-of-concept longitudinal study of recent IPV survivors used a machine-learning (ML) approach to investigate baseline cognitive and neurobiological predictors of daily pain and pain-related interference across 1-, 3-, and 6-month follow-up assessments. Consistent with the combined shared vulnerability and mutual maintenance model of posttraumatic pain [17], results identified important biological and psychosocial predictors of pain severity and pain-related interference. This study demonstrates the promise of ML approaches to pain prediction among IPV survivors, highlights the potential relevance of risk and protective actors across multiple domains, and indicates the need for larger samples to replicate findings in order to enhance pain prediction in IPV survivors.

Prediction models for pain severity and pain-related interference performed well when compared to prior ML studies of pain. One study predicting follow-up markers of disease severity (e.g., number of swollen joints) in people with rheumatoid arthritis achieved an AUC of .658 [30]. Another study found that a six item tool was able to classify postoperative pain after breast surgery with a sensitivity of 33% and specificity of 95% [70]. An ML approach was subsequently used to predict postsurgical pain among breast surgery patients, which resulted in models with 79% sensitivity and 51% specificity for correct assignment and 95% negative predictive power [27]. Together, these studies support the promise of ML approaches as tools for pain prediction.

The present findings suggest two key variable domains that are important in predicting the development of pain among recent IPV survivors: pain characteristics and trauma history. Pain-related variables were strong predictors in both the SF-MPQ overall pain and pain interference models. This is in line with research showing that baseline (acute) pain is a strong predictor of future (chronic) pain. For example, a large cohort study (n = 386) of patients with a distal radius fracture found that baseline pain was a strong predictor of future pain and function at a 1-year follow-up [71]. A study of individuals with rheumatoid arthritis (n = 95) found that current pain was the strongest predictor of pain at 1-year follow-up [72]. Another study of patients with recent lower back pain episodes (n = 174) found that baseline pain intensity was the most important predictor of future pain [73]. Finally, a study investigating the chronification of lower back pain noted that the strongest predictor of pain disability at follow-up was baseline pain disability [21].

Trauma-related variables emerged as important predictors of SF-MPQ overall pain and pain interference. Past research suggests a strong link between PTSD and pain [17]. IPV worsens headaches, back pain, pelvic pain, painful intercourse, fibromyalgia, and abdominal pain [712]. Among the strongest trauma-related predictors in our models were childhood emotional abuse and days since trauma. There is strong evidence for a link between pain and childhood abuse/neglect [74]. One meta analytic study found that chronic pain patients were more likely to report childhood abuse/neglect (N = 1,811), and chronic pain patients who reported childhood abuse/neglect endorsed worse pain-related symptoms than those who did not (N = 3,040) [74]. Days since the index IPV trauma was an important predictor of pain intensity. This is in line with the literature suggesting pain is common following a traumatic event but that resilience/recovery is the normative response [75]. The World Health Organization World Mental Health Surveys (26 surveys in 24 countries) indicated that ~70% of the world adult population has experienced a traumatic event, yet only 5.6% of those exposed have PTSD [76]. Similar to research on PTSD prediction, identifying recent IPV survivors who will develop pain and could benefit from preventive interventions remains a significant challenge.

ML models identified executive function (EF) and disability as important variable domains to consider for pain prediction in recent survivors of IPV. Models indicate that EF, assessed via the Wisconsin Card Sorting Task (WCST; Total and Conceptual Responses) [55] and D-KEFS Design Fluency (Filled Dot), strongly predicted pain severity. There are several possible pathways through which EF could influence pain. EF may influence the selection and implementation of pain-related coping skills. The importance of EF to coping and pain outcomes in youth with chronic pain conditions has been previously established [7779]. Stronger EF may also allow for greater sustained attention, which has been shown to lower pain ratings in dual-task paradigms where participants perform executive functioning tasks while in pain [8082]. Disability was also a strong predictor of pain interference. In particular, the second strongest predictor of pain interference (6.98% importance) was the family impairment subscale of the Sheehan Disability Scale [41]. The family impairment subscale assesses the degree to which trauma exposure has disrupted family/home responsibilities, while the overall test also includes additional measures of functional impairment across work/school and social domains.

The present study has several strengths, including its focus on young adult women at elevated risk for IPV and the comprehensive assessment of theory-driven predictors. To our knowledge this study is the first to apply ML to identify theory-driven predictors of pain outcomes in survivors of a recent IPV. Assessment of cognitive predictors included volitional coping efforts [39] in addition to measures of EF and cognitive flexibility [55, 56]. An extensive battery of physiological/neuroendocrine stress response markers was used to capture diurnal cortisol secretion and TSST reactivity [38], diurnal alpha-amylase secretion and TSST reactivity, as well as prolonged HPA activation assessed via hair cortisol concentrations. PTSD diagnostic status was assessed using a well-validated semi-structured interview (CAPS-IV) [34]. Results suggest that using ML approaches in this population to detect the emergence of pain is a viable strategy for future research.

The present study used state-of-the-art ML methods to model potential pain-relevant predictors across multiple biological and psychosocial domains. This approach would not be feasible with general linear models. Although prior studies have utilized ML approaches with similar sample sizes [83], the present findings should be considered a proof-of-concept until replicated in larger samples due to the high ratio of features to participants. This sample mainly endorsed experiencing an IPV including physical violence (~80%). Future studies are needed to evaluate relations between nonphysical forms of IPV (e.g., emotional or psychological abuse) and pain outcomes. This study did not assess chronic pain status at baseline or across follow-up; we cannot rule out the potential confounding effects of pre-IPV pain. The sample was composed of young adult women exposed to IPV; results may not generalize to populations with different demographic characteristics or types of trauma exposure. Although recommended approaches were implemented for missing data imputation[65], results should be interpreted with caution due to higher levels missing data for a subset of variables (e.g., hair cortisol concentrations). Indeed, future studies may benefit from using attrition mitigating tasks. For example, Fumagalli and colleagues conducted a large RCT focused on attrition reduction strategies and concluded that sending change-of-address forms between assessment times increased retention while providing tailored assessments by target demographic (e.g., age) increased retention [84].

In summary, the present proof-of-concept-study used a longitudinal ML approach to identify biological and psychosocial predictors of pain severity and pain-related interference in women with recent IPV exposure. Results suggest that initial pain, prior trauma exposure, EF, and disability, were among the most important predictors of pain across the 6-month follow-up period. Due to the levels of missing data and sample size of the current study, results should be replicated since it is essential to enhance prediction of chronic pain following IPV in order to mitigate its enormous toll on survivors and society.

Supporting information

S1 Table. Confusion matrix for repeated cross-validation of SF-MPQ overall.

Cross validation outer loop consists of 3 repetitions of 5 folder cross validation. Train confusion matrix size is 12 · original set size = 12 · 104 = 1248, Train Accuracy = 751+396/ 1248 = .92. Train MMCE (1-Accuracy) = .08. Test confusion matrix size is 3 original set size = 3 104 = 312. Test Accuracy = 163+73/ 312 = .76. Test MMCE (1- Accuracy) = .24.



  1. 1. Kilpatrick DG, Ruggiero KJ, Acierno R, Saunders BE, Resnick HS, Best CL. Violence and risk of PTSD, major depression, substance abuse/dependence, and comorbidity: results from the National Survey of Adolescents. Journal of consulting and clinical psychology. 2003;71(4):692. pmid:12924674
  2. 2. Sorenson SB. Violence against women: Examining ethnic differences and commonalities. Evaluation Review. 1996;20(2):123–45. pmid:10182200
  3. 3. West CM. Black women and intimate partner violence: New directions for research. Journal of Interpersonal Violence. 2004;19(12):1487–93. pmid:15492062
  4. 4. Garcia-Moreno C, Jansen HA, Ellsberg M, Heise L, Watts CH. Prevalence of intimate partner violence: findings from the WHO multi-country study on women’s health and domestic violence. The lancet. 2006;368(9543):1260–9.
  5. 5. Plichta SB. Intimate partner violence and physical health consequences: Policy and practice implications. Journal of interpersonal violence. 2004;19(11):1296–323. pmid:15534333
  6. 6. Dillon G, Hussain R, Loxton D, Rahman S. Mental and physical health and intimate partner violence against women: A review of the literature. International journal of family medicine. 2013;2013. pmid:23431441
  7. 7. Campbell J, Jones AS, Dienemann J, Kub J, Schollenberger J, O’Campo P, et al. Intimate partner violence and physical health consequences. Archives of internal medicine. 2002;162(10):1157–63. pmid:12020187
  8. 8. Coker AL, Smith PH, Bethea L, King MR, McKeown RE. Physical health consequences of physical and psychological intimate partner violence. Archives of family medicine. 2000;9(5):451. pmid:10810951
  9. 9. Romans S, Cohen M. Unexplained and underpowered: the relationship between psychosomatic disorders and interpersonal abuse—a critical review. Harvard review of psychiatry. 2008;16(1):35–54. pmid:18306098
  10. 10. Wuest J, Merritt-Gray M, Ford-Gilboe M, Lent B, Varcoe C, Campbell JC. Chronic pain in women survivors of intimate partner violence. The Journal of Pain. 2008;9(11):1049–57. pmid:18701353
  11. 11. Kendall-Tackett K, Marshall R, Ness K. Chronic pain syndromes and violence against women. Women & Therapy. 2003;26(1–2):45–56.
  12. 12. Humphreys J, Cooper BA, Miaskowski C. Occurrence, characteristics, and impact of chronic pain in formerly abused women. Violence Against Women. 2011;17(10):1327–43. pmid:22071093
  13. 13. McLean SA, Soward AC, Ballina LE, Rossi C, Rotolo S, Wheeler R, et al. Acute severe pain is a common consequence of sexual assault. J Pain. 2012;13(8):736–41. pmid:22698980
  14. 14. Sng B, Sia A, Quek K, Woo D, Lim Y. Incidence and risk factors for chronic pain after caesarean section under spinal anaesthesia. Anaesthesia and intensive care. 2009;37(5):748–52. pmid:19775038
  15. 15. Williams RA, Pruitt SD, Doctor JN, Epping-Jordan JE, Wahlgren DR, Grant I, et al. The contribution of job satisfaction to the transition from acute to chronic low back pain. Archives of physical medicine and rehabilitation. 1998;79(4):366–74. pmid:9552100
  16. 16. Works T, Jones S, Grady J, Andemariam B. Traumatic Exposure History as a Risk Factor for Chronic Pain in Adult Patients with Sickle Cell Disease. Health & Social Work. 2016;41(1):42–50. pmid:26946885
  17. 17. Rosenbloom BN, Khan S, McCartney C, Katz J. Systematic review of persistent pain and psychological outcomes following traumatic musculoskeletal injury. J Pain Res. 2013;6:39. pmid:23357964
  18. 18. Blyth FM, Macfarlane GJ, Nicholas MK. The contribution of psychosocial factors to the development of chronic pain: the key to better outcomes for patients? Pain. 2007;129(1):8–11.
  19. 19. Buskila D. Genetics of chronic pain states. Best practice & research clinical rheumatology. 2007;21(3):535–47. pmid:17602998
  20. 20. Denk F, McMahon SB, Tracey I. Pain vulnerability: a neurobiological perspective. Nature neuroscience. 2014;17(2):192. pmid:24473267
  21. 21. Casey CY, Greenberg MA, Nicassio PM, Harpin RE, Hubbard D. Transition from acute to chronic pain and disability: a model including cognitive, affective, and trauma factors. Pain. 2008;134(1–2):69–79. pmid:17504729
  22. 22. Grol-Prokopczyk H. Sociodemographic disparities in chronic pain, based on 12-year longitudinal data. Pain. 2017;158(2):313. pmid:28092650
  23. 23. Dworkin SF, Von Korff MR, LeResche L. Epidemiologic studies of chronic pain: a dynamic-ecologic perspective. Annals of Behavioral Medicine. 1992;14(1):3–11.
  24. 24. Hastie T, Tibshirani R, Friedman J. The elements of statistical learning: data mining, inference, and prediction: Springer Science & Business Media; 2009.
  25. 25. Galatzer-Levy IR, Ruggles KV, Chen Z. Data science in the Research Domain Criteria era: relevance of machine learning to the study of stress pathology, recovery, and resilience. Chronic Stress. 2018;2:2470547017747553.
  26. 26. Morris MC, Sanchez-Sáez F, Bailey B, Hellman N, Williams A, Schumacher JA, et al. Predicting posttraumatic stress disorder among survivors of recent interpersonal violence. Journal of interpersonal violence. 2020:0886260520978195. pmid:33256508
  27. 27. Lötsch J, Sipilä R, Tasmuth T, Kringel D, Estlander A-M, Meretoja T, et al. Machine-learning-derived classifier predicts absence of persistent pain after breast cancer surgery with high accuracy. Breast cancer research and treatment. 2018;171(2):399–411. pmid:29876695
  28. 28. Lötsch J, Ultsch A, Kalso E. Prediction of persistent post-surgery pain by preoperative cold pain sensitivity: biomarker development with machine-learning-derived analysis. BJA: British Journal of Anaesthesia. 2017;119(4):821–9. pmid:29121286
  29. 29. Lötsch J, Ultsch A. Machine learning in pain research. Pain. 2018;159(4):623. pmid:29194126
  30. 30. Lötsch J, Alfredsson L, Lampa J. Machine-learning–based knowledge discovery in rheumatoid arthritis–related registry data to identify predictors of persistent pain. Pain. 2020;161(1). pmid:31479065
  31. 31. Kringel D, Kaunisto MA, Kalso E, Lötsch J. Machine-learned analysis of global and glial/opioid intersection–related DNA methylation in patients with persistent pain after breast cancer surgery. Clinical epigenetics. 2019;11(1):167. pmid:31775878
  32. 32. Kringel D, Kaunisto MA, Kalso E, Lötsch J. Machine-learned analysis of the association of next-generation sequencing–based genotypes with persistent pain after breast cancer surgery. Pain. 2019;160(10):2263–77. pmid:31107411
  33. 33. First MB, Spitzer RL, Gibbon M, Williams JB. Structured clinical interview for DSM-IV-TR Axis I disorders: patient edition: Biometrics Research Department, Columbia University New York, NY; 2005.
  34. 34. Blake DD, Weathers FW, Nagy LM, Kaloupek DG, Gusman FD, Charney DS, et al. The development of a clinician-administered PTSD scale. Journal of traumatic stress. 1995;8(1):75–90. pmid:7712061
  35. 35. Harris PA, Taylor R, Thielke R, Payne J, Gonzalez N, Conde JG. Research electronic data capture (REDCap)—a metadata-driven methodology and workflow process for providing translational research informatics support. Journal of biomedical informatics. 2009;42(2):377–81. pmid:18929686
  36. 36. Melzack R. The short-form McGill pain questionnaire. Pain. 1987;30(2):191–7. pmid:3670870
  37. 37. Martins I, Costa-Araujo S, Fadel J, Wilson S, Lima D, Tavares I. Reversal of neuropathic pain by HSV-1-mediated decrease of noradrenaline in a pain facilitatory area of the brain. Pain. 2010;151(1):137–45. pmid:20637543
  38. 38. Kirschbaum C, Pirke K-M, Hellhammer DH. The ‘Trier Social Stress Test’–a tool for investigating psychobiological stress responses in a laboratory setting. Neuropsychobiology. 1993;28(1–2):76–81. pmid:8255414
  39. 39. Connor-Smith JK, Compas BE, Wadsworth ME, Thomsen AH, Saltzman H. Responses to stress in adolescence: measurement of coping and involuntary stress responses. Journal of consulting and clinical psychology. 2000;68(6):976. pmid:11142550
  40. 40. Sullivan MJ, Bishop SR, Pivik J. The pain catastrophizing scale: development and validation. Psychological assessment. 1995;7(4):524.
  41. 41. Sheehan D. Sheehan disability scale. Handbook of psychiatric measures. 1983;2:100–2.
  42. 42. Rush AJ Jr, First MB, Blacker D. Handbook of psychiatric measures: American Psychiatric Pub; 2009.
  43. 43. Spitzer RL, Kroenke K, Williams JB, Löwe B. A brief measure for assessing generalized anxiety disorder: the GAD-7. Archives of internal medicine. 2006;166(10):1092–7. pmid:16717171
  44. 44. Johnson SU, Ulvenes PG, Øktedalen T, Hoffart A. Psychometric properties of the GAD-7 in a heterogeneous psychiatric sample. Front Psychol. 2019;10:1713. pmid:31447721
  45. 45. Spielberger C, Gorsuch RL, Lushene R. STAI manual for the State-Trait Inventory. Palo Alto. 1970.
  46. 46. Beck AT, Steer RA, Brown GK. Beck depression inventory-II. San Antonio. 1996;78(2):490–8.
  47. 47. Dozois DJA, Dobson KS, Ahnberg JL. A psychometric evaluation of the Beck Depression Inventory–II. Psychological Assessment. 1998;10(2):83–9.
  48. 48. Blanchard EB, Jones-Alexander J, Buckley TC, Forneris CA. Psychometric properties of the PTSD Checklist (PCL). Behaviour research and therapy. 1996;34(8):669–73. pmid:8870294
  49. 49. Gray MJ, Litz BT, Hsu JL, Lombardo TW. Psychometric properties of the life events checklist. Assessment. 2004;11(4):330–41. pmid:15486169
  50. 50. Marmar CR, Metzler TJ, Otte C. The peritraumatic dissociative experiences questionnaire: The Guilford Press; 2004.
  51. 51. Birmes P, Brunet A, Benoit M, Defer S, Hatton L, Sztulman H, et al. Validation of the Peritraumatic Dissociative Experiences Questionnaire self-report version in two samples of French-speaking individuals exposed to trauma. Eur Psychiatry. 2005;20(2):145–51. pmid:15797699
  52. 52. Bernstein DP, Fink L, Handelsman L, Foote J, Lovejoy M, Wenzel K, et al. Initial reliability and validity of a new retrospective measure of child abuse and neglect. The American journal of psychiatry. 1994. pmid:8037246
  53. 53. Compas BE, Davis GE, Forsythe CJ, Wagner BM. Assessment of major and daily stressful events during adolescence: the Adolescent Perceived Events Scale. Journal of consulting and clinical psychology. 1987;55(4):534. pmid:3624609
  54. 54. Foa EB, Ehlers A, Clark DM, Tolin DF, Orsillo SM. The posttraumatic cognitions inventory (PTCI): Development and validation. Psychological assessment. 1999;11(3):303.
  55. 55. Heaton RK, Staff P. Wisconsin card sorting test: computer version 2. Odessa: Psychological Assessment Resources. 1993;4:1–4.
  56. 56. Delis DC, Kaplan E, Kramer JH. Delis-Kaplan Executive Function System. 2001.
  57. 57. Pruessner JC, Kirschbaum C, Meinlschmid G, Hellhammer DH. Two formulas for computation of the area under the curve represent measures of total hormone concentration versus time-dependent change. Psychoneuroendocrinology. 2003;28(7):916–31. pmid:12892658
  58. 58. Pfister R, Schwarz K, Carson R, Jancyzk M. Easy methods for extracting individual regression slopes: Comparing SPSS, R, and Excel. Tutorials in Quantitative Methods for Psychology. 2013;9(2):72–8.
  59. 59. Morris MC, Abelson JL, Mielock AS, Rao U. Psychobiology of cumulative trauma: hair cortisol as a risk marker for stress exposure in women. Stress. 2017;20(4):350–4. pmid:28595479
  60. 60. Kirschbaum C, Hellhammer DH. Salivary cortisol in psychobiological research: an overview. Neuropsychobiology. 1989;22(3):150–69. pmid:2485862
  61. 61. Nater UM, Rohleder N, Schlotz W, Ehlert U, Kirschbaum C. Determinants of the diurnal course of salivary alpha-amylase. Psychoneuroendocrinology. 2007;32(4):392–401. pmid:17418498
  62. 62. Strand LI, Ljunggren AE, Bogen B, Ask T, Johnsen TB. The Short-Form McGill Pain Questionnaire as an outcome measure: test–retest reliability and responsiveness to change. European Journal of Pain. 2008;12(7):917–25. pmid:18289893
  63. 63. Amtmann D, Cook KF, Jensen MP, Chen W-H, Choi S, Revicki D, et al. Development of a PROMIS item bank to measure pain interference. Pain. 2010;150(1):173–82. pmid:20554116
  64. 64. Wilcox RR, Keselman H. Modern robust data analysis methods: measures of central tendency. Psychological methods. 2003;8(3):254. pmid:14596490
  65. 65. Doove LL, Van Buuren S, Dusseldorp E. Recursive partitioning for missing data imputation in the presence of interaction effects. Computational Statistics & Data Analysis. 2014;72:92–104.
  66. 66. Sv Buuren, Groothuis-Oudshoorn K. mice: Multivariate imputation by chained equations in R. Journal of statistical software. 2010:1–68.
  67. 67. R: A language and environment for statistical computing. R Foundation for Statistical Computing Vienna, Austria2019
  68. 68. Chen T, He T, Benesty M, Khotilovich V, Tang Y. Xgboost: extreme gradient boosting. R package version 04–2. 2015:1–4.
  69. 69. Goldberg DS, McGee SJ. Pain as a global public health priority. BMC Public Health. 2011;11(1):770. pmid:21978149
  70. 70. Sipilä R, Estlander A, Tasmuth T, Kataja M, Kalso E. Development of a screening instrument for risk factors of persistent pain after breast cancer surgery. British journal of cancer. 2012;107(9):1459–66. pmid:23093294
  71. 71. Mehta SP, MacDermid JC, Richardson J, MacIntyre NJ, Grewal R. Baseline pain intensity is a predictor of chronic pain in individuals with distal radius fracture. journal of orthopaedic & sports physical therapy. 2015;45(2):119–27. pmid:25573007
  72. 72. Van der Heide A, Jacobs J, Haanen H, Bijlsma J. Is it possible to predict the first year extent of pain and disability for patients with rheumatoid arthritis? The Journal of Rheumatology. 1995;22(8):1466–70. pmid:7473467
  73. 73. Sieben JM, Vlaeyen JW, Portegijs PJ, Verbunt JA, van Riet-Rutgers S, Kester AD, et al. A longitudinal study on the predictive validity of the fear–avoidance model in low back pain. Pain. 2005;117(1–2):162–70. pmid:16099095
  74. 74. Davis DA, Luecken LJ, Zautra AJ. Are Reports of Childhood Abuse Related to the Experience of Chronic Pain in Adulthood?: A Meta-analytic Review of the Literature. The Clinical Journal of Pain. 2005;21(5):398–405. pmid:16093745
  75. 75. Pacella ML, Girard JM, Wright AG, Suffoletto B, Callaway CW. The association between daily posttraumatic stress symptoms and pain over the first 14 days after injury: an experience sampling study. Acad Emerg Med. 2018;25(8):844–55.
  76. 76. Koenen K, Ratanatharathorn A, Ng L, McLaughlin K, Bromet E, Stein D, et al. Posttraumatic stress disorder in the world mental health surveys. Psychological medicine. 2017;47(13):2260–74. pmid:28385165
  77. 77. Ludwig NN, Sil S, Khowaja MK, Cohen LL, Dampier C. Executive Functioning Mediates the Relationship Between Pain Coping and Quality of Life in Youth With Sickle Cell Disease. Journal of pediatric psychology. 2018;43(10):1160–9. pmid:30053072
  78. 78. Hocking MC, Barnes M, Shaw C, Lochman JE, Madan-Swain A, Saeed S. Executive Function and Attention Regulation as Predictors of Coping Success in Youth with Functional Abdominal Pain. Journal of Pediatric Psychology. 2010;36(1):64–73. pmid:20592102
  79. 79. Campbell LK, Scaduto M, Van Slyke D, Niarhos F, Whitlock JA, Compas BE. Executive Function, Coping, and Behavior in Survivors of Childhood Acute Lymphocytic Leukemia*. Journal of Pediatric Psychology. 2008;34(3):317–27. pmid:18667478
  80. 80. Buhle J, Wager TD. Performance-dependent inhibition of pain by an executive working memory task. PAIN®. 2010;149(1):19–26. pmid:20129735
  81. 81. Moore DJ, Keogh E, Eccleston C. The effect of threat on attentional interruption by pain. PAIN®. 2013;154(1):82–8. pmid:23116824
  82. 82. Moore DJ, Keogh E, Eccleston C. The interruptive effect of pain on attention. The Quarterly Journal of Experimental Psychology. 2012;65(3):565–86. pmid:22136653
  83. 83. Peña-Bautista C, Roca M, Hervás D, Cuevas A, López-Cuevas R, Vento M, et al. Plasma metabolomics in early Alzheimer’s disease patients diagnosed with amyloid biomarker. Journal of Proteomics. 2019;200:144–52. pmid:30978462
  84. 84. Fumagalli L, Laurie H, Lynn P. Experiments with methods to reduce attrition in longitudinal surveys. J Roy Stat Soc Ser A (Stat Soc). 2013;176(2):499–519.