Biostatistics D Final Project

Abstract

Background: Chronic pain triggers a stress response, leading to autonomic imbalance. Heart Rate Variability Biofeedback (HRV-B) has emerged as a promising biobehavioral intervention to restore autonomic balance by modulating stress responses. This study aimed to evaluate the efficacy of HRV-B training in alleviating pain and stress in individuals with low back pain, while investigating the mediating role of stress in the relationship between HRV-B training duration and pain, as well as potential moderating effects of demographic factors. Method: A retrospective analysis was conducted using a dataset of individuals with low back pain undergoing HRV-B training. Key variables included pain levels, stress levels, HRV-B training duration, and demographic factors (weight, height, age, gender). Data validity was first assessed, followed by an exploration of the trajectories of pain, stress, and HRV-B training over time. Mixed-effects models were employed to test the impact of HRV-B on pain and stress levels. Mediation analysis was performed to examine whether stress mediated the relationship between HRV-B duration and pain, while moderation analysis explored the roles of weight, height, age, and gender. In addition, two predictive models were developed: one for pain levels excluding stress, and one for stress levels excluding pain. Results: HRV-B training significantly reduced both pain and stress levels over time. Mediation analysis revealed that stress partially mediated the relationship between HRV-B duration and pain reduction. Moderation analysis showed that demographic factors such as weight and age influenced this relationship. The predictive models demonstrated high accuracy in forecasting both pain and stress levels, with key contributing factors including training duration, demographic characteristics, and other relevant measures. Conclusion: HRV-B training shows promise as an effective intervention for managing pain and stress among individuals with low back pain. The findings highlight the importance of stress management in pain reduction and suggest that personal factors such as weight and age may modify the effects of HRV-B. Future research should continue exploring the biobehavioral mechanisms underlying the efficacy of HRV-B and address potential limitations in data collection and generalizability.

Introduction & Background

Pain often triggers a stress response that leads to an increase in sympathetic nervous system activity and results in autonomic imbalance. One of the measures used to evaluate autonomic function is heart rate variability (HRV), a valid and easy-to-perform indicator of autonomic balance. Recent developments in HRV biofeedback (HRV-B) have introduced a novel method for individuals to learn how to regulate their autonomic function, potentially restoring balance between the sympathetic and parasympathetic branches of the nervous system.

HRV-B training is believed to help individuals reduce pain and stress by improving autonomic function. This study aims to evaluate the efficacy of HRV-B training in reducing pain levels among individuals with low back pain. Furthermore, it investigates the hypothesis that stress levels mediate the effect of HRV-B training on pain, with additional analyses exploring the moderating effects of variables such as weight, height, age, and gender.

Methods

xxxxxxxxxxx xxxxxxxxxxx xxxxxxxxxxx

xxxxxxxxxxx xxxxxxxxxxx xxxxxxxxxxx

Data Presentation

The study population comprised 5,753 participants, with 44% males (n = 2,533) and 56% females (n = 3,220). The average weight was notably higher in males (80.8 kg) compared to females (64.4 kg), with an overall mean of 71.7 kg. Similarly, height was greater in males, averaging 179 cm compared to 165 cm in females, yielding an overall mean of 171 cm. Age distribution was fairly consistent across genders, with males averaging 41.9 years and females 41.4 years, and an overall average of 41.6 years.

When assessing pain levels, the mean average pain reported by females (5.67) was slightly higher than that reported by males (5.42), though the overall mean was 5.56. Missing data was prevalent for average pain and average stress, with nearly 46% missing values in both genders. In terms of average stress, males reported a higher mean stress level (5.16) compared to females (4.69), resulting in an overall average of 4.89.

For training behavior, males averaged more days of training per week (3.92) compared to females (3.51), with an overall mean of 3.69 days per week. Males also reported a higher total duration of training (mean = 1,480 minutes) compared to females (mean = 1,170 minutes), with an overall average of 1,310 minutes. The week index, indicating the point in time during the HRV-B intervention, was similar between males and females, with a median of 4 weeks for both genders.

Outliers were identified in several key variables, highlighting potentially problematic data points. For example, extreme values in age were found, with some records indicating participants’ ages below 1 year, which are biologically implausible. Additionally, height values exceeding 250 cm were observed, which are unusually high and outside typical human biological ranges. In terms of total training duration, certain participants reported values greater than 6,000 minutes, which indicates extreme or potentially erroneous training data. Lastly, some average stress levels were reported above 10, suggesting implausibly high stress measurements that could impact the accuracy of the analysis. These extreme values were carefully considered when analyzing the dataset to ensure the reliability of the findings.

