Next Article in Journal
Dynamic Voltage-Response Estimation for Blade-Tip Timing Sensors Based on EHHO-BP Network and Waveform Mapping
Previous Article in Journal
Personalized Detection of Functional-State Changes Through Continuous Gait Monitoring: A Methodology for Assistive-Device Users
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Multi-Source Motion Inputs and FA-TA-BiLSTM for Lower-Limb Joint Angle Prediction

1
College of Mechanical and Marine Engineering, Beibu Gulf University, Qinzhou 535011, China
2
School of Mechatronical Engineering, Beijing Institute of Technology, Beijing 100081, China
*
Authors to whom correspondence should be addressed.
Sensors 2026, 26(16), 5235; https://doi.org/10.3390/s26165235
Submission received: 28 June 2026 / Revised: 4 August 2026 / Accepted: 11 August 2026 / Published: 18 August 2026
(This article belongs to the Section Intelligent Sensors)

Abstract

Accurate lower-limb joint angle prediction can support motion-state perception and rehabilitation-oriented analysis. This offline feasibility study evaluated an FA-TA-BiLSTM model using surface electromyography (sEMG) features, together with historical hip and knee joint angles and angular velocities. Data were collected from five healthy adult male participants during level walking and sit-to-stand transitions, and the prediction horizon was 100 ms. Support vector regression (SVR), BiLSTM, and FA-TA-BiLSTM were compared under the same combined-input condition and evaluation protocol. The FA-TA-BiLSTM model achieved RMSE, MAE, and  R 2 values of 2.0684°, 1.5920°, and 0.9726 for hip prediction and 2.9604°, 2.5142°, and 0.9660 for knee prediction, respectively. These values were obtained using a mixed-participant chronological split and should be interpreted as preliminary within-cohort estimates rather than evidence of participant-independent generalization. Under this restricted protocol, FA-TA-BiLSTM produced lower errors than SVR and standard BiLSTM. The participant-level model ranking was consistent across the five participants, but exact pairwise comparisons did not reach significance after Holm adjustment. The current comparison does not isolate the incremental contribution of sEMG or individual attention modules; larger and more diverse cohorts, participant-independent validation, modality and module ablation, and causal online evaluation remain necessary.

1. Introduction

Lower-limb robotic and electromechanical systems have been investigated for gait rehabilitation and mobility assistance [1,2,3,4]. Accurate perception of lower-limb motion state is important for movement assessment, assisted training, and motion-intention analysis. Continuous estimation or prediction of hip and knee joint angles can provide temporal information for lower-limb motion analysis and related rehabilitation applications [5,6,7].
Human lower-limb movement is jointly affected by neuromuscular activation, joint posture, and motion dynamics. Surface electromyography (sEMG) signals reflect muscle electrical activity under neural drive and are closely related to voluntary movement intention [8,9]. However, sEMG signals are weak, nonstationary, and sensitive to electrode contact, skin impedance, motion artifacts, power-line interference, muscle fatigue, and crosstalk [10,11]. Joint angles and angular velocities provide stable kinematic descriptions but mainly represent the current motion state. Related lower-limb studies have also shown that prediction performance varies with movement conditions, sensor configurations, and participant characteristics [5,6]. Combining physiological and kinematic inputs may therefore provide a broader description of lower-limb motion than either source alone.
In the present short-horizon setting, the joint angles and angular velocities are historical observations available only up to the end of the current input sequence; they are not the future target angles. Accordingly, this study addresses short-horizon state forecasting rather than biosignal-only kinematic decoding. Historical kinematics provide autoregressive state and motion-trend cues that are already available from wearable joint sensors, whereas sEMG provides complementary physiological information associated with neuromuscular activation. Predicting the joint state 100 ms ahead may provide advance information for future delay compensation, feedforward planning, or supervisory control, although these applications were not evaluated online. Sensor-fusion and multimodal-interaction studies provide broader context for combining physiological and kinematic measurements [12,13], while multisensor and multichannel physiological sensing has been used in motion-intention recognition, locomotion-phase recognition, and continuous lower-limb analysis [14,15]. These studies support combined sensor inputs for joint angle forecasting but do not establish the independent gain of each modality in the present task.
Support vector regression (SVR) provides a conventional nonlinear regression baseline [16,17], whereas LSTM and BiLSTM networks model temporal dependencies in sequential data [18,19]. Deep learning methods have also been applied to physiological and kinematic signal analysis [20,21]. Transformer-based models, temporal convolutional networks (TCNs), and other attention-based architectures are additional sequence-learning options [22,23]. Attention mechanisms can reweight feature dimensions and temporal states, but their independent benefit requires module-level comparison.
This study evaluates an FA-TA-BiLSTM model for 100 ms-ahead hip and knee joint angle prediction using sEMG features, joint angles, and angular velocities available up to the current window. SVR and standard BiLSTM were selected as representative conventional regression and recurrent temporal baselines. The comparison is an initial offline evaluation and is not intended as a comprehensive benchmark against TCN-based, Transformer-based, or other advanced sequence models.
The methodological contributions are threefold: (1) formulation of a 100 ms-ahead lower-limb state-forecasting problem in which all physiological and kinematic inputs precede the prediction target; (2) construction of a 40-dimensional historical sequence and integration of feature-attention weighting, BiLSTM-based temporal encoding, and temporal-attention aggregation; and (3) simultaneous two-output prediction of future hip and knee joint angles using one unified model. The comparison with SVR and standard BiLSTM is used to characterize the complete framework under the present protocol rather than being presented as a separate scientific contribution. The present design does not quantify modality-specific or attention-module-specific gains.
The remainder of this paper is organized as follows. Section 2 introduces the participants, acquisition system, experimental protocol, signal processing, input construction, prediction models, and evaluation metrics. Section 3 presents the prediction results. Section 4 discusses performance, scope, and limitations. Section 5 concludes the paper.

2. Materials and Methods

2.1. Overall Framework

This study establishes a lower-limb joint angle prediction framework based on combined physiological and kinematic inputs. As shown in Figure 1, the workflow consists of multi-source data acquisition, temporal synchronization, sEMG preprocessing, feature extraction, input sequence construction, model training, and performance evaluation. During data acquisition, sEMG signals are recorded from selected lower-limb muscles, while hip and knee joint angles are obtained from the inertial measurement unit (IMU)-based joint motion acquisition module. Joint angular velocities are then calculated from the synchronized angle sequences.
After synchronization, the raw sEMG signals are processed by filtering, wavelet denoising, and full-wave rectification. Time-domain and frequency-domain features are extracted using sliding windows. These sEMG features are then combined with the hip and knee joint angles and the corresponding angular velocities available up to the current feature window. The model predicts the future hip and knee joint angles over a short horizon. Under the same prediction setting and evaluation protocol, SVR, BiLSTM, and FA-TA-BiLSTM models are constructed and compared using RMSE, MAE, and  R 2 .

2.2. Participants

Five healthy adult male participants took part in the experiment. Eligibility was assessed by verbal pre-experiment screening for self-reported lower-limb musculoskeletal injury, neuromuscular disease, obvious gait abnormality, or other conditions that could affect task performance; no formal medical examination or diagnostic assessment was performed. To reduce short-term fatigue, participants were asked not to perform strenuous exercise within 12 h before the experiment. The purpose, movement requirements, and safety precautions were explained, and written informed consent was obtained. This small homogeneous cohort was used for a preliminary within-cohort offline evaluation and does not represent broader demographic or clinical populations. The participant count was determined by feasibility and participant availability rather than by an a priori power calculation. The participant, rather than the large number of overlapping windows, is the independent biological unit; therefore, the present sample is insufficient for confirmatory population-level inference. Participant characteristics are summarized in Table 1.

