Introduction

Pain is a global health problem with a high prevalence. It contributes to physical disability and reduces the motivation toward work, resulting in loss of productivity represented by presenteeism and absenteeism1,2. People suffering from pain tend to exhibit sedentary behavior and negative emotions such as depression and anxiety3,4, which significantly affect their quality of life and daily living. Exercise on the other hand, is beneficial for health, and moderate exercise habits are recommended for improving lifestyle diseases. World Health Organization defines health as “a state of complete physical, mental, and social well-being and not merely the absence of disease or infirmity”. Regular physical activity prevents several health problems, including reduced motor function, frailty, and cognitive dysfunction5. In addition, exercise is also known to effectively prevent and treat anxiety, depression, and stress-related symptoms, and is known to improve mental health6.

However, pain can be worsened with physical activity, and given the psychological effects of pain mentioned above, people with pain symptoms find it difficult to maintain the habit of regular exercise. In fact, factors such as lack of social support, decreased physical activity, decreased physical function, depression/anxiety, and decreased self-efficacy have been reported to inhibit the acquisition of exercise habits7,8. However, it is a well-known fact that a single session of exercise can result in reduced pain intensity and a higher threshold of pain9. This phenomenon is referred to as exercise-induced hypoalgesia (EIH). Although the effect of EIH resulting from a single bout of exercise is not sustained, regular exercise can exert pain relief effects in patients with chronic pain, and also prevent the transition to chronic pain10. It has also been reported that increasing the frequency of exercise per week is likely to result in pain relief11.

Epidemiological studies also support the fact that physical activity possibly prevents the development of chronic pain. A population-based study from Norway showed that people who indulged in moderate leisure-time activity one to three times per week, were significantly less likely to experience chronic musculoskeletal pain compared to those without any leisure-time activity12. Thus, there definitely exists a relationship between pain and regular physical activity. A review paper has suggested the involvement of the central nervous system in the effect of exercise on pain in patient populations10. However, there is little evidence for emotional involvement of the pain modulation effect caused by regular exercise. Therefore, we hypothesized that emotional factors associated with development of chronic pain such as stress, negative emotions, and positive emotions are involved in the relationship between pain and exercise habits and conducted a mediating analysis using data from a large-scale epidemiological survey. We also investigated on the effect of frequency of exercise habits, the site of painful symptoms, and background factors on this relationship.

Methods

Ethical concerns

The present study was conducted in accordance with the tenets of the declaration of Helsinki, 1975, and its revision in 2013, as well as an ethical guideline for medical and health research involving human subjects that has been issued by the Japanese Ministry of Health, Labor, and Welfare. The Japanese survey study was approved by the University of Tokyo Research Ethics Committee (approval number: 2018132NI).

Study population

A web-based epidemiological survey was conducted for the general Japanese population, aged 20–64 years in February 2015 as described previously13. After an informed consent was obtained from all the study participants, 52,353 people voluntary responded to the survey, and 653 individuals suffering from cancer were excluded from this study. A total of 51,701 participants were included in the present study; mean age and standard deviation were 42.7 and 12.1 years respectively, and the proportion of women was 49.9%.

Measures

