Research Article

Development of Interactive Artificial Intelligence Tools for Personalized Somatosensory and Rhythm Evaluation in Intelligent Music Education Platforms

DOI:

10.3791/69058

December 19th, 2025

In This Article

Summary

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

This study presents a reproducible somatosensory music-learning protocol combining residual LSTM recognition with TRPO for adaptive difficulty. It covers preprocessing, FFT features, training, personalization, and evaluation. On a public dataset, the hybrid model reached Acc 95.0 / P 93.5 / R 94.6 / F1 94.2 over three subject-disjoint folds.

Abstract

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

Traditional music education often lacks interactivity and real-time adaptability, especially in remote settings. This study introduces a personalized somatosensory framework, TRPO-ResLSTM, for music education platforms. The system captures movement, rhythm, and response time, preprocesses data with Wiener filtering and Z-score normalization, and extracts features via FFT. Gesture recognition is performed by DeepRes-LSTM, while adaptive difficulty is regulated by TRPO reinforcement learning. Incremental learning ensures personalization across sessions. Experiments on a publicly available, anonymized gesture-rhythm dataset (n = 2,730 samples; training/validation/test split 70/15/15) show superior performance over multimodal baselines, achieving 95% accuracy, 93.5% precision, 94.6% recall, and 94.2% F1-score. Ablation studies confirm the individual contributions of TRPO and Res-LSTM. The innovation of this protocol lies in integrating reinforcement learning with residual temporal modeling for adaptive gesture recognition, enabling stable yet personalized learning. This work demonstrates that adaptive, gesture-responsive tools can enhance engagement, personalization, and progressive skill development in intelligent music education. Limitations include reliance on a single dataset and the need for real-learner validation, which define directions for future work.

Introduction

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

Recent advances in artificial intelligence (AI) and somatosensory technology are reshaping music education by enabling learners to interact with music through body movements, where gestures are translated into notes, rhythms, or controls for virtual instruments1,2. These interactive features enhance engagement, retention, and creativity compared to traditional classroom instruction, and somatosensory tools allow students to practice rhythm, coordination, and expression through body percussion, conducting gestures, and ensemble simulations3. Combined with AI-driven adaptive pathways, learners receive individualized content, real-time feedback, and progressive skill development that improve motivation and outcomes4,5.

Despite these developments, existing platforms often rely on limited modalities, lack continuity of personalization, or fail to adapt to diverse cultural and physical learning styles6,7. Traditional approaches also fall short in delivering real-time, data-driven adjustments that reflect the learner's evolving capabilities. For example, motion capture and wearable devices can generate rich datasets but are often underutilized in adaptive instruction8,9. Furthermore, while music libraries and learning management systems have expanded accessibility, they rarely provide dynamic personalization across sessions, which is critical in multicultural and heterogeneous learning contexts10.

To address these gaps, this study proposes a novel Trust Region Policy Optimized Deep Residual Long Short-Term Memory (TRPO-ResLSTM) framework for music education platforms11. The system integrates advanced preprocessing methods, including Wiener filtering and Z-score normalization, with Fast Fourier Transform for frequency-domain feature extraction. Res-LSTM provides robust recognition of gestures and temporal sequences, while TRPO reinforcement learning dynamically adjusts task difficulty in response to learner performance. Incremental learning further strengthens personalization by updating models across sessions.

Experiments were conducted on the Kaggle music gesture and rhythm dataset comprising 2,730 samples, split into training, validation, and testing subsets. Results show that the proposed method consistently outperforms baseline multimodal architectures, achieving accuracy, precision, recall, and F1 values in the range of 93%-95%. Ablation analyses confirm the effectiveness of both TRPO and Res-LSTM components. By enhancing rhythm accuracy, user engagement, and policy stability in real-time, the framework provides a practical solution for improving music education efficiency in resource-constrained and remote learning environments. Related work on AI-driven music education has highlighted the potential of somatosensory engagement, adaptive learning personalization, and even applications in music therapy and automated composition12,13. This study builds on these findings by offering a reproducible protocol that combines reinforcement learning with deep temporal modeling to advance the field of intelligent music education.