2.3. Multi-Source Sensor Acquisition System

2.3.1. Sensor Configuration

The acquisition system comprised an sEMG module and an IMU-based joint-motion module. Both were existing laboratory systems purchased and configured before the present study. Because the original procurement records were unavailable, the exact manufacturer and commercial model information could not be reliably verified; only the confirmed configuration and acquisition parameters are reported.
The sEMG signals were recorded at 1000 Hz, whereas the IMU-based joint-motion signals were recorded at 200 Hz. The two systems were manually started as close in time as possible and did not share a hardware trigger or clock. Their returned timestamps were subsequently used for software-level alignment. sEMG provided complementary neuromuscular information, while joint angles and angular velocities described posture and motion trend. Their separate contributions were not independently quantified. The functional roles of the input sources are summarized in Table 2, and the acquisition hardware is shown in Figure 2.

2.3.2. Muscle Selection and Electrode Placement

The choice of target muscles affects how well the sEMG signals represent lower-limb motor intent and joint motion. Because the prediction targets are the hip and knee joint angles, the selected muscles should cover hip actuation, knee flexion and extension, pelvic control, and gait-timing-related functions. An insufficient number of muscles may lead to incomplete motion-related information, whereas excessive channels may increase acquisition complexity and introduce redundancy or muscle crosstalk [24,25].
Considering anatomical accessibility, functional relevance, electrode placement stability, and hip–knee coordination, six muscles were selected as sEMG acquisition targets: gluteus maximus, gluteus medius, rectus femoris, vastus lateralis, biceps femoris, and tibialis anterior. The gluteus maximus is mainly involved in hip extension and reflects support, propulsion, and trunk lifting. The gluteus medius contributes to pelvic stabilization and hip control. The rectus femoris crosses both the hip and knee joints and participates in hip flexion and knee extension. The vastus lateralis mainly reflects knee extensor activity. The biceps femoris participates in knee flexion and assists hip extension. Although the tibialis anterior does not directly actuate the hip or knee joint, its activity is closely related to foot control during the swing phase and can provide useful temporal information for lower-limb motion prediction [24,26]. The functions of the six target muscles are summarized in Table 3.
Before electrode placement, the target muscle regions were identified, and the skin surface was cleaned to reduce the influence of skin impedance. Electrodes were placed away from tendon regions, bony prominences, and areas where adjacent muscles overlapped as much as possible. For each participant, electrode positions were kept consistent across different trials to improve the repeatability of the collected sEMG data [25,27]. The target-muscle distribution and electrode locations are illustrated in Figure 3.

2.4. Experimental Protocol

Two offline motion-acquisition tasks were used: level walking and sit-to-stand transitions. During the level-walking task, participants walked on level ground at a natural, self-selected speed. This task provided continuous, approximately periodic lower-limb motion data. During the transition task, participants moved from standing to sitting and then returned to standing. This task represented a common nonperiodic postural transition.
One trial was defined as one continuous recording of a specified movement task rather than one gait cycle or one sit-to-stand cycle. Each participant completed 10 level-walking trials and 10 sit-to-stand trials, yielding 20 trials per participant, and each trial lasted at least 30 s. To reduce fatigue, a 5 min rest period was provided after every five trials. Participants were instructed to move consistently and avoid sudden acceleration, deceleration, or excessive trunk sway. For each participant, the valid recordings from both tasks were concatenated in their stored order before sliding-window segmentation. Consequently, windows and 16-window input sequences located near recording or task junctions may contain samples from adjacent segments. Task- and trial-boundary identifiers were not retained in the processed dataset, so these boundary samples could not be isolated retrospectively. The samples from both tasks were used to train a single prediction model, and the reported metrics therefore describe aggregate performance across both tasks rather than task-specific results. For each sample, a 200 ms input window and a 50 ms step were used, and the hip and knee angles 100 ms after the input window were the prediction targets. The two motion tasks are illustrated in Figure 4.

2.5. Signal Synchronization and Preprocessing

2.5.1. Signal Synchronization

After alignment by the returned timestamps, the 1000 Hz sEMG timeline was used as the reference and the 200 Hz IMU-derived hip and knee angle sequences were resampled by cubic spline interpolation. The interpolation was used only for temporal alignment; it did not increase the original temporal information and may introduce limited smoothing or local overshoot during rapid angle changes. The synchronized joint angle sequence can be written as follows:
θ s ( t k ) = S ( t k ) .
where  S ( t ) is the interpolation function constructed from the original joint angle samples, and  t k is the sampling instant on the unified time axis. Based on the synchronized joint angle sequence, joint angular velocity in rad/s is calculated from angles in degrees as follows:
ω j ( t k ) = π 180 θ s , j ( t k ) θ s , j ( t k 1 ) Δ t , j { hip , knee } .
Through this processing, sEMG features, joint angles, and angular velocities were matched at the feature-window level. The angular velocity was derived from the synchronized angle sequence and should be interpreted as a kinematic derivative rather than an independently measured high-frequency signal. The synchronized IMU-derived angles served as the common measured references for training and evaluation of all models. No independent validation against optical motion capture or a goniometer was performed; accordingly, the reported errors are relative to the IMU measurements rather than absolute anatomical-angle accuracy. Residual timing uncertainty from manual starting and independent clocks cannot be excluded. The synchronized signals are shown in Figure 5.

2.5.2. sEMG Preprocessing

Raw sEMG signals can be affected by motion artifacts, power-line interference, random noise, and electrode-contact variation [11]. After channel-wise mean removal, a fourth-order zero-phase Butterworth bandpass filter of 20–450 Hz and a 50 Hz notch filter with a quality factor of 35 were applied [28].
Wavelet denoising was then applied because sEMG is nonstationary [29,30]. MATLAB R2023b wdenoise was used with five decomposition levels and the Daubechies 4 (db4) wavelet; all unspecified denoising options retained their software-default values. The denoising process can be expressed as follows:
x 2 ( n ) = W 1 ( T ( W ( x 1 ( n ) ) ) ) .
where  x 1 ( n ) is the signal after bandpass and notch filtering,  x 2 ( n ) is the denoised signal,  W ( · ) and  W 1 ( · ) denote wavelet decomposition and reconstruction, and  T ( · ) denotes the automatic thresholding operation. Finally, full-wave rectification was used to transform the bipolar sEMG waveform into an amplitude-related signal:
x 3 ( n ) = | x 2 ( n ) | .
After full-wave rectification, the signals were segmented directly for feature extraction; no moving-average, RMS-envelope, or low-pass smoothing was applied. This procedure reduced major interference components while retaining amplitude variations related to muscle activation. Figure 6 shows illustrative sEMG waveforms before and after denoising.

2.6. Feature Extraction and Multi-Source Input Construction

2.6.1. sEMG Feature Extraction

After preprocessing, continuous sEMG signals were segmented using a sliding window. The window length was set to 200 ms, and the window step was set to 50 ms. This study used this fixed window configuration to balance local feature estimation and temporal sampling density. For the ith window, the sEMG samples are denoted as follows:
X i = { x ( ( i 1 ) S + 1 ) , x ( ( i 1 ) S + 2 ) , , x ( ( i 1 ) S + L ) } , i = 1 , 2 , .
where L is the window length and S is the window step. For each sEMG channel, four time-domain features and two frequency-domain features were extracted, namely IEMG, RMS, WL, DASDV, MF, and SE. Time-domain descriptors, including waveform-length-based measures, have a long history in myoelectric feature construction [10,31]. These features describe amplitude accumulation, signal energy, waveform variation, local fluctuation, spectral energy distribution, and spectral complexity. Their definitions are summarized in Table 4.
In Table 4 x ( k ) is the kth sample in a window, N is the number of samples,  P ( f ) is the power spectral density,  f MF is the median frequency corresponding to half of the total spectral power,  p j is the normalized spectral power component, and M is the number of frequency components. The natural logarithm is used in the SE calculation. The six features extracted from each of the six sEMG channels were concatenated in a fixed order to form the sEMG feature vector  F e m g ( i ) . These features describe activation amplitude, signal energy, waveform variation, frequency distribution, and spectral complexity. Some features may contain overlapping information; for example, IEMG and RMS are both amplitude-related, while WL and DASDV both describe waveform variation. The 36-dimensional sEMG vector was retained as a fixed representation, and no feature-selection or feature-importance analysis was performed. The learned attention representations should therefore not be interpreted as direct physiological importance scores for individual raw features.