In the web-based epidemiological study, participants were asked to choose one among the following four levels of frequency of at least 30-min exercise habits over the past year; high frequency (at least twice per week), moderate frequency (once per week), low frequency (a couple of times per month), or no exercise at all. Average pain intensity in the past four weeks was measured using the numerical rating scale (NRS)14, where “0” corresponded to no pain and “10” indicated worst possible pain. All individuals also completed the 11-scale subjective stress questionnaire (0: no stress, to 10: worst imaginable stress), 11-scale subjective current health condition questionnaire (0: worst, to 10: best), and the Profile of Mood States (POMS)–Brief Form, Japanese version regarding the levels of stress, health, and mood over the past four weeks15. The POMS is a 30-item questionnaire assessing the mood of the individuals, based on six mood construct domains as follows: tension–anxiety, depression–dejection, anger–hostility, fatigue, confusion, and vigor. Each item is rated on a five-point scale, and the score for each domain ranges from 0 to 20; higher scores indicate more disturbances, except for the vigor domain. Individuals who reported an educational level lower than high school degree were classified as the low education group. The following characteristics were investigated as well: body mass index (BMI), smoking status (current smoker or non-smoker), marital status (married, never married, divorced, or widowed), living status (alone or with family), living area (47 Japanese prefectures), sleep duration (< 5 h; ≥ 5, < 6 h; ≥ 6 h; < 7 h; ≥ 7 h, < 8 h; ≥ 8 h; < 9 h; or ≥ 9 h). One-way analysis of covariance (ANCOVA), chi-squared test, and Kruskal–Wallis test were used for comparing the demographic characteristics and behavioral measures among people without pain (NRS = 0), those with mild pain (NRS = 1–3), and those with moderate-to-severe pain (NRS ≥ 4). We performed post-hoc analyses between people with painful condition (mild and moderate-to-severe pain) and those without pain as a control using the Dunnett’s method for parametric multiple comparison, the Steel’s method for nonparametric multiple comparison, and chi-squared test for categorical data. Participants reported pain duration (< 3 or ≥ 3 months) and painful sites (multiple answers allowed out of three major pain sites: low back, neck, and knees). Chi-squared test was used to compare the pain characteristics between individuals with mild pain and those with moderate-to-severe pain.

Principal component analysis of psychological measures

A principal component analysis (PCA) was performed with orthogonal rotation to the subjective stress and the five subscales were assessed on the basis of POMS to reduce the dimensionality of psychological measures and obtain more reliable effective variables generated by the central nervous system. Criteria of > 1 eigenvalue and > 10% explained variance were used for determining the principal components.

Multivariable regression models of pain intensity

Exercise habit (model 1) and the psychological components identified by the PCA (model 2) were analyzed using multivariable regression models of pain intensity, with adjustment for age, sex, BMI, low education, smoking status, marital status, living status, living area, sleep duration, and pain duration. The model included three levels of exercise frequency. The psychological components derived from the PCA were also incorporated in the model. Standardized regression coefficient (std-β) was calculated as a comparable value. The F-test and adjusted R-square were used for comparing the improvement of model fitting between the first and second models. Associations of the psychological components to pain intensity in the subpopulations with low back, neck, knee, and multi-site pain were analyzed using the second model.

Development of a mediation model for the influence of exercise on pain

The participants with pain (n = 40,660) were randomly divided into two groups, termed Discovery (n = 20,330) and Validation (n = 20,330), and the mediation model of the effect of exercise on pain intensity was examined through the psychological components in these two groups. Bootstrap multivariable regression analyses were used with 10,000 permutations under adjustments for age, sex, BMI, low education, smoking status, marital status, living alone, living area, sleep duration, and pain duration. The two central components derived from the PCA were theoretically independent, making the construction of a parallel mediation model possible. First, the effect of three frequent levels of exercise habit were examined and compared with no exercise in the Discovery group. The magnitude of path effects was represented by std-β, and the cumulative indirect effect was computed as a summation of individual indirect effects of the first (a1 × b1) and second (a2 × b2) components. The mediation proportion was calculated as the cumulative indirect effect out of the total effect. An identical mediation analysis was then performed in the Validation group to test the reproducibility of the model.

Mediation analysis for effect of exercise on subjective health

Subjective health was applied to the mediation model of the exercise effect through the identified components in the Discovery group, instead of pain intensity. A two-tailed, unpaired t-test was performed under a null hypothesis that both proportions were indifferent after log-transformation of the proportional values, in order to demonstrate a difference in the mediation proportion from the model of pain intensity.

Sub-population studies of the developed mediation model