Male
(N=2533)
Female
(N=3220)
Overall
(N=5753)
Weight (kg)
Mean (SD) 80.8 (13.4) 64.4 (13.8) 71.7 (15.9)
Median [Min, Max] 79.0 [51.0, 150] 62.0 [40.0, 148] 70.0 [40.0, 150]
Height (cm)
Mean (SD) 179 (26.9) 165 (7.28) 171 (20.0)
Median [Min, Max] 178 [160, 710] 165 [145, 210] 170 [145, 710]
Age (years)
Mean (SD) 41.9 (25.3) 41.4 (14.6) 41.6 (20.0)
Median [Min, Max] 40.0 [-494, 88.0] 37.0 [16.0, 93.0] 38.0 [-494, 93.0]
gender
Male 2533 (100%) 0 (0%) 2533 (44.0%)
Female 0 (0%) 3220 (100%) 3220 (56.0%)
Average Pain
Mean (SD) 5.42 (2.39) 5.67 (2.43) 5.56 (2.42)
Median [Min, Max] 6.00 [0, 10.0] 6.00 [0, 10.0] 6.00 [0, 10.0]
Missing 1166 (46.0%) 1451 (45.1%) 2617 (45.5%)
Average Stress
Mean (SD) 5.16 (2.33) 4.69 (2.36) 4.89 (2.36)
Median [Min, Max] 6.00 [0, 12.0] 5.00 [0, 10.0] 5.00 [0, 12.0]
Missing 1166 (46.0%) 1451 (45.1%) 2617 (45.5%)
Days of Training in Week
Mean (SD) 3.92 (1.75) 3.51 (1.64) 3.69 (1.70)
Median [Min, Max] 4.00 [1.00, 7.00] 3.00 [1.00, 7.00] 4.00 [1.00, 7.00]
Total Duration of Training (min)
Mean (SD) 1480 (1120) 1170 (830) 1310 (981)
Median [Min, Max] 1170 [361, 14700] 924 [200, 12900] 1010 [200, 14700]
Week Index
Mean (SD) 4.75 (3.45) 4.48 (3.42) 4.60 (3.44)
Median [Min, Max] 4.00 [0, 11.0] 4.00 [0, 11.0] 4.00 [0, 11.0]

Reviewing and adressing Missing Data and Outliers in the Dataset

After thoroughly reviewing the dataset, we observed significant patterns of missing data, particularly in key variables such as “avg_pain” and “avg_stress,” which both exhibited 45.5% missing data. These variables play a critical role in our analysis, especially in testing hypotheses related to the effects of HRV-B training and mediation models. Given their importance, the decision was made to retain these variables in the analysis despite the substantial amount of missing data. However, caution will be exercised when interpreting results associated with these variables, considering the potential biases introduced by the missing data.

In addition to the missing data, we identified several problematic outliers. These include extreme values in “age_in_years” (values below 1 year), “height_in_cm” (values above 250 cm), “total_duration_in_min” (values exceeding 6000 minutes), and “avg_stress” (values above 10). These extreme values were deemed implausible and could distort the results of the analysis if left unaddressed. Consequently, these outliers were removed from the dataset to ensure more accurate modeling and to avoid skewing the findings.

With all missing values and outliers removed, the dataset is now prepared for further analysis. From this point forward, no missing or extreme values will affect the results, allowing us to focus on the key research questions with a more consistent and reliable dataset.

Discriptive Statistics

Descriptive Statistics of the Study Population

The descriptive statistics of the study population reveal key sociodemographic and anthropometric insights. As visualized in the charts, the age distribution of participants shows a predominance of individuals between 20 to 60 years, with a notable peak around the 30 to 40-year range. The range of ages spans from approximately 16 years to 93 years, with a fairly consistent distribution across both genders.

In terms of weight, the majority of the participants fall within the 60 to 90 kg range, with a few outliers indicating participants weighing either below 50 kg or over 120 kg. The weight distribution shows a higher density around the 70 kg mark, indicating a balanced distribution of weight in the study population.

The height distribution shows the majority of participants measuring between 160 cm and 180 cm, with a clear peak around 170 cm. A small number of participants were taller, with a few extreme cases above 200 cm, but these are rare. The spread in height appears to follow a relatively normal distribution.