2.6.2. Multi-Source Input Construction

Table 5 summarizes the composition and dimensionality of the combined input. After feature extraction and synchronization, the sEMG features, joint angles, and joint angular velocities were integrated into a unified input vector:
X ( i ) = [ F e m g ( i ) , F a n g ( i ) , F v e l ( i ) ] .
where  F e m g ( i ) denotes the sEMG feature vector,  F a n g ( i ) contains the synchronized hip and knee joint angles, and  F v e l ( i ) contains the corresponding angular velocities. All variables in  X ( i ) are information available at or before the current feature window. The model does not use the joint angles of the current window as the prediction labels. Instead, the target output contains the future hip and knee joint angles after a fixed prediction horizon.
Given the historical input sequence  { X ( i T + 1 ) , , X ( i ) } , the model predicts the future joint angle vector as
y ^ ( i + h ) = f ( { X ( i T + 1 ) , , X ( i ) } ) , y ( i + h ) = [ θ s , hip ( t i + Δ t p ) , θ s , knee ( t i + Δ t p ) ] T .
where T is the input sequence length, h is the label shift in feature steps,  t i denotes the end time of the current feature window, and  Δ t p is the prediction horizon. In this study,  Δ t p was set to 100 ms. Since the feature window step was 50 ms, the target labels were shifted by two feature steps relative to the last input window. Therefore, the current joint angles and angular velocities were used as available state variables for short-horizon forecasting, rather than as the output labels of the same time window. The complete prediction configuration is summarized in Table 6.
Since different input variables have different units and numerical ranges, min–max normalization was applied before model training [32]:
x = x x min x max x min .
where x is the original value,  x is the normalized value, and  x min and  x max are the minimum and maximum values of the corresponding feature calculated from the training set. The same normalization parameters were then applied to the validation and test sets.

2.7. Prediction Models

Three models were compared under the same dataset division, feature set, prediction horizon, and evaluation metrics. SVR was used as a conventional nonlinear regression baseline. BiLSTM was used to model temporal dependencies in the multi-source sequence. FA-TA-BiLSTM further introduced feature attention and temporal attention to reweight input dimensions and historical hidden states, respectively. The comparison in this study evaluates the overall performance of the complete FA-TA-BiLSTM architecture under the constructed multi-source input condition. It is not intended to separately quantify the independent contribution of each sensor modality or each attention module, nor should it be interpreted as a comprehensive comparison with TCN, Transformer-based, or other advanced sequence models.

2.7.1. Support Vector Regression

Support vector regression maps input samples into a high-dimensional feature space and fits nonlinear relationships between input features and target joint angles [16,17]. For training samples  { ( x i , y i ) } i = 1 N , the regression function is
f ( x ) = w T ϕ ( x ) + b .
The radial basis function kernel was adopted to describe nonlinear sample distributions with limited manual assumptions:
K ( x i , x j ) = exp ( γ x i x j 2 2 ) .
The Gaussian kernel was used for the SVR baseline. In the implementation, the penalty factor, kernel scale, and insensitive loss setting were specified in advance, with the kernel scale set to automatic selection rather than manually assigning a fixed  γ value. The detailed settings are summarized later with the model training settings.

2.7.2. Bidirectional Long Short-Term Memory

BiLSTM contains a forward LSTM and a backward LSTM. It can model temporal relationships from both directions within a given input sequence and is suitable for continuous lower-limb motion data with temporal dependence [18,19]. In this study, only historical input sequences up to the current feature window were provided to the model. The backward direction processed this known historical segment in reverse order, and no samples after the current window or target time were included in the input. Thus, bidirectional modeling was used for contextual encoding of an observed finite sequence rather than for accessing future targets. The evaluated model nevertheless requires the complete buffered historical sequence and is not equivalent to strictly causal online streaming. The BiLSTM output at time t is expressed as the concatenation of the forward and backward hidden states:
H t = [ h t , h t ] .
where  h t and  h t are the forward and backward hidden states, respectively. The resulting vector  H t is used as the temporal representation of the multi-source input sequence. A unidirectional LSTM or another causal temporal model should be evaluated for real-time deployment.

2.7.3. Feature- and Temporal-Attention-Based BiLSTM

The FA-TA-BiLSTM model follows the functional flow shown in Figure 7. Feature attention first reweights the 40 input dimensions at each historical time step, allowing the model to emphasize sensor-derived variables that are more informative for the current motion state. The feature-weighted sequence is then encoded by a BiLSTM temporal encoder. Temporal attention subsequently assigns weights to the BiLSTM hidden states across the observed sequence and aggregates them into a context vector for two-output regression. The BiLSTM block in Figure 7 represents the recurrent encoder as a functional unit; its principal settings are summarized later with the model training settings. Because no module-level ablation was performed, the separate contributions of feature attention and temporal attention are not quantified in this study.
For an input sequence  X = [ X 1 , , X T ] , where  X t R D and  D = 40 , the feature-attention weights and the reweighted input are defined as
α t = softmax W fa X t + b fa , X ˜ t = α t X t ,
where  α t R D is the feature-attention weight vector,  W fa and  b fa are learnable parameters, and ⊙ denotes element-wise multiplication. The weighted sequence  [ X ˜ 1 , , X ˜ T ] is processed by the BiLSTM encoder to obtain the hidden-state sequence  { H t } t = 1 T , as defined in Equation (11).
Temporal attention evaluates the relevance of each historical hidden state to the prediction target. The attention scores, normalized temporal weights, and context vector are defined as [33]
u t = tanh W ta H t + b ta , e t = v ta T u t , β t = exp ( e t ) k = 1 T exp ( e k ) , C = t = 1 T β t H t ,
where  e t is the temporal-attention score,  β t is the normalized temporal weight,  W ta b ta , and  v ta are learnable parameters, and C is the context vector. The future hip and knee joint angles are then predicted through the regression head:
y ^ = W c C + b c = θ ^ hip , θ ^ knee T .
Figure 7 and Equations (12)–(14) therefore describe the same feature-attention–BiLSTM–temporal-attention information flow.

2.8. Model Training and Evaluation Metrics

2.8.1. Experimental Settings