The mediation model was also applied to the subpopulations corresponding to the pain sites and impacts: low back, neck, knee, and multi-site. In addition, the cumulative indirect and total effects were computed in subpopulations stratified according to participant characteristics, including age (20–29, 30–39, 40–49, 50–59, and 60–64 years), sex (women and men), BMI (< 20, ≥ 20 and < 25, and ≥ 25 kg/m2), educational level (low and high), smoking status (current and the others), living status (alone and with family), marital status (married and single including divorced and widowed), and pain duration (< 3 or ≥ 3 months).

Statistical software and map visualization

All statistical tests were two-sided. MATLAB 2016a was used for mediation analyses. PCA, multiple regression analyses, and the other statistical analyses were performed using JMP Pro version 13.2 (SAS Institute, Cary, NC).

Results

Pain prevalence, severity, and associated demographics and behavioral characteristics

Of the 51,701 participants, 11,041 (21.4%) reported no pain, 25,119 (48.6%) reported mild pain (NRS = 1–3), and 15,541 (30.1%) reported moderate-to-severe pain (NRS ≥ 4). Relative to the other groups, the group with moderate-to-severe pain included people who were elderly. Also, a greater proportion of this group consisted of women. The other characteristics of participants in this group were: low educational level, currently smoking, short sleep duration (< 6 h), increased BMI, subjective stress, tension–anxiety, depression–rejection, anger–hostility, fatigue, and confusion. This group also included a lower proportion of participants with high-frequency exercise habit (more than twice per week), lower subjective health, and lower vigor (Table 1). In addition, the group with moderate-to-severe pain included a more participants with persistent pain (pain duration ≥ 3 months) and multi-site pain versus the group with mild pain.

Table 1 Demographic characteristics and behavioral measures of individuals with and without pain.

Relationships of pain intensity with exercise and behavioral characteristics

First and foremost, based on multivariable regression analysis, a significant association was observed between reduced pain intensity and high-, moderate-, and low-frequency exercise habits compared with no exercise, with the other parameters such as age, sex, BMI, low education, smoking status, marital status, living status, living area, sleep duration, and pain duration as controls (Table 2, model 1). Two principal components were identified using PCA, which was used to reduce the psychological variables. The first principal component (PC1), which met the criteria with 4.47 eigenvalue and 63.8% of explained variance (Fig. 1A), was named Negative Affect, because variables with high loadings above 0.7 for the PC1 included subjective stress, tension-anxiety, depression-dejection, anger-hostility, fatigue, and confusion (Fig. 1B). The second principal component (PC2) with 1.09 eigenvalue and 15.6% of explained variance (Fig. 1A) was mainly composed of vigor, a domain of the POMS. Loading of vigor for the PC2 was 0.98, and the other variables showed small loadings for it (Fig. 1B). These two psychological components were significantly associated with pain intensity (Table 2, model 2), as well as in the four subpopulations of back, neck, knee, and multi-site pain (Table 3). On the other hand, significant effects of exercise habits, which were identified in the model in the absence of the psychological components, disappeared when Negative Affect (PC1) and Vigor (PC2) were included, implying that these components may be associated with the effect of exercise on pain.

Table 2 Multivariable regression models of pain intensity (n = 40,680).
Figure 1
figure 1

Principal component analysis of the Subjective Stress and five subscales of the POMS (n = 51,701). (A) A screen plot of eigenvalues and a bar graph of explained variances corresponding to the possible principal components. The number of components was determined by the criteria of > 1 eigenvalue and > 10% variance explained. (B) Loading plot of the measures for the identified two principal components.

Table 3 Associations of negative affect (PC1) and vigor (PC2) with pain intensity in sub-populations with different pain conditions.

Psychological effects associated with effect of exercise on pain