Access restricted. Please log in or start a trial to view this content.

Protocol

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

This study analyzed anonymized, publicly available data and did not involve human subjects or animals. Therefore, additional ethical approval was not required.

1. Overview

This protocol describes a reproducible framework for somatosensory music education based on deep residual LSTM recognition and Trust Region Policy Optimization (TRPO) for adaptive difficulty control. It includes dataset preparation, preprocessing, frequency-domain feature extraction, model architecture, training, personalization, and evaluation. Figure 1 illustrates the end-to-end workflow14.

2. Dataset

A publicly available, anonymized music gesture and rhythm dataset was used that records body responses to auditory cues such as tempo and beat intensity. The dataset provides multimodal time-series data suitable for studying rhythm execution and learning behaviors. Each record contains movement patterns, timing, and rhythm accuracy measures, response feedback, and task completion time. As the dataset was fully anonymized and publicly accessible, no additional institutional review board approval was required15. For experiments, data were partitioned by subject into training, validation, and test subsets to avoid identity leakage; detailed statistics and split ratios are reported in Table 1. Three subject-disjoint folds were used, fixed random seeds across all runs, and identical preprocessing for all model variants to ensure comparability16.

The dataset yielded a balanced distribution of rhythmic gestures, with training, validation, and test partitions showing comparable variance in timing and motion features. Descriptive statistics (median ± IQR) for tempo deviation and motion amplitude were comparable across splits, indicating minimal covariate shift.

3. Data preprocessing

  1. Z-score normalization
    Raw data were standardized using Z-score normalization. For channel c and time t:
    Standard score formula, \( Z_{c,t} = \frac{x_{c,t} - \mu_c}{\sigma_c} \), statistics equation.    (1)
    We computed μc and σc on the training set only and applied them to validation and test sets to avoid leakage17.
    After normalization, all channels showed near-zero mean and unit variance, ensuring comparability across participants. Batch-wise diagnostics confirmed no drift between folds.
  2. Wiener filtering
    To suppress noise, we applied a Wiener filter in the frequency domain:
    Mathematical equations for signal processing, showing H(k)=S_xx(k)/(S_xx(k)+S_nn(k)).     (2)
    where Y(k) is the observed spectrum, \hat{X}(k) is the denoised estimate, and Sxx(k), Snn(k) denote signal/noise power spectral densities. We used a window length and overlap consistent with downstream FFT to maintain phase coherence18.
    Wiener filtering reduced high-frequency noise by ~30% while retaining dominant rhythmic components. Signal-to-noise ratio improved without attenuating beat-locked peaks.
  3. Feature extraction (FFT)
    Short-time FFT features were used on overlapping windows:
    Discrete convolution equation in signal processing, mathematical formula for digital signal analysis.    (3)
    Extracted descriptors included dominant frequency, spectral flux, and band-energy ratios. Tempo-locked peak prominence and inter-peak variability were also computed to capture micro-timing stability19.
    FFT revealed clear spectral peaks aligned with musical tempo (2-3 Hz), confirming rhythmic structure in the dataset. Peak-to-noise ratios exceeded 6-8 dB on average in correctly executed trials.