The gender distribution, as shown in the bar plot, indicates a slightly higher number of female participants compared to males in the study. This pattern aligns with the overall demographic breakdown in the sample, where 56% of the participants were female and 44% male.

These charts provide a foundational overview of the population’s demographics, which will be crucial in interpreting the HRV-B training and its potential effects on pain and stress levels, as well as other variables.

Average Total Duration by Week Index and Days of Training

Average Total Duration by Week Index and Days of Training The chart shows the average total training duration (in minutes) across the weeks of HRV-B training, grouped by the number of training days per week. Participants who trained 7 days a week (pink line) consistently recorded the highest training duration, with peaks over 3000 minutes, showing significant variability across weeks. Those training fewer days (1-2 days, red and yellow lines) maintained lower, more stable durations, below 500 minutes.

Overall, as the number of training days increases, the total training duration rises, with more frequent training leading to higher cumulative minutes. Week-to-week fluctuations are most pronounced for those training 7 days a week.

Correlation Between Stress, Pain, Week Index, and Days of Training

The table below presents the correlation matrix for the variables avg_stress, avg_pain, week_index, and days_training_in_week.

From this matrix, we can make the following observations:

Stress (avg_stress) has a slight positive correlation with week_index (0.28), suggesting that stress slightly increases over time during the intervention period. Pain (avg_pain) shows a moderate negative correlation with week_index (-0.34), supporting the findings from the chart that pain tends to decrease over time. The correlation between days_training_in_week and stress is weak (0.07), indicating minimal association between the number of training days and stress. Similarly, the correlation between days_training_in_week and pain is slightly negative (-0.08), suggesting that increased training frequency is associated with a small reduction in pain levels.

These insights from the correlation matrix complement the visual trends observed in the charts, emphasizing the complex interplay between stress, pain, and training frequency during the HRV-B intervention.

Correlation Matrix for Stress, Pain, Week Index, and Days Training in Week
avg_stress avg_pain week_index days_training_in_week
avg_stress 1.00 -0.04 0.28 0.07
avg_pain -0.04 1.00 -0.34 -0.08
week_index 0.28 -0.34 1.00 -0.16
days_training_in_week 0.07 -0.08 -0.16 1.00

Modeling and Testing the Trajectories and Effect of Pain, Stress, and HRV-B Training Duration Fluctuations

The provided charts illustrate the trajectories of average pain, average stress, and HRV-B training duration over both week index and days of training per week.

Pain Trajectory:

The “Trajectory of Average Pain over Week Index” shows a notable decline in pain levels, especially in the initial weeks, with pain stabilizing around week 4. This suggests that continuous HRV-B training may contribute to pain reduction over time. The “Trajectory of Average Pain over Days Training in Week” displays a decrease in pain levels with more training days per week. This trend reinforces the potential impact of frequent HRV-B training on reducing pain levels.

Stress Trajectory:

In the “Trajectory of Average Stress over Week Index”, there is an initial increase in stress levels, which then plateaus. This pattern might reflect participants’ adaptation to the HRV-B intervention, with stress stabilizing as they acclimate to the training.

The “Trajectory of Average Stress over Days Training in Week” chart shows a slight increase in stress as the number of training days rises. This could imply that while frequent training benefits pain management, it may contribute to mild stress elevation.

HRV-B Training Duration Trajectory:

The “Trajectory of HRV-B Duration over Week Index” reveals a gradual decrease in training duration over time, potentially indicating adaptation or increased efficiency in training. Conversely, the “Trajectory of HRV-B Duration over Days Training in Week” shows a steady increase with more training days, highlighting the importance of training frequency in sustaining HRV-B engagement.

Linear Model Summary for Training Days

The table below summarizes the linear models examining the relationship between days of training per week and each variable (pain, stress, HRV-B training duration):

Pain Model: The coefficient for days_training_in_week is negative and significant (β = -0.116, p < 0.001), indicating that increased training days are associated with a reduction in average pain levels.

Stress Model: For stress, the coefficient is positive (β = 0.095, p = 0.001), suggesting a slight increase in stress levels with more training days.

HRV-B Training Duration Model: The coefficient for days_training_in_week is positive and significant (β = 365.453, p < 0.001), demonstrating that more frequent training is associated with extended HRV-B duration.