SVR, BiLSTM, and FA-TA-BiLSTM were evaluated using the same combined input, 100 ms prediction horizon, dataset split, and metrics. For each participant, the constructed sequence samples were divided chronologically into 70% training, 15% validation, and 15% test subsets. The five participant-specific training subsets were then concatenated to form the overall training set, and the validation and test subsets were combined in the same manner. Consequently, all five participants contributed samples to the training, validation, and test sets. This protocol provides a mixed-participant, within-cohort evaluation rather than participant-independent generalization. Because window construction preceded the split and adjacent 200 ms windows overlap by 75%, chronological division reduces random mixing but does not eliminate correlation between neighboring samples near subset boundaries. The training set was used for parameter learning, the validation set supported manual model selection and hyperparameter adjustment, and the test set was used for evaluation. The listed hyperparameters were manually selected during preliminary development with reference to validation performance and training stability; no exhaustive grid or random search was conducted.
Table 7 reports the participant-level recording durations, usable labeled-window counts, sequence-sample counts, and chronological 70/15/15 splits before the corresponding participant-specific subsets were pooled across participants. The final two raw windows of each recording stream were excluded because a 100 ms future target was unavailable.
Figure 7 and Equations (12)–(14) describe the functional information flow of the proposed model: feature-wise input reweighting, bidirectional temporal encoding, temporal aggregation, and two-output regression. The BiLSTM and FA-TA-BiLSTM models use two output neurons corresponding to the predicted hip and knee joint angles. For the SVR baseline, two separate single-output regressors were trained for hip and knee angle prediction. In all compared models, the input feature dimension was 40, the input window length was 200 ms, the sliding step was 50 ms, the prediction horizon was 100 ms, and 16 consecutive windows were used to form one input sequence. These overlapping windows span approximately 950 ms from the beginning of the first window to the end of the last window. The principal model components and training settings are summarized in Table 8.

2.8.2. Evaluation Metrics

Prediction accuracy was evaluated by RMSE, MAE, and  R 2 [34,35]. The metrics were calculated separately for the hip and knee output channels. RMSE emphasizes the overall error magnitude and is sensitive to large deviations. MAE reflects the average absolute deviation.  R 2 describes how well the predicted sequence explains the variation in the measured joint angle. Their definitions are:
R M S E = 1 N i = 1 N ( y i y ^ i ) 2 , M A E = 1 N i = 1 N | y i y ^ i | .
R 2 = 1 i = 1 N ( y i y ^ i ) 2 i = 1 N ( y i y ¯ ) 2 .
where  y i is the measured joint angle at the target time,  y ^ i is the predicted joint angle,  y ¯ is the mean value of measured joint angles, and N is the number of test samples. Lower RMSE and MAE values indicate smaller prediction errors, while an  R 2 closer to 1 indicates better agreement between the predicted and measured trajectories.

2.8.3. Participant-Level Statistical Analysis

The participant ( N = 5 ), rather than individual overlapping windows, was treated as the unit of statistical comparison. Per-participant RMSE and MAE values were analyzed separately for the hip and knee joints. For each of the four outcomes, a Friedman test compared the three models, and Kendall’s coefficient of concordance (W) was reported as an effect-size measure. When the omnibus test was significant, planned exact two-sided Wilcoxon signed-rank tests compared FA-TA-BiLSTM with SVR and with standard BiLSTM. The two planned comparisons within each outcome were adjusted using the Holm procedure. Because the cohort was small and no a priori power analysis was performed, these analyses are exploratory and are not interpreted as confirmatory evidence of population-level superiority.

3. Results

After model training, predictions were generated for the concatenated mixed-participant test set. Figure 8, Figure 9, Figure 10, Figure 11, Figure 12, Figure 13, Figure 14, Figure 15 and Figure 16 show the same fixed consecutive sample-index interval from all model outputs. The interval was selected for qualitative comparison without reference to prediction errors; because the archived plotting record did not retain participant, task, trial, or original-time identifiers, it is not presented as a participant-specific or uninterrupted-trial example. All quantitative metrics were calculated on the complete test set. MATLAB smoothdata was applied only to the displayed prediction curves and did not affect preprocessing, training, prediction generation, or the reported metrics.

3.1. Hip Joint Angle Prediction Results

The hip joint contributes to postural regulation, propulsion, and center-of-mass transfer during lower-limb movement. To evaluate short-horizon hip angle prediction, the outputs of SVR, BiLSTM, and FA-TA-BiLSTM were compared with the corresponding IMU-derived measurements.
Figure 8, Figure 9 and Figure 10 show illustrative hip angle predictions from SVR, BiLSTM, and FA-TA-BiLSTM, respectively. All three models follow the overall temporal pattern, but SVR shows larger local deviations, BiLSTM shows closer temporal agreement, and FA-TA-BiLSTM provides the closest visual agreement in most displayed cycles. Because no attention-module ablation was performed, this comparison concerns the complete architectures rather than either attention module separately.
Figure 11 provides a direct comparison and shows the same qualitative ordering among the three models.
Table 9 gives the quantitative evaluation results of different models in the hip joint angle prediction task. The RMSE, MAE, and  R 2 of the SVR model are 3.7476, 2.8765, and 0.8823, respectively. The RMSE and MAE of the BiLSTM model decrease to 2.4798 and 2.0394, respectively, while  R 2 increases to 0.9358. The FA-TA-BiLSTM model further reduces RMSE and MAE to 2.0684 and 1.5920, respectively, and increases  R 2 to 0.9726. Compared with the SVR model, the FA-TA-BiLSTM model reduces RMSE by 44.80% and MAE by 44.65%. Compared with the BiLSTM model, the FA-TA-BiLSTM model reduces RMSE by 16.59% and MAE by 21.94%. These values are aggregate point estimates calculated on the current offline test samples; they are not intended to represent participant-level variability or cross-participant robustness.

3.2. Knee Joint Angle Prediction Results

The knee joint contributes to load acceptance, swing-phase control, and postural transitions. In the present dataset, the knee angle exhibits larger excursions, sharper local peaks, and faster changes than the hip angle, making short-horizon prediction more challenging.
Figure 12, Figure 13 and Figure 14 show illustrative knee angle predictions from SVR, BiLSTM, and FA-TA-BiLSTM, respectively. SVR shows larger deviations during rapid changes and near peaks, BiLSTM follows the measured curve more closely, and FA-TA-BiLSTM shows the closest overall visual agreement. These observations do not identify the separate contribution of either attention module.
Figure 15 compares the three knee predictions directly. The larger excursions and sharper peaks make knee prediction more difficult than hip prediction; SVR shows the largest local deviations, while BiLSTM and especially FA-TA-BiLSTM follow the measured curve more closely.
Table 10 lists the quantitative evaluation results of different models in the knee joint angle prediction task. The RMSE, MAE, and  R 2 of the SVR model are 5.5673, 4.5126, and 0.8935, respectively. The RMSE and MAE of the BiLSTM model decrease to 3.9962 and 3.1512, respectively, while  R 2 increases to 0.9357. The RMSE and MAE of the FA-TA-BiLSTM model further decrease to 2.9604 and 2.5142, respectively, while  R 2 increases to 0.9660. Compared with the SVR model, the FA-TA-BiLSTM model reduces RMSE by 46.83% and MAE by 44.29%. Compared with the BiLSTM model, the FA-TA-BiLSTM model reduces RMSE by 25.92% and MAE by 20.21%. These results describe the aggregate performance on the current offline test samples and should be interpreted together with the limited participant sample size and the descriptive participant-level variability reported below.

3.3. Overall Comparison of Different Models

The aggregate metrics show the same ordering for both joints: SVR has the highest errors, BiLSTM has lower errors, and FA-TA-BiLSTM has the lowest errors. This pattern is consistent with recurrent temporal encoding and, in the complete FA-TA-BiLSTM architecture, the reweighting of input dimensions and historical states. Because module ablation and capacity matching were not performed, the gains cannot be attributed solely to the attention modules.
Table 11 reports the absolute errors and relative reductions in FA-TA-BiLSTM compared with the two baselines.
Table 12 reports the per-participant RMSE and MAE values for hip and knee joint prediction across the three compared models.
The mean and standard-deviation rows were calculated across the five participant-level values using the sample standard deviation. They may differ slightly from aggregate metrics because the numbers of test samples differed among participants. Participant P3 showed consistently higher errors than the other participants. This may reflect differences in movement patterns, joint angle ranges, task execution, or sensor–body interface conditions; these factors were not independently quantified, so no causal conclusion is drawn.
For hip RMSE, hip MAE, knee RMSE, and knee MAE, the model ranking was identical across all five participants. The Friedman result was therefore the same for each outcome ( χ 2 ( 2 ) = 10.000 p = 0.0067 , Kendall’s  W = 1.000 ), indicating complete rank concordance within this small cohort. However, the planned exact two-sided Wilcoxon comparisons of FA-TA-BiLSTM with either SVR or standard BiLSTM yielded  p = 0.0625 in each case; after Holm adjustment within each outcome, the adjusted value was  p = 0.1250 . Thus, the participant-level differences were directionally consistent but did not provide confirmatory pairwise significance at the 0.05 level.
Figure 16 summarizes the illustrative hip and knee comparisons; together with the aggregate metrics, it shows that FA-TA-BiLSTM performs favorably relative to the selected baselines on this dataset.

