- 1REHELab, Dipartimento di Neuroscienze, Riabilitazione, Oftalmologia, Genetica e Scienze Materno-Infantili, Università degli studi di Genova, Genova, Italy
- 2Swhard s.r.l., Genova, Italy
- 3Department of Physical Education and Rehabilitation, Experimental Anatomy Research Group (EXAN), Vrije Universiteit of Brussel (VUB), Brussels, Belgium
Telerehabilitation improves accessibility and accelerates recovery: in this context, Inertial Measurement Units (IMUs) are promising wearable sensors for remote movement data collection, which allows to evaluate how closely exercise repetitions align with a prescribed trajectory. Current data processing methods for this purpose include data-driven approaches, requiring exercise-specific training through large amount of data, or distance-based methods with unbounded output, not easy to interpret. This study proposes a novel algorithm which combines the versatility of a bounded output score with numerical stability of quaternions. Data from an IMU-based device were acquired during the execution of human functional shoulder movements by both a young and elderly group of participants. Outputs from the application of the proposed methodology on collected data from same or different movements were statistically compared, revealing ability of discriminating repetitions of the same or of different movements (, rrb effect size = 0.97, contrast ratio 1.7). The proposed algorithm was also confronted with the traditional approaches by statistically comparing outputs from comparison matrices rescaled in equal range of values, and results indicated mild differences in performance (rrb effect size < 0.5). Future works may involve integrating this approach into a functioning telerehabilitation system and obtaining feedback on the usability from real users.
1 Introduction
The shoulder joint is one of the most complex structures in the human body (1) and is one of the most frequently affected by musculoskeletal disorders (MSDs) (2). MSDs significantly impact the quality of life of those affected (3) and represent an economic and logistic burden for the healthcare system (2, 4–6). This is mainly due to the prolonged rehabilitation treatment required for full recovery (4). Rehabilitation is indeed often performed in clinical settings, but the possibility of pursuing the treatment at home would allow patients to save time and money, and healthcare structures to simplify procedures and contain costs (4–7). Therefore, the interest in developing home-based rehabilitation solutions has grown over time (4).
Nonetheless, home-based rehabilitation is often jeopardized by the patient’s low adherence to the prescribed treatment owing to the absence of expert supervision (8). Ensuring the patient’s adherence to a prescribed movement and its correct execution represent key elements that can speed up the rehabilitation process (9–13).
To this extent, data from motion capture sensors need to be processed to provide both the patient and clinician with intuitive feedback about the appropriateness of the executed movement.
Among motion capture technologies, the most suitable for telerehabilitation are Inertial Measurement Units (IMUs) (14–19): these types of sensors can indeed be easily worn and attached to a person, measuring joint angles and accelerations without the need for any additional devices or supervision (15).
A successful algorithm for processing data from IMUs to provide feedback on correct movement execution in a telerehabilitation system should therefore account for two factors: numerical stability and patient engagement.
Numerical stability is highly influenced by the representation used to describe three-dimensional kinematics. Kinematic description of movements of the shoulder joint involves not only assessing basic planar movements (10, 20, 21), but also functional movements performed in daily life that might be impeded by impairments (10, 22–24). In this context, the most numerically stable representation is provided by quaternions, due to the singularity phenomena inherent to other three degrees of freedom representations (25, 26). Moreover, quaternions are the output of most sensor fusion algorithms that extract orientation from raw IMU data (27), which makes them a convenient representation to be used for assessing correct execution of movements in telerehabilitation systems.
Patient engagement is usually obtained by processing data to obtain an indicator of movement conformity to a template. Some methods provide discrete indicators (e.g., correct/incorrect) (28–30), which, however, do not provide a continuous scale of correctness, impeding the patient to understand the degree of error (31). Other methods involve data-driven approaches (31): this is a very powerful methodology, which, however requires large dataset that are exercise-specific to be trained, and therefore does not allow flexibility in changing the movement being assessed without training on new datasets (31, 32).
Another possibility involves using distance-based algorithms to compare trajecotries (31, 33), which is a very operationally simple technique, requiring no a priori knowledge nor training phase (31). Nonetheless, most of the studies exploring this approach use distance-based algorithms with unbounded outputs, which makes the output not easy to interpret and less intutive. The potential of using distance-based algorithms providing an output in a bounded range seems underexplored.
In this study, we present an approach for the evaluation of shoulder functional movements that is quaternion-based for numerical stability and relies on a new bounded algorithm for the trajectory similarity measure. Next, we present results from the verification of the approach using data collected through an IMU-based device developed by our research group (34) and comparing its performance with that of existing algorithms.
The contributions of the study are the following:
• To define an assessment methodology in quaternion space with the aim of improving numerical stability with respect to other representations of kinematics
• To provide a novel easy-to-use (no training required), flexible (not exercise-dependent) and easy to understand (bounded score) algorithm to compare quaternion trajectories and compare its performance with the one of existing algorithms
• To verify the joint approach involving quaternion analysis and trajectory comparison through bounded output distance-based algorithms using IMU data related to shoulder functional movements, with the aim of enhancing the potential of IMUs in wearable devices for remote monitoring by promoting their use in a functional approach to telerehabilitation
2 Related works
The analysis of human movement plays a crucial role in many different fields (35). However, traditional movement analysis techniques such as photogrammetry, optoelectronic analysis and video analysis, require complex and expensive instrumentation (36). Furthermore, these systems are characterized by low portability, which limits their applications outside the laboratory environment (14). As a first step towards the applicability of motion capture systems for remote monitoring of movement, some studies explored assessing the quality of movement combining Virtual Reality systems and kinematic models (37, 38): however, also these systems require the use of cameras with markers or controllers and head-mounted displays.
In recent years, significant progress has been made in the development of Inertial Measurement Units (IMUs). As a result, researchers have suggested the use of these devices to overcome the limitations of conventional movement analysis systems, especially when data needs to be collected in ecological settings (14, 15). IMUs are widely used in the most recent studies for movement analysis, since this type of sensors offers the possibility to be easily worn and attached to the person, measuring joint angles and accelerations without the need for any other additional devices (14–19).
Thanks to the potential of recent motion capture technologies to allow for the development of telerehabilitation systems, literature about data processing for remotely assessing conformity of movement has grown over time.
One first aspect to consider when assessing the conformity of movement is how to represent the kinematics. Because recent techniques for shoulder rehabilitation not only involve simple planar movements, but also complex three-dimensional functional movements (11, 12, 39), for these complex movements the evaluation of the Range of Motion (RoM) on a plane (20, 24, 40, 41) is not sufficient, and an analysis of the overall three-dimensional kinematics is needed. However, representation of rotations through three degrees of freedom approaches (e.g., Euler or Cardan angles) is very prone to errors due to phenomena such as singularities and gimbal lock (25, 26). Therefore, even if it is less intuitive, quaternion representation is recommended to enhance numerical stability. Moreover, quaternions are the output of most sensor fusion algorithms that extract orientation from raw IMU data (27).
The second aspect to consider for movement conformity assessment is the algorithm used to compare trajectories. A review of the available computational approaches for evaluating rehabilitation exercises has been provided by Liao et al. (31). They have classified assessment techniques into three categories: discrete movement score, rule-based, and template-based approaches (31).
Discrete movement score approaches evaluate movement based on discrete classes (e.g., correct/incorrect): despite being a first good indicator of correctness, this might be frustrating for the patient owing to the unavailability of finer information about the level of correctness, which could instead be provided through a continuous assessment scale (31).
Rule-based approaches rely on the a priori definition of a set of rules for exercise execution: despite being a well-performing approach in many contexts, it lacks generality and therefore forces the evaluation system to be exercise-specific, leaving little flexibility to the clinician who has to re-define the rules if the therapeutic approach changes (31).
Finally, in the template-based approach, a series of exercise repetitions is compared with a template (reference) movement, and a quantitative indicator of coherence with respect to the reference is provided. This approach both allows personalized patient-based therapy (by defining a patient-specific template) and fosters patient enhancement by providing engaging indicators. The comparison of repetitions with the reference template is very often performed using probabilistic approaches, such as Hidden Markov Models (42–45) or deep learning algorithms (e.g., Graph Convolutional Networks) (46). This approach is very powerful, although it requires the collection of sufficiently large datasets to be trained (32), partially leading to the loss of flexibility in defining patient-specific therapy.
Another approach for comparing repetitions with the reference template is using distance metrics, such as Euclidean or Mahalanobis distance (42, 43, 47, 48). These techniques are very easy to implement if signals have the same length and are uniformly sampled (i.e., all movement repetitions have the same duration and are performed at the same speed) (31, 48): in this case, the use of Euclidean distance is defined as lock-step Euclidean distance (point-to-point distance measure) (49). However, if a constraint on the speed is not imposed, more elaborated trajectory comparison methods need to be considered.
A comparative analysis of algorithms for measuring trajectory similarity was provided by Tao et al. (49). Specifically, they considered five methods: dynamic time warping (DTW) (50–52), Fréchet distance (FD) (53), discrete Fréchet distance (DFD) (54), edit distance on real sequence (EDR) (55) and longest common subsequence (LCSS) (56). All these methods allow the comparison of trajectories of different lengths and non-uniformly sampled, using two main different approaches: DTW, FD and DFD are a variation of the basic lock-step Euclidean distance aimed at considering different lengths and non-uniform sampling; therefore, these methods provide as an output an unbounded measure of similarity. On the other hand, EDR and LCSS define a threshold below which points in the compared trajectories are considered similar; consequently, the output of these algorithms is a bounded similarity measure, related to the number of points classified as similar.
Unbounded algorithms, especially DTW, are often used when assessing rehabilitation exercises because of their proven reliability (31, 33). Nonetheless, to make the unbounded output intuitive for the clinician and engaging for the patient, it is necessary to convert it into a conformity score, which is usually done by: relying on information about data estabilished a priori or inferred from large datasets (e.g., bound limits) (43, 57–59), familiarization procedures for the clinician and the patient (60), or output discretization (61, 62). This may limit the potential versatility of the template-based approach.
Bounded algorithms rely on determining the similarity of points in trajectories based on an acceptance threshold; therefore, they can directly provide a conformity score as an output without a priori knowledge of the movement. However, their potential in telerehabilitation applications remains underexplored.
These premises led to the development of a quaternion-based approach with trajectory comparison performed through a novel bounded algorithm aimed at assessing repetitions of functional complex movements of the shoulder joint, which is presented in this study.
3 Materials and methods
3.1 Mathematical description of the proposed methodology
In this section, we provide detailed mathematical description of the proposed methodology for assessing coherence between repetitions of functional movements using analysis in quaternion space and bounded distance-based algorithms for trajectory comparison.
Considering the acquisition of a quaternion over time, it is first necessary to calculate the spatial trajectories resulting from the combination of quaternion components. In the following, a quaternion q is denoted as in Equation 1:
where w, x, y, z are the four components of the quaternion and i,j,k denote the imaginary parts (63).
To analyze the trajectories in the quaternion space, we evaluated the bi-dimensional correlations among the four components of a quaternion. To this extent, by coupling the components, we analyzed the following bi-dimensional trajectories:
The six trajectories listed in Equation 2 represent the six combinations of the four quaternion components in couples (all possible couple combinations of four elements with no repetition).
After obtaining the spatial trajectories in quaternion space, it is necessary to compare the various repetition of a movement with a template trajectory. To this extent, we applied trajectory comparison algorithms (49) to each of the quaternion components trajectories listed in Equation 2, comparing the trajectory of the repetition with that of the template. Next, to provide a synthetic indicator of coherence between the two movements, we averaged the outputs from the six comparisons.
For the comparison of the quaternion components trajectories, we considered a novel algorithm called Nearest Neighbor Score (NNS) and compared its performance with the trajectory comparison methods described in (49) (DTW, FD, DFD, EDR, and LCSS).
The implementation of the new NNS algorithm is described hereafter. We implemented the algorithm in Python 3.11, with Numpy 1.26 and Pandas 2.1 for calculations, through a routine suitable for every platform and operating system. See data availability statement for reference to the code repository. However, hereafter, we explain the concept behind the implementation and we present the pseudo-code so that the steps necessary to calculate the conformity score can be replicated in any other programming language.
The trajectories compared through the algorithm are in the following denoted as: for the template movement with length n, for the repetition movement with length m. For each point in the template trajectory, the algorithm:
1. finds the two nearest points in the repetition trajectory;
2. calculates the interpolating line between these two points;
3. finds the -value on the interpolating line at the same as the template point;
4. calculates the distance between the -value of the point on the interpolating line and the -value of the template point;
5. increments a conformity score, expressed as a percentage of the number of samples n, if the distance calculated in the previous step exceeds one of the following thresholds:
• , defined as the of the absolute range of the target curve (value chosen by considering a 10% tolerance around the considered point)
• , which was set based on the accuracy of the measurement instruments used.
Figure 1 illustrates the described process, and Algorithm 1 provides the pseudo-code implementation.