4. Model: TRPO-ResLSTM

  1. Residual LSTM (ResLSTM)
    Temporal patterns were modeled using stacked LSTMs with residual shortcuts:
    LSTM equations; mathematical formulas on neural networks; diagram for computational model understanding. (4)
    where P is identity or a projection to match dimensions. Residual connections mitigate vanishing gradients and enable deeper temporal stacks while preserving training stability20.
    Residual connections improved gradient flow and classification accuracy compared to plain LSTM. Ablations showed +0.7-1.1 pp accuracy over non-residual stacks at comparable parameter counts.
  2. Trust Region Policy Optimization (TRPO)
    TRPO controlled task difficulty dynamically. The personalized reward was:
    Economic equation for dynamic analysis, r_t = αs_t - βΔtempo_t, formula representation.   (5)
    with success score st, tempo deviation Δtempot, gesture dissimilarity dt (e.g., DTW distance or classification loss), and a switch indicator ut (penalizing frequent difficulty changes). We optimized a trust-region objective with a KL constraint:
    <div lang="en">Optimization equation; max θ, L(θ); includes policy π, constraint DKL; mathematical expression.</div>    (6)
    1. Reinforcement-learning setup and notation
      Adaptive difficulty was formulated as a finite-horizon MDP in which the state st aggregates windowed somatosensory features (accelerometer channels, hand-joint positions, rhythm descriptors after normalization, Wiener filtering, and FFT), and the action at is a discrete difficulty level controlling tempo tolerance and gesture strictness. The reward rt balances task success, timing deviation, and engagement, with a small penalty on excessive difficulty switching to discourage oscillation. Policy updates follow TRPO with a KL-divergence constraint for conservative steps. In Eqs. (5-6), g(y,x) denotes the task-specific loss gradient, W(ζ) is an L2 regularizer over parameters ζ, πθ is the stochastic policy with parameters θ, DKL defines the trust region, γ is the discount factor, and δ is the trust-region radius. Hyperparameters α,β,γ,δ were selected via grid search on the validation split (ranges in Table 2) to balance stability and responsiveness; early stopping was triggered when the average KL reached 0.921.
    2. Rationale versus alternatives
      TRPO's KL-constrained on-policy updates were preferred for small, session-level batches and non-stationary learner behavior; PPO/SAC remain promising and will be benchmarked in future work22.
      TRPO achieved stable learning and smoother difficulty adjustment than baseline controllers, with consistent convergence. Learning curves showed monotonic improvement and earlier KL stabilization for TRPO-ResLSTM than for single-component baselines.
  3. Personalization and session updates
    Incremental updates refined both ResLSTM and TRPO models after each user session with small learning rates and rehearsal buffers. We used a small rehearsal buffer of recent trials per learner to prevent drift, and limited per-session updates to a fixed budget to preserve stability. Personalization effectiveness was measured as the relative gain in F1 between a learner's first and last session within a fixed horizon23.
    Session-to-session personalization increased user-specific accuracy by 2%-3% without catastrophic forgetting. Gains were largest for learners with mid-range baseline accuracy, suggesting headroom for adaptive scaffolding.
  4. Algorithm and implementation
    The complete pseudo-code ("Algorithm 1: TRPO-ResLSTM") and a reference Python 3.10.1 implementation are provided as. All figures and tables include measurement definitions, error bars, and sample sizes. We report mean ± SD over three subject-disjoint folds and assess inter-model differences with repeated-measures ANOVA or Friedman tests as appropriate, with multiplicity-adjusted post-hoc comparisons (α = 0.05). To ensure reproducibility, we list package versions and GPU/CPU specs in the Table of Materials and include a README with environment and seed configuration24.
    The protocol consistently reproduced improvements over multimodal baselines, validating its reproducibility. Independent re-runs across seeds yielded <0.5 pp variance in accuracy for the integrated model.

Access restricted. Please log in or start a trial to view this content.

Results

Loading...
$$\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...

Access restricted. Please log in or start a trial to view this content.

Discussion

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

This study proposes a hybrid protocol, TRPO-ResLSTM, that integrates reinforcement learning and residual temporal modeling for gesture-based music education. By combining the stability of Trust Region Policy Optimization (TRPO) with the sequence-learning capacity of residual LSTMs, the framework delivers real-time gesture recognition together with adaptive difficulty control, enabling personalized feedback and progressive skill acquisition25. To ensure reproducibility, subject-disjoint folds, fixe...

Access restricted. Please log in or start a trial to view this content.

Disclosures

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

The authors declare no conflicts of interest.

Acknowledgements

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,

The authors thank their colleagues for constructive feedback on the study design and manuscript preparation. This work received no specific grant from any funding agency in the public, commercial, or not-for-profit sectors.

Access restricted. Please log in or start a trial to view this content.

Materials