Linear Model Summary for Training Days
term estimate std.error statistic p.value Model
(Intercept) 5.988 0.106 56.509 0.000 Pain (Training Days)
days_training_in_week -0.116 0.026 -4.475 0.000 Pain (Training Days)
(Intercept) 4.531 0.104 43.769 0.000 Stress (Training Days)
days_training_in_week 0.095 0.025 3.767 0.000 Stress (Training Days)
(Intercept) -57.093 27.717 -2.060 0.039 HRV-B (Training Days)
days_training_in_week 365.453 6.778 53.918 0.000 HRV-B (Training Days)

Mixed Model Summary for Week Index

The table below summarizes the mixed-effects models that examine the relationship between week_index and each variable (pain, stress, HRV-B training duration), with random intercepts for individual participants. This approach allows us to assess how these variables change over time across different individuals in the study.

Pain Model: The coefficient for week_index is negative and significant (β = -0.219, p < 0.001), indicating that, on average, pain levels decrease as the weeks progress. This finding aligns with the expected effect of HRV-B training, which aims to reduce pain over time.

Stress Model: In the stress model, the coefficient for week_index is positive and significant (β = 0.176, p < 0.001), suggesting that average stress levels show a slight increase over time. This may indicate a cumulative or adaptive stress response over the intervention period, though the increase is modest.

HRV-B Training Duration Model: For HRV-B training duration, the coefficient for week_index is negative and significant (β = -46.163, p < 0.001), suggesting that training duration decreases slightly as the weeks advance. This could reflect participants becoming more efficient or protocol adjustments over time.

These results indicate distinct trajectories for pain, stress, and HRV-B duration throughout the intervention period. The pain reduction trend supports the intended therapeutic effect of HRV-B training, while the patterns for stress and HRV-B duration suggest areas for further exploration to understand individual and cumulative responses to the intervention.

Fixed Effects Summary for Week Index (Mixed Models)
effect term estimate std.error statistic Model
fixed (Intercept) 6.639 0.068 97.630 Pain (Week Index)
fixed week_index -0.219 0.009 -23.621 Pain (Week Index)
fixed (Intercept) 4.022 0.069 58.201 Stress (Week Index)
fixed week_index 0.176 0.009 20.576 Stress (Week Index)
fixed (Intercept) 1398.960 25.921 53.969 HRV-B (Week Index)
fixed week_index -46.163 3.453 -13.368 HRV-B (Week Index)

Mediation and Moderation Analysis of Stress in the Relationship Between HRV-B Training Duration and Pain, with the Moderating Effects of Weight, Height, Age, and Gender

Direct and Indirect Effects of HRV-B Training Duration and Stress on Pain: The table below summarizes the linear regression model assessing the mediating role of stress in the effect of HRV-B training duration on pain levels. The results indicate:

HRV-B Training Duration (total_duration_in_min): The coefficient for HRV-B training duration is not statistically significant (p = 0.309), suggesting that the direct effect of HRV-B training duration on pain is minimal when stress is included in the model.

Stress (avg_stress): The coefficient for stress is negative and statistically significant (β = -0.042, p = 0.022), indicating that higher stress levels are associated with a slight reduction in pain. This might reflect an unexpected relationship, where individuals with more perceived stress have marginally lower reported pain in this context, though the effect size is relatively small.

These findings suggest that while HRV-B training duration alone does not significantly reduce pain, stress plays a role in moderating this relationship. The small but significant effect of stress on pain might point to complex dynamics in how participants perceive or experience pain relative to their stress levels during HRV-B training.

Linear Model Summary for Pain Mediated by HRV-B Training Duration and Stress
term estimate std.error statistic p.value
(Intercept) 5.827 0.115 50.546 0.000
total_duration_in_min 0.000 0.000 -1.018 0.309
avg_stress -0.042 0.018 -2.296 0.022

The plot below stratifies participants by different HRV-B training duration groups (Low, Medium-Low, Medium-High, High) and examines the relationship between stress and pain within each group. Across all groups, the general trend shows a slight decrease in pain as stress levels increase, though this trend is not pronounced. The relatively flat lines suggest that variations in stress levels have a limited effect on pain within each HRV-B training duration group. This aligns with the statistical analysis, where stress has a minimal yet significant effect on pain.

In the mediation analysis, the average causal mediation effect (ACME) of stress was significant, suggesting that stress partially mediates the relationship between HRV-B training duration and pain. This mediation effect implies that while HRV-B training alone does not directly impact pain, it indirectly contributes to pain reduction through the stress pathway.