Figure 1. Schematic illustration of the steps of the NNS algorithm for one point in the template trajectory.
In the final step of the algorithm, the score is expressed as a percentage of points classified as similar (based on the thresholds) over the total number of points. This implies that an output below means that there were less points classified as similar than points classified as different. On the opposite, a score greater than means more similar point than different points, and the closer the score gets to , the higher is the number of similar points.
3.2 Data collection
This section illustrates the methodologies for the data collection performed in order to verify the proposed approach.
Orientation data were acquired through an IMU-based wearable device, called Sentry, developed by Swhard s.r.l. in collaboration with the REHELab (University of Genoa, Italy). The device incorporates two BNO080 sensors, produced by a collaboration between Hillcrest Labs and Bosch Sensortec GmbH (64), each one integrating a 14-bit tri-axial accelerometer, a 16-bit 3-axis gyroscope and a geomagnetic tri-axial sensor, accompanied by a 32-bit ARM Cortex®-M0 microcontroller running a proprietary software (34). The accuracy, reliability, and repeatability of the device measurements were previously demonstrated through tests involving movements on a robotic arm (34). The output from the sensors are two unitary quaternions over time, representing their orientation expressed in the earth Reference Frame. Data are transmitted via Bluetooth at a sampling frequency of 25 Hz to a personal computer. On the computer, an acquisition and storage software platform (customly developed Microsoft Universal Windows Platform) saves the data as plain text files.
A first set of tests was carried out with a robotic arm, using the same setup as described in (34), to test the algorithm under controlled conditions, simulating basic shoulder movements. One sensor was fixed as a reference on the table, and the other was mounted on the robotic arm. In this scenario, three movements were considered as the template: abduction, flexion, and external rotation, performed at a constant speed of /s. Ten repetitions for each of these three movements were executed at varying speeds of /s (slow), /s (normal), and /s (fast) and were compared with the respective template. The movement amplitude was chosen based on a compromise between the amplitudes commonly achieved in everyday movements and the possibilities offered by the robot’s workspace. The speed values were selected based on the technical capabilities of the robot. Examples of the angular and quaternion trajectories are provided in Supplementary Material.
After testing on the robotic arm, the approach was applied to shoulder movement data replicating activities of daily living (ADL) acquired from human participants. We included right-handed adults with no history of shoulder surgery or lesions from two different age groups (one ranging between 20 and 30 years old—in the following denoted as the young group, and the second between 60 and 85 years old—in the following denoted as the elderly group), as approved by the Ethical Committee for University Research of the University of Genoa (CERA n. 2023/78). Six ADL-related movements—upper care, medium care, lower care, driving a car, frontal reaching, and upper reaching—were retraced based on (65) (Table 1). Exercises were defined as either non-standardized (NST) with unrestricted shoulder RoM or standardized (ST) with RoM constrained by verbal instructions (see Table 1). See Supplementary Material for examples of the angular and quaternion trajectories. The participants freely performed ten repetitions of each exercise in a randomized order. The IMUs were placed on the Acromion and 4 cm above the Epicondyle (Figure 2). For each movement, a randomly selected repetition was used as the template to which compare the other nine repetitions.

Table 1. Functional movements considered in the experiment, divided in standardized (ST) and non-standardized (NST). All movements start in anatomical position (rest position). For each movement, the associated ADL is reported.
3.3 Data processing and statistical analysis
Hereafter we describe in detail the data processing performed to obtain outcomes from the algorithms and compare performances. An overview of the process is provided in Figure 3.
The data were processed using Python 3.11, with Numpy 1.26 and Pandas 2.1 for calculations and Matplotlib 3.8 for data plotting.
The data processing was aimed at comparing each of the trajectories acquired in data collection process with a selected template trajectory.
For the on-robot test, the first acquisition at the normal speed for each movement was used as the template to which every of the ten repetitions for each speed was compared, obtaining a distribution of ten outputs for each algorithm at every speed.
For the on-person test, for each individual, a randomly selected repetition of each movement was used as the template for the considered movement. The other nine repetitions for every movement were compared to the templates of the movement itself and of all the other movements. For each comparison, the outcomes from the nine repetitions were averaged. Thus, a matrix of comparisons was obtained, with auto-comparisons on the diagonal and cross-comparisons outside the diagonal.
The extraction of the comparison outcomes was performed as in Figure 3 and is detailed hereafter.
Starting from the two quaternions and provided by each of the two IMUs, the fused quaternion was calculated as in Equation 3 to obtain the relative orientation between the sensors:
All analyses were performed using . For both the on-robot and on-person tests, the NNS and algorithms considered in (49) were applied to the six quaternion component trajectories listed in Equation 2. The algorithms in (49) were imported into Python relying on the repository by Guillouet and Van Hinsbergh (66). NNS was implemented using Python 3.11.5. For the algorithms with bounded output considered in (49) (EDR, LCSS), the threshold for considering two points as similar was set to , which corresponds to an equivalent variation of in Euler angles, which is approximately the error tolerance of our measurement instrument (34). For the same reason, in the NNS the threshold was set to the same value . Outputs from the EDR and LCSS typically range on opposite scales (that is, EDR outputs 0 for identical trajectories, and 1 for completely different trajectories, and LCSS viceversa). However, the Python implementation that we used (66) aligns the output of the two algorithms, so that both range between 0 and 1, with 1 being the output for identical trajectories for both algorithms. In addition, we multiplied the output from these two algorithms by 100 to obtain a conformity score comparable to the results from the NNS. Thus, the outputs from all three bounded algorithms ranged between 0 and 100, with 100 being the output for two identical trajectories.
The metrics obtained for each of the six quaternion components trajectories were then averaged to obtain a single conformity indicator for each algorithm.
After concluding the process of extracting a comparison outcome for each acquired trajectory, we proceeded with the statistical analysis of the results. Descriptive statistics was performed in Python 3.11, while statistical tests were run in R 4.4.3.
For the on-robot test, we constructed the distributions of the ten outcomes from each algorithm at each considered speed.
For the on-person test, based on the obtained comparison matrices, distributions for both values along the diagonals and values outside of it were constructed for each of the considered algorithms. Normality was evaluated on each distribution with a Shapiro-Wilk test.
For normal distributions, a two-sided t-test was performed, whereas for non-normal distributions a two-sided Mann-Whitney U-test was applied, to test the hypothesis of dissimilarity between diagonal and off-diagonal distributions. The Cohen’s d or the absolute value of rank-biserial correlation (rrb) were used as effect sizes for the t-test or Mann-Whitney U-test, respectively.
Next, the average comparison matrix across all participants was calculated.
To verify the contrast of the average comparison matrix, the values in the average comparison matrix were normalized to the maximum value in the matrix. Because the unbounded algorithms output higher values when the dissimilarity between movements increases, and vice versa for the bounded algorithms, we aligned these two behaviors by subtracting the normalized matrices of the unbounded algorithms from 1. Considering the normalized matrices, the average of values on the diagonal and the average of values outside the diagonal were then calculated. The ratio between the average on the diagonal and the average outside the diagonal was then calculated as Equation 4:
The r ratio was calculated separately for each of the two age groups in the testing population, and finally an overall average ratio was calculated.
An analysis of the performance of the NNS algorithm compared to the others was also performed. In order to be comparable, values in the comparison matrices for each participant and each algorithm were rescaled in a 0–100 scale, with 0 representing the minimum value and 100 the maximum, based on Equation 5:
where M represents the overall matrix, valuescal the rescaled value, and valueorig the original value.
After rescaling, the distributions of values on diagonals and outside diagonals were constructed. Normality of the distributions was evaluated through Shapiro-Wilk tests. Next, the distribution on the diagonal from the NNS algorithm was compared with the distribution on the diagonal from each of the other algorithms through a two-sided t-test in case of normality, or a Mann-Whitney U-test in case of non normality. The Cohen’s d or the rank-biserial correlation (rrb) were used as effect sizes for the t-test or Mann-Whitney U-test, respectively. The same process was repeated also for distributions of values outside the diagonals.
4 Results
4.1 On-robot test
Figure 4 shows the distributions of the outputs from the various algorithms obtained when comparing the same planar robotic movements performed at different speeds.