List of materials used in this article
NameCompanyCatalog NumberComments
Accelerometer sensor dataKaggle (Public domain)Multimodal input signals (motion patterns, timing features) included in dataset
GPU workstationNVIDIA Corporation, USATraining hardware: NVIDIA RTX 3080 (10 GB), 32 GB RAM, Ubuntu 20.04
Hand - joint position dataKaggle (Public domain)Somatosensory input for gesture recognition
Matplotlib (v3.7)https://matplotlib.orgVisualization library for plotting figures and performance metrics
NumPy (v1.23)https://numpy.orgNumerical computation library for array operations
Public music gesture and rhythm datasetKaggle (Public domain)Anonymized dataset of 2,730 samples recording body responses to tempo and beat; used for training/validation/testing (70/15/15)
Python 3.10.1Python Software Foundation, https://www.python.orgProgramming environment for model implementation and analysis
PyTorch (v1.13)https://pytorch.orgDeep learning framework for implementing ResLSTM and TRPO modules
scikit - learn (v1.2)https://scikit-learn.orgMachine learning utilities for preprocessing and evaluation
SciPy (v1.10)https://scipy.orgScientific computing library (used for Wiener filtering)

References

Loading...
$$\rightleftharpoonup{xx}$$ $$\longleftharp{xx}$$, $$\longrightharp{xx}$$,
  1. Wei, J., Karuppiah, M., Prathik, A. College music education and teaching based on AI techniques. Comput Electr Eng. 100, 107851(2022).
  2. Yu, X., et al. Developments and applications of artificial intelligence in music education. Technol. 11 (2), 42(2023).
  3. Fang, J. Artificial intelligence robots based on machine learning and visual algorithms for interactive experience assistance in music classrooms. Entertain Comput. 52, 100779(2025).
  4. Zhang, S., Lu, X., Liu, X. Study on the influence of AI composition software on students' creative ability in music education. J Educ Technol Innov. 6 (2), (2024).
  5. Feng, Y. Design and research of music teaching system based on virtual reality system in the context of education informatization. PLoS One. 18 (10), e0285331(2023).
  6. Zhou, X. Entertainment performance robots application in music network classrooms based on speech sensor recognition and artificial intelligence. Entertain Comput. 52, 100782(2025).
  7. Yu, H., Zou, Z. The music education and teaching innovation using blockchain technology supported by artificial intelligence. Int J Grid Util Comput. 14 (2-3), 278-296 (2023).
  8. Hong Yun, Z., et al. A decision-support system for assessing the function of machine learning and artificial intelligence in music education for network games. Soft Comput. 26 (20), 11063-11075 (2022).
  9. Dey, M. T., Patra, S., Mitra, S. Enhancing music education with innovative tools and techniques: The role of artificial intelligence in musical works. Enhancing Music Education With Innovative Tools and Techniques. , IGI Global. 19-50 (2025).
  10. Lin, X., et al. The application of music therapy in the rehabilitation education of children with cerebral palsy. J Investig Med. 73 (1 Suppl. 1), (2025).
  11. Wang, X. Design of vocal music teaching system platform for music majors based on artificial intelligence. Wirel Commun Mob Comput. 2022 (1), 5503834(2022).
  12. Chen, Y., Sun, Y. The usage of artificial intelligence technology in music education system under deep learning. IEEE Access. , 130546-130556 (2024).
  13. Yang, Y., et al. Multi-source and heterogeneous online music education mechanism: An artificial intelligence-driven approach. Fractals. 31 (6), 2340154(2023).
  14. Sang, J. The intersection of technology and art: A study on AI-driven CTCL music teaching paradigm. , (2024).
  15. Yin, Y. Research on technological innovation and application of music education transformation under the background of technology. J Educ Theory Pract. 2 (2), (2025).
  16. Yuan, Y. Influencing factors and modeling methods of vocal music teaching quality supported by artificial intelligence technology. Int J Web Based Learn Teach Technol. 19 (1), 1-16 (2024).
  17. Sanganeria, M., Gala, R. Tuning music education: AI-powered personalization in learning music. arXiv Prepr. , (2024).
  18. Qiusi, M. Research on the improvement method of music education level under the background of AI technology. Mob Inf Syst. 2022 (1), 7616619(2022).
  19. Xu, Z. Construction of an intelligent recognition and learning education platform of national music genre under deep learning. Front Psychol. 13, 843427(2022).
  20. Wang, X., et al. College music teaching and ideological and political education integration mode based on deep learning. J Intell Syst. 31 (1), 466-476 (2022).
  21. Tang, H., Zhang, Y., Zhang, Q. The use of deep learning-based intelligent music signal identification and generation technology in national music teaching. Front Psychol. 13, 762402(2022).
  22. Artificial intelligence in music education: Exploring applications, benefits, and challenges. Yue, Y., Jing, Y. Proc Int Conf Educ Inf Technol, , 141-146 (2025).
  23. Bai, A., Yeh, C. K., Hsieh, C. J., Taly, A. An efficient rehearsal scheme for catastrophic forgetting mitigation during multi-stage fine-tuning. arXiv Prepr. , (2024).
  24. Ravi, N., Goel, A., Davis, J. C., Thiruvathukal, G. K. Improving the reproducibility of deep learning software: An initial investigation through a case study analysis. arXiv Prepr. , (2025).
  25. Chen, J., Jin, F., Jiao, Y., Zhan, Y., Qin, X. Improving dynamic gesture recognition with attention-enhanced LSTM and grounding SAM. Electronics. 14 (9), 1793(2025).
  26. Ouyang, F., Dai, X., Chen, S. Applying multimodal learning analytics to examine the immediate and delayed effects of instructor scaffoldings on small groups' collaborative programming. Int J STEM Educ. 9 (1), 45(2022).
  27. Aoyama Lawrence,, Weinberger, L., A, Being in-sync: A multimodal framework on the emotional and cognitive synchronization of collaborative learners. Front Educ. , (2022).
  28. Schulman, J., Wolski, F., Dhariwal, P., Radford, A., Klimov, O. Proximal policy optimization algorithms. arXiv Prepr. , (2017).
  29. Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. PMLR. Haarnoja, T., Zhou, A., Abbeel, P., Levine, S. Proc Int Conf Mach Learn, , (2018).
  30. Huang, S., Dossa, R. F. J., Raffin, A., Kanervisto, A., Wang, W. The 37 implementation details of proximal policy optimization. ICLR Blog Track. , https://iclr-blog-track.github.io/2022/03/25/ppo-implementation-details/ (2023).
  31. Sclater, N., Bailey, P. Code of practice for learning analytics. , https://www.jisc.ac.uk/guides/code-of-practice-for-learning-analytics (2022).
  32. Rabiner, L. R. A tutorial on hidden Markov models and selected applications in speech recognition. Proc IEEE. 77 (2), 257-286 (2002).
  33. Tao, S., et al. MusicalPT: Augmenting physical therapy by integrating adaptive musical guidance to enhance exercise quality and patient experience. Proc ACM Interact Mob Wearable Ubiquitous Technol. 9 (3), 1-32 (2025).
  34. Proverbio, A. M., Camporeale, E., Brusa, A. Multimodal recognition of emotions in music and facial expressions. Front Hum Neurosci. 14, 32(2025).
  35. Kang, S. Adaptations, code-switching, and novelty with cultural integrity: Musicians performing and learning musical instruments in different musical traditions. J Res Music Educ. , (2025).
  36. Han, Y., Han, L., Zeng, C., Zhao, W. The innovation path of VR technology integration into music classroom teaching in colleges and universities. Sci Rep. 15 (1), 12200(2025).
  37. Huang, A. Y., Lu, O. H., Yang, S. J. Effects of artificial intelligence-enabled personalized recommendations on learners' learning engagement, motivation, and outcomes in a flipped classroom. Comput Educ. 194, 104684(2023).
  38. Tao, S., et al. MusicalPT: Augmenting physical therapy by integrating adaptive musical guidance to enhance exercise quality and patient experience. Proc ACM Interact Mob Wearable Ubiquitous Technol. 9 (3), 1-32 (2025).

Access restricted. Please log in or start a trial to view this content.

Reprints and Permissions

Request permission to reuse the text or figures of this JoVE article

Request Permission

Tags

Intelligent Music EducationSomatosensory EvaluationGesture RecognitionRhythm EvaluationTRPO Reinforcement LearningResLSTM ModelAdaptive DifficultyIncremental LearningFeature ExtractionPersonalized Learning

Related Articles