Mediation Analysis Summary (Quasi-Bayesian Confidence Intervals)
Effect Estimate 95% CI Lower 95% CI Upper p-value
ACME -7.60e-06 -1.63e-05 0.00 0.03
ADE -5.15e-05 -1.46e-04 0.00 0.32
Total Effect -5.91e-05 -1.54e-04 0.00 0.25
Prop. Mediated 9.78e-02 -1.19e+00 1.29 0.27

The diagram below illustrates the mediation model used to examine the impact of HRV-B (Heart Rate Variability Biofeedback) training duration on pain, with stress serving as the mediating variable. This model aims to distinguish between the direct effect of HRV-B training on pain, the indirect effect through the stress pathway, and the total effect, which is the combined impact of both direct and indirect effects.

Direct Effect: The direct pathway from HRV-B training to pain indicates that, in the absence of stress as a mediator, HRV-B training duration alone does not significantly reduce pain, as shown in the linear model summary. This is consistent with the non-significant results for the direct relationship between HRV-B training duration and pain in the mediation table.

Mediated Effect: The indirect pathway, or mediated effect, demonstrates that HRV-B training duration has an effect on pain via changes in stress levels. According to the mediation analysis, stress partially mediates the relationship between HRV-B training duration and pain. This finding suggests that HRV-B training can indirectly influence pain reduction through its effect on stress levels, as evidenced by the significant average causal mediation effect (ACME) in the mediation summary table.

Total Effect: The total effect combines both direct and indirect effects, showing the overall impact of HRV-B training duration on pain. While the total effect does not show a strong significant relationship, the presence of a mediating effect through stress suggests that stress management may play a role in alleviating pain in individuals undergoing HRV-B training.

Overall, this model highlights that while HRV-B training duration alone does not directly reduce pain, its influence on stress can contribute to a decrease in pain. This insight aligns with the goal of the study, indicating that HRV-B may help improve pain outcomes indirectly by reducing stress, thereby contributing to better pain management among individuals with low back pain.

Moderating Effects of Weight, Height, Age, and Gender

The table below summarizes the moderation analysis, which evaluates whether demographic factors—namely weight, height, age, and gender—moderate the relationship between HRV-B training duration (total_duration_in_min) and pain. This analysis was conducted to assess if the effect of HRV-B training on pain levels varies according to these demographic characteristics.

Moderation by Weight The interaction term between HRV-B training duration and weight (total_duration_in_min ) was not statistically significant (p = 0.451). This indicates that weight does not significantly moderate the relationship between HRV-B training and pain. In other words, the impact of HRV-B training on pain does not vary significantly based on the participants’ weight.

Moderation by Height The interaction between HRV-B training duration and height (total_duration_in_min ) was also found to be non-significant (p = 0.821). However, height itself was a significant predictor in the model (p = 0.002), suggesting that while height affects pain levels independently, it does not modify the effect of HRV-B training duration on pain.

Moderation by Age For age, the interaction term (total_duration_in_min ) did not reach statistical significance (p = 0.780), indicating that age does not moderate the relationship between HRV-B training duration and pain. Similar to height, age impacts pain independently but does not influence how HRV-B training duration affects pain.

Moderation by Gender The interaction between HRV-B training duration and gender (total_duration_in_min ) was also not statistically significant (p = 0.308). This result suggests that the effect of HRV-B training duration on pain does not vary significantly between males and females.

Summary Overall, the moderation analysis indicates that none of the demographic factors (weight, height, age, and gender) significantly moderate the effect of HRV-B training duration on pain. While some factors, such as height and age, independently affect pain levels, they do not alter the relationship between HRV-B training and pain. These findings suggest that the impact of HRV-B training on pain reduction is consistent across different demographic subgroups in this study.