High-frequency exercise significantly decreased Negative affect (PC1) and increased Vigor (PC2), and each indirect effect to pain intensity showed significance in terms of both psychological components (Fig. 2A). The direct effect of high-frequency exercise on pain was nearly zero, and the cumulative indirect effect was nearly equal to the total effect (association proportion = 0.99), implying that the effect of exercise on pain reduction was fully associated with Negative affect (PC1) and Vigor (PC2). Furthermore, dose-dependent responses were identified in the total and indirect effects, as well as the effects of exercise on each psychological component corresponding to the frequency of exercise habit (Fig. 2B and Supplementary Table 1). In addition, even in people with low- and moderate-frequency exercise, the cumulative indirect effects were nearly equal to the total effects, suggesting full association effects. The total and indirect effects increased in parallel with the frequency of exercise habit. The dose–response and the full association effect were replicated in the validation group (Fig. 2C and Supplementary Table 2).

Figure 2
figure 2

Dose–response of the full association effect of exercise on pain intensity through the psychological components. (A) Mediation model and computed path effects of the high-frequency exercise in half of our participants, the Discovery group (n = 20,330). The cumulative indirect effect, an overall psychological effect, was − 0.032 (95% confidence intervals [CI]; − 0.038 to -0.026) regarding high-frequency exercise on pain intensity, while the direct effect (c’) was nearly zero (95% CI; − 0.015 to 0.011). The thickness of the path represents the absolute value of the effect, and the dot line indicates statistical indifference from zero. ***p < 0.001. (B) Dose-dependent increase of absolute path effects of the mediation model in the Discovery group. The indirect and total effects increased with three levels of exercise: low, moderate (mod), and high frequency. (C) Replication of the full mediation model and frequency-dependent increase of the absolute path effects in the other half of the participants, the Validation group (n = 20,330). Bootstrap mediation analyses were performed with 10,000 permutations. Error bars represent 95% CI.

Psychological association effects of subjective health with exercise

A similar analysis to examine the association effects of Negative affect (PC1) and Vigor (PC2) on subjective health was performed. Overall, the association proportion of these psychological components was observed to be lower on subjective health (0.52) than on pain intensity, whereas indirect effects were significantly high (Supplementary Fig. 1, Supplementary Table 3). Furthermore, statistically significant differences of any standardized regression coefficients between the mediation models on pain intensity and subjective health were absent, although direct effect of high-frequency exercise on subjective health was significantly higher than that on pain intensity (Supplementary Table 4).

Robustness of the mediation model across different pain conditions and demographic characteristics

Of 40,660 participants with pain, 2,926 (7.2%), 8,040 (19.8%), and 1,134 (2.9%) reported pain at only one of the three popular pain sites: low back, neck, and knees. 8,045 (19.8%) people reported pain at all three sites and were categorized as people with multi-site pain. The participants experiencing low back, neck, knee, as well as multi-site pain showed consistent dose-dependent responses (Fig. 3A and Supplementary Table 5). Full association was also demonstrated in all of them in terms of high- and moderate-frequency exercise.

Figure 3
figure 3

Stratified sub-populational analyses for the mediation model of central effects on exercise-related pain reduction. (A) Both indirect and total effects increased in parallel with the frequency of exercise in individuals with low back, neck, knee, and multi-site pain. The indirect effects showed at least 85% and 69% of the total effects of high- and moderate-frequency exercise respectively. (B) Summary table of the mediation analyses applied to the stratified subpopulations of demographic characteristics. Bootstrap mediation analyses were performed with 10,000 permutations, with adjustment for age, sex, BMI, low education, smoking status, marital status, living alone, living area, sleep duration, and pain duration. Error bars represent 95% confidence intervals. LF: low frequency, MF: moderate frequency, HF: high frequency.

Stratified mediation analyses identified an increasing tendency of the effect of exercise on pain reduction in parallel with the increasing age (Fig. 3B and Table 4). Especially, significant indirect as well as total effects of high- and moderate-frequency exercise were observed in participants aged > 40 years. Another important finding was that the significant indirect effects of high- and moderate-frequency exercise were consistent across all stratified populations. On the other hand, there were no significant total effects of exercise in younger people (aged < 40 years), current smokers, and people with chronic pain (pain duration ≥ 3 months).

Table 4 Sub-population analyses of the mediation model of the effect of exercise on pain intensity.

Discussion