Figure 4. Boxplot representation of distributions of the outputs from the various algorithms obtained when comparing the same planar robotic movements performed at different speeds.
4.2 On-person test
4.2.1 Number of participants
We included 25 participants for the first age group (average age standard deviation: years) and 11 participants for the second age group (average age standard deviation: years).
4.2.2 Algorithms outcomes
Figures 5, 6 show heatmaps for the average comparison matrices across subjects obtained when applying the various algorithms to cross-compare the movements performed during the on-person tests. The diagonal in the matrices represents auto-comparison, i.e., average outputs from the comparison of repetitions of a movement with a template of the same movement. Values outside the diagonal represent cross-comparisons, i.e., average outputs from the comparison of repetitions of a movement with a template of a different movement.

Figure 5. Heatmaps for the average comparison matrices for the unbounded algorithms, obtained by comparing the first repetition of each movement with the other nine, for both non-standardized (NST) and standardized (ST) movements. Values in the cells are average accross compared repetitions and participiants.

Figure 6. Heatmaps for the average comparison matrices for the bounded algorithms, obtained by comparing the first repetition of each movement with the other nine, for both non-standardized (NST) and standardized (ST) movements. Values in the cells are average accross compared repetitions and participiants.
4.2.3 Performance indicators
Table 2 shows the r ratios, calculated as in Equation 4, obtained for each of the considered algorithms for both the young and elderly groups, and for the overall population. r ratios are all >1.

Table 2. Ratios r between average on diagonal and outside diagonal of obtained comparison matrices for the considered algorithms for both the young and elderly population, and overall.
All Shapiro-Wilk tests applied to distributions obtained from values on the diagonals and outside the diagonals of the comparison matrices of all subjects exhibited ; therefore, all distributions were assumed to not be normal, and Mann-Whitney tests were used to test the hypothesis of dissimilarities between the distributions.
Table 3 shows p values, effect size (absolute value of rank-biserial correlation, rrb), confidence interval (CI) and test power for the Mann-Whitney U test comparing distributions of values on the diagonals and outside the diagonals. Mann-Whitney tests exhibited for every algorithm: therefore, the null hypothesis was rejected for every algorithm. rrb effect sizes are all >0.9 (with the exception of EDR being however still >0.5), indicating a strong difference between the distributions. Therefore, we can assume that distributions of values outside the diagonal significantly differ from the distribution of values on the diagonal for every algorithm.

Table 3. p values, effect size (absolute value of rank-biserial correlation, rrb), confidence interval (CI) and test power obtained from Mann-Whitney test comparing distributions on diagonal and outside diagonal.
All Shapiro-Wilk tests applied to distributions rescaled in 0–100 range from values on the diagonals and outside the diagonals of the comparison matrices of all subjects exhibited ; therefore, all distributions were assumed to not be normal, and Mann-Whitney tests were used to compare distributions from the NNS algorithm with the ones from the other algorithms.
Table 4 reports p values, effect size (rank-biserial correlation, rrb), confidence interval (CI) and test power for the Mann-Whitney U test comparing the rescaled distributions of NNS on the diagonal with the rescaled distributions on diagonals from the other algorithms. Table 5 reports results from the same tests applied on rescaled distributions of values outside the diagonal. All tests exhibited statistically significant difference () both on diagonal and outside diagonal, with the only exception of DFD on diagonal, where no statistically significant difference was found. However, effect sizes were very contained for DTW and FD, indicating a mild difference. On the contrary, significant effect sizes were obtained for comparison EDR and LCSS, with rrb assuming negative values, indicating higher ranks associated with NNS.

Table 4. p values, effect size (rank-biserial correlation, rrb), confidence interval (CI) and test power obtained from Mann-Whitney test comparing scaled distributions on diagonal of NNS with other algorithms.