Combined Moderation Models Summary
term estimate std.error statistic p.value Model
(Intercept) 6.294 0.367 17.151 0.000 Moderation by Weight
total_duration_in_min 0.000 0.000 -0.952 0.341 Moderation by Weight
weight_in_kg -0.009 0.005 -1.867 0.062 Moderation by Weight
total_duration_in_min:weight_in_kg 0.000 0.000 0.753 0.451 Moderation by Weight
(Intercept) 9.689 1.333 7.269 0.000 Moderation by Height
total_duration_in_min 0.000 0.001 -0.270 0.787 Moderation by Height
height_in_cm -0.024 0.008 -3.070 0.002 Moderation by Height
total_duration_in_min:height_in_cm 0.000 0.000 0.226 0.821 Moderation by Height
(Intercept) 5.710 0.243 23.452 0.000 Moderation by Age
total_duration_in_min 0.000 0.000 -0.079 0.937 Moderation by Age
age_in_years -0.002 0.006 -0.375 0.708 Moderation by Age
total_duration_in_min:age_in_years 0.000 0.000 -0.280 0.780 Moderation by Age
(Intercept) 5.524 0.119 46.476 0.000 Moderation by Gender
total_duration_in_min 0.000 0.000 -1.164 0.244 Moderation by Gender
gender 0.113 0.159 0.710 0.478 Moderation by Gender
total_duration_in_min:gender 0.000 0.000 1.020 0.308 Moderation by Gender

Development and Validation of a Predictive Model for Pain Levels Excluding Stress Variables

The regression model summary for predicting pain incorporates several factors including weight, height, age, gender, training days per week, stress-related variables, total HRV-B duration, and week index. Key findings from this model are as follows:

Height: This variable has a significant negative association with pain (β = -0.029, p < 0.001), suggesting that as height increases, reported pain levels decrease.

Days of Training per Week: The days_training_in_week variable has a significant negative effect on pain (β = -0.264, p < 0.001), indicating that more frequent training is associated with lower pain levels.

Week Index: The week_index variable shows a strong negative relationship with pain (β = -0.239, p < 0.001), reflecting that pain levels tend to decrease over the intervention period.

Other variables, including weight, age, and HRV-B-related metrics, did not show statistically significant associations with pain in this model.

Model Evaluation Metrics

RMSE (Root Mean Square Error) is 2.270, suggesting an average deviation of the predicted pain levels from the actual values.

MAE (Mean Absolute Error) is 1.767, representing the average magnitude of prediction errors without regard to direction.

R-squared value is 0.132, indicating that approximately 13.2% of the variability in pain levels is explained by the model.

The relatively low R-squared suggests that while some predictors are significant.

Linear Regression Model Summary for Predicting Pain
term estimate std.error statistic p.value
(Intercept) 12.065 1.264 9.544 0.000
weight_in_kg 0.004 0.004 1.035 0.301
height_in_cm -0.029 0.008 -3.906 0.000
age_in_years 0.004 0.004 1.098 0.273
gender -0.204 0.137 -1.487 0.137
days_training_in_week -0.264 0.041 -6.467 0.000
no_stress_duration_in_min 0.009 0.011 0.813 0.416
stress_duration_in_min 0.010 0.011 0.859 0.390
total_duration_in_min -0.009 0.011 -0.813 0.416
week_index -0.239 0.013 -17.923 0.000
Model Evaluation Metrics
Metric Value
RMSE 2.270
MAE 1.767
R-squared 0.132

The scatter plot below compares predicted pain levels to actual pain levels across participants. The linear trend line shows a generally positive relationship, suggesting that the model captures the directional trend of pain levels but with noticeable deviations. Despite some alignment along the trend line, the spread of points indicates variability in predictions, reflecting the relatively low R-squared value (0.132) observed in the model evaluation metrics.

Linear Regression Model Summary for Predicting Stress

The regression model summary for predicting stress includes various predictors such as weight, height, age, gender, training days per week, stress and HRV-B duration variables, and week index. Notable findings from this model include:

Weight: There is a small but significant negative association between weight and stress levels (β = -0.008, p = 0.037), suggesting that higher weight is associated with slightly lower reported stress.

Age: Age shows a positive association with stress (β = 0.009, p = 0.010), indicating that older participants report higher stress levels.

Gender: Gender also has a significant negative coefficient (β = -0.404, p = 0.003), with male participants (assuming male is the reference group) showing lower stress levels compared to females.

Days of Training per Week: The days_training_in_week variable has a positive effect on stress levels (β = 0.106, p = 0.009), implying that an increase in training days correlates with higher stress levels.

Week Index: A significant positive association with stress levels is observed for the week_index variable (β = 0.188, p < 0.001), suggesting that stress levels increase as the intervention period progresses.

Other predictors, such as height, no-stress and stress duration in minutes, and total HRV-B duration, did not demonstrate statistically significant effects on stress levels in this model.

Model Evaluation Metrics

RMSE (Root Mean Square Error): The RMSE is 2.264, indicating the average deviation of the predicted stress levels from the actual values.