3.4. Analysis of Prediction Errors

Errors are most apparent near extrema, direction reversals, and rapid flexion–extension. All models show higher knee than hip errors, consistent with the knee’s larger excursions and faster local changes. SVR has the largest local deviations, whereas FA-TA-BiLSTM has the lowest aggregate RMSE and MAE for both joints; these visual observations remain qualitative and should be interpreted with the complete-set metrics.

4. Discussion

4.1. Prediction Performance of the FA-TA-BiLSTM Model

Under the same combined-input condition and prediction setting, FA-TA-BiLSTM produced lower errors and higher goodness-of-fit than SVR and standard BiLSTM for both joints. The complete architecture combines feature-wise input reweighting, bidirectional recurrent encoding, and temporal-attention aggregation. Because no attention-module ablation was performed, and model capacity was not matched between FA-TA-BiLSTM and standard BiLSTM, the observed difference cannot be attributed exclusively to the attention design.
The hip and knee RMSE values were 2.07° and 2.96°, respectively. Coker et al. reported 2.12 ± 0.69° for 100 ms-ahead knee angle prediction using EMG and historical knee angles, while Li et al. reported 4.81 ± 1.37° for sEMG-based knee angle estimation [7,36]. The present errors are of a similar order of magnitude to those reported in these related offline studies. However, differences in tasks, inputs, reference measurements, and validation protocols preclude a universal clinical or control-level acceptability threshold.

4.2. Role of Multi-Source Inputs

At the 100 ms horizon, historical joint angles and angular velocities provide direct autoregressive cues about motion state and trend, whereas sEMG provides complementary physiological information. The kinematic inputs are not the target angle at the prediction time: they are measurements available before the prediction origin, and the target is the joint state 100 ms later. The practical purpose is therefore sensor-based short-horizon forecasting, not reconstruction of kinematics solely from biosignals. This formulation is relevant to systems in which joint-state sensors are already available and a future-state estimate may assist delay compensation or anticipatory control. Because no modality-ablation experiment was performed, the current comparison evaluates the complete combined-input model and does not establish the incremental contribution of sEMG beyond the kinematic inputs.

4.3. Application Scope of the Offline Prediction Method

This work evaluates a unified 100 ms-ahead framework that combines a 36-dimensional six-channel sEMG representation with pre-target hip and knee angles and angular velocities, applies feature and temporal attention, and predicts both future joint angles. Because historical kinematics are retained as autoregressive inputs, the task is short-horizon state forecasting rather than biosignal-only decoding. The comparison does not establish independent modality or module effects, superiority over untested advanced models, real-time control performance, or rehabilitation efficacy.

4.4. Limitations and Future Work

The cohort comprised only five healthy adult men. Each participant was divided chronologically into training, validation, and test subsets before the corresponding subsets were pooled across participants. Thus, every participant contributed data to all three subsets, while 75% overlap between adjacent windows may leave correlation near subset boundaries. The reported values are therefore preliminary within-cohort estimates rather than evidence of participant-independent generalization. Larger sex-, age-, and pathology-diverse cohorts and participant-independent validation are required.
The comparison was restricted to SVR, BiLSTM, and the complete FA-TA-BiLSTM model. No TCN or Transformer benchmark, modality or attention-module ablation, feature-selection analysis, or multiple-horizon evaluation was performed. Correlated sEMG features and unmatched model capacity also limit attribution of the observed improvement. Future work should separate modality, module, feature-set, model-capacity, and prediction-horizon effects.
The prediction references were IMU-derived angles without independent optical or goniometric validation. Timestamp alignment, cubic-spline resampling, and independent device clocks may introduce residual measurement or timing uncertainty. Data from level walking and sit-to-stand transitions were pooled, so task-specific performance was not quantified. Because recordings were concatenated before sliding-window construction, some samples near recording or task junctions may combine adjacent segments, and the influence of these boundary samples was not independently quantified. In addition, the buffered BiLSTM architecture is not directly equivalent to causal online streaming and should be compared with unidirectional or other causal models before real-time deployment.
The sample size was feasibility-driven; no a priori power analysis was performed, and only five participants were available for participant-level inference. Exploratory Friedman tests indicated fully consistent model rankings across participants, but the planned exact pairwise Wilcoxon comparisons did not reach the 0.05 level after Holm adjustment. The numerical differences should therefore not be interpreted as confirmatory evidence of population-level superiority.

5. Conclusions

This preliminary offline study used data from five healthy adult men and a mixed-participant chronological split; the findings describe within-cohort performance and should not be generalized to unseen participants, clinical populations, or real-time control.
Under the same combined-input condition and 100 ms horizon, FA-TA-BiLSTM produced lower aggregate errors and higher  R 2 values than SVR and standard BiLSTM. However, exact participant-level pairwise comparisons did not reach significance after Holm adjustment, so the results support feasibility on the current dataset rather than population-level superiority or isolated modality and module effects. Future work should include larger and more diverse cohorts, participant-independent validation, ablation, task-specific analysis, independently validated angle references, multiple horizons, and causal online implementation.

Author Contributions

Conceptualization, C.Y. and X.G.; methodology, C.Y. and P.Z.; software, C.Y.; validation, C.Y., J.D., and X.H.; formal analysis, C.Y. and P.Z.; investigation, C.Y., Y.G. and X.H.; resources, X.G.; data curation, C.Y. and Y.G.; writing—original draft preparation, C.Y.; writing—review and editing, P.Z. and X.G.; visualization, C.Y.; supervision, X.G.; project administration, X.G. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

The study was conducted in accordance with the Declaration of Helsinki and approved by the Ethics Committee of the College of Mechanical and Marine Engineering, Beibu Gulf University (approval no. LW2026011; 1 March 2026). The committee is authorized to review low-risk, non-invasive engineering studies involving human participants. Written informed consent was obtained before data collection, and supporting ethics documentation is provided with the submission.

Informed Consent Statement

Written informed consent was obtained from all participants before participating in experiments involving level walking and sit-to-stand transitions. Written informed consent for publication of the anonymized participant images shown in this manuscript was also obtained from the relevant participants.

Data Availability Statement

The data presented in this study are available from the corresponding author upon reasonable request. The data are not publicly available due to privacy considerations related to human-participant recordings.

Acknowledgments

The authors would like to thank all participants for their cooperation during the experiments.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
sEMGSurface electromyography
IMUInertial measurement unit
SVRSupport vector regression
LSTMLong short-term memory
BiLSTMBidirectional long short-term memory
FAFeature attention
TATemporal attention
FA-TA-BiLSTMFeature-attention and temporal-attention bidirectional long short-term memory
IEMGIntegrated electromyography
RMSRoot mean square
WLWaveform length
DASDVDifference absolute standard deviation value
MFMedian frequency
SESpectral entropy
RMSERoot mean square error
MAEMean absolute error
R 2 Coefficient of determination

