You are currently viewing a new version of our website. To view the old version click .
Electronics
  • Article
  • Open Access

30 September 2024

A Hybrid Approach to Modeling Heart Rate Response for Personalized Fitness Recommendations Using Wearable Data

,
,
,
and
School of Computer Science and Engineering, Soongsil University, Seoul 05978, Republic of Korea
*
Author to whom correspondence should be addressed.
This article belongs to the Special Issue Advances in Intelligent Data Analysis and Its Applications, 2nd Edition

Abstract

Heart rate (HR) is a key indicator of fitness and cardiovascular health, and accurate HR monitoring and prediction are essential for enhancing personalized fitness experiences. The rise of wearable technology has significantly improved the ability to track personal health, including HR metrics. Accurate modeling of HR response during workouts is crucial for providing effective fitness recommendations, which help users achieve their goals while maintaining safe workout intensities. Although several HR monitoring and prediction models have been developed for personalized fitness recommendations, many remain impractical for real-world applications, and the domain of personalization in fitness applications still lacks sufficient research and innovation. This paper presents a hybrid approach to modeling HR response to workout intensity for personalized fitness recommendations. The proposed approach integrates a physiological model using Dynamic Bayesian Networks (DBNs) to capture heart rate dynamics during workout sessions. DBNs, combined with Long Short-Term Memory (LSTM) networks, model the evolution of HR over time based on workout intensity and individual fitness characteristics. The DBN parameters are dynamically derived from flexible neural networks that account for each user’s personalized health state, enabling the prediction of a full HR profile for each workout, while incorporating factors such as workout history and environmental factors. An adaptive feature selection module further enhances the model’s performance by focusing on relevant data and ensuring responsiveness to new data. We validated the proposed approach on the FitRec dataset, and experimental results show that our model can accurately predict HR responses to workout intensity in future sessions, achieving an average mean absolute error of 5.2 BPM per workout—significantly improving upon existing models. In addition to HR prediction, the model provides real-time fitness personalized recommendations based on individual’s observed workout intensity to an exercise. These findings demonstrate the model’s effectiveness in delivering precise, user personalized heart response to exercise with potential applications in fitness apps for personalized training and health monitoring.

1. Introduction

It is well understood that physical activity provides major health benefits for the heart, body, and mind, playing a vital role in preventing and treating many chronic diseases, such as heart disease and diabetes [1]. This is why the World Health Organization (WHO), and other health organizations emphasize the importance of daily physical activity and have issued public health guidelines to prevent and manage chronic illnesses associated with physical inactivity [2].
The rapid growth and popularity of wearable technologies have significantly impacted how individuals engage with their health practices. Wearable devices and mobile health (mHealth) apps have empowered users to monitor and track their physiological data and daily exercise activities [3]. These technologies not only allow users to track their physical fitness but also serve as motivational tools, helping individuals tailor their fitness plans toward achieving results and fostering safer training environments. For instance, previous research has shown that data from wearables are a data-rich resource, which can provide valuable insights into an individual’s overall health—crucial for developing personalized fitness recommendation systems [4,5,6].
Personalization plays an essential role in many modern applications, from enhancing user engagement to improving overall satisfaction. However, modeling an individual’s fitness in fitness tracking apps for personalization presents a significant challenge, as user behavior and workout preferences can vary and evolve over time. Factors such as differences in fitness levels, workout plans, exercise intensity, heart rate zones, and environmental conditions highlight the need for robust modeling techniques that capture dynamic changes in user features and account for substantial individual variation.
Ensuring accuracy and relevance in personalized fitness applications is challenging. While personalization has been a core focus for fitness recommendations, and some studies have shown notable improvements, a significant gap remains in most algorithms’ ability to adapt to dynamic changes in user data over time, which limits their practicality in real-world recommendation systems. Furthermore, transforming noisy wearable data into transparent and actionable insights for personalization adds another layer of complexity to this task [4].
Additionally, wearable data often lack critical implicit user behavior data, such as clicks, likes, and views, which are essential for understanding behavior patterns making recommendations. This gap presents another challenge in building effective personalized fitness models. Despite these challenges, personalization remains vital for effective fitness recommendations. Heart rate is a fundamental physiological feature that reflects an individual’s response to workout intensity, serving as an indicator of both exercise intensity and overall health in daily workout routines [7]. Accurately monitoring and predicting heart rate response during exercise are crucial steps for developing effective, personalized recommendations algorithms. Wearables offer an innovative approach to monitoring heart rate and other significant metrics during various fitness activities, providing valuable data to understand individual health [8]. However, interpreting and leveraging these data for personalized fitness recommendations present several challenges:
  • Individual Variability: The response of heart rate to exercise varies greatly among individuals based on age, current fitness levels, genetic factors, and other factors including overall health conditions [9,10].
  • Temporal Dynamics: An individual’s heart rate response may vary depending on their fitness level over time, so models must capture and adapt to these temporal changes [11,12].
  • Environmental Factors: External conditions like temperature, humidity, and altitude can affect the heart’s response to exercise, making accurate prediction and personalization more challenging [4].
  • Data Quality: Despite advancements in wearable technology, data from these devices can still be noisy or inconsistent, especially during high-intensity activities or when the device fit is suboptimal.
  • Contextual Information: The heart rate metric alone may not provide a complete understanding of an exercise session. Integrating other contextual data, such as perceived exertion, workout type, and recovery status, is crucial for building a comprehensive fitness model [5].
To address these challenges and improve the accuracy of personalized fitness recommendations, we proposed a scalable algorithm, physiological Hybrid DBN model, which combines a physiological model with flexible machine learning techniques to learn an individual’s personalized, multidimensional representation of fitness. The model describes heart rate dynamics during exercise using Dynamic Bayesian Networks (DBNs). We derived DBN parameters using neural networks that connect a personalized representation based on the user’s workout history and immediate workout intensity, augmented with additional features through the use of LSTM networks. Our approach integrates wearable data measurements such as speed, elevation gain, distance covered, speed variability, and time elapsed to enhance fitness recommendation algorithms in health applications. This enables the delivery of personalized recommendations tailored to individual physiological responses to varying workout intensities.
Related literature explores the development of physiological models combined with machine learning techniques and other inference methods [4,13,14] for heart rate prediction. Our algorithm monitors heart rate evolution and estimates user-specific parameters over time, learning to map an individual’s recent workout history to a personalized representation that predict heart rate response over time. We employed DBNs to address the limitations of existing algorithms in making long-term predictions, as DBNs are well suited for capturing the temporal relationships in how heart rate evolves over time in response to exercise intensity. Additionally, DBNs handle the inherited uncertainty in prediction by considering the probabilistic nature of HR changes alongside additional factors, such as environmental conditions and other external influences.
The Hybrid DBN model is further enhanced to predict personalized heart rates by adjusting user-specific parameters over time, allowing the model to reflect individual’s unique physiological responses. We incorporated an adaptive feature selection module that tunes feature weights based on their relevance, considering that in real-world scenarios, user behavior and experiences vary and change. This ensures that the model remains responsive and adaptive in user behavior and exercise patterns.
The remainder of the paper is structured as follows: Section 2 provides a literature review of existing work related to physiological modeling, heart rate prediction, and fitness personalization. Section 3 presents materials and methods. Section 4 details our methodology, including the design of our model architecture. Section 5 presents the results of our experiments. Section 6 discusses the implications of our model for personalized fitness recommendations. Finally, Section 7 concludes the paper.

3. Materials and Methods

3.1. Dataset

We used the FitRec dataset from [5], which is collected from Endomondo fitness tracking applications and is a collection of workout data from wearables. The dataset provides rich insights into various physical activities performed by users, including different types of sports workouts such as running, biking, and other fitness routines, along with physiological data like heart rate. The dataset is sourced as a JSON format containing multiple entries for different individual’s workout sessions. Each entry contains timestamps, duration, distance covered, heart rate, speed, and GPS coordinates, making it an ideal dataset for studies focused on user behavior and predicting workout sessions for enhanced personalized fitness recommendations. The key variables used in this work, including heart rate, speed, distance, altitude and other derived variables are summarized in Table 1. For our study, we filtered the dataset to include only running workout sessions, with additional contextual information such as user ID, workout ID, and gender. A detailed summary of the dataset statistics, including the number of users and total workouts, is provided in Table 2. The JSON entries were parsed and converted into a Pandas DataFrame for efficient data manipulation and analysis.
Table 1. Description of workout data variables.
Table 2. Statics of the FitRec dataset on running sport.

3.2. Data Processing

3.2.1. Temporal Data Alignment

We converted the timestamps into Python datetime objects to easily calculate the duration of each individual’s workout session, from start to finish. We retained workouts with durations between 10 min and 2 h 20 min, removing sessions that were either too short or excessively long. This filtering step ensures that our results reflect typical real-world workout sessions.

3.2.2. Interpolation and Grid Alignment

We applied a uniform grid at a 10-s interval for each workout to standardize the temporal resolution, resulting in a heart rate time series, H R   ^   R d [4] and workout intensity time series, I    R d , for each session. GPS coordinates, altitude, and heart rate were interpolated to ensure it aligns with the applied time grid. This approach minimizes the issue arising from irregular sampling intervals, ensuring a continuous representation of each workout’s dynamics.

3.2.3. Feature Engineering

To process the distance covered, we used the Haversine formula [37], which calculates the distance between two data points based on their latitude and longitude. For speed, we derived horizontal and vertical speeds from the interpolated distance and altitude, respectively. Additionally, we engineered features such as elevation gain, average speed, speed variability, maximum heart rate, and gender encodings to enrich the model inputs for better performance. We also applied normalization and standardization, particularly for heart rate, to ensure that the input data are consistent for model training, enhancing both the model’s performance and stability. Specifically, heart rate values were normalized by subtracting the mean heart rate and dividing by the average standard deviation, thereby centering the data and scaling them for uniformity across users.

3.2.4. Personalized Heart Rate Model

Following the approach from [4], we developed a personalized heart rate model by assigning each individual personalized parameters (A, B, including a drive function f and H R min , H R max ), These parameters help capture the dynamic response to exercise. As mentioned by [4], learning each individual’s parameter health representation is computationally expensive. To address this, we assumed that a low-dimensional latent vector z    R d i can represent an individual’s health status at a given time, where di is the dimensionality of the latent space.

4. Proposed Model

