$$\rightleftharpoonup{xx}$$
$$\longleftharp{xx}$$,
$$\longrightharp{xx}$$,
Experimental Setup
The TRPO-ResLSTM framework was implemented in Python 3.10.1 with GPU acceleration. The computing environment, motion-sensing hardware, and Python libraries are listed in the Table of Materials. Data were split into subject-disjoint training/validation/test partitions as shown in Table 1 (70/15/15). Key hyperparameters are summarized in Table 2. Three models were evaluated: baseline TRPO, baseline ResLSTM, and the integrated TRPO-ResLSTM. This setup enabled consistent assessment of gesture recognition, adaptive difficulty control, and personalization in music-learning scenarios.
Confusion Matrix
Classification performance was first examined using a confusion matrix on the held-out test set (Figure 2). Rows denote true labels and columns denote predictions; values are row-normalized. Strong diagonal dominance indicates robust recognition across gesture categories, with only minor confusions among closely related rhythmic patterns.
Feature importance analysis
To understand model behavior the importance of permutation-based features was estimated on validation folds (Figure 3). Accelerometer-derived motion signals and hand-joint positions were most informative, followed by temporal rhythm features. These results support somatosensory, gesture-driven interaction as a core mechanism for personalized feedback in music education.
Task completion time distribution
System responsiveness was assessed via the distribution of task completion times (Figure 4). The histogram shows a unimodal profile with stable dispersion across learners, indicating that the protocol maintains consistent task difficulty and throughput under TRPO-based adaptation. For interpretability, we report the median and interquartile range in the legend.
Performance Metrics
On the test set, TRPO-ResLSTM achieved an accuracy of 95.0%, precision 93.5%, recall 94.6%, and F1-score 94.2% (Figure 5). Further, report education-oriented outcomes were reported: rhythm-synchronization accuracy 92.6%, adaptive-response 90.8%, personalization effectiveness 91.5%, and retention rate 85.3%.
Definitions: rhythm-synchronization accuracy quantifies temporal alignment with the target beat; adaptive-response measures the proportion of trials in which the difficulty is correctly re-estimated following a performance change; personalization effectiveness is the relative improvement in recognition F1 after repeated sessions for the same learner; retention rate is the proportion of learners returning for a subsequent session within a predefined interval.
All values are reported as mean ± SD over 3 subject-disjoint folds. Inter-model differences were assessed with repeated-measures ANOVA (or Friedman tests when normality was violated) followed by multiplicity-adjusted post-hoc comparisons; p < 0.05 was considered significant.
Comparative and ablation analysis
Ablation results (Table 3, Figure 6) show complementary benefits from combining trust-region reinforcement learning with residual temporal modeling. TRPO provided stable policy updates but limited representational power for fine-grained gestures; ResLSTM captured temporal dynamics yet lacked on-the-fly adaptation. The integrated TRPO-ResLSTM delivered the best balance, reaching 95.0% accuracy and the highest precision/recall/F1 across folds while preserving real-time adaptability and personalization. Theoretical distinctions from alternative RL methods (e.g., PPO, SAC) were discussed in the Discussion; a full empirical benchmarking lies beyond the scope of this dataset and is identified as future work.
DATA AVAILABILITY:
The data used in the study are available from the authors upon reasonable requests.

Figure 1: System workflow for adaptive, personalized music learning. Pipeline of data collection, preprocessing (Z-score normalization; Wiener filtering), FFT-based feature extraction, gesture recognition with ResLSTM, adaptive difficulty control with TRPO, and incremental personalization. Arrows indicate data flow between modules. Please click here to view a larger version of this figure.

Figure 2: Confusion matrix of gesture recognition on the test set. Row-normalized confusion matrix (n = 409 samples). Rows: true labels; columns: predictions. Colorbar indicates proportion (0-1). Diagonal entries reflect per-class recall; off-diagonals highlight confusions among rhythmically similar categories. Please click here to view a larger version of this figure.

Figure 3: Permutation-based feature importance across sensor inputs. Relative importance (0-1) for accelerometer signals, hand-joint positions, and rhythm features, computed via permutation on validation folds. Bars show mean ± SD over 3 folds. Please click here to view a larger version of this figure.

Figure 4: Distribution of task completion times. Histogram of task durations (seconds) across learners (n = 409 tasks). The kernel-density overlay summarizes central tendency and spread. Reported in the panel are median and IQR; bin width and KDE bandwidth follow standard automatic rules. Please click here to view a larger version of this figure.

Figure 5: Model performance and education-oriented outcomes. Bars show mean ± SD over 3 folds. Reported metrics: gesture-recognition accuracy, precision, recall, F1; rhythm-synchronization accuracy; adaptive-response; personalization effectiveness; retention rate. See Results for formal definitions and statistical testing. Please click here to view a larger version of this figure.

Figure 6: Comparative performance of TRPO, ResLSTM, and TRPO-ResLSTM. Accuracy, precision, recall, and F1 for the three models (mean ± SD, 3 folds). Significance marks denote post-hoc comparisons after repeated-measures ANOVA/Friedman tests (adjusted p < 0.05). Please click here to view a larger version of this figure.
Table 1: Dataset partitioning (subject-disjoint). Counts and proportions (%) for training/validation/test splits; no subject appears in more than one split. Please click here to download this Table.
Table 2: Hyperparameters for TRPO-ResLSTM. Batch size, learning rate, LSTM hidden units, dropout, discount factor (γ), trust-region radius (δ), optimization settings, and early-stopping criteria. Please click here to download this Table.
Table 3: Comparative results across models. Test-set accuracy, precision, recall, and F1 (mean ± SD, 3 folds). The integrated TRPO-ResLSTM outperforms both baselines, as shown in Figure 6. Please click here to download this Table.