References

  1. Masengo, G.; Zhang, X.; Dong, R.; Alhassan, A.B.; Hamza, K.; Mudaheranwa, E. Lower limb exoskeleton robot and its cooperative control: A review, trends, and challenges for future research. Front. Neurorobot. 2023, 16, 913748. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  2. Cha, J.M.; Hong, J.; Yoo, J.H.; Rha, D.W. Wearable robots for rehabilitation and assistance of gait: A narrative review. Ann. Rehabil. Med. 2025, 49, 187–195. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  3. Nolan, K.J.; Karunakaran, K.K.; Roberts, P.; Reisman, D.S.; Asbeck, A.T.; Smith, B.; Yozbatiran, N.; Cramer, S.C.; Jayaraman, A.; Kesar, T.M. Utilization of robotic exoskeleton for overground walking in acute and chronic stroke. Front. Neurorobot. 2021, 15, 689363. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  4. Mehrholz, J.; Thomas, S.; Kugler, J.; Pohl, M.; Elsner, B. Electromechanical-assisted training for walking after stroke. Cochrane Database Syst. Rev. 2020, 10, CD006185. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  5. Zhao, H.; Qiu, Z.; Peng, D.; Wang, F.; Wang, Z.; Qiu, S.; Shi, X.; Chu, Q. Prediction of joint angles based on human lower limb surface electromyography. Sensors 2023, 23, 5404. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  6. Truong, M.T.N.; Ali, A.E.A.; Owaki, D.; Hayashibe, M. EMG-based estimation of lower limb joint angles and moments using long short-term memory network. Sensors 2023, 23, 3331. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  7. Coker, J.; Chen, H.; Schall, M.C., Jr.; Gallagher, S.; Zabala, M. EMG and Joint Angle-Based Machine Learning to Predict Future Joint Angles at the Knee. Sensors 2021, 21, 3622. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  8. De Luca, C.J. The use of surface electromyography in biomechanics. J. Appl. Biomech. 1997, 13, 135–163. [Google Scholar] [CrossRef] [Scilit]
  9. Merletti, R.; Parker, P.A. (Eds.) Electromyography: Physiology, Engineering, and Non-Invasive Applications; Wiley-IEEE Press: Hoboken, NJ, USA, 2004. [Google Scholar]
  10. Phinyomark, A.; Quaine, F.; Charbonnier, S.; Serviere, C.; Tarpin-Bernard, F.; Laurillau, Y. EMG feature evaluation for improving myoelectric pattern recognition robustness. Expert Syst. Appl. 2013, 40, 4832–4840. [Google Scholar] [CrossRef] [Scilit]
  11. Chowdhury, R.H.; Reaz, M.B.I.; Ali, M.A.B.M.; Bakar, A.A.A.; Chellappan, K.; Chang, T.G. Surface electromyography signal processing and classification techniques. Sensors 2013, 13, 12431–12466. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  12. Novak, D.; Riener, R. A survey of sensor fusion methods in wearable robotics. Robot. Auton. Syst. 2015, 73, 155–170. [Google Scholar] [CrossRef] [Scilit]
  13. Gui, K.; Liu, H.; Zhang, D. Toward multimodal human-robot interaction to enhance active participation of users in gait rehabilitation. IEEE Trans. Neural Syst. Rehabil. Eng. 2017, 25, 2054–2066. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  14. Lu, Y.; Wang, H.; Hu, F.; Zhou, B.; Xi, H. Effective recognition of human lower limb jump locomotion phases based on multi-sensor information fusion and machine learning. Med. Biol. Eng. Comput. 2021, 59, 883–899. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  15. Wang, X.; Zhang, C.; Yu, Z.; Deng, C. Decoding of lower limb continuous movement intention from multi-channel sEMG and design of adaptive exoskeleton controller. Biomed. Signal Process. Control 2024, 94, 106245. [Google Scholar] [CrossRef] [Scilit]
  16. Smola, A.J.; Schölkopf, B. A tutorial on support vector regression. Stat. Comput. 2004, 14, 199–222. [Google Scholar] [CrossRef] [Scilit]
  17. Chang, C.C.; Lin, C.J. LIBSVM: A library for support vector machines. ACM Trans. Intell. Syst. Technol. 2011, 2, 27. [Google Scholar]
  18. Hochreiter, S.; Schmidhuber, J. Long short-term memory. Neural Comput. 1997, 9, 1735–1780. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  19. Schuster, M.; Paliwal, K.K. Bidirectional recurrent neural networks. IEEE Trans. Signal Process. 1997, 45, 2673–2681. [Google Scholar] [CrossRef] [Scilit]
  20. Chen, Y.; Yu, S.; Ma, K.; Huang, S.; Li, G.; Cai, S.; Xie, L. A continuous estimation model of upper limb joint angles by using surface electromyography and deep learning method. IEEE Access 2019, 7, 174940–174950. [Google Scholar] [CrossRef] [Scilit]
  21. Liu, G.; Zhang, L.; Han, B.; Zhang, T.; Wang, Z.; Wei, P. sEMG-based continuous estimation of knee joint angle using deep learning with convolutional neural network. In Proceedings of the 2019 IEEE 15th International Conference on Automation Science and Engineering, Vancouver, BC, Canada, 22–26 August 2019; IEEE: Piscataway, NJ, USA, 2019; pp. 140–145. [Google Scholar]
  22. Vaswani, A.; Shazeer, N.; Parmar, N.; Uszkoreit, J.; Jones, L.; Gomez, A.N.; Kaiser, L.; Polosukhin, I. Attention is all you need. In Advances in Neural Information Processing Systems; Curran Associates: Red Hook, NY, USA, 2017; Volume 30, pp. 5998–6008. [Google Scholar]
  23. Bai, S.; Kolter, J.Z.; Koltun, V. An empirical evaluation of generic convolutional and recurrent networks for sequence modeling. arXiv 2018, arXiv:1803.01271. [Google Scholar]
  24. Winter, D.A. Biomechanics and Motor Control of Human Movement, 4th ed.; John Wiley & Sons: Hoboken, NJ, USA, 2009. [Google Scholar]
  25. Hermens, H.J.; Freriks, B.; Disselhorst-Klug, C.; Rau, G. Development of recommendations for SEMG sensors and sensor placement procedures. J. Electromyogr. Kinesiol. 2000, 10, 361–374. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  26. Perry, J.; Burnfield, J.M. Gait Analysis: Normal and Pathological Function, 2nd ed.; SLACK Incorporated: Thorofare, NJ, USA, 2010. [Google Scholar]
  27. Besomi, M.; Hodges, P.W.; Van Dieen, J.; Carson, R.G.; Clancy, E.A.; Disselhorst-Klug, C.; Holobar, A.; Hug, F.; Kiernan, M.C.; Lowery, M.; et al. Consensus for experimental design in electromyography project: Electrode selection matrix. J. Electromyogr. Kinesiol. 2019, 48, 128–144. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  28. De Luca, C.J.; Gilmore, L.D.; Kuznetsov, M.; Roy, S.H. Filtering the surface EMG signal: Movement artifact and baseline noise contamination. J. Biomech. 2010, 43, 1573–1579. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  29. Donoho, D.L. De-noising by soft-thresholding. IEEE Trans. Inf. Theory 1995, 41, 613–627. [Google Scholar] [CrossRef] [Scilit]
  30. Mallat, S. A Wavelet Tour of Signal Processing: The Sparse Way, 3rd ed.; Academic Press: Burlington, MA, USA, 2009. [Google Scholar]
  31. Hudgins, B.; Parker, P.; Scott, R.N. A new strategy for multifunction myoelectric control. IEEE Trans. Biomed. Eng. 1993, 40, 82–94. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  32. Bishop, C.M. Pattern Recognition and Machine Learning; Springer: New York, NY, USA, 2006. [Google Scholar]
  33. Bahdanau, D.; Cho, K.; Bengio, Y. Neural machine translation by jointly learning to align and translate. In Proceedings of the International Conference on Learning Representations, San Diego, CA, USA, 7–9 May 2015. [Google Scholar]
  34. Willmott, C.J.; Matsuura, K. Advantages of the mean absolute error over the root mean square error in assessing average model performance. Clim. Res. 2005, 30, 79–82. [Google Scholar] [CrossRef] [Scilit]
  35. Chicco, D.; Warrens, M.J.; Jurman, G. The coefficient of determination R-squared is more informative than SMAPE, MAE, MAPE, MSE and RMSE in regression analysis evaluation. PeerJ Comput. Sci. 2021, 7, e623. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  36. Li, H.-B.; Guan, X.-R.; Li, Z.; Zou, K.-F.; He, L. Estimation of Knee Joint Angle from Surface EMG Using Multiple Kernels Relevance Vector Regression. Sensors 2023, 23, 4934. [Google Scholar] [CrossRef] [Scilit] [PubMed]