Our physiological DBN model integrates LSTM and flexible neural networks to predict personalized heart rate responses to exercise intensity during workout sessions. The architecture of our model consists of several key components, as illustrated in Figure 1.
Figure 1. Model architecture of the proposed approach for personalized heart rate prediction to enhance fitness recommendations.

4.1. Dynamic Bayesian Network

Dynamic Bayesian Networks (DBNs) are an extension of Bayesian networks, designed to handle time-dependent data and capture the relationships between different features over time. This makes DBNs well suited for modeling sequences of variables where temporal dependencies are key. Moreover, DBNs are particularly effective in modeling time-series data due to their ability to capture both temporal dynamics and probabilistic relationships among variables. In this research, we applied DBNs to model heart rate changes in response to varying exercise intensities over time. Figure 2 provides a graphical representation of DBNs, where z t   represents the individual health status at time t and E t represent the observed heart rate. DBNs allow the model to capture temporal correlations and non-linear relationships in heart rate variations, which is essential given the noisy nature of wearable data. Additionally, DBNs enable the model to adapt its predictions based on changes in user behavior. Our model development focused on two core components of DBNs.
Figure 2. A graphical representation of DBNs where z t is an individual health status at time t and E is the observed heart rate.
State Transition: The state transition probability describes how the system evolves from one state to another over time. In the context of heart rate prediction, it captures how heart rate changes in response to variations in exercise intensity and duration. Figure 3 illustrates a graphical representation of our DBN model for heart rate prediction based on exercise workout intensity, where y t represents variables influencing heart rate and x t represents heart rate frequencies at time t. In our study, the state transition is modeled using the following equation:
P x t x t 1 , S t = x t f trans x t 1 , S t , σ 2 ,
where x t is the heart rate at time step t, x t 1 is the heart rate at the previous time step t − 1, and S t is the state of influencing factors at time t, such as exercise intensity, speed, distance, elevation gain, and environmental conditions like temperature. The function f t r a n s ( x t 1 , S t ) is a transition function that models the expected heart rate at time t, based on the previous heart rate x t 1 and the influencing factors, and S t . σ 2 represents the variance of the transition noise, indicating uncertainty in the prediction. We assume that x t follows a normal distribution with mean μ = f t r a n s   ( x t 1 , S t ), and variance σ 2 .
Figure 3. Graphical representation of the DBN model for heart rate prediction H R t based on exercise workout intensity, y t are variables influencing HR at state t and x t are heart rate frequencies at time t.
Equation (1) expresses that the heart rate at the current time step is normally distributed around a mean value f t r a n s ( x t 1 , S t ), which is a function of the previous heart rate and the current influencing factors. The noise term σ 2 accounts for uncertainties in heart rate transition. Incorporating state transition in our model captures temporal dependencies in heart rate dynamics, where the heart rate depends on both the previous state and contextual factors. This approach is crucial for monitoring user behavior changes over time.
Emission Modeling: The emission equation models how the latent physiological state relates to the observed heart rate at each time step. The emission equation is modeled as follows:
Y t = f em X t + ϵ t , ϵ t N 0 , σ 2 ,
where Y t is the observed heart rate at time t, X t is the latent state at time t. The function f e m ( X t ) is the function that estimates the observed heart rate from the latent state, and ϵ t represents prediction error, which follows a normal distribution with mean 0 and variance σ 2 . The function f e m ( X t ) maps the latent physiological state to the actual observed heart rate, capturing complex non-linear relationships.
Combining Equations (1) and (2), we can model the evolution of heart rate during workout sessions using our DBN model. The model is formulated as follows:
H R t + 1 = H R t z + f H R t z , S t z + ε t .
H R t + 1 is the predicted heart rate at time t + 1, and H R t (z) is the current heart rate at time t where z is the individual’s health status. The function f ( H R t (z), S t (z) estimates the change in heart rate based on individual’s current health state, considering both the current heart rate H R t (z) and influencing factors S t z , such as exercise intensity, speed, and environmental conditions. Lastly, ε t is the noise accounting prediction error, representing random fluctuations.

4.2. Long Short-Term Memory (LSTM) Networks

LSTMs are a type of recurrent neural network (RNN) designed to model time-series data and capture long-range dependencies. Unlike traditional RNNs, LSTMs use memory cells to retain information over extended periods, enabling them to learn patterns and relationships in sequences that may not have been visible before. In our model, we used LSTM networks to process users’ workout histories and create personalized health representations through flexible neural networks. These representations are critical for informing the parameters of the Dynamic Bayesian Network (DBN) model, enhancing its ability to make accurate personalized predictions about heart rate responses.
We introduced an LSTM encoder that considers historical workout data, including features such as past heart rate data, exercise intensity, duration, speed, elevation gain, and other relevant physiological and contextual information. The LSTM processes this sequence data and learns a latent representation, z, which captures the user’s unique physiological characteristics and exercise patterns over time. This latent representation allows the model to personalize its predictions based on the user’s specific physiological state and workout history.
The LSTM network consists of a series of gates, as depicted in Figure 4: input, forget, and output gates, which regulate the flow of information through the memory cell. In our model, for a given step t, the LSTM calculates h t , the output of the LSTM, which is subsequently fed into the DBN model. The h t is computed as follows:
f t = σ W f h t 1 , x t + b f ,
i t = σ W i h t 1 , x t + b i ,
o t = σ W o h t 1 , x t + b o ,
C t ~ = tanh W C h t 1 , x t + b C ,
C t = f t C t 1 + i t C t ~ , h t = o t tanh C t ,
where f t , i t , o t represent the forget gate, input, and output gates, respectively, C t is the cell state at time step t, and C t ~ is the candidate cell state, h t is the hidden state output at time step t, σ denotes the sigmoid activation function, tanh denotes the hyperbolic tangent activation function, and W and b are weight matrices and bias vectors, respectively.
Figure 4. Structure of an LSTM cell.

4.3. Personalized Heart Rate Prediction

To accurately predict heart rate over time t during a workout session, our physiological model uses the following equation:
H R t = H R min + H R max H R min 1 e A z B z I t ,
where H R t is the predicted heart rate at time t, H R m i n is the resting heart rate of the individual before a workout session, and H R max is the maximum heart rate reached during an exercise session. A z is the decay constant that controls how quickly the heart rate approaches its maximum, personalized through latent vector z. B(z) is the intensity coefficient that modulates the heart rate response based on exercise intensity I(t), also personalized through latent vector z, which represent the exercise intensity at time t.
This equation captures the dynamic heart rate behavior as it responds to exercise. It combines physiological aspects (resting and maximum heart rate) and exercise-specific factors (intensity and duration) to provide a comprehensive prediction model that adapts dynamically to exercise intensity through the decay function. The term e A z B z I t models the physiological response to exercise, where the rate of change in heart rate is controlled by both the duration and intensity of an exercise, modulated by personalized parameters. This formulation allows the model to account for physiological constraints and dynamic responses to exercise over time. It provides a transparent prediction that adapts to each individual’s unique characteristics and workout history, improving the precision of fitness recommendations.

4.4. Adaptive Feature Selection

We employed an adaptive feature selection module as an attention mechanism within the LSTM encoder, which assigns weights to different features based on their relevance at time t. This module illustrated in Figure 5, takes the latent vector z and assigns a weight of α n m where n is the n t h feature and m is the m t h data point in the input latent vector z. To achieve this, we designed a multi-layer perceptron (MLP) network controller that dynamically assigns weights to the latent vector z based on each feature’s predictive power. This enables the model to prioritize the most relevant features for heart rate prediction, ensuring more accurate and personalized recommendations.
Figure 5. Adaptive feature selection module.

5. Experiments

This section focuses on evaluating the proposed model’s performance in predicting heart rate (HR) responses and its effectiveness in providing personalized fitness recommendations. We will outline the experimental setup, describe the evaluation metrics used, and present the results of our experiments, highlighting the model’s accuracy and adaptability.

5.1. Experimental Setup

We conducted our experiments using the FitRec dataset, which contains 38,323 logged workout sessions of running workouts across 665 individuals. The dataset includes various workout types such as running, cycling, and walking, alongside wearable data (e.g., heart rate), speed/pace, elevation gain, and GPS coordinates. To focus on the most relevant information, we filtered the dataset to include only workouts lasting between 10 min and 2 h and 20 min. Several additional features were derived from the raw data including speed variability, calculated as the standard deviation of speed, elevation gain computed as the sum of positive altitude changes, normalized heart rate. We created a time grid for each workout session to facilitate interpolation and alignment of features.
For training and validation, the dataset was split into two subsets: 80% for training and 20% for validation, ensuring that workouts from the same user were not split across subsets. This split was necessary to evaluate the model’s generalization capability to unseen data.
DBN parameters were configured to model the state transitions and emission probabilities, capturing the dynamics of heart rate response during exercise. The LSTM encoder was set up with two layers, a hidden dimension of 128, and a dropout rate of 0.2 to prevent overfitting. We also utilized flexible neural networks, specifically the PersonalizedScalerNN [4], to dynamically adjust the DBN parameters based on the latent representations generated by the LSTM encoder.
For the training procedure, we used the Adam optimizer with a learning rate of 1 × 10 3 . The model was trained by minimizing the mean squared error (MSE) between the predicted and actual heart rate values. To prevent exploding gradients, gradient clipping was employed

5.2. Evaluation Metrics

To evaluate the performance of our model in both heart rate prediction and personalized fitness recommendation, we used the following metrics:
  • Mean Absolute Error (MAE): This metric measures the average absolute difference between predicted and actual heart rate values. It provides a straightforward measure of prediction accuracy by calculating the magnitude of errors.
    MAE = 1 n i = 1 n y i y i ^
  • Root Mean Squared Error [RMSE]: measures the square root of the average squared differences between actual and predicted values. It gives higher weight to larger errors, making it sensitive to large deviations.
RMSE = 1 n i = 1 n y i y i ^ 2
where n is the total number of data points, y i is the actual heart rate data and, y i ^ is the predicted heart rate data.

5.3. Results and Analysis

5.3.1. Heart Rate Prediction Performance

The proposed hybrid DBN model achieved an average Mean Absolute Error (MAE) of 5.2 BPM and a Root Mean Square Error (RMSE) of 8.1 BPM across all validation workouts. These results demonstrate the model’s ability to accurately predict heart rate responses to exercise intensity during workout sessions, indicating its effectiveness in capturing dynamic physiological changes.
Figure 6 illustrates the model’s performance in predicting heart rate during workout sessions. The x-axis represents the time from the start of the workout session, while the y-axis shows the instantaneous heart rate in beats per minute (BPM). The solid blue line indicates the actual heart rate measured during the workout, and the dashed orange line represents the predicted heart rates generated by the model. The shaded region around the predicted values represents uncertainty bands of ±5 BPM, accounting for variability in heart rate measurements.
Figure 6. True vs. predicted heart rates for the specific session.

5.3.2. Performance Analysis

We demonstrated visualizations of the predicted heart rate versus actual heart rate for a variety of workout sessions, as a measure for the model proposed in this paper.
Figure 7 shows the difference between the predicted and actual heart rates across all workout sessions, plotted against the average of those heart rates. The plot has a mean bias of 0.42 BPM, indicating that, on average, the model slightly overestimates heart rates. The limits of agreement, set at ±1.96 times the standard deviation from the mean bias, range from −15.53 BPM to 16.38 BPM. These relatively tight limits suggest that most predictions are close to the actual heart rates, highlighting the model’s accuracy across various heart rate ranges. The points on the plot are evenly distributed around the mean bias line, with no clear patterns or systematic errors, indicating that the errors are random and not biased toward any particular heart rate level. The narrow range of the limits further supports the notion that our DBN model provides reliable heart rate predictions with minimal error. Such consistent performance is critical in real-world applications, where accurate heart rate monitoring is essential for making personalized fitness recommendations.
Figure 7. The Bland–Altman plot.
For further insights, Figure 8 demonstrates the model’s performance on true vs predicted heart rates for a specific session.
Figure 8. True vs. predicted heart rates for the specific session.
Figure 9 illustrates the model’s ability to predict heart rate evolution across different individuals during workout sessions. The solid blue lines represent the actual heart rate evolution, while the dashed orange lines depict the model’s predictions. Across all individuals, the model closely follows the heart rate trends, demonstrating its capacity to generalize well across varying users and workout intensities. The model accurately predicts heart rate responses to different exercise intensities, capturing rapid increases during high-intensity intervals and smooth declines during recovery periods. For most individuals, the predicted heart rate closely aligns with the actual heart rate, particularly during steady-state phases of the workout. However, minor discrepancies can be seen during rapid heart rate fluctuations, which may be attributed to physiological differences between individuals or noise in the sensor data. Overall, the model’s performance across multiple individuals highlights its robustness in handling varying user profiles and workout conditions, making it effective for personalized heart rate prediction and health tracking applications, as well as for delivering personalized fitness recommendations in real-world scenario.
Figure 9. Model performance on actual and predicted heart rate evolution for different individuals.
Table 3 presents a comparison of Mean Absolute Error (MAE) and Root Mean Squared Error (RMSE) between the proposed hybrid DBN model and two state-of-the-art models, hybrid ODE [4] and FitRec [5]. All models were evaluated on the same dataset for consistency. The Hybrid DBN model achieves a significantly lower MAE of 5.2 BPM and RMSE of 8.1 BPM, demonstrating its effectiveness in capturing the complex dynamics of heart rate response during exercise.
Table 3. DBN Model comparison against state-the-of art.
This improved performance highlights the Hybrid DBN model’s ability to model personalized heart rate predictions more accurately, making it a reliable tool for understanding user behavior and providing personalized fitness recommendations. Compared to the FitRec model, which has an MAE of 7.0 BPM and an RMSE of 17.1 BPM, the Hybrid DBN model offers a substantial improvement in both error metrics.

5.3.3. Ablation Study

The ablation study in Table 4 illustrates the contributions of different components to the overall performance of the Hybrid DBN model. The table shows that removing the LSTM encoder increases the MAE, highlighting the critical role of the individual’s health status representation (i.e., past workout data) in ensuring precise predictions.
Table 4. Ablation study on components contribution.
Furthermore, omitting the adaptive feature selection module results in a significant decline in model performance, emphasizing the module’s function in dynamically selecting the most relevant features. Lastly, the elimination of personalized parameters also negatively affects prediction accuracy, demonstrating the importance of personalization for adapting the model to individual users.

6. Personalized Recommendations

In addition to predicting heart rate responses to exercise, our model demonstrates the ability to offer personalized fitness recommendations tailored to individual behavior patterns. In this section, we explore recommendation tasks that showcase the model’s practical utility in real-world fitness environments:
  • Workout Optimization Recommendation: Based on a user’s predicted heart rate profile and specific workout goals, we suggest adjusting workout parameters, such as speed or intensity, to optimize performance and achieve desired outcomes. For instance, if a user aims to maintain a particular heart rate zone (e.g., fat-burning or aerobic zone), our model can dynamically adjust recommendations during the workout, advising users to increase or decrease their pace accordingly. This functionality is particularly beneficial for users who aim to meet specific heart rate targets or improve cardiovascular endurance. Additionally, the system can suggest variations in exercise routines to prevent fitness plateaus, recommending different workout intensities or durations based on historical performance data.
    Scenari: A user who frequently runs on a flat course might receive a suggestion to try a hilly route that provides a similar heart rate response due to its variability in incline. This approach helps users diversify their workouts, potentially enhancing overall fitness by exposing them to different physical demands while keeping the exercise routine engaging.
  • Real-Time Workout Guidance: Our model serves as a real-time personal trainer, predicting the short-term fluctuations in heart rate based on the current user pace and environmental conditions. If the model predicts that the person’s heart rate will go above some threshold (e.g., 85% of maximum heart rate), the system can proactively alert the user to adjust their pace, ensuring a safer and more effective workout. It helps avoid overexertion, making exercise much safer and far more effective, especially for novices or people with specific health concerns.
    Scenario: During a high-intensity interval training (HIIT) session, the system monitors the user’s heart rate in real-time. If the heart rate approaches a critical level, the system suggests a brief recovery period or a reduction in intensity to avoid excessive strain.
  • Workout route and Activity Suggestion: The model can recommend specific workout routes or activities that align with the user’s fitness goals and preferences by analyzing historical workout data and heart rate responses. This is especially beneficial for users who wish to explore new routes or maintain their regular exercise routine while traveling. The recommendation system can identify routes that match a user’s preferred heart rate profile or suggest new routes that offer similar physiological challenges, such as maintaining a steady heart rate or achieving specific exertion levels.
    Scenario: A user who frequently runs on a flat course might receive a suggestion to try a hilly route that provides a similar heart rate response due to its variability in incline. This approach helps users diversify their workouts, potentially enhancing overall fitness by exposing them to different physical demands while keeping the exercise routine engaging.

7. Conclusions

In this study, we developed a novel hybrid physiological model using Dynamic Bayesian Networks (DBNs). The integration of DBNs enables robust modeling of heart rate dynamics over time, capturing both the physiological aspects of heart rate response and the influence of external factors, such as workout intensity and environmental conditions. The incorporation of LSTM networks further enhances the model’s ability to learn from sequential data, providing a personalized health representation that adapts to each user’s specific physiological state and exercise patterns.
However, there are some limitations to our study. The model was trained and validated on the FitRec dataset, which may not fully represent the diversity of real-world users, and the data are skewed toward male individuals. Testing our model with data from a broader range of sources, such as those collected from Apple Fitness or Samsung Health platforms, could offer a more comprehensive evaluation of its performance across different devices and user demographics. Access to such data would also allow us to better explore the model’s generalization and adaptability.
Despite these limitations, our results demonstrate that the proposed model not only predicts heart rate with improved accuracy but also provides valuable insights into individual fitness levels and responses to exercise. This capability can be applied to developing personalized fitness recommendations, offering real-time guidance based on predicted heart rate zones and exercise intensity.
Future work will focus on extending the model to other types of exercises and further improving its interpretability by incorporating more extensive data from wearables. Additionally, exploring the model’s potential to predict long-term health outcomes and integrating it into comprehensive health monitoring systems could lead to more personalized and effective fitness and health recommendations.
Overall, this work represents a significant step forward in leveraging machine learning and physiological modeling to provide personalized fitness insights, demonstrating the potential of hybrid models in health and fitness applications.

Author Contributions

Conceptualization, H.K.; methodology, H.K., Y.P. and J.M.; software, H.K.; validation, J.C. (Jongsun Choi) and J.C. (Jaeyoung Choi); formal analysis, H.K.; investigation, H.K.; resources, J.C. (Jongsun Choi); data curation, H.K.; writing—original draft preparation, H.K.; writing—review and editing, J.M, J.C. (Jongsun Choi), J.C. (Jaeyoung Choi), Y.P. and H.K.; visualization, H.K.; supervision, J.M. and J.C. (Jongsun Choi); project administration, J.C. (Jongsun Choi) and J.C. (Jaeyoung Choi); funding acquisition, J.C. (Jongsun Choi) and J.C. (Jaeyoung Choi). All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by Institute of Information & communications Technology Planning & Evaluation (IITP) grant funded by the Korea government (MSIT) (No.2022-0-00218).

Data Availability Statement

Restrictions apply to the availability of these data. The data supporting this work were obtained from the FitRec dataset, originally created by Jiamo Ni and collaborators. Access to the dataset can be requested from the authors through https://github.com/nijianmo/fit-rec. The code used for the model implementation and analysis is available from the corresponding author upon reasonable request.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Anderson, E.; Durstine, J.L. Physical activity, exercise, and chronic diseases. A brief review. Sports Med. 2019, 1, 3–10. [Google Scholar] [CrossRef] [PubMed]
  2. Rippe, J.M. Lifestyle Medicine. The Health Promoting Power of Daily Habits and Practices. Am. J. Lifestyle Med. 2018, 12, 499–512. [Google Scholar] [CrossRef] [PubMed]
  3. Shei, R.J.; Holder, I.G.; Oumsang, A.S.; Paris, B.A.; Paris, H.L. Wearable activity trackers–advanced technology or advanced marketing? Eur. J. Appl. Physiol. 2022, 122, 1975–1990. [Google Scholar] [CrossRef] [PubMed]
  4. Nazaret, A.; Tonekaboni, A.S.; Darnell, G.; Ren, S.Y.; Sapiro, G.; Miller, A.C. Modeling personalized heart rate response to exercise and environmental factors with wearables data. NPJ Digit. Med. 2023, 6, 207. [Google Scholar] [CrossRef] [PubMed]
  5. Jiamo, N.; Muhlstein, L.; McAuley, J. Modeling heart rate and activity data for personalized fitness recommendation. In Proceedings of the World Wide Web Conference, WWW 2019, San Francisco, CA, USA, 13–17 May 2019; pp. 1343–1353. [Google Scholar]
  6. Zahedani, A.D.; McLaughlin, T.; Veluvali, A.; Aghaeepour, N.; Hosseinian, A.; Agarwal, S.; Ruan, J.; Tripathi, S.; Woodward, M.; Hashemi, N.; et al. Digital health application integrating wearable data and behavioral patterns improves metabolic health. NPJ Digit. Med. 2024, 7, 9. [Google Scholar] [CrossRef]
  7. Zhu, Z.; Li, H.; Xiao, J.; Xu, W.; Huang, M.C. A fitness training optimization system based on heart rate prediction under different activities. Methods 2022, 205, 89–96. [Google Scholar] [CrossRef]
  8. Martín-Escudero, P.; Cabanas, A.M.; Dotor-Castilla, M.L.; Galindo-Canales, M.; Miguel-Tobal, F.; Fernández-Pérez, C.; Fuentes-Ferrer, M.; Giannetti, R. Are Activity Wrist-Worn Devices Accurate for Determining Heart Rate during Intense Exercise? Bioengineering 2023, 10, 254. [Google Scholar] [CrossRef]
  9. Whipple, M.O.; Schorr, E.N.; Talley, K.M.C.; Lindquist, R.; Bronas, U.G.; Treat-Jacobson, D. Variability in individual response to aerobic exercise interventions among older adults. J. Aging Phys. 2018, 26, 655–670. [Google Scholar] [CrossRef]
  10. Brydges, C.R.; Liu-Ambrose, T.; Bielak, A.A.M. Using intraindividual variability as an indicator of cognitive improvement in a physical exercise intervention of older women with mild cognitive impairment. Neuropsychology 2020, 34, 825–834. [Google Scholar] [CrossRef]
  11. Jelinek, H.F.; Karmakar, C.; Kiviniemi, A.M.; Hautala, A.J.; Tulppo, M.P.; Mäkikallio, T.H.; Huikuri, H.V.; Khandoker, A.H.; Palaniswami, M. Temporal dynamics of the circadian heart rate following low and high volume exercise training in sedentary male subjects. Eur. J. Appl. Physiol. 2015, 115, 2069–2080. [Google Scholar] [CrossRef]
  12. Stephenson, M.D.; Thompson, A.G.; Merrigan, J.J.; Stone, J.D.; Hagen, J.A. Applying Heart Rate Variability to Monitor Health and Performance in Tactical Personnel: A Narrative Review. Int. J. Environ. Res. Public Health 2021, 18, 8143. [Google Scholar] [CrossRef] [PubMed]
  13. Mazzoleni, M.J.; Battaglini, C.L.; Martin, K.J.; Coffman, E.M.; Ekaidat, J.A.; Wood, W.A.; Mann, B.P. A dynamical systems approach for the submaximal prediction of maximum heart rate and maximal oxygen uptake. Sports Eng. 2018, 21, 31–41. [Google Scholar] [CrossRef]
  14. Mazzoleni, M.J.; Battaglini, C.L.; Martin, K.J.; Coffman, E.M.; Mann, B.P. Modeling and predicting heart rate dynamics across a broad range of transient exercise intensities during cycling. Sports Eng. 2016, 19, 117–127. [Google Scholar] [CrossRef]
  15. Ferguson, T.; Olds, T.; Curtis, R.; Blake, H.; Crozier, A.J.; Dankiw, K.; Dumuid, D.; Kasai, D.; O’Connor, E.; Virgara, R.; et al. Effectiveness of wearable activity trackers to increase physical activity and improve health: A systematic review of systematic reviews and meta-analyses. Lancet Digit. Health 2022, 4, e615–e626. [Google Scholar] [CrossRef] [PubMed]
  16. Banaee, H.; Ahmed, M.U.; Loutfi, A. Data mining for wearable sensors in health monitoring systems: A review of recent trends and challenges. Sensors 2013, 13, 17472–17500. [Google Scholar] [CrossRef]
  17. Tang, M.S.S.; Moore, K.; McGavigan, A.; Clark, R.A.; Ganesan, A.N. Effectiveness of wearable trackers on physical activity in healthy adults: Systematic review and meta-analysis of randomized controlled trials. JMIR mHealth uHealth 2022, 8, e18868. [Google Scholar] [CrossRef]
  18. Greco, G.; Poli, L.; Clemente, F.M.; Fischetti, F.; Cataldi, S. The Effectiveness of New Digital Technologies in Increasing Physical Activity Levels and Promoting Active and Healthy Ageing: A Narrative Review. Health Soc. Care Community 2023, 2023, 2803620. [Google Scholar] [CrossRef]
  19. Ates, H.C.; Yetisen, A.K.; Güder, F.; Dincer, C. Wearable devices for the detection of COVID-19. Nat. Electron. 2021, 4, 13–14. [Google Scholar] [CrossRef]
  20. Hasasneh, A.; Hijazi, H.; Talib, M.A.; Afadar, Y.; Nassif, A.B.; Nasir, Q. Wearable Devices and Explainable Unsupervised Learning for COVID-19 Detection and Monitoring. Diagnostics 2023, 13, 3071. [Google Scholar] [CrossRef]
  21. Natarajan, A.; Su, H.W.; Heneghan, C.; Blunt, L.; O’Connor, C.; Niehaus, L. Measurement of respiratory rate using wearable devices and applications to COVID-19 detection. NPJ Digit. Med. 2021, 4, 136. [Google Scholar] [CrossRef]
  22. Oyeleye, M.; Chen, T.; Titarenko, S.; Antoniou, G. A Predictive Analysis of Heart Rates Using Machine Learning Techniques. Int. J. Environ. Res. Public Health 2022, 19, 2417. [Google Scholar] [CrossRef] [PubMed]
  23. Tao, K.; Li, J.; Shan, W.; Yan, H.; Lu, Y. Estimation of Heart Rate Using Regression Models and Artificial Neural Network in Middle-Aged Adults. Front. Physiol. 2021, 12, 742754. [Google Scholar] [CrossRef] [PubMed]
  24. Lin, H.; Zhang, S.; Li, Q.; Li, Y.; Li, J.; Yang, Y. A new method for heart rate prediction based on LSTM-BiLSTM-Att. Measurement 2023, 207, 112384. [Google Scholar] [CrossRef]
  25. Signorini, M.G.; Pini, N.; Malovini, A.; Bellazzi, R.; Magenes, G. Integrating machine learning techniques and physiology based heart rate features for antepartum fetal monitoring. Comput. Methods Programs Biomed. 2022, 185, 105015. [Google Scholar] [CrossRef] [PubMed]
  26. Neshitov, A.; Tyapochkin, K.; Kovaleva, M.; Dreneva, A.; Surkova, E.; Smorodnikova, E.; Pravdin, P. Estimation of cardiorespiratory fitness using heart rate and step count data. Sci. Rep. 2023, 13, 15808. [Google Scholar] [CrossRef]
  27. Stork, M.; Novak, J.; Zeman, V. Dynamic models of some physiological parameters in response to exercise. In Proceedings of the International Conference on Applied Electronics 2019, Pilsen, Czech Republic, 10–11 September 2019; Volume 22, pp. 122–129. [Google Scholar]
  28. Rosas, F.E.; Candia-Rivera, D.; Luppi, A.I.; Guo, Y.; Mediano, P.A.M. Bayesian at heart: Towards autonomic outflow estimation via generative state-space modelling of heart rate dynamics. Comput. Biol. Med. 2024, 170, 107857. [Google Scholar] [CrossRef]
  29. Zhang, H.; Wen, B.; Liu, J. The Prediction of Heart Rate during Running Using Bayesian Combined Predictor. In Proceedings of the 14th International Wireless Communications and Mobile Computing Conference, IWCMC 2018, Limassol, Cyprus, 25–29 June 2018. [Google Scholar]
  30. Ladyzynski, P.; Molik, M.; Foltynski, P. Dynamic Bayesian networks for prediction of health status and treatment effect in patients with chronic lymphocytic leukemia. Sci. Rep. 2022, 12, 1811. [Google Scholar] [CrossRef]
  31. Chen, Q.; Tang, B.; Song, J.; Jiang, Y.; Zhao, X.; Ruan, Y.; Zhao, F.; Wu, G.; Chen, T.; He, J. Dynamic Bayesian network for predicting physiological changes, organ dysfunctions and mortality risk in critical trauma patients. BMC Med. Inform. Decis. Mak. 2022, 22, 119. [Google Scholar] [CrossRef]
  32. Marshall, A.H.; Hill, L.A.; Kee, F. Continuous Dynamic Bayesian networks for predicting survival of ischaemic heart disease patients. In Proceedings of the IEEE Symposium on Computer-Based Medical Systems, Perth, PA, USA, 12–15 October 2010; pp. 178–183. [Google Scholar]
  33. Malhotra, R.; Singh, P. Recent advances in deep learning models: A systematic literature review. Multimed. Tools Appl. 2023, 82, 44977–45060. [Google Scholar] [CrossRef]
  34. Liu, X.; Gao, B.; Suleiman, B.; You, H.; Ma, Z.; Liu, Y.; Anaissi, A. Privacy-Preserving Personalized Fitness Recommender System P3FitRec: A Multi-level Deep Learning Approach. ACM Trans. Knowl. Discov. Data 2023, 17, 1–24. [Google Scholar]
  35. Lin, W.; Zhao, X.; Wang, Y.; Xu, T.; Wu, X. AdaFS: Adaptive Feature Selection in Deep Recommender System. In Proceedings of the ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, Association for Computing Machinery, Washington, DC, USA, 14–18 August 2022; pp. 3309–3317. [Google Scholar]
  36. Kayange, H.; Mun, J.; Park, Y.; Choi, J.; Choi, J. ProAdaFS: Probabilistic and Adaptive Feature Selection in Deep Recommendation Systems. In Proceedings of the 38th International Conference on Information Networking ICOIN, Ho Chi Minh City, Vietnam, 17–19 January 2024; pp. 756–761. [Google Scholar]
  37. Robusto, C.C. The Cosine-Haversine Formula. Am. Math. Mon. 1957, 64, 38–40. [Google Scholar] [CrossRef]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.