Several participants who mentioned having moderate-to-severe pain, had chronic pain (≥ 3 months) and multi-site pain indicating that these participants were more likely to have severe pain and a lower status of the overall subjective health. 16.9% of the participants with moderate-to-severe pain reported exercising at least twice a week, although this percentage was lower compared to participants without pain or those with mild pain, which is suggestive of the fact that people with more severe pain might have difficulty in establishing an exercise routine. However, the proportion of participants who exercised less than twice a week was not as low as those without pain, suggesting that these participants were more motivated to maintain an exercising habit. Additionally, the significant association of severe pain with risk factors such as women, high BMI, low education, smoking habits, stress and negative affect and short sleep was consistent with previous studies16,17.

The rate of high-frequency exercise was similar in participants with mild pain and those without pain, however, the rate of moderate-frequency and low-frequency exercise was higher in participants without pain, potentially resulting in higher scores on the vigor scale compared to those without pain. This suggests that the presence or absence of exercise habits in people with pain is associated with both pain intensity and emotion, and lack of exercise is not decided only by presence of pain.

The fact that two components, Negative affect (PC1) and Vigor (PC2), were extracted by PCA suggests that positive and negative emotions are not simply two sides of the same coin, but rather should be evaluated separately. This finding reinforces the importance of evaluating pain-related fear as well as functional self-efficacy, when implementing treatments for chronic low back pain patients18.

While pain is one aspect of subjective health, the fact that the mediation model in this study showed partial association with regards to subjective health (Supplementary Fig. 1), but full association with regards to pain intensity (Fig. 2A), indicates that the emotional effects of exercise on pain intensity are more prominent than those on subjective health. In other words, the association effects of exercise on subjective health may be controlled by other aspects such as physical improvement as well and not only the emotional aspect.

Although the effects of EIH depend on the type, amount, intensity of exercise, and the presence of pain during exercise, this study did not conduct the investigation of the detailed types of exercise and performed the analyses with heterogeneity in background. Unsupervised or voluntary exercise, whose proportion might be majority in this study, show small effect as a treatment for pain compared to supervised exercise therapy19. Therefore, we considered that our findings showed small amount of absolute standardized coefficients of exercise habit to pain intensity and small adjusted coefficient of determination in the model 1, Table 2. On the other hand, the fact that the significant associations of exercise habit disappeared in the model 2 made us come up with the mediation model of Negative affect (PC1) and Vigor (PC2). As a result, the full association model of Negative affect (PC1) and Vigor (PC2) was established and successfully validated with a dose-dependent response even for participants with pain in the low back, neck, knee, and pain in all three locations, indicating that the impact of exercise habits on emotional aspects may be an important universal point in the effect of exercise habits on pain regardless of the pain site. Nobel point of this study was the development of the full association model of exercise effect on pain, even though absolute values of coefficients were small. Our findings interpret that improvements of negative affect and positive one should be paid attention to in an exercise habit for people with pain.

According to our recently reported study of brain functional connectivity associated with exercise effect on pain20, exercise habit is associated with decreased functional connections in the left thalamus and right amygdala, and increased ones in the medial prefrontal cortex (MPFC). Thalamus plays the role of a central nucleus on the sensory pathway, and the amygdala and MPFC are involved in recognition of negative emotion and/or unpleasantness. Our findings in the mediation analyses might clinically correspond to these neurological modifications induced by exercise habit.

EIH, a consistent phenomenon of pain attenuation following exercise, is possibly an important factor of exercise-related pain reduction. Although the mechanisms responsible for EIH are not entirely understood21, central modifications, (e.g., serotonergic22,23, dopaminergic24, endocannabinoid25,26, and opioid systems27), and involvement of conditioned pain modulation through the descending pathways are thought to be the responsible factors28. The improvements in Negative affect (PC1) and Vigor (PC2) after exercise might be a result of these central mechanisms. On the other hand, people with chronic pain are generally associated with impairments of these systems29. Complex pathophysiology involving psychological factors and alterations in the central nervous system are the characteristics of chronic pain30. Therefore, although exercise therapy is an appropriate treatment for chronic pain, the effective extent of pain improvement is limited31. Similarly, in this study, the group with chronic pain tended to have a limited improvement in pain, leading to the belief that the impact of exercise on pain intensity was minimal.