Figure 1. Overall framework of the proposed lower-limb joint angle prediction method.
Figure 1. Overall framework of the proposed lower-limb joint angle prediction method.
Sensors 26 05235 g001
Figure 2. Hardware architecture of the multi-source acquisition system.
Figure 2. Hardware architecture of the multi-source acquisition system.
Sensors 26 05235 g002
Figure 3. Surface distribution of target muscles and electrode placement.
Figure 3. Surface distribution of target muscles and electrode placement.
Sensors 26 05235 g003
Figure 4. Schematic of the experimental motion tasks.
Figure 4. Schematic of the experimental motion tasks.
Sensors 26 05235 g004
Figure 5. Synchronization results for six-channel sEMG, hip and knee joint angles, and the corresponding hip and knee joint angular velocities: (a) rectus femoris (RF); (b) gluteus maximus (GMax); (c) vastus lateralis (VL); (d) gluteus medius (GMed); (e) biceps femoris (BF); (f) tibialis anterior (TA); (g) knee joint angle; (h) hip joint angle; (i) knee joint angular velocity; and (j) hip joint angular velocity.
Figure 5. Synchronization results for six-channel sEMG, hip and knee joint angles, and the corresponding hip and knee joint angular velocities: (a) rectus femoris (RF); (b) gluteus maximus (GMax); (c) vastus lateralis (VL); (d) gluteus medius (GMed); (e) biceps femoris (BF); (f) tibialis anterior (TA); (g) knee joint angle; (h) hip joint angle; (i) knee joint angular velocity; and (j) hip joint angular velocity.
Sensors 26 05235 g005
Figure 6. Comparison of sEMG signals before and after denoising.
Figure 6. Comparison of sEMG signals before and after denoising.
Sensors 26 05235 g006
Figure 7. Architecture of the FA-TA-BiLSTM prediction model.
Figure 7. Architecture of the FA-TA-BiLSTM prediction model.
Sensors 26 05235 g007
Figure 8. Illustrative SVR prediction and IMU-derived measured hip angle over the fixed test-output interval defined at the beginning of Section 3.
Figure 8. Illustrative SVR prediction and IMU-derived measured hip angle over the fixed test-output interval defined at the beginning of Section 3.
Sensors 26 05235 g008
Figure 9. Illustrative BiLSTM prediction and IMU-derived measured hip angle over the fixed test-output interval defined at the beginning of Section 3.
Figure 9. Illustrative BiLSTM prediction and IMU-derived measured hip angle over the fixed test-output interval defined at the beginning of Section 3.
Sensors 26 05235 g009
Figure 10. Illustrative FA-TA-BiLSTM prediction and IMU-derived measured hip angle over the fixed test-output interval defined at the beginning of Section 3.
Figure 10. Illustrative FA-TA-BiLSTM prediction and IMU-derived measured hip angle over the fixed test-output interval defined at the beginning of Section 3.
Sensors 26 05235 g010
Figure 11. Illustrative comparison of hip angle predictions from the three models against the IMU-derived reference over the fixed test-output interval.
Figure 11. Illustrative comparison of hip angle predictions from the three models against the IMU-derived reference over the fixed test-output interval.
Sensors 26 05235 g011
Figure 12. Illustrative SVR prediction and IMU-derived measured knee angle over the fixed test-output interval defined at the beginning of Section 3.
Figure 12. Illustrative SVR prediction and IMU-derived measured knee angle over the fixed test-output interval defined at the beginning of Section 3.
Sensors 26 05235 g012
Figure 13. Illustrative BiLSTM prediction and IMU-derived measured knee angle over the fixed test-output interval defined at the beginning of Section 3.
Figure 13. Illustrative BiLSTM prediction and IMU-derived measured knee angle over the fixed test-output interval defined at the beginning of Section 3.
Sensors 26 05235 g013
Figure 14. Illustrative FA-TA-BiLSTM prediction and IMU-derived measured knee angle over the fixed test-output interval defined at the beginning of Section 3.
Figure 14. Illustrative FA-TA-BiLSTM prediction and IMU-derived measured knee angle over the fixed test-output interval defined at the beginning of Section 3.
Sensors 26 05235 g014
Figure 15. Illustrative comparison of knee angle predictions from the three models against the IMU-derived reference over the fixed test-output interval.
Figure 15. Illustrative comparison of knee angle predictions from the three models against the IMU-derived reference over the fixed test-output interval.
Sensors 26 05235 g015
Figure 16. Illustrative overall comparison of hip and knee angle predictions from the three models against the IMU-derived references over the fixed test-output interval.
Figure 16. Illustrative overall comparison of hip and knee angle predictions from the three models against the IMU-derived references over the fixed test-output interval.
Sensors 26 05235 g016
Table 1. Basic information of the participants.
Table 1. Basic information of the participants.
No.SexAge, YearsHeight, cmWeight, kgBMI, kg/m2Self-Reported Condition
1Male271767022.60No reported relevant condition
2Male251747123.45No reported relevant condition
3Male241696924.16No reported relevant condition
4Male251808024.69No reported relevant condition
5Male241837321.80No reported relevant condition
Table 2. Functional roles of multi-source motion information.
Table 2. Functional roles of multi-source motion information.
Information TypeMeaningMain RoleModel Usage
sEMG signalElectrical activity related to muscle activationReflects voluntary motion intention and muscle coordinationProvides neuromuscular features for prediction
Joint angleCurrent posture of the hip and knee jointsDescribes lower-limb kinematic stateProvides state information available before prediction
Joint angular velocityRate of change of joint angleDescribes motion trend and transition processProvides dynamic information for short-horizon forecasting
Table 3. Functional description of target muscles.
Table 3. Functional description of target muscles.
Muscle AbbreviationMuscle NameMain FunctionCorresponding Motion Role
GmaxGluteus maximusHip extensionReflects hip extension and support propulsion
GmedGluteus mediusHip stabilization and pelvic controlReflects pelvic stability and weight transfer
RFRectus femorisHip flexion and knee extensionRepresents hip–knee coordinated activity
VLVastus lateralisKnee extensionReflects knee extensor output
BFBiceps femorisKnee flexion and auxiliary hip extensionReflects posterior muscle braking and knee flexion
TATibialis anteriorAnkle dorsiflexionReflects foot control and gait-timing information
Table 4. sEMG feature definitions used in this study.
Table 4. sEMG feature definitions used in this study.
FeatureDefinitionMain Meaning
IEMG k = 1 N | x ( k ) | Accumulated muscle activation amplitude
RMS 1 N k = 1 N x 2 ( k ) Signal energy level
WL k = 1 N 1 | x ( k + 1 ) x ( k ) | Waveform variation complexity
DASDV 1 N 1 k = 1 N 1 x ( k + 1 ) x ( k ) 2 Local fluctuation intensity
MF f = 0 f MF P ( f ) = 1 2 f = 0 f max P ( f ) Frequency dividing the total spectral power into two equal parts
SE j = 1 M p j log ( p j ) Entropy of the normalized power spectrum
Table 5. Construction of the multi-source input vector.
Table 5. Construction of the multi-source input vector.
Input ComponentFeature DescriptionDimension
sEMG featuresIEMG, RMS, WL, DASDV, MF, and SE extracted from six sEMG channels 6 × 6 = 36
Joint anglesSynchronized hip and knee joint angles2
Joint angular velocitiesHip and knee joint angular velocities calculated from synchronized angles2
Multi-source input vectorConcatenation of sEMG features, joint angles, and joint angular velocities40
Table 6. Configuration of the short-horizon prediction task.
Table 6. Configuration of the short-horizon prediction task.
ItemSetting
Prediction targetFuture hip and knee joint angles after the current feature window
Prediction horizon100 ms
sEMG sampling frequency1000 Hz
IMU sampling frequency200 Hz
Input sequenceCurrent and historical multi-source sequence, including sEMG features, joint angles, and angular velocities
Sliding window length200 ms
Window step50 ms
Input sequence length16 consecutive feature windows
Approximate historical span950 ms from the beginning of the first window to the end of the last window
Label shiftTwo feature steps relative to the last input window
Dataset divisionWithin-participant chronological split into 70% training, 15% validation, and 15% test subsets, followed by pooling the corresponding subsets across participants; no participant-independent split
Table 7. Dataset size and participant-specific chronological split after concatenation and window construction.
Table 7. Dataset size and participant-specific chronological split after concatenation and window construction.
ParticipantRecording Duration, sUsable Labeled WindowsSequence SamplesTraining SamplesValidation SamplesTest Samples
P1785.35615,70215,68710,98023532354
P2782.37215,64215,62710,93823442345
P3800.83016,01115,99611,19723992400
P4701.31214,02114,006980421002102
P5663.70113,26913,254927719881989
Total3733.57174,64574,57052,19611,18411,190
Table 8. Input Configurations, principal model components, and training settings of the compared models.
Table 8. Input Configurations, principal model components, and training settings of the compared models.
ModelInput Configuration and Principal Model ComponentsTraining Settings
SVRThe 40-dimensional historical sequence was flattened; Gaussian kernel; KernelScale = auto; BoxConstraint = 30;
Epsilon = 0.06; Standardize = false. Separate regressors were trained for hip and knee joint angles.
The principal SVR parameters were manually selected during preliminary development with reference to validation-set performance.
BiLSTMA 40-dimensional historical input sequence; one BiLSTM temporal encoder with 40 hidden units and OutputMode = last; dropout = 0.45; a fully connected layer with 20 units; ReLU; a two-output regression layer.Adam optimizer; 26 epochs; batch
size = 128; initial learning rate = 0.001; gradient threshold = 1; data shuffled
every epoch.
FA-TA-BiLSTMA 40-dimensional historical input sequence; feature-attention weighting; stacked BiLSTM temporal encoding with principal hidden-unit settings of 128 and 96; temporal-attention aggregation; dropout = 0.08; fully connected layer with 72 units; ReLU; two-output regression layer.Adam optimizer; 70 epochs; batch
size = 128; initial learning rate = 0.0006; gradient threshold = 1; data shuffled every epoch. Hyperparameters were manually selected with reference to validation performance and training stability; no exhaustive grid or random search was conducted.
Table 9. Performance comparison for hip joint angle prediction.
Table 9. Performance comparison for hip joint angle prediction.
ModelRMSE, °MAE, ° R 2
SVR3.74762.87650.8823
BiLSTM2.47982.03940.9358
FA-TA-BiLSTM2.06841.59200.9726
Table 10. Performance comparison for knee joint angle prediction.
Table 10. Performance comparison for knee joint angle prediction.
ModelRMSE, °MAE, ° R 2
SVR5.56734.51260.8935
BiLSTM3.99623.15120.9357
FA-TA-BiLSTM2.96042.51420.9660
Table 11. Absolute error values and relative error reductions in FA-TA-BiLSTM compared with baseline models in the short-horizon prediction task.
Table 11. Absolute error values and relative error reductions in FA-TA-BiLSTM compared with baseline models in the short-horizon prediction task.
JointBaselineBaseline RMSE, °FA-TA RMSE, °RMSE Reduction, %Baseline MAE, °FA-TA MAE, °MAE Reduction, %
HipSVR3.74762.068444.802.87651.592044.65
HipBiLSTM2.47982.068416.592.03941.592021.94
KneeSVR5.56732.960446.834.51262.514244.29
KneeBiLSTM3.99622.960425.923.15122.514220.21
Table 12. Per-participant RMSE and MAE for hip and knee joint angle prediction.
Table 12. Per-participant RMSE and MAE for hip and knee joint angle prediction.
ParticipantModelHip RMSE, °Hip MAE, °Knee RMSE, °Knee MAE, °
P1SVR3.60412.79235.37934.3635
P1BiLSTM2.38821.96843.93253.1261
P1FA-TA-BiLSTM1.98771.53882.86912.4184
P2SVR3.57922.79485.72804.6432
P2BiLSTM2.34871.94763.75272.9631
P2FA-TA-BiLSTM1.95241.49702.76842.3641
P3SVR4.26803.25156.34045.1009
P3BiLSTM2.80422.30534.51113.5620
P3FA-TA-BiLSTM2.34561.79953.38152.8419
P4SVR3.66902.84865.45054.4689
P4BiLSTM2.43782.01963.93243.1207
P4FA-TA-BiLSTM2.01501.58662.87832.4898
P5SVR3.59412.79115.33934.3786
P5BiLSTM2.38821.97883.85253.0576
P5FA-TA-BiLSTM1.99371.56472.84912.4395
Mean ± SDSVR3.7429 ± 0.29552.8957 ± 0.20045.6475 ± 0.41604.5910 ± 0.3060
Mean ± SDBiLSTM2.4734 ± 0.18762.0439 ± 0.14843.9962 ± 0.29713.1659 ± 0.2310
Mean ± SDFA-TA-BiLSTM2.0589 ± 0.16191.5973 ± 0.11782.9493 ± 0.24552.5107 ± 0.1905
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Yang, C.; Zhao, P.; Guo, Y.; Han, X.; Gao, X.; Deng, J. Multi-Source Motion Inputs and FA-TA-BiLSTM for Lower-Limb Joint Angle Prediction. Sensors 2026, 26, 5235. https://doi.org/10.3390/s26165235

AMA Style

Yang C, Zhao P, Guo Y, Han X, Gao X, Deng J. Multi-Source Motion Inputs and FA-TA-BiLSTM for Lower-Limb Joint Angle Prediction. Sensors. 2026; 26(16):5235. https://doi.org/10.3390/s26165235

Chicago/Turabian Style

Yang, Chao, Peng Zhao, Yuanxiang Guo, Xin Han, Xueshan Gao, and Junlin Deng. 2026. "Multi-Source Motion Inputs and FA-TA-BiLSTM for Lower-Limb Joint Angle Prediction" Sensors 26, no. 16: 5235. https://doi.org/10.3390/s26165235

APA Style

Yang, C., Zhao, P., Guo, Y., Han, X., Gao, X., & Deng, J. (2026). Multi-Source Motion Inputs and FA-TA-BiLSTM for Lower-Limb Joint Angle Prediction. Sensors, 26(16), 5235. https://doi.org/10.3390/s26165235

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop