A multi-time window heart rate prediction method, system, electronic device and storage medium
By constructing a recent heart rate time series and utilizing a multi-timescale time series prediction model with frozen standardized parameters, the problems of insufficient synchronization of heterogeneous sensors and insufficient historical data accumulation in existing technologies are solved. This enables the simultaneous output of heart rate predictions for multiple future time windows in a single inference, improving the consistency and real-time performance of the predictions.
Patent Information
- Application Number
- CN202611369822.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-04
- Publication Date
- 2026-11-24
AI Technical Summary
Existing exercise heart rate prediction solutions face difficulties in synchronizing heterogeneous sensors, requiring high system permissions, and accumulating insufficient historical data. Furthermore, they struggle to meet the prediction needs of multiple future time windows in the short and medium term while maintaining simple real-time input.
By acquiring continuous heart rate values sampled at predetermined time intervals during the current exercise, a recent heart rate time series is constructed. Preprocessing is performed using frozen standardized parameters, and the data is input into a multi-timescale time series prediction model for multi-scale time series feature extraction. Simultaneously, multiple future time-shifted heart rate prediction values are output to achieve rolling updates.
It reduces the reliance on heterogeneous sensor data and user historical data, improves the deployment consistency of multi-time window heart rate prediction and the convenience of real-time rolling monitoring, and solves the scheduling and alignment complexities caused by maintaining multiple models separately.
Smart Images