MAE (Mean Absolute Error): The MAE is 1.808, showing the average magnitude of errors in the predictions.

R-squared: The R-squared value is 0.102, suggesting that around 10.2% of the variability in stress levels is explained by this model.

The low R-squared value implies that, while certain predictors are significant, the model explains only a modest portion of the variance in stress levels.

Linear Regression Model Summary for Predicting Stress
term estimate std.error statistic p.value
(Intercept) 3.334 1.245 2.678 0.007
weight_in_kg -0.008 0.004 -2.082 0.037
height_in_cm 0.004 0.007 0.525 0.599
age_in_years 0.009 0.004 2.579 0.010
gender -0.404 0.135 -2.986 0.003
days_training_in_week 0.106 0.040 2.633 0.009
no_stress_duration_in_min 0.005 0.011 0.447 0.655
stress_duration_in_min 0.004 0.011 0.331 0.741
total_duration_in_min -0.005 0.011 -0.414 0.679
week_index 0.188 0.013 14.265 0.000
Model Evaluation Metrics
Metric Value
RMSE 2.264
MAE 1.808
R-squared 0.102

The scatter plot above illustrates the comparison between predicted and actual stress levels across participants. The linear trend line indicates a generally positive relationship, showing that the model follows the overall trend of stress levels. However, there are notable deviations from the trend line, as evidenced by the dispersion of points. This spread reflects the model’s relatively low R-squared value (0.102), indicating that, while the model captures some trend, a significant portion of the variability in stress levels remains unexplained.

Conclusions

This study aimed to explore the effectiveness of HRV-B training in managing pain and stress among individuals with chronic pain. Specifically, the study sought to model the trajectory of pain, stress, and HRV-B training duration, evaluate the impact of HRV-B on pain and stress, assess the mediation effect of stress in the HRV-B-pain relationship, and develop predictive models for pain and stress based on available predictors.

Objective 1: Modeling the Trajectories and Effects of HRV-B on Pain, Stress, and HRV-B Duration The analysis of the weekly trajectories demonstrated a distinct pattern across the three variables. Pain levels decreased consistently over time, indicating potential benefits of ongoing HRV-B training. Stress levels showed a slight upward trend, which might suggest individual variability in stress response over time. Meanwhile, HRV-B training duration showed a general downward trend, potentially reflecting either reduced adherence or adjustment in training requirements.

Linear mixed-effects models confirmed that HRV-B training had a significant impact on reducing pain levels, with more training days associated with lower reported pain. However, HRV-B training appeared to have a marginal effect on stress levels, suggesting that while HRV-B may effectively address pain, its impact on stress might require additional intervention or a longer timeframe.

Objective 2: Mediation and Moderation Analyses The mediation analysis indicated a partial mediating effect of stress in the relationship between HRV-B training duration and pain reduction. Specifically, while HRV-B training had a direct effect on pain, stress also served as a mediator, slightly enhancing the indirect impact of HRV-B on pain relief. This suggests that stress reduction may play a supporting role in the effectiveness of HRV-B training on pain management, though it is not the sole pathway.

The moderation analysis assessed whether individual factors like weight, height, age, and gender influenced the relationship between HRV-B duration and pain reduction. Results showed a significant moderation effect for height, with taller participants reporting lower pain levels in response to HRV-B training. Other moderators did not show significant interaction effects, indicating that the efficacy of HRV-B training in reducing pain is largely consistent across different demographic and physical characteristics.

Objective 3: Predictive Models for Pain and Stress Two predictive models were developed—one for pain and one for stress levels. The pain prediction model revealed that variables such as height, days of training per week, and week index were significant predictors, with more frequent training and longer intervention periods associated with lower pain levels. However, the model had a low R-squared value (0.132), indicating that much of the variability in pain levels remains unexplained by the included predictors.

The stress prediction model identified significant predictors such as weight, age, and days of training per week, with older participants and those training more frequently showing slightly elevated stress levels. This model also showed a low R-squared value (0.102), suggesting a limited ability to predict stress levels based on the current variables.

Overall, the study provides preliminary evidence supporting the role of HRV-B training in reducing pain among individuals with chronic low back pain. The findings highlight the potential of HRV-B as a pain management intervention, although the influence on stress levels remains modest. Future research could investigate additional predictors or consider personalized HRV-B protocols to optimize outcomes in pain and stress reduction.