This study indicated an increasing effect of exercise on pain relief with increasing age, suggesting the involvement of the endogenous pain inhibition mechanisms, that decrease in function with age32. However, this function is reversible. A previous study investigating central sensitization and the descending pain inhibitory system using quantitative sensory testing in older adults has demonstrated that those with higher physical activity levels have better functioning pain inhibition mechanisms33. Such biological mechanisms may lead to differences by age group in pain relief responsiveness.

Women are generally associated with increased pain sensitivity, lower pain threshold, and increased risk of developing clinical pain, as compared to men34,35. On the other hand, although gender differences with respect to response to pain treatment have not been clearly understood, few reports suggest that women respond better to interdisciplinary treatment compared to men, and that gender is a factor that is related to responsiveness to pain treatment36. The results of this study also suggest that women may have a higher tendency for the psychological factors of exercise to influence pain intensity compared to men.

This study has also indicated that married people tended to have higher indirect effects of Negative affect (PC1) and Vigor (PC2) on pain intensity in relation to exercise, compared to unmarried people. However, according to previous studies, the presence or absence of a spouse does not affect unpleasantness or suffering related to pain37, and is not a determining or predictive factor for quality of life, and therefore, need not be considered during rehabilitation38. Therefore, the effects of marital status on exercise and pain needs to be further investigated.

Severity of chronic pain is affected by lifestyle factors such as smoking and high body weight39. Studies investigating patients with lumbar disc herniation have identified that smoking and high body weight are risk factors for motor deficits and delayed pain improvement40. In fact, smoking and high body weight have been shown to adversely affect responsiveness to exercise therapy on treatment41,42, which is consistent with our findings that the total effect of exercise habits on pain was lesser in people with BMI ≥ 25 kg/m2 or in people who practiced smoking.

Some limitations of the study need to be addressed. Firstly, the nature of the web-based survey may reduce the external validity of the results because access to the internet is necessary for the online recruitment. However, the study was conducted with a large sample size, corresponding to the general population in Japan, in terms of age and sex composition ratio. Therefore, the selection bias may not be a critical problem in this study. Secondly, the influence of pain intensity on exercise frequency was not assessed, although a bidirectional causal relationship may be present between these two factors. In this study, participants reported exercise frequency over the past year, and the pain intensity reported was over the past four weeks. Therefore, the directionality from pain intensity to exercise habit could not be considered. Thirdly, the detailed properties of exercise were not assessed in the study. Data for the duration, intensity, and type of exercise was not collected, since we assumed that these parameters were optimized by people who exercise. From the viewpoint of exercise optimization, exercise therapy supervised by a professional therapist is beneficial19. Fourthly, subjective stress and health were assessed by an original measurement without scientific validation. However, the 11-point numerical rating scale that we used is a measurement widely used for assessing a single item and convenient to assess it for many people in a limited time. Although further confirmations may be required for our findings, this data collection way for subjective stress and health is considered to be acceptable for scientific researches.

Fifthly, a recall bias can potentially affect the retrospective questions. Finally, only adults under 65 years old were included in this study and the effects in the elderlies are still unclear. Although greater effects according to aging are expected from the findings in the subpopulation analyses of the age category, further study is required to identify them in elderlies. Thus, the responses should be interpreted with caution.

In conclusion, this study has demonstrated that the effect of exercise on pain reduction is associated with psychological components, namely Negative Affect and Vigor. These association effects increased in parallel with the frequency of exercise habit. Furthermore, the full mediation model with a dose-dependent response was successfully validated regardless of the pain site, suggesting improvement of the negative and positive emotion is comprehensive factor of the exercise effect on pain.