Figure CN123147889A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of wearable physiological signal processing, motion monitoring and time series prediction technology, and in particular to a multi-time window heart rate prediction method, system, electronic device and storage medium. Background Technology
[0002] With the widespread adoption of wearable heart rate sensors, smartwatches, and fitness trackers, continuous heart rate data collection during exercise has become possible. Current systems primarily focus on real-time display, statistical analysis, or threshold alerts for collected heart rates. To identify heart rate trends during exercise in advance, researchers have begun using time series models to predict future heart rates.
[0003] Existing exercise heart rate prediction solutions can be broadly categorized into two types. One type integrates multi-source sensor data such as acceleration, photoplethysmography (PPG), posture, velocity, position, and altitude; the other type incorporates personalized data such as user identity information, historical exercise records, or future exercise plans. However, these solutions often face challenges in practical deployment, including difficulties in synchronizing heterogeneous sensors, high system access requirements, or insufficient historical data accumulation. They are also susceptible to limitations imposed by sensor deficiencies, positioning errors, and cold start conditions.
[0004] Furthermore, existing short-term heart rate predictions typically estimate for a single future moment or establish independent models for different prediction intervals. When the system needs to acquire heart rate information for multiple lead times simultaneously, running multiple models separately significantly increases the complexity of model maintenance, computation scheduling, and prediction result alignment. For rolling monitoring scenarios during exercise, it is also necessary to balance the prediction needs of multiple future time windows in the short and medium term while maintaining the simplicity of real-time input.
[0005] Therefore, it is necessary to provide a technical solution that is oriented towards the current motion process, relies only on recent heart rate sequences, and synchronously outputs multiple future time window heart rate prediction values in a single inference by sharing temporal features, so as to reduce the dependence of real-time prediction on heterogeneous kinematic data, location information and user historical data, and improve the consistency of multi-time window prediction deployment. Summary of the Invention
[0006] To address the aforementioned technical problems, this invention provides a multi-time-window heart rate prediction method, system, electronic device, and storage medium.
[0007] Firstly, the present invention provides a multi-time-window heart rate prediction method, the technical solution of which is as follows: The target object obtains continuous heart rate values sampled at predetermined time intervals during its current movement, and selects multiple continuous heart rate sampling points from the continuous heart rate values with the current prediction time as the endpoint to construct a recent heart rate time series. The recent heart rate time series is preprocessed using standardized parameters that have been determined and frozen in advance from the training data to obtain a standardized heart rate time series. The standardized heart rate time series is input into a multi-timescale time series prediction model. The standardized heart rate time series is then subjected to multi-scale time series feature extraction by the shared time series feature extraction unit in the multi-timescale time series prediction model to obtain shared multi-scale dynamic features. Based on the shared multi-scale dynamic features, the multi-output prediction unit in the multi-timescale time series prediction model synchronously outputs at least three heart rate prediction values corresponding to different future time offsets. According to a predetermined update interval, the construction of the recent heart rate time series and the output of the heart rate prediction value are repeatedly executed to generate rolling updated multi-time window heart rate prediction results.
[0008] The beneficial effects of the multi-time-window heart rate prediction method of the present invention are as follows: The method of this invention constructs a recent heart rate time series by acquiring continuous heart rate values sampled at predetermined intervals during the current exercise process, and preprocesses the heart rate data by freezing standardized parameters. The standardized heart rate time series is then input into a multi-timescale time series prediction model that includes a shared time series feature extraction unit and a multi-output prediction unit. In a single inference, at least three heart rate prediction values with different future time offsets are output simultaneously. The above process is executed continuously at predetermined update intervals. This solves the problems of excessive reliance on heterogeneous sensor data, location information, and user historical data in existing heart rate prediction schemes, as well as the scheduling and alignment complexities caused by maintaining multiple models separately. It reduces the requirements for multi-source sensor synchronization and historical data accumulation, and improves the consistency of multi-time window heart rate prediction deployment and the convenience of real-time rolling monitoring.
[0009] Based on the above scheme, the multi-time window heart rate prediction method of the present invention can be further improved as follows.
[0010] In one alternative approach, the step of obtaining continuous heart rate values of the target object sampled at predetermined time intervals during the current motion includes: By using a heart rate sensor worn on the target object, heart rate signals are collected at predetermined time intervals during the target object's current movement, and the heart rate signals are converted into continuous heart rate values.
[0011] The advantages of adopting the above-mentioned optional methods are as follows: it further clarifies the source and conversion method of heart rate data acquisition, and uses a wearable heart rate sensor to directly collect heart rate signals during exercise and convert them into continuous values, making the input data acquisition path clear and controllable, reducing dependence on external heterogeneous sensing devices, and facilitating direct implementation on wearable terminals.
[0012] In one alternative approach, the step of selecting multiple consecutive heart rate sampling points from the continuous heart rate values, with the current prediction time as the endpoint, to construct a recent heart rate time series includes: Using the current predicted time as the endpoint, multiple continuous heart rate sampling points located before the endpoint are selected from the continuous heart rate values in chronological order, and the selected multiple continuous heart rate sampling points are arranged in chronological order to form the recent heart rate time series.
[0013] The advantages of adopting the above optional method are: it further defines the construction rules of recent heart rate time series, selects multiple consecutive sampling points in chronological order with the current prediction time as the endpoint to form a sequence, ensures the temporal continuity of the input data and the consistency of the causal direction, and enables the model to perform subsequent inference based on complete and orderly historical heart rate fluctuations.
[0014] In one alternative approach, the step of preprocessing the recent heart rate time series using standardized parameters pre-determined and frozen from training data to obtain a standardized heart rate time series includes: Obtain the standardized parameters that have been pre-calculated and frozen from the heart rate sampling points in the training data, use the standardized parameters to perform a standardized transformation on each heart rate sampling point in the recent heart rate time series, and arrange the standardized heart rate sampling points in the original time order to obtain the standardized heart rate time series.
[0015] The advantages of adopting the above optional methods are: it further standardizes the specific execution method of standardized preprocessing, uses standardized parameters calculated and fixed from training data to transform recent heart rate time series, avoids changes in statistical characteristics caused by data distribution drift during the deployment stage, keeps the scale of input values stable, and improves the consistency of inference results.
[0016] In one optional approach, the standardized heart rate time series is input into a multi-timescale time series prediction model. A shared time series feature extraction unit within the multi-timescale time series prediction model extracts multi-scale time series features from the standardized heart rate time series to obtain shared multi-scale dynamic features. Then, a multi-output prediction unit within the multi-timescale time series prediction model simultaneously outputs heart rate prediction values corresponding to at least three different future time offsets based on the shared multi-scale dynamic features. This includes: The standardized heart rate time series is input into the shared temporal feature extraction unit. The standardized heart rate time series is processed by causal convolution through multiple residual causal convolution blocks connected in sequence in the shared temporal feature extraction unit. Each residual causal convolution block uses a different dilation rate to extract temporal features at different time scales. The feature output by the last residual causal convolution block at the last valid time position is taken as the shared multi-scale dynamic feature. The shared multi-scale dynamic features are input into the multi-output prediction unit, which then synchronously outputs at least three heart rate prediction values corresponding to different future time offsets based on the shared multi-scale dynamic features.
[0017] The advantages of adopting the above-mentioned optional approach are as follows: it further refines the internal computational structure of the multi-timescale time series prediction model, uses multiple residual causal convolutional blocks to extract multi-scale time series features step by step with different inflation rates, and then generates multiple prediction results of future time offsets synchronously through multiple output prediction units, taking into account the dynamic changes of different time granularities in a single inference.
[0018] In one alternative approach, the steps of repeatedly constructing the recent heart rate time series and outputting the heart rate prediction values at predetermined update intervals to generate rolling updated multi-time-window heart rate prediction results include: According to the predetermined update interval, at each update, multiple continuous heart rate sampling points are selected from the continuous heart rate values with the current prediction time as the endpoint to construct a new recent heart rate time series. Based on the new recent heart rate time series, the output of the heart rate prediction value is re-executed. The multiple heart rate prediction values output in each update are arranged in chronological order to generate the rolling updated multi-time window heart rate prediction result.
[0019] The beneficial effects of adopting the above optional method are as follows: it further illustrates the continuous execution mechanism of rolling prediction, repeatedly constructs the recent heart rate time series according to the predetermined update interval and re-outputs the predicted value, and arranges the multiple prediction results obtained from each update in chronological order to form a continuous prediction trajectory, so that the heart rate trend monitoring can be continuously refreshed with the exercise process and maintain the timeliness of the prediction output.
[0020] In one alternative approach, the multi-timescale time series prediction model undergoes a training phase prior to deployment, the training phase comprising the following steps: The target object's motion records are divided into training record set, verification record set, and test record set; The standardized parameters are calculated and frozen using only heart rate sampling points in the training record set. The recent heart rate window and multiple future time window labels are constructed using the heart rate sampling points in the training record set, and the multi-timescale time series prediction model is trained accordingly. The weights of the multi-timescale temporal prediction model are selected based on the prediction performance on the validation record set, and the weights include the weights of the shared temporal feature extraction unit and the weights of the multi-output prediction unit. The standardized parameters, the weights of the shared temporal feature extraction unit, and the weights of the multi-output prediction unit are frozen to obtain the multi-timescale temporal prediction model.
[0021] The advantages of adopting the above optional approach are as follows: it further specifies the complete implementation process of the model training phase, divides the training, validation and test sets according to motion records and calculates frozen standardized parameters only on the training set, selects network weights based on the performance prediction of the validation set, avoids premature leakage of test information, and ensures that standardized parameters and model weights are completely fixed before deployment, simplifying the online configuration.
[0022] Secondly, this invention provides a multi-time-window heart rate prediction system, the technical solution of which is as follows: The construction module is used to obtain the continuous heart rate values of the target object sampled at predetermined time intervals during the current movement, and to select multiple continuous heart rate sampling points from the continuous heart rate values with the current prediction time as the endpoint to construct the recent heart rate time series. The processing module is used to preprocess the recent heart rate time series using standardized parameters that have been determined and frozen in advance by training data to obtain a standardized heart rate time series. The prediction module is used to input the standardized heart rate time series into a multi-timescale time series prediction model, extract multi-scale time series features from the standardized heart rate time series through the shared time series feature extraction unit in the multi-timescale time series prediction model to obtain shared multi-scale dynamic features, and simultaneously output heart rate prediction values corresponding to at least three different future time offsets based on the shared multi-scale dynamic features through the multi-output prediction unit in the multi-timescale time series prediction model. The generation module is used to repeatedly execute the construction of the recent heart rate time series and the output of the heart rate prediction value according to a predetermined update interval, so as to generate a rolling updated multi-time window heart rate prediction result.
[0023] The beneficial effects of the multi-time-window heart rate prediction system of the present invention are as follows: The system of this invention constructs a recent heart rate time series by acquiring continuous heart rate values sampled at predetermined intervals during the current exercise process, and preprocesses the heart rate data by freezing standardized parameters. The standardized heart rate time series is then input into a multi-timescale time series prediction model that includes a shared time series feature extraction unit and a multi-output prediction unit. In a single inference, at least three heart rate prediction values with different future time offsets are output simultaneously. The above process is executed continuously at predetermined update intervals. This solves the problems of excessive reliance on heterogeneous sensor data, location information, and user historical data in existing heart rate prediction schemes, as well as the scheduling and alignment complexities caused by maintaining multiple models separately. It reduces the requirements for multi-source sensor synchronization and historical data accumulation, and improves the consistency of multi-time window heart rate prediction deployment and the convenience of real-time rolling monitoring.
[0024] Thirdly, the technical solution of an electronic device according to the present invention is as follows: The system includes a memory, a processor, and a program stored in the memory and running on the processor, wherein the processor executes the program to implement the steps of the multi-time-window heart rate prediction method of the present invention.
[0025] Fourthly, the technical solution of a computer-readable storage medium provided by the present invention is as follows: The computer-readable storage medium stores instructions that, when read, cause the computer-readable storage medium to perform the steps of the multi-time-window heart rate prediction method of the present invention.
[0026] The above description is merely an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other objects, features and advantages of the present invention more obvious and understandable, specific embodiments of the present invention are described below. Attached Figure Description
[0027] The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings: Figure 1 This is a flowchart illustrating an embodiment of a multi-time-window heart rate prediction method according to the present invention. Figure 2 This is a schematic diagram of the overall process; Figure 3 This is a schematic diagram of the module structure; Figure 4 A schematic diagram of the structure of a shared multi-scale causal time series prediction model; Figure 5 This is a schematic diagram illustrating the correspondence between recent heart rate time series and multiple future prediction time windows; Figure 6 A flowchart illustrating the process of model training, parameter freezing, and deployment inference; Figure 7 This is a schematic diagram of an embodiment of the multi-time window heart rate prediction system of the present invention; Figure 8 This is a schematic diagram of an embodiment of an electronic device according to the present invention. Detailed Implementation
[0028] Exemplary embodiments of the invention will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the invention are shown in the drawings, it should be understood that the invention can be implemented in various forms and should not be limited to the embodiments set forth herein.
[0029] Figure 1This diagram illustrates a flowchart of an embodiment of a multi-time-window heart rate prediction method provided by the present invention. This method can be executed by electronic devices such as terminal devices or servers. The terminal device can be any fixed or mobile terminal, such as user equipment (UE), mobile device, user terminal, terminal, cellular phone, cordless phone, personal digital assistant (PDA), handheld device, computing device, in-vehicle device, or wearable device. The server can be a single server or a server cluster consisting of multiple servers. Any electronic device can implement the multi-time-window heart rate prediction method by having its processor call computer-readable instructions stored in its memory. Figure 1 As shown, it includes the following steps: S1. Obtain the continuous heart rate values of the target object during the current movement at predetermined time intervals, and select multiple continuous heart rate sampling points from the continuous heart rate values with the current prediction time as the endpoint to construct a recent heart rate time series.
[0030] The target object refers to an individual wearing a heart rate sensor and exercising, whose heart rate data is collected and predicted; for example, an athlete wearing a heart rate monitoring device running outdoors is considered the target object. The predetermined time interval refers to the fixed time length between two adjacent heart rate samples during continuous heart rate acquisition; for example, the heart rate monitoring device collects heart rate values every 10 seconds, and 10 seconds is the predetermined time interval. Continuous heart rate values refer to a sequence of multiple heart rate values collected from the target object according to the predetermined time interval and arranged in chronological order; for example, the heart rate monitoring device collects heart rate every 10 seconds during running, and the continuously collected heart rate value sequence is considered the continuous heart rate value.
[0031] Here, "current prediction time" refers to the time corresponding to the moment when heart rate prediction needs to be performed; for example, at the start of a prediction, the heart rate monitoring device uses the current clock time as the current prediction time. "Continuous heart rate sampling point" refers to a single heart rate value corresponding to a specific sampling time within continuous heart rate values; for example, if the heart rate monitoring device collects a heart rate value of 142 beats per minute at a certain moment, this value and its corresponding sampling time together constitute a continuous heart rate sampling point. "Recent heart rate time series" refers to a time sequence formed by arranging multiple continuous heart rate sampling points selected from the continuous heart rate values in chronological order, with the current prediction time as the endpoint; for example, the heart rate monitoring device selects the previous 9 continuous heart rate sampling points from the continuous heart rate values as the endpoint, arranging them in chronological order to form a sequence of 9 heart rate values as the recent heart rate time series.
[0032] S2. Preprocess the recent heart rate time series using standardized parameters that have been determined and frozen in advance from the training data to obtain a standardized heart rate time series.
[0033] Training data refers to the historical heart rate sampling data set used during model training to calculate standardized parameters and weights for training multi-timescale time series prediction models. For example, a large amount of heart rate sampling data extracted from the historical exercise records of multiple athletes constitutes the training data. Standardized parameters refer to statistics pre-calculated from the heart rate sampling points in the training data, which are frozen after model training and used to standardize recent heart rate time series data. For example, the mean heart rate calculated from all heart rate sampling points in the training data is 135 beats per minute, and the standard deviation is 18 beats per minute; these mean and standard deviation are used as standardized parameters.
[0034] The standardized heart rate time series refers to the numerical sequence obtained by standardizing each heart rate sampling point in the recent heart rate time series using standardized parameters. For example, subtracting the mean heart rate of 135 beats per minute from each heart rate value in the recent heart rate time series and then dividing by the standard deviation of heart rate of 18 beats per minute yields the standardized heart rate numerical sequence.
[0035] S3. Input the standardized heart rate time series into the multi-timescale time series prediction model, and use the shared time series feature extraction unit in the multi-timescale time series prediction model to extract multi-scale time series features from the standardized heart rate time series to obtain shared multi-scale dynamic features. Then, use the multi-output prediction unit in the multi-timescale time series prediction model to synchronously output at least three heart rate prediction values corresponding to different future time offsets based on the shared multi-scale dynamic features.
[0036] Among them, the multi-timescale time series prediction model refers to a neural network model that includes a shared time series feature extraction unit and a multi-output prediction unit, and is able to synchronously output multiple heart rate prediction values corresponding to different future time offsets based on the standardized heart rate time series input; for example, the temporal convolutional network model is used as a multi-timescale time series prediction model.
[0037] The shared temporal feature extraction unit refers to the component in the multi-timescale temporal prediction model responsible for extracting multi-scale dynamic features from the standardized heart rate time series. It contains multiple residual causal convolutional blocks with different dilation rates. For example, the shared temporal feature extraction unit consists of three sequentially connected residual causal convolutional blocks. The shared multi-scale dynamic features refer to the feature vector extracted from the standardized heart rate time series by the shared temporal feature extraction unit, which integrates information from different time scales. For example, the feature vector output by the last residual causal convolutional block at the last valid time position is used as the shared multi-scale dynamic feature.
[0038] The multi-output prediction unit refers to the component in a multi-timescale time-series prediction model responsible for synchronously outputting heart rate prediction values corresponding to multiple future time offsets based on shared multi-scale dynamic features. For example, a linear multi-output prediction head serves as the multi-output prediction unit. The heart rate prediction value refers to the estimated heart rate value corresponding to different future time offsets, synchronously output by the multi-output prediction unit based on shared multi-scale dynamic features. For example, in one inference iteration, the heart rate monitoring device synchronously outputs heart rate estimates corresponding to four future time offsets: 30 seconds, 60 seconds, 120 seconds, and 180 seconds. The heart rate value output at each time offset is the heart rate prediction value, and each heart rate prediction value is restored to heart rate beats per minute (BPM) after inverse standardization.
[0039] S4. According to the predetermined update interval, repeatedly execute the construction of the recent heart rate time series and the output of the heart rate prediction value to generate a rolling updated multi-time window heart rate prediction result.
[0040] The predetermined update interval refers to the time length between two adjacent prediction updates during the rolling prediction process. For example, the heart rate monitoring device re-executes heart rate prediction every 30 seconds, and 30 seconds is the predetermined update interval. The multi-time window heart rate prediction result refers to the sequence of prediction results generated after rolling heart rate prediction according to the predetermined update interval, which contains heart rate prediction values corresponding to multiple future time offsets and arranged in chronological order. For example, the heart rate monitoring device outputs heart rate prediction values corresponding to four future time offsets of 30 seconds, 60 seconds, 120 seconds, and 180 seconds each time it updates, and the prediction values output from multiple updates are arranged in chronological order to form the multi-time window heart rate prediction result.
[0041] The technical solution of this embodiment constructs a recent heart rate time series by acquiring continuous heart rate values sampled at predetermined intervals during the current exercise process, and preprocesses the heart rate data by freezing standardized parameters. The standardized heart rate time series is then input into a multi-timescale time series prediction model that includes a shared time series feature extraction unit and a multi-output prediction unit. In a single inference, at least three heart rate prediction values with different future time offsets are output simultaneously. The above process is executed continuously at predetermined update intervals. This solves the problems of excessive reliance on heterogeneous sensor data, location information, and user historical data in existing heart rate prediction schemes, as well as the scheduling and alignment complexities caused by maintaining multiple models separately. It reduces the requirements for multi-source sensor synchronization and historical data accumulation, and improves the consistency of multi-time window heart rate prediction deployment and the convenience of real-time rolling monitoring.
[0042] In one alternative approach, the step of obtaining continuous heart rate values of the target object sampled at predetermined time intervals during the current motion includes: By using a heart rate sensor worn on the target object, heart rate signals are collected at predetermined time intervals during the target object's current movement, and the heart rate signals are converted into continuous heart rate values.
[0043] Here, a heart rate sensor refers to a hardware device worn on a target object for collecting heart rate signals; for example, a photoplethysmography (PPG) sensor built into a heart rate monitoring device serves as a heart rate sensor. A heart rate signal refers to the raw physiological signal reflecting the heartbeat collected by the heart rate sensor; for example, the PPG signal collected by the PPG sensor serves as a heart rate signal.
[0044] Specifically, the heart rate signal collected by the heart rate sensor from the target object in motion at predetermined time intervals is acquired, the heart rate signal is converted into a heart rate value, and the converted heart rate values are arranged in chronological order of acquisition time as continuous heart rate values.
[0045] Among the above-mentioned optional methods, the source and conversion method of heart rate data acquisition are further clarified. By using a wearable heart rate sensor to directly collect heart rate signals during exercise and convert them into continuous values, the input data acquisition path is clear and controllable, reducing the dependence on external heterogeneous sensing devices and facilitating direct implementation on wearable terminals.
[0046] In one alternative approach, the step of selecting multiple consecutive heart rate sampling points from the continuous heart rate values, with the current prediction time as the endpoint, to construct a recent heart rate time series includes: Using the current predicted time as the endpoint, multiple continuous heart rate sampling points located before the endpoint are selected from the continuous heart rate values in chronological order, and the selected multiple continuous heart rate sampling points are arranged in chronological order to form the recent heart rate time series.
[0047] Here, a heart rate sampling point refers to a single heart rate value in the training data corresponding to a specific sampling time. For example, the heart rate value of a certain historical exercise record in the training data at a certain time is 138 beats per minute. This value and its corresponding sampling time constitute a heart rate sampling point.
[0048] Specifically, taking the current prediction time as the endpoint boundary, the continuous heart rate sampling points located before the endpoint boundary are selected from the continuous heart rate values. The selected continuous heart rate sampling points are sorted from first to last according to their respective sampling times, and the sorted sequence is used as the recent heart rate time series.
[0049] Among the above optional methods, the construction rules for recent heart rate time series are further defined. Multiple consecutive sampling points are selected in chronological order from the current prediction time to form a sequence, ensuring the temporal continuity of the input data and the consistency of the causal direction, so that the model can perform subsequent inference based on complete and orderly historical heart rate fluctuations.
[0050] In one alternative approach, S2 specifically includes: Obtain the standardized parameters that have been pre-calculated and frozen from the heart rate sampling points in the training data, use the standardized parameters to perform a standardized transformation on each heart rate sampling point in the recent heart rate time series, and arrange the standardized heart rate sampling points in the original time order to obtain the standardized heart rate time series.
[0051] Specifically, heart rate sampling points are extracted from the training data, and standardized parameters are calculated based on each heart rate sampling point. The calculated standardized parameters are frozen so that they can be directly used during the deployment phase without being recalculated with the deployed data. The frozen standardized parameters are obtained, and a standardization transformation is performed on each heart rate value in the recent heart rate time series so that the transformed heart rate values maintain a statistical distribution consistent with the training data on a numerical scale. The standardized heart rate values are arranged according to their respective time sequence before the transformation to maintain the original time sequence, thus obtaining the standardized heart rate time series.
[0052] Among the above optional methods, the specific execution method of standardized preprocessing is further standardized. Standardized parameters calculated and fixed from the training data are used to transform the recent heart rate time series, so as to avoid changes in statistical characteristics caused by data distribution drift during the deployment stage, keep the scale of input values stable, and improve the consistency of inference results.
[0053] In one alternative approach, S3 specifically includes: The standardized heart rate time series is input into the shared temporal feature extraction unit. The standardized heart rate time series is subjected to causal convolution processing step by step through multiple residual causal convolution blocks connected in sequence in the shared temporal feature extraction unit. Each residual causal convolution block adopts a different dilation rate to extract temporal features at different time scales. The feature output by the last residual causal convolution block at the last valid time position is taken as the shared multi-scale dynamic feature.
[0054] In this context, multiple residual causal convolutional blocks refer to multiple convolutional modules sequentially connected within the shared temporal feature extraction unit. Each convolutional block processes the input using causal convolution and includes residual connections and nonlinear activation functions. For example, three residual causal convolutional blocks are sequentially connected within the shared temporal feature extraction unit. Causal convolution processing means that in the convolution operation, the output feature at time t is calculated only from the input features at time t and before, without using input features after time t in the calculation. For example, when processing standardized heart rate time series, the output of the shared temporal feature extraction unit at each time depends only on the heart rate values at that time and before.
[0055] In this context, the dilation rate refers to the stride between adjacent sampling points when the convolution kernel samples the input sequence in causal convolution processing. For example, the dilation rates of the three residual causal convolution blocks are 1, 2, and 4, respectively. Temporal features refer to the feature information extracted from heart rate time-series data that reflects the pattern of heart rate changes over time. For example, the shared temporal feature extraction unit extracts the heart rate change trend and fluctuation pattern from the standardized heart rate time series as temporal features.
[0056] Specifically, the standardized heart rate time series is input into the shared temporal feature extraction unit. Multiple residual causal convolutional blocks in the shared temporal feature extraction unit are connected sequentially and perform causal convolution processing on the standardized heart rate time series step by step. Each residual causal convolutional block uses its own different dilation rate to extract temporal features at different time scales. The last residual causal convolutional block outputs the feature at the last valid time position, and the output feature is used as the shared multi-scale dynamic feature.
[0057] It should be noted that the output of causal convolution processing at each time step depends only on the input of that time step and all previous time steps, and does not depend on the input after that time step; each residual causal convolution block expands the receptive field of the convolution kernel without changing the temporal causal order, so that the output features of each time step are generated only by historical heart rate information, excluding the participation of future heart rate information.
[0058] The shared multi-scale dynamic features are input into the multi-output prediction unit, which then synchronously outputs at least three heart rate prediction values corresponding to different future time offsets based on the shared multi-scale dynamic features.
[0059] Specifically, shared multi-scale dynamic features are input into a multi-output prediction unit. The multi-output prediction unit performs linear mapping processing on the shared multi-scale dynamic features. During a forward inference process, the heart rate prediction values corresponding to at least three different future time offsets are calculated simultaneously, and the heart rate prediction values corresponding to each future time offset are output synchronously after the same inference process.
[0060] Among the above-mentioned optional methods, the internal computational structure of the multi-timescale time series prediction model is further refined. Multiple residual causal convolutional blocks are used to extract multi-scale time series features step by step with different dilation rates. Then, multiple prediction results of future time offsets are generated synchronously through multiple output prediction units, taking into account the dynamic changes of different time granularities in a single inference.
[0061] In one alternative approach, S4 specifically includes: According to the predetermined update interval, at each update, multiple continuous heart rate sampling points are selected from the continuous heart rate values with the current prediction time as the endpoint to construct a new recent heart rate time series. Based on the new recent heart rate time series, the output of the heart rate prediction value is re-executed. The multiple heart rate prediction values output in each update are arranged in chronological order to generate the rolling updated multi-time window heart rate prediction result.
[0062] Specifically, the update operation is performed cyclically according to the predetermined update interval. During each update, multiple continuous heart rate sampling points are selected from the continuous heart rate values with the current prediction time as the endpoint. A new recent heart rate time series is constructed using the newly selected multiple continuous heart rate sampling points. Based on the new recent heart rate time series, the output operation of the heart rate prediction value is re-executed. The multiple heart rate prediction values output in the current update round and the multiple heart rate prediction values output in the previous update round are arranged in their respective time order to generate a rolling update multi-time window heart rate prediction result.
[0063] Among the above optional methods, the continuous execution mechanism of rolling prediction is further explained. The recent heart rate time series is repeatedly constructed and the predicted value is re-output according to the predetermined update interval. The multiple prediction results obtained from each update are arranged in chronological order to form a continuous prediction trajectory, so that the heart rate trend monitoring can be continuously refreshed with the exercise process and the timeliness of the prediction output is maintained.
[0064] In one alternative approach, the multi-timescale time series prediction model undergoes a training phase prior to deployment, the training phase comprising the following steps: The target object's motion records are divided into training record set, validation record set, and test record set.
[0065] Among them, a sports record refers to the collection of all heart rate data and related information collected by the target object during a complete exercise session; for example, all heart rate data collected by an athlete during a complete running training session constitutes a sports record.
[0066] The training record set refers to the set of motion records used for model training in the training data; for example, the motion records used for training the model are partitioned from all motion records. The validation record set refers to the set of motion records used to evaluate model performance and select optimal weights during training in the training data; for example, the motion records used to validate model performance are partitioned from all motion records. The test record set refers to the set of motion records used to evaluate the final performance of the model after training is complete, and does not participate in the training or validation processes; for example, the motion records used to test the final performance of the model are partitioned from all motion records.
[0067] Specifically, based on motion records, each motion record of the target object is divided into three non-overlapping subsets, which serve as the training record set, the validation record set, and the test record set, respectively.
[0068] The standardized parameters are calculated and frozen using only heart rate sampling points in the training record set.
[0069] Specifically, heart rate sampling points are extracted from the training record set, and standardized parameters are calculated based on the extracted heart rate sampling points. After the calculation is completed, the standardized parameters are fixed, and the fixed standardized parameters will not be recalculated with new data in the subsequent deployment and inference process.
[0070] It should be noted that during the deployment and inference phase, the frozen standardized parameters are read from the storage medium and directly applied to the preprocessing operations, keeping the standardized parameters constant during model deployment and operation.
[0071] The recent heart rate window and multiple future time window labels are constructed using the heart rate sampling points in the training record set, and the multi-timescale time series prediction model is trained.
[0072] The recent heart rate window refers to a continuous heart rate sequence extracted from the heart rate data of the training record set during the training phase, used as the input sample for building the model. For example, nine consecutive heart rate sampling points are extracted from the heart rate data of the training record set, ending at the current time, as the recent heart rate window. The future time window label refers to the actual heart rate values at multiple future times corresponding to the recent heart rate window during the training phase, located after the end time of the recent heart rate window, serving as the supervision target during model training. For example, the actual heart rate values at 30 seconds, 60 seconds, 120 seconds, and 180 seconds after the end time of the recent heart rate window are used as the future time window labels.
[0073] Specifically, heart rate sampling points are extracted from the training record set, and recent heart rate windows and multiple future time window labels are constructed using the extracted heart rate sampling points. The constructed recent heart rate windows and multiple future time window labels are then used to train the multi-time-scale time series prediction model.
[0074] The weights of the multi-timescale temporal prediction model are selected based on the prediction performance on the validation record set, and the weights include the weights of the shared temporal feature extraction unit and the weights of the multi-output prediction unit.
[0075] Specifically, the trained multi-timescale temporal prediction model is tested on a validation record set. Based on the performance test results, the set with the best prediction performance is selected from multiple sets of weights generated during training. The selected weights include the weights of the shared temporal feature extraction unit and the weights of the multi-output prediction unit.
[0076] The standardized parameters, the weights of the shared temporal feature extraction unit, and the weights of the multi-output prediction unit are frozen to obtain the multi-timescale temporal prediction model.
[0077] Specifically, the standardized parameters, the weights of the shared temporal feature extraction unit, and the weights of the multi-output prediction unit are frozen together, so that the frozen parameters remain unchanged during the deployment and inference phase. The shared temporal feature extraction unit, the multi-output prediction unit, and the frozen standardized parameters are used together as a multi-timescale temporal prediction model.
[0078] Among the above optional methods, the complete implementation process of the model training phase is further specified. The training, validation and test sets are divided according to the motion records, and the frozen standardized parameters are calculated only on the training set. The network weights are selected in combination with the performance prediction of the validation set to avoid premature leakage of test information. The standardized parameters and model weights are completely fixed before deployment, simplifying the online configuration.
[0079] The overall flow of this embodiment is as follows: Figure 2 As shown, the process includes obtaining continuous heart rate values during the current exercise, constructing a recent heart rate time series with the current prediction time as the endpoint, preprocessing using standardized parameters frozen during the training phase, extracting shared multi-scale causal time series features, synchronously outputting multiple future time window heart rate prediction values in a single inference, and generating and continuously updating the multi-time window heart rate prediction results.
[0080] Example 1 illustrates the overall prediction process. During continuous exercise, the target subject wears a wearable device capable of acquiring heart rate data. The heart rate sensor generates continuous heart rate measurements, and the heart rate acquisition module obtains the heart rate sequence at predetermined time intervals. The raw heart rate can be obtained from an electrocardiogram (ECG), photoplethysmography (PPG), or other sensing methods capable of generating heart rate values. This embodiment does not limit the heart rate measurement hardware itself. The recent time series construction module uses the current prediction time t as the endpoint and selects C consecutive sampling points from the heart rate sequence of the current exercise process to form the model input sequence, which is represented as: The online prediction input uses only recent heart rate sequences; velocity, acceleration, GPS location, route, altitude, user ID, and past exercise records are not used as online prediction input in this embodiment. The preprocessing module uses the mean heart rate calculated and frozen during the model training phase. and standard deviation The standardized transformation is performed, and the standardized heart rate value is calculated by subtracting the original heart rate value. Divide by Standardized heart rate value If the prediction target is standardized during the training phase, the model output is inversely transformed to recover the heart rate units per minute. The heart rate prediction value is calculated by multiplying the standardized prediction output by... Added later That is, heart rate prediction = Using training data to calculate and freeze parameters avoids the negative impact of deployment or test data on preprocessing parameters. The multi-scale temporal feature extraction module performs causal temporal modeling on the standardized recent heart rate sequence. In causal convolution, the features at time t are formed only by the inputs at time t and before, excluding heart rate values after time t. By setting different dilation rates for different residual convolutional units, historical information of varying lengths is covered within a finite network depth. The multi-time-window prediction module reads shared temporal features and synchronously generates multiple future time offsets through a multi-output prediction head. Corresponding heart rate prediction value At least 3. In this embodiment , s、 s、 s、 The four predicted values are obtained from the same shared feature and the same forward inference. The result output module displays the predicted vector on the motion terminal or provides an interface to the upper-level motion monitoring software. The system reconstructs the recent heart rate sequence and performs inference at a fixed update interval to form a rolling prediction. The update interval is equal to or greater than the heart rate sampling interval and is set according to the device's computing power. Figure 3The module structure of this embodiment is shown, including a heart rate sensor, a heart rate acquisition module, a recent time series construction module, a preprocessing module, a multi-scale time series feature extraction module, a multi-time window prediction module, a result output module, and a wearable device, mobile terminal, or server.
[0081] Example 2 is a shared multi-scale causal time series model, such as Figure 4 As shown. The shared multi-scale causal time-series model employs a compact temporal convolutional network structure. Recent heart rate sequence. First, the parameters are standardized using the standardized parameters frozen during training. Then, three residual causal convolutional blocks are input sequentially. The input tensor shape is... The first residual causal convolutional block uses a one-dimensional convolution with a kernel size of 3 and a dilation rate of 1; the second uses a one-dimensional convolution with a kernel size of 3 and a dilation rate of 2; and the third uses a one-dimensional convolution with a kernel size of 3 and a dilation rate of 4. Each convolutional block includes a non-linear activation function and residual connections, with a dropout operation at a dropout rate of 0.10. In a validated implementation, each temporal convolutional block uses 64 channels and employs a linear rectified unit activation function. The shared features at the last valid temporal location are input to a linear multi-output prediction head, which outputs a four-dimensional vector. ,correspond s、 s、 s、 The model generates heart rate predictions for four future time offsets. The number of channels, dilation rate, and convolutional kernel size are adjusted according to the deployment platform to maintain causal temporal processing, shared multi-scale features, and direct output across multiple time windows in a single inference. The model is trained using the AdamW optimizer with a learning rate of 0.001, weight decay of 0.0001, and equal-weighted L1 loss as the loss function for multiple future time window predictions. The batch size is set to 1024, the maximum number of training epochs is 30, and the average absolute error of the user's macro across four time windows on the validation set is used as the early stopping metric, with an early stopping patience value set to 5. After training, the best-performing frozen weights on the validation set are restored for deployment inference.
[0082] Example 3 shows the construction of a time window, such as... Figure 5 As shown. In a sequence with a nominal 10 s time step, when At that time, the recent heart rate sequence is represented as to The nominal time span between the first and last sampling points is approximately 80 seconds. Future targets are located at... , , and The corresponding time intervals are 30 s, 60 s, 120 s, and 180 s. To ensure no overlap between the input and the target, all future targets are strictly located after the current prediction time t. For motion sequences with a fixed length of 300 sampling points, valid prediction anchor points are selected based on the longest prediction time offset. During online deployment, it is not necessary to fix the 300 sampling points; it is only necessary to ensure that there are sufficient recent sampling points before the current prediction time. To control computational redundancy between consecutive windows, a certain step size is used to extract prediction anchor points during offline training or evaluation. During online deployment, a shorter or longer update interval is used depending on the device's computing power and the application's refresh frequency.
[0083] Example 4 illustrates training data construction and prevention of information leakage, such as... Figure 6 As shown, model training first divides the data into training, validation, and test sets based on motion records. Then, windows are constructed to prevent the same motion record from spanning different subsets of data. In one implementation, the motion records of each anonymous user are sorted by time and divided into training, validation, and test sets in approximately 80%, 10%, and 10% respectively. Heart rate standardization parameters are calculated only from independent heart rate sampling points in the training set. The validation and test sets use the same frozen parameters and are not refitted. Model selection is based solely on the validation set; the model structure, input fields, window length, prediction time window, and final weights are frozen before evaluation on the test set. This training process yields a deployable prediction model. During deployment, only the frozen model parameters and corresponding standardization parameters need to be saved; training data or user identity information does not need to be saved.
[0084] Example 5 illustrates experimental verification. To verify the above technical solution, experiments were conducted using publicly available FitRec and Endomondo processing data. Users with at least 10 exercise records were included, resulting in 887 users and 102,343 exercise records. Each processed exercise sequence contained 300 heart rate sampling points, and the model time step was interpreted as a nominal 10 s. The number of exercise records in the training, validation, and test sets were 81,525, 10,186, and 10,632, respectively. The main implementation used 9 recent heart rate sampling points as input, with a prediction anchor step size of 6 model time steps, and outputted four future heart rate predictions at 30 s, 60 s, 120 s, and 180 s. The main model employed a temporal convolutional network with 3 residual causal convolutional blocks, 64 channels, a kernel size of 3, and dilation rates of 1, 2, and 4. The evaluation metric is the user macro mean absolute error, which is averaged first within the motion record, then within the user, and finally across users, with the unit being heartbeats per minute. The test results are shown in Table 1 below: Compared to the linear Ridge model using the same recent heart rate input, the average MAE of the TCN in this embodiment is reduced by 0.581 BPM across four time windows, a relative reduction of approximately 7.77%. When using a preset longer context-sensitive scheme with 18 recent heart rate sampling points, the average MAE across four time windows is 6.693 BPM. When the anchor step size is shortened from 6 to 3, the average MAE across four time windows is 6.853 BPM. These results demonstrate that, while maintaining the current recent heart rate as real-time input, shared multi-scale temporal modeling can stably generate heart rate prediction results for multiple future time windows.
[0085] The above results show that, under different context lengths and different prediction update frequencies, the shared multi-scale causal time series modeling can stably generate heart rate prediction results for multiple future time windows, indicating that the technical solution of this embodiment has strong adaptability and robustness in different deployment scenarios.
[0086] Figure 7 A schematic diagram of an embodiment of a multi-time-window heart rate prediction system 200 provided by the present invention is shown. Figure 7 As shown, the multi-time-window heart rate prediction system 200 includes: The construction module 201 is used to obtain the continuous heart rate values of the target object sampled at predetermined time intervals during the current movement, and to select multiple continuous heart rate sampling points from the continuous heart rate values with the current prediction time as the endpoint to construct the recent heart rate time series. Processing module 202 is used to preprocess the recent heart rate time series using standardized parameters that have been determined and frozen in advance by training data to obtain a standardized heart rate time series; Prediction module 203 is used to input the standardized heart rate time series into a multi-timescale time series prediction model, extract multi-scale time series features from the standardized heart rate time series through the shared time series feature extraction unit in the multi-timescale time series prediction model to obtain shared multi-scale dynamic features, and simultaneously output heart rate prediction values corresponding to at least three different future time offsets based on the shared multi-scale dynamic features through the multi-output prediction unit in the multi-timescale time series prediction model. The generation module 204 is used to repeatedly execute the construction of the recent heart rate time series and the output of the heart rate prediction value according to a predetermined update interval, so as to generate a rolling updated multi-time window heart rate prediction result.
[0087] In an alternative embodiment, the building module 201 is specifically used for: By using a heart rate sensor worn on the target object, heart rate signals are collected at predetermined time intervals during the target object's current movement, and the heart rate signals are converted into continuous heart rate values.
[0088] In an alternative embodiment, the building module 201 is specifically used for: Using the current predicted time as the endpoint, multiple continuous heart rate sampling points located before the endpoint are selected from the continuous heart rate values in chronological order, and the selected multiple continuous heart rate sampling points are arranged in chronological order to form the recent heart rate time series.
[0089] In an alternative embodiment, the processing module 202 is specifically used for: Obtain the standardized parameters that have been pre-calculated and frozen from the heart rate sampling points in the training data, use the standardized parameters to perform a standardized transformation on each heart rate sampling point in the recent heart rate time series, and arrange the standardized heart rate sampling points in the original time order to obtain the standardized heart rate time series.
[0090] In an alternative embodiment, the prediction module 203 is specifically used for: The standardized heart rate time series is input into the shared temporal feature extraction unit. The standardized heart rate time series is processed by causal convolution through multiple residual causal convolution blocks connected in sequence in the shared temporal feature extraction unit. Each residual causal convolution block uses a different dilation rate to extract temporal features at different time scales. The feature output by the last residual causal convolution block at the last valid time position is taken as the shared multi-scale dynamic feature. The shared multi-scale dynamic features are input into the multi-output prediction unit, which then synchronously outputs at least three heart rate prediction values corresponding to different future time offsets based on the shared multi-scale dynamic features.
[0091] In an alternative embodiment, the generation module 204 is specifically used for: According to the predetermined update interval, at each update, multiple continuous heart rate sampling points are selected from the continuous heart rate values with the current prediction time as the endpoint to construct a new recent heart rate time series. Based on the new recent heart rate time series, the output of the heart rate prediction value is re-executed. The multiple heart rate prediction values output in each update are arranged in chronological order to generate the rolling updated multi-time window heart rate prediction result.
[0092] In one alternative approach, the multi-timescale time series prediction model undergoes a training phase prior to deployment, the training phase comprising the following steps: The target object's motion records are divided into training record set, verification record set, and test record set; The standardized parameters are calculated and frozen using only heart rate sampling points in the training record set. The recent heart rate window and multiple future time window labels are constructed using the heart rate sampling points in the training record set, and the multi-timescale time series prediction model is trained accordingly. The weights of the multi-timescale temporal prediction model are selected based on the prediction performance on the validation record set, and the weights include the weights of the shared temporal feature extraction unit and the weights of the multi-output prediction unit. The standardized parameters, the weights of the shared temporal feature extraction unit, and the weights of the multi-output prediction unit are frozen to obtain the multi-timescale temporal prediction model.
[0093] It should be noted that the beneficial effects of the multi-time-window heart rate prediction system 200 provided in the above embodiments are the same as those of the multi-time-window heart rate prediction method described above, and will not be repeated here. Furthermore, the system provided in the above embodiments is only illustrated by the division of the above functional modules. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the system can be divided into different functional modules according to the actual situation to complete all or part of the functions described above. In addition, the system and method embodiments provided in the above embodiments belong to the same concept, and their specific implementation process is detailed in the method embodiments, and will not be repeated here.
[0094] The multi-time-window heart rate prediction system 200 of the present invention can be a computer program (including program code) running on a computer device. For example, the multi-time-window heart rate prediction system 200 of the present invention is an application software that can be used to execute the corresponding steps in the multi-time-window heart rate prediction method of the present invention.
[0095] In some embodiments, the multi-time-window heart rate prediction system 200 of the present invention can be implemented in a combination of hardware and software. As an example, the multi-time-window heart rate prediction system 200 of the present invention can be a processor in the form of a hardware decoding processor, which is programmed to execute the multi-time-window heart rate prediction method of the present invention. For example, the processor in the form of a hardware decoding processor can be one or more application-specific integrated circuits (ASICs), DSPs, programmable logic devices (PLDs), complex programmable logic devices (CPLDs), field-programmable gate arrays (FPGAs), or other electronic components.
[0096] The modules described in the embodiments of this invention can be implemented in software or hardware. The names of the modules are not, in some cases, limiting the scope of the module itself.
[0097] An electronic device according to an embodiment of the present invention includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements any of the above-mentioned multi-time-window heart rate prediction methods. That is, an electronic device according to an embodiment of the present invention may include, but is not limited to: a processor and a memory; the memory is used to store the computer program; the processor is used to execute the multi-time-window heart rate prediction method shown in any embodiment of the present invention by calling the computer program.
[0098] In one alternative embodiment, an electronic device is provided, such as Figure 8 As shown, Figure 8 The illustrated electronic device 4000 includes a processor 4001 and a memory 4003. The processor 4001 and the memory 4003 are connected, for example, via a bus 4002. Optionally, the electronic device 4000 may further include a transceiver 4004, which can be used for data interaction between the electronic device and other electronic devices, such as sending and / or receiving data. It should be noted that in practical applications, the transceiver 4004 is not limited to one type, and the structure of the electronic device 4000 does not constitute a limitation on the embodiments of the present invention.
[0099] Processor 4001 may be a CPU (Central Processing Unit), a general-purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array), or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It can implement or execute the various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of this invention. Processor 4001 may also be a combination that implements computational functions, such as including one or more microprocessor combinations, a combination of a DSP and a microprocessor, etc.
[0100] Bus 4002 may include a path for transmitting information between the aforementioned components. Bus 4002 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus, etc. Bus 4002 can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 8 The bus 4002 is represented by only one thick line, but this does not mean that there is only one bus or one type of bus.
[0101] The memory 4003 may be ROM (Read Only Memory) or other types of static storage devices capable of storing static information and instructions, RAM (Random Access Memory) or other types of dynamic storage devices capable of storing information and instructions, or EEPROM (Electrically Erasable Programmable Read Only Memory), CD-ROM (Compact Disc Read Only Memory) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital universal optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited thereto.
[0102] The memory 4003 stores application code (computer program) for executing the present invention, and its execution is controlled by the processor 4001. The processor 4001 executes the application code stored in the memory 4003 to implement the content shown in the foregoing method embodiments.
[0103] Among them, electronic devices can also be terminal devices. A terminal device can be any terminal device that can install applications and access web pages through applications, including at least one of smartphones, tablets, laptops, desktop computers, smart speakers, smartwatches, smart TVs, and smart in-vehicle devices.
[0104] It should be noted that, Figure 8 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments of the present invention.
[0105] An embodiment of the present invention provides a computer-readable storage medium storing a computer program, which, when executed by a processor, implements any of the above-described multi-time-window heart rate prediction methods.
[0106] Alternatively, the computer-readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), magnetic tape, a floppy disk, and an optical data storage device, etc.
[0107] In an exemplary embodiment, a computer program product or computer program is also provided, which includes computer instructions stored in a computer-readable storage medium. A processor of an electronic device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the electronic device to perform the aforementioned multi-time-window heart rate prediction method.
[0108] Computer program code for performing the operations of this invention can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as C or similar languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0109] It should be understood that the flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of methods and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0110] The computer-readable storage medium provided in this invention can be, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0111] The aforementioned computer-readable storage medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to perform the method shown in the above embodiments.
[0112] The above description is merely a preferred embodiment of the present invention and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of disclosure in this invention is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-disclosed concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features with similar functions disclosed in this invention.
[0113] It should be noted that the terms "first," "second," etc., used in the specification and claims of this application are used to distinguish similar objects and represent a limitation on a specific order or sequence. Where appropriate, the order of use for similar objects can be interchanged so that the embodiments of this application described herein can be implemented in an order other than that shown or described.
[0114] Those skilled in the art will recognize that this invention can be implemented as a system, method, or computer program product. Therefore, this invention can be specifically implemented in the following forms: it can be entirely hardware, entirely software (including firmware, resident software, microcode, etc.), or a combination of hardware and software, generally referred to herein as a "circuit," "module," or "system." Furthermore, in some embodiments, this invention can also be implemented as a computer program product contained in one or more computer-readable media, which includes computer-readable program code.
[0115] Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention.
Claims
1. A multi-time-window heart rate prediction method, characterized in that, include: The target object obtains continuous heart rate values sampled at predetermined time intervals during its current movement, and selects multiple continuous heart rate sampling points from the continuous heart rate values with the current prediction time as the endpoint to construct a recent heart rate time series. The recent heart rate time series is preprocessed using standardized parameters that have been determined and frozen in advance from the training data to obtain a standardized heart rate time series. The standardized heart rate time series is input into a multi-timescale time series prediction model. The standardized heart rate time series is then subjected to multi-scale time series feature extraction by the shared time series feature extraction unit in the multi-timescale time series prediction model to obtain shared multi-scale dynamic features. Based on the shared multi-scale dynamic features, the multi-output prediction unit in the multi-timescale time series prediction model synchronously outputs at least three heart rate prediction values corresponding to different future time offsets. According to a predetermined update interval, the construction of the recent heart rate time series and the output of the heart rate prediction value are repeatedly executed to generate rolling updated multi-time window heart rate prediction results.
2. The multi-time-window heart rate prediction method according to claim 1, characterized in that, The steps for obtaining continuous heart rate values of a target object sampled at predetermined time intervals during the current movement include: By using a heart rate sensor worn on the target object, heart rate signals are collected at predetermined time intervals during the target object's current movement, and the heart rate signals are converted into continuous heart rate values.
3. The multi-time-window heart rate prediction method according to claim 1, characterized in that, The step of constructing a recent heart rate time series by selecting multiple continuous heart rate sampling points from the continuous heart rate values, with the current prediction time as the endpoint, includes: Using the current predicted time as the endpoint, multiple continuous heart rate sampling points located before the endpoint are selected from the continuous heart rate values in chronological order, and the selected multiple continuous heart rate sampling points are arranged in chronological order to form the recent heart rate time series.
4. The multi-time-window heart rate prediction method according to claim 1, characterized in that, The step of preprocessing the recent heart rate time series using standardized parameters pre-determined and frozen from training data to obtain a standardized heart rate time series includes: Obtain the standardized parameters that have been pre-calculated and frozen from the heart rate sampling points in the training data, use the standardized parameters to perform a standardized transformation on each heart rate sampling point in the recent heart rate time series, and arrange the standardized heart rate sampling points in the original time order to obtain the standardized heart rate time series.
5. The multi-time-window heart rate prediction method according to claim 1, characterized in that, The steps include: inputting the standardized heart rate time series into a multi-timescale time series prediction model; extracting multi-scale time series features from the standardized heart rate time series using a shared time series feature extraction unit in the multi-timescale time series prediction model to obtain shared multi-scale dynamic features; and simultaneously outputting heart rate prediction values corresponding to at least three different future time offsets based on the shared multi-scale dynamic features using a multi-output prediction unit in the multi-timescale time series prediction model. The standardized heart rate time series is input into the shared temporal feature extraction unit. The standardized heart rate time series is processed by causal convolution through multiple residual causal convolution blocks connected in sequence in the shared temporal feature extraction unit. Each residual causal convolution block uses a different dilation rate to extract temporal features at different time scales. The feature output by the last residual causal convolution block at the last valid time position is taken as the shared multi-scale dynamic feature. The shared multi-scale dynamic features are input into the multi-output prediction unit, which then synchronously outputs at least three heart rate prediction values corresponding to different future time offsets based on the shared multi-scale dynamic features.
6. The multi-time-window heart rate prediction method according to claim 1, characterized in that, The steps of repeatedly constructing the recent heart rate time series and outputting the heart rate prediction values according to a predetermined update interval to generate rolling updated multi-time window heart rate prediction results include: According to the predetermined update interval, at each update, multiple continuous heart rate sampling points are selected from the continuous heart rate values with the current prediction time as the endpoint to construct a new recent heart rate time series. Based on the new recent heart rate time series, the output of the heart rate prediction value is re-executed. The multiple heart rate prediction values output in each update are arranged in chronological order to generate the rolling updated multi-time window heart rate prediction result.
7. The multi-time-window heart rate prediction method according to claim 1, characterized in that, The multi-timescale time series prediction model undergoes a training phase before deployment. The steps of the training phase include: The target object's motion records are divided into training record set, verification record set, and test record set; The standardized parameters are calculated and frozen using only heart rate sampling points in the training record set. The recent heart rate window and multiple future time window labels are constructed using the heart rate sampling points in the training record set, and the multi-timescale time series prediction model is trained accordingly. The weights of the multi-timescale temporal prediction model are selected based on the prediction performance on the validation record set, and the weights include the weights of the shared temporal feature extraction unit and the weights of the multi-output prediction unit. The standardized parameters, the weights of the shared temporal feature extraction unit, and the weights of the multi-output prediction unit are frozen to obtain the multi-timescale temporal prediction model.
8. A multi-time-window heart rate prediction system, characterized in that, include: The construction module is used to obtain the continuous heart rate values of the target object sampled at predetermined time intervals during the current movement, and to select multiple continuous heart rate sampling points from the continuous heart rate values with the current prediction time as the endpoint to construct the recent heart rate time series. The processing module is used to preprocess the recent heart rate time series using standardized parameters that have been determined and frozen in advance by training data to obtain a standardized heart rate time series. The prediction module is used to input the standardized heart rate time series into a multi-timescale time series prediction model, extract multi-scale time series features from the standardized heart rate time series through the shared time series feature extraction unit in the multi-timescale time series prediction model to obtain shared multi-scale dynamic features, and simultaneously output heart rate prediction values corresponding to at least three different future time offsets based on the shared multi-scale dynamic features through the multi-output prediction unit in the multi-timescale time series prediction model. The generation module is used to repeatedly execute the construction of the recent heart rate time series and the output of the heart rate prediction value according to a predetermined update interval, so as to generate a rolling updated multi-time window heart rate prediction result.
9. An electronic device, characterized in that, The electronic device includes a processor coupled to a memory storing at least one computer program, which is loaded and executed by the processor to enable the electronic device to implement the multi-time window heart rate prediction method as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one computer program, which, when executed by a processor, implements the multi-time-window heart rate prediction method as described in any one of claims 1 to 7.