Table 5. p values, effect size (rank-biserial correlation, rrb), confidence interval (CI) and test power obtained from Mann-Whitney test comparing scaled distributions outside diagonal of NNS with other algorithms.
5 Discussion
5.1 Algorithm performance and applicability
The numerical stability of the analysis in quaternion space is confirmed by the traditional unbounded algorithms’ capability of detecting similarities and differences between movements, as supported by the good r ratios and low p values with high effect sizes obtained when assessing contrast of DTW, FD and DFD.
However, bounded algorithms can provide several advantages from the point of view of user experience and patient engagement, as they can directly provide a conformity score without the need for any additional information about the movement being performed (e.g., for estimating boundary conditions to constrain the output).
To the best of our knowledge, this is the first study to explore the application of bounded algorithms in shoulder functional rehabilitation. Our results suggest the applicability of bounded algorithms to the assessment of shoulder rehabilitation exercises, combined with an analysis in the quaternion space for numerical stability.
All bounded algorithms, in fact, performed acceptably in detecting similarities and differences between movements, with r ratios >1.5, low p values and high effect sizes (comparable to the ones from unbounded algorithms) in statistical tests for contrast performance assessment. It is, however, worth discussing some specificity for each one that is supported by the results we obtained, especially how our new NSS proposal collocates in this context.
Among these algorithms, EDR demonstrated to be the worst performer, with the lowest contrast ratio and smaller effect size in statistical tests. This behavior, apparently worse than LCSS, could be explained by a different impact of the acceptance threshold on the final scoring because of a different main goal of the algorithm. Whereas EDR extracts the final score by thresholding a cost matrix similar to that of DTW, the LCSS implementation is conversely aimed at finding the maximum score path (49).
It is interesting to analyze the performance of our new NNS proposal in comparison to the other algorithms. Looking at the r contrast ratio, NNS performs better than EDR and comparable to DTW, while FD, DFD and LCSS exhibit better contrast. It is however worth noting that NNS is the algorithm with lowest difference in contrast ratio between the two age groups, suggesting a better capability to generalize the evaluation among a variety of motor strategies. This supports the potential of comparing the trajectories analytically through a distance-based scoring method: in fact, fluctuations in contrast are possible in DTW, FD and DFD algorithms due to their unbounded nature, which allows for the output to increase unlimitedly. This consideration is further supported by statistical tests on rescaled distributions: when rescaled in same range based on empirical maximum and minimum in the data, the comparison between NNS and unbounded algorithms (DTW, FD, DFD) leads to small rrb effect sizes, suggesting equal performance due to comparable output.
Among bounded algorithms, both the r ratio and the statistical tests indicate improved performance with respect to EDR. In comparison to LCSS, r ratio of NNS is lower, while LCSS contrast even outperforms the unbounded algorithms, indicating a very good resolution in the discrimination between the same and different movements. However, in the LCSS average matrix, the maximum value obtained was , which is quite far from the maximum possible output of the algorithm (100). On the contrary, looking at results from robotic data, it is visible that in controlled conditions the output when comparing the same movements is close to 100 in most cases. The statistical tests comparing rescaled distributions of NNS with the ones of LCSS indeed led to significant results, with low p value and a high rrb effect size with negative values, indicating higher ranks for the NNS both on the diagonal and outside diagonal.
This suggests that, when used on human movement data, LCSS, despite being able to detect with good contrast the dissimilarities between movements, it always detects some differences, even when comparing repetitions of the same movements. In other words, the algorithm classifies repetitions of the same human movement as more similar to each other than when comparing different human movements, but not as almost identical.
Conversely, our new NNS proposal, detects repetitions of the same movements as almost identical, while detecting comparisons of different movements as less similar than the auto-compared ones, still with an acceptable r contrast ratio and performance that was statistically demonstrated to be comparable to the ones of the unbounded algorithms.
The choice of one or the other algorithm might therefore be based on the intention of focusing mostly on penalizing incorrect movements, or mostly on awarding well-performed movements, depending on the clinical condition of the patient and on the type of treatment.
5.2 Potential impact of the results
Most studies available in the literature dealing with telerehabilitation systems exploit unbounded algorithms, mainly DTW, to assess the exercises and provide feedback to the user. Nonetheless, to make this feedback intuitive for the user, some form of transformation of the unbounded output is necessary, typically a conversion to a conformity score. This transformation often involves the intervention of experimental estimation or suggestions from clinicians to define boundaries, or the discretization of the output, thereby losing the potential versatility of the template-based approach.
As examples, (67) elaborated the DTW output using a sigmoid function tuned relying on indications from clinicians and defining a priori rules; (43) used an upper limit output estimated from experimental data to transform DTW output into a score; (61) converted DTW output in discrete levels (e.g., “Bad,” “Good,” “Excellent”) using fuzzy logic; (57) converted DTW output into a conformity score, but still needed calibration of the algorithm using ratings from experts on a subset of participants. Among the most recent works, Beaud et al. (58) developed a DTW-based score, which, however, has a lower bounded constraint (the closer the score is to 0, the most similar are the trajectories), but still no constraint on upper boundary. Seo et al. (62) used DTW to evaluate quality of upper limb tasks, but falled into a simple binary categorization into “Correct” or “Incorrect.” Pereira et al. (59) transformed DTW output into a z-score, which, however, required information (mean and standard deviation) about their specific dataset.
Therefore, in all these cases, some form of experimental inference about the movement or of output discretization is performed, but this limits the potential of tele-rehabilitation as a tool that fosters the independence of the patient and allows for personalized treatment.
Also, recent studies focus on the use of data-driven probabilistic approaches, given the high potential of recent advancements in machine and deep learning (31, 42, 43, 46, 68). Those approaches are very powerful when it is necessary to recognize or classify specific movements (68): however, they require a large amount of data to be trained, and need to be retrained if it is necessary to change the template trajectory, while the advantage of distance-based methods is that they are not exercise-specific (68). In fact, in functional rehabilitation, it is essential to define the movements that need to be performed based on the specific condition of the patient, and those might vary depending on the specific pathology, the clinical progress and even the psico-social context in which the patient is immersed (10–13, 22–24). Therefore, it is important to ensure that new template trajectories can be defined at any moment during the progress of the treatment for the specific patient, without needing to retrain the comparison algorithms.
The calculation of a conformity score through trajectory comparison algorithms with a bounded output, such as the NNS proposed in this study, allows for more personalized treatment. These algorithms only take as input a template trajectory (whichever being its shape) and a repetition of the exercise, and directly output a conformity score in a limited range (e.g., 0–100) quantifying the similarity between the two movements.
This is very important to introduce in telerehabilitation the potential for a patient-centric personalized treatment. In this way the clinician can define a template trajectory based on the clinical condition of the patient. Next, the assessment algorithm will compare the at-home performed repetitions of the movement, without the need for any experimental estimation of the boundaries, any previous training dataset collection, or any form of discretization of the output.
Quaternion-based assessment adds numerical stability, which allows to avoid calibration procedures that are often performed when working with angle-based approaches to estimate values in known positions (e.g., T-pose) (69).
Moreover, bounded algorithms rely on a distance threshold for the classification of points in a trajectory as either similar or different to those in the template trajectory. This threshold can become an important tool in telerehabilitation. Threshold tuning can be used by the clinician to set the amount of accepted error in movement execution, based on the specific condition of the patient. This is another advantage in the direction of a patient-centric remote rehabilitation treatment.
5.3 Limitations and future directions
This study explored the application of bounded algorithms for trajectory comparison in the quaternion space during the execution of shoulder functional rehabilitation exercises, introducing a new algorithm for the comparison and confronting its performance with existing ones.
The results demonstrated the applicability of the quaternion-based approach and the reliability of using bounded algorithms, including our new proposal, considering the potential flexibility that they offer compared to the unbounded ones.
However, this study has some limitations. First, the sample size could be further enlarged to strengthen the relevance of the results obtained. Specifically, we tested on a group of young healthy participants and a limited group of elderly participants, but including actually impaired participants may provide further insights on how the methodology responds in persons with actual changes in kinematic trajectories. It is expected that the output of the algorithms would be akin to when comparing similar but slightly different movements (e.g., Frontal and Upper Reaching), due to the performance of a similar movement but with compensatory behavior. However, this might be pathology-dependent: for example, a patient with an orthopedic impairment that causes pain in a very specific area might present a very specific compensatory phase, while patients with neurological impairment might present a constant tremor or a different trajectory planning, and the various considered algorithms could respond differently in these two situations.
Moreover, because the goal was to verify the applicability of such a method as an assessment tool based on data from wearable devices, we directly tested on IMU data: nonetheless, because no comparison were made with data collected simultaneously from gold standard systems (e.g., the Vicon), the actual similarity accross the various repetitions of movements could be ulteriorly strengthened. We previously ensured the functionality of the method on identical movements through the tests on the robotic arm, but further developments of this work might add analysis with gold standard instruments to reinforce the assessment of identical movements. In fact, while IMU were proven to be reliable sensors for upper limb motion analysis (15, 16, 34), it was also demonstrated that their error is larger when compared to optoelectronic systems (70, 71): therefore, we aknowledged this limitation by previously testing on robotic arm and by inserting the measurement accuracy threshold in the NNS algorithm, but a future comparison of trajectories simultaneously acquired also through gold standard systems might ensure the actual conformity between movements.
In addition, implementing the algorithm in a basic system that can be used by a sample of elderly or impaired users might provide more insights into the actual usability of the approach. This is a future direction that should be pursued to further improve the applicability of the approach in real scenarios.
We also defined only a subset of possible functional movements involving the shoulder joint; however, future directions may involve widening the number and type of movements to strengthen the applicability of the proposed approach.
Other insights could arise from an analysis of the influence of the choice of threshold for bounded algorithms on the resulting conformity scores. This may further clarify the impact that the implementation of bounded algorithms can have on telerehabilitation systems, and also provide insights about the feasibility of using the threshold as a tool for the clinician to tune the accepted error in movement performance based on the patient condition.
6 Conclusion
This study explored the feasibility of comparing repetitions of upper limb functional movements to a template by analyzing trajectories in the quaternion space. A novel algorithm for trajectory comparison that produces a bounded conformity score was applied.
This approach effectively identified both coherence and dissimilarities in shoulder functional exercise repetitions, demonstrating the reliability of quaternion-based analysis and bounded algorithms for trajectory comparison. This new approach has some practical advantages, including improved personalization of remote rehabilitation treatments.
Future work could involve implementing the proposed approach in a real system to obtain feedback from end-users in practical application scenarios.
Data availability statement
The raw data supporting the conclusions of this article will be made available by the authors, without undue reservation. The code of the proposed NNS algorithm and a subset of the data used for experimental validation can be found in the NNS algorithm repository https://github.com/iurmat/NNS_algorithm.git.
Ethics statement
The studies involving humans were approved by Comitato Etico per la Ricerca di Ateneo (CERA n. 2023/78), Università degli Studi di Genova. The studies were conducted in accordance with the local legislation and institutional requirements. The participants provided their written informed consent to participate in this study.
Author contributions
MI: Conceptualization, Data curation, Formal analysis, Investigation, Methodology, Software, Validation, Visualization, Writing – original draft, Writing – review & editing. PD: Conceptualization, Formal analysis, Methodology, Project administration, Resources, Supervision, Validation, Visualization, Writing – review & editing. MJ: Conceptualization, Data curation, Formal analysis, Methodology, Supervision, Visualization, Writing – review & editing. RS: Conceptualization, Formal analysis, Methodology, Supervision, Validation, Visualization, Writing – review & editing. GL: Conceptualization, Investigation, Methodology, Resources, Validation, Writing – review & editing. II: Project administration, Resources, Supervision, Writing – review & editing. MT: Conceptualization, Formal analysis, Methodology, Project administration, Resources, Supervision, Validation, Writing – review & editing.
Funding
The author(s) declare that financial support was received for the research and/or publication of this article. The work of Matteo Iurato is co-financed by Swhard s.r.l. and PNRR funding of scolarships for innovative PhD programs with industrial connotation (Italian Ministery decree number 352/2022: Missione 4, componente 2 “Dalla Ricerca all’Impresa”—Investimento 3.3 “Introduzione di dottorati innovativi che rispondono ai fabbisogni di innovazione delle imprese e promuovono l’assunzione dei ricercatori dalle imprese”).
Conflict of interest
PD, RS, II were employed by Swhard s.r.l., which is the developer of the Sentry device used in the study, and of which MI is external collaborator. The authors declare that this study received funding from Swhard s.r.l. The funder had the following involvement: interpretation of data and writing of this article.
Generative AI statement
The author(s) declare that no Generative AI was used in the creation of this manuscript.
Any alternative text (alt text) provided alongside figures in this article has been generated by Frontiers with the support of artificial intelligence and reasonable efforts have been made to ensure accuracy, including review by the authors wherever possible. If you identify any issues, please contact us.
Publisher's note
All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.
Supplementary material
The Supplementary Material for this article can be found online at: https://www.frontiersin.org/articles/10.3389/fdgth.2025.1576031/full#supplementary-material
References
1. De Baets L, van der Straaten R, Matheve T, Timmermans A. Shoulder assessment according to the international classification of functioning by means of inertial sensor technologies: a systematic review. Gait Posture. (2017) 57:278–94. doi: 10.1016/j.gaitpost.2017.06.025
2. Urwin M, Symmons D, Allison T, Brammah T, Busby H, Roxby M, et al. Estimating the burden of musculoskeletal disorders in the community: the comparative prevalence of symptoms at different anatomical sites, and the relation to social deprivation. Ann Rheum Dis. (1998) 57:649–55. doi: 10.1136/ard.57.11.649
3. Almomani F, Alghwiri AA, Alghadir AH, Al-Momani A, Iqbal A. Prevalence of upper limb pain and disability and its correlates with demographic and personal factors. J Pain Res. (2019) 12:2691–700. doi: 10.2147/JPR.S198480
4. Moulaei K, Sheikhtaheri A, Nezhad MS, Haghdoost A, Gheysari M, Bahaadinbeigy K. Telerehabilitation for upper limb disabilities: a scoping review on functions, outcomes, and evaluation methods. Arch Public Health. (2022) 80:196. doi: 10.1186/s13690-022-00952-w
5. Machlin SR, Chevan J, Yu WW, Zodet MW. Determinants of utilization and expenditures for episodes of ambulatory physical therapy among adults. Phys Ther. (2011) 91:1018–29. doi: 10.2522/ptj.20100343
6. Saxena S, Ng T, Yong D, Fong N, Gerald K. Total direct cost, length of hospital stay, institutional discharges and their determinants from rehabilitation settings in stroke patients. Acta Neurol Scand. (2006) 114:307–14. doi: 10.1111/j.1600-0404.2006.00701.x
7. Rogante M, Kairy D, Giacomozzi C, Grigioni M. A quality assessment of systematic reviews on telerehabilitation: what does the evidence tell us? Ann Ist Super Sanita. (2015) 51:11–8. doi: 10.4415/ANN_15_01_04
8. Jack K, McLean SM, Moffett JK, Gardiner E. Barriers to treatment adherence in physiotherapy outpatient clinics: a systematic review. Man Ther. (2010) 15:220–8. doi: 10.1016/j.math.2009.12.004
9. Escamilla RF, Yamashiro K, Paulos L, Andrews JR. Shoulder muscle activity and function in common shoulder rehabilitation exercises. Sports Med. (2009) 39:663–85. doi: 10.2165/00007256-200939080-00004
10. Kibler WB, McMullen J, Uhl T. Shoulder rehabilitation strategies, guidelines, and practice. Orthop Clin. (2001) 32:527–38. doi: 10.1016/s0030-5898(05)70222-4
11. Lewis JS. Rotator cuff tendinopathy/subacromial impingement syndrome: is it time for a new method of assessment? Br J Sports Med. (2009) 43:259–64. doi: 10.1136/bjsm.2008.052183
12. Ristori D, Miele S, Rossettini G, Monaldi E, Arceri D, Testa M. Towards an integrated clinical framework for patient with shoulder pain. Arch Physiother. (2018) 8:1–11. doi: 10.1186/s40945-018-0050-3
13. Innocenti T, Ristori D, Miele S, Testa M. The management of shoulder impingement and related disorders: a systematic review on diagnostic accuracy of physical tests and manual therapy efficacy. J Bodyw Mov Ther. (2019) 23:604–18. doi: 10.1016/j.jbmt.2018.08.002
14. Hindle BR, Keogh JW, Lorimer AV. Inertial-based human motion capture: a technical summary of current processing methodologies for spatiotemporal and kinematic measures. Appl Bionics Biomech. (2021) 2021:1.14 doi: 10.1155/2021/6628320
15. Grip H, Källströmer A, Öhberg F. Validity and reliability of wearable motion sensors for clinical assessment of shoulder function in brachial plexus birth injury. Sensors. (2022) 22:9557. doi: 10.3390/s22239557
16. Poitras I, Dupuis F, Bielmann M, Campeau-Lecours A, Mercier C, Bouyer LJ, et al. Validity and reliability of wearable sensors for joint angle estimation: a systematic review. Sensors. (2019) 19:1555. doi: 10.3390/s19071555
17. Rajkumar A, Vulpi F, Bethi SR, Raghavan P, Kapila V. Usability study of wearable inertial sensors for exergames (WISE) for movement assessment and exercise. Mhealth. (2021) 7:4. doi: 10.21037/mhealth-19-199
18. Yin ZX, Xu HM. A wearable rehabilitation game controller using IMU sensor. In: 2018 IEEE International Conference on Applied System Invention (ICASI). IEEE (2018). p. 1060–2.
19. Tranquilli C, Bernetti A, Picerno P, et al.. Ambulatory joint mobility and muscle strength assessment during rehabilitation using a single wearable inertial sensor. Med Dello Sport. (2013) 66:583–97.
20. Kibler WB. Shoulder rehabilitation: principles and practice. Med Sci Sports Exerc. (1998) 30:40–50. doi: 10.1097/00005768-199804001-00007
21. Dorado J, del Toro X, Santofimia MJ, Parreno A, Cantarero R, Rubio A, et al. A computer-vision-based system for at-home rheumatoid arthritis rehabilitation. Int J Distrib Sens Netw. (2019) 15:155014771987564. doi: 10.1177/1550147719875649
22. Amasay T, Karduna AR. Scapular kinematics in constrained and functional upper extremity movements. J Orthop Sports Phys Ther. (2009) 39:618–27. doi: 10.2519/jospt.2009.2788
23. Moeller CR, Bliven KCH, Valier ARS. Scapular muscle-activation ratios in patients with shoulder injuries during functional shoulder exercises. J Athl Train. (2014) 49:345–55. doi: 10.4085/1062-6050-49.3.10
24. Kirkley A, Griffin S, Dainty K. Scoring systems for the functional assessment of the shoulder. Arthroscopy. (2003) 19:1109–20. doi: 10.1016/j.arthro.2003.10.030
25. Ghiassi M, Maibaum J, Kecskeméthy A. Methods comparison and proposition of new quaternion-based approach for extraction of in-plane rotations out of 3D rotations. In: Symposium on Robot Design, Dynamics and Control. Springer (2022). p. 133–41.
26. Allgeuer P, Behnke S. Fused angles and the deficiencies of euler angles. In: 2018 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS). IEEE (2018). p. 5109–16.
27. Amaro JP, Patrão S. A survey of sensor fusion algorithms for sport and health monitoring applications. In: IECON 2016-42nd Annual Conference of the IEEE Industrial Electronics Society. IEEE (2016). p. 5171–6.
28. Burns DM, Leung N, Hardisty M, Whyne CM, Henry P, McLachlin S. Shoulder physiotherapy exercise recognition: machine learning the inertial signals from a smartwatch. Physiol Meas. (2018) 39:075007. doi: 10.1088/1361-6579/aacfd9
29. Um TT, Babakeshizadeh V, Kulić D. Exercise motion classification from large-scale wearable sensor data using convolutional neural networks. In: 2017 IEEE/RSJ International Conference on Intelligent Robots and Systems (IROS). IEEE (2017). p. 2385–90.
30. Chen KH, Chen PC, Liu KC, Chan CT. Wearable sensor-based rehabilitation exercise assessment for knee osteoarthritis. Sensors. (2015) 15:4193–211. doi: 10.3390/s150204193
31. Liao Y, Vakanski A, Xian M, Paul D, Baker R. A review of computational approaches for evaluation of rehabilitation exercises. Comput Biol Med. (2020) 119:103687. doi: 10.1016/j.compbiomed.2020.103687
32. Tadayon M, Pottie G. Comparative analysis of the hidden markov model and LSTM: a simulative approach. arXiv [Preprint]. arXiv:2008.03825 (2020).
33. Zhang Z, Fang Q, Gu X. Objective assessment of upper-limb mobility for poststroke rehabilitation. IEEE Trans Biomed Eng. (2015) 63:859–68. doi: 10.1109/tbme.2015.2477095
34. Stanzani R, Dondero P, Mantero A, Testa M. Measurement accuracy of an upper limb tracking system based on two hillcrest labs BNO080 IMU sensors: an environmental assessment. IEEE Sens J. (2020) 20:10267–74. doi: 10.1109/JSEN.2020.2992733
35. Vasconcelos MJM, Tavares JMR. Human motion analysis: methodologies and applications. In: CMBBE 2008. (2008).
36. Wong WY, Wong MS, Lo KH. Clinical applications of sensors for human posture and movement analysis: a review. Prosthet Orthot Int. (2007) 31:62–75. doi: 10.1080/03093640600983949
37. Powell MO, Elor A, Robbins A, Kurniawan S, Teodorescu M. Predictive shoulder kinematics of rehabilitation exercises through immersive virtual reality. IEEE Access. (2022) 10:25621–32. doi: 10.1109/ACCESS.2022.3155179
38. Caserman P, Achenbach P, Göbel S. Analysis of inverse kinematics solutions for full-body reconstruction in virtual reality. In: 2019 IEEE 7th International Conference on Serious Games and Applications for Health (SeGAH). IEEE (2019). p. 1–8.
39. Sarig Bahat H, Kerner O. The shoulder symptom modification procedure (SSMP): a reliability study. J Nov Physiother. (2016) 3:2. doi: 10.4172/2165-7025.S3-011
40. Lin YC, Tsai YJ, Hsu YL, Yen MH, Wang JS. Assessment of shoulder range of motion using a wearable inertial sensor network. IEEE Sens J. (2021) 21:15330–41. doi: 10.1109/JSEN.2021.3073569
41. Rigoni M, Gill S, Babazadeh S, Elsewaisy O, Gillies H, Nguyen N, et al.. Assessment of shoulder range of motion using a wireless inertial motion capture device—a validation study. Sensors. (2019) 19:1781. doi: 10.3390/s19081781
42. Houmanfar R, Karg M, Kulić D. Movement analysis of rehabilitation exercises: distance metrics for measuring patient progress. IEEE Syst J. (2014) 10:1014–25. doi: 10.1109/JSYST.2014.2327792
43. Osgouei RH, Soulsbv D, Bello F. An objective evaluation method for rehabilitation exergames. In: 2018 IEEE Games, Entertainment, Media Conference (GEM). IEEE (2018). p. 28–34.
44. Ng G, Andrysek J. Hidden markov model-based similarity measure (HMM-SM) for gait quality assessment of lower-limb prosthetic users using inertial sensor signals. J Neuroeng Rehabil. (2025) 22:1–18. doi: 10.1186/s12984-025-01638-4
45. Bai A, Song H, Wu Y, Dong S, Feng G, Jin H. Sliding-window CNN+ channel-time attention transformer network trained with inertial measurement units and surface electromyography data for the prediction of muscle activation and motion dynamics leveraging IMU-only wearables for home-based shoulder rehabilitation. Sensors. (2025) 25:1275. doi: 10.3390/s25041275
46. Deb S, Islam MF, Rahman S, Rahman S. Graph convolutional networks for assessment of physical rehabilitation exercises. IEEE Trans Neural Syst Rehabil Eng. (2022) 30:410–9. doi: 10.1109/TNSRE.2022.3150392
47. Benettazzo F, Iarlori S, Ferracuti F, Giantomassi A, Ortenzi D, Freddi A, et al.. Low cost RGB-D vision based system to support motor disabilities rehabilitation at home. In: Ambient Assisted Living: Italian Forum 2014. Springer (2015). p. 449–61.
48. Vakanski A, Ferguson JM, Lee S. Metrics for performance evaluation of patient exercises during physical therapy. Int J Phys Med Rehabil. (2017) 5:403. doi: 10.4172/2329-9096.1000403
49. Tao Y, Both A, Silveira RI, Buchin K, Sijben S, Purves RS, et al.. A comparative analysis of trajectory similarity measures. GISci Remote Sens. (2021) 58:643–69. doi: 10.1080/15481603.2021.1908927
50. Sakoe H, Chiba S. Dynamic programming algorithm optimization for spoken word recognition. IEEE Trans Acoust Speech Signal Process. (1978) 26:43–9. doi: 10.1109/TASSP.1978.1163055
51. Su CJ. Personal rehabilitation exercise assistant with kinect and dynamic time warping. Int J Inf Educ Technol. (2013) 3:448–54. doi: 10.7763/IJIET.2013.V3.316
52. Switonski A, Josinski H, Wojciechowski K. Dynamic time warping in classification and selection of motion capture data. Multidimens Syst Signal Process. (2019) 30:1437–68. doi: 10.1007/s11045-018-0611-3
53. Alt H, Godau M. Computing the fréchet distance between two polygonal curves. Int J Comput Geom Appl. (1995) 5:75–91. doi: 10.1142/S0218195995000064
55. Chen L, Özsu MT, Oria V. Robust and fast similarity search for moving object trajectories. In: Proceedings of the 2005 ACM SIGMOD International Conference on Management of Data. (2005). p. 491–502.
56. Vlachos M, Kollios G, Gunopulos D. Discovering similar multidimensional trajectories. In: Proceedings 18th International Conference on Data Engineering. IEEE (2002). p. 673–84.
57. Yu X, Xiong S. A dynamic time warping based algorithm to evaluate kinect-enabled home-based physical rehabilitation exercises for older people. Sensors. (2019) 19:2882. doi: 10.3390/s19132882
58. Beaud A, Lejeune Q, Pillet H, Mazarguil A, Bertheau J, Lefèvre-Colau MM, et al.. Similarity of shoulder kinematics between people with subacromial pain syndrome and asymptomatic individuals: a study using inertial measurement units. Clin Biomech. (2025) 123:106462. doi: 10.1016/j.clinbiomech.2025.106462
59. Pereira B, Cunha B, Viana P, Lopes M, Melo AS, Sousa AS. A machine learning app for monitoring physical therapy at home. Sensors. (2024) 24:158. doi: 10.3390/s24010158
60. Saraee E, Singh S, Hendron K, Zheng M, Joshi A, Ellis T, et al.. Exercisecheck: remote monitoring and evaluation platform for home based physical therapy. In: Proceedings of the 10th International Conference on PErvasive Technologies Related to Assistive Environments. (2017). p. 87–90.
61. Su CJ, Chiang CY, Huang JY. Kinect-enabled home-based rehabilitation system using dynamic time warping and fuzzy logic. Appl Soft Comput. (2014) 22:652–66. doi: 10.1016/j.asoc.2014.04.020
62. Seo NJ, Coupland K, Finetto C, Scronce G. Wearable sensor to monitor quality of upper limb task practice for stroke survivors at home. Sensors. (2024) 24:554. doi: 10.3390/s24020554
63. Hamilton WR. Ii. on quaternions; or on a new system of imaginaries in algebra. Lond Edinb Dublin Philos Mag J Sci. (1844) 25:10–3. doi: 10.1080/14786444408644923
65. Chang CY, Hsieh CY, Huang HY, Wu YT, Chen LC, Chan CT, et al.. Automatic functional shoulder task identification and sub-task segmentation using wearable inertial measurement units for frozen shoulder assessment. Sensors. (2021) 21:106. doi: 10.3390/s21010106
67. Ciabattoni L, Ferracuti F, Lazzaro G, Romeo L, Verdini F. Serious gaming approach for physical activity monitoring: a visual feedback based on quantitative evaluation. In: 2016 IEEE 6th International Conference on Consumer Electronics-Berlin (ICCE-Berlin). IEEE (2016). p. 209–13.
68. Liao Y, Vakanski A, Xian M. A deep learning framework for assessing physical rehabilitation exercises. IEEE Trans Neural Syst Rehabil Eng. (2020) 28:468–77. doi: 10.1109/TNSRE.2020.2966249
69. Fang Z, Woodford S, Senanayake D, Ackland D. Conversion of upper-limb inertial measurement unit data to joint angles: a systematic review. Sensors. (2023) 23:6535. doi: 10.3390/s23146535
70. Laidig D, Seel T. Deriving kinematic quantities from accelerometer readings for assessment of functional upper limb motions. Curr Dir Biomed Eng. (2017) 3:573–6. doi: 10.1515/cdbme-2017-0119
Keywords: IMU, movement assessment, quaternions, rehabilitation exercises, shoulder
Citation: Iurato M, Dondero P, Job M, Stanzani R, Leuzzi G, Ingegnosi I and Testa M (2025) Assessment of shoulder functional movements through inertial measurement units for tele-rehabilitation: a quaternion-based approach. Front. Digit. Health 7:1576031. doi: 10.3389/fdgth.2025.1576031
Received: 13 February 2025; Accepted: 28 July 2025;
Published: 1 September 2025.
Edited by:
Xiaofeng Li, Heilongjiang International University, ChinaReviewed by:
Pietro Picerno, University of Sassari, ItalyScott Uhlrich, The University of Utah, United States
Copyright: © 2025 Iurato, Dondero, Job, Stanzani, Leuzzi, Ingegnosi and Testa. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.
*Correspondence: Matteo Iurato, bWF0dGVvLml1cmF0b0BlZHUudW5pZ2UuaXQ=