{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,11,19]],"date-time":"2026-11-19T18:36:14Z","timestamp":1795113374346,"version":"4.10.3"},"reference-count":40,"publisher":"MDPI AG","issue":"1","license":[{"start":{"date-parts":[[2023,12,29]],"date-time":"2023-12-29T00:00:00Z","timestamp":1703808000000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"name":"University of Bath"}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["Sensors"],"abstract":"<jats:p>Conventional trajectory planning for lower limb assistive devices usually relies on a finite-state strategy, which pre-defines fixed trajectory types for specific gait events and activities. The advancement of deep learning enables walking assistive devices to better adapt to varied terrains for diverse users by learning movement patterns from gait data. Using a self-attention mechanism, a temporal deep learning model is developed in this study to continuously generate lower limb joint angle trajectories for an ankle and knee across various activities. Additional analyses, including using Fast Fourier Transform and paired t-tests, are conducted to demonstrate the benefits of the proposed attention model architecture over the existing methods. Transfer learning has also been performed to prove the importance of data diversity. Under a 10-fold leave-one-out testing scheme, the observed attention model errors are 11.50% (\u00b12.37%) and 9.31% (\u00b11.56%) NRMSE for ankle and knee angle estimation, respectively, which are small in comparison to other studies. Statistical analysis using the paired t-test reveals that the proposed attention model appears superior to the baseline model in terms of reduced prediction error. The attention model also produces smoother outputs, which is crucial for safety and comfort. Transfer learning has been shown to effectively reduce model errors and noise, showing the importance of including diverse datasets. The suggested joint angle trajectory generator has the potential to seamlessly switch between different locomotion tasks, thereby mitigating the problem of detecting activity transitions encountered by the traditional finite-state strategy. This data-driven trajectory generation method can also reduce the burden on personalization, as traditional devices rely on prosthetists to experimentally tune many parameters for individuals with diverse gait patterns.<\/jats:p>","DOI":"10.3390\/s24010211","type":"journal-article","created":{"date-parts":[[2023,12,29]],"date-time":"2023-12-29T11:19:21Z","timestamp":1703848761000},"page":"211","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":15,"title":["A Deep Learning Model with a Self-Attention Mechanism for Leg Joint Angle Estimation across Varied Locomotion Modes"],"prefix":"10.3390","volume":"24","author":[{"given":"Guanlin","family":"Ding","sequence":"first","affiliation":[{"name":"Department of Mechanical Engineering, University of Bath, Bath BA2 7AY, UK"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-8986-8102","authenticated-orcid":false,"given":"Ioannis","family":"Georgilas","sequence":"additional","affiliation":[{"name":"Department of Mechanical Engineering, University of Bath, Bath BA2 7AY, UK"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Andrew","family":"Plummer","sequence":"additional","affiliation":[{"name":"Department of Mechanical Engineering, University of Bath, Bath BA2 7AY, UK"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1968","published-online":{"date-parts":[[2023,12,29]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","first-page":"1791","DOI":"10.1109\/TNSRE.2019.2933896","article-title":"Predicting Transitioning Walking Gaits: Hip and Knee Joint Trajectories From the Motion of Walking Canes","volume":"27","author":"Boudali","year":"2019","journal-title":"IEEE Trans. Neural Syst. Rehabil. Eng."},{"key":"ref_2","doi-asserted-by":"crossref","unstructured":"Bian, Q., Shepherd, D.E., and Ding, Z. (2022, January 11\u201315). A Hybrid Method Integrating A Musculoskeletal Model with Long Short-Term Memory (LSTM) for Human Motion Prediction. Proceedings of the 2022 44th Annual International Conference of the IEEE Engineering in Medicine & Biology Society (EMBC), Glasgow, UK.","DOI":"10.1109\/EMBC48229.2022.9871959"},{"key":"ref_3","doi-asserted-by":"crossref","unstructured":"Umar, U., Minhas, H.S., Naseer, N., Nazeer, H., Iqbal, S., and Ahmed, M.N. (2022, January 17\u201320). Design and Simulation of Lower-Limb Exoskeleton to Assist Paraplegic People in Walking. Proceedings of the 2022 8th International Conference on Control, Decision and Information Technologies (CoDIT), Istanbul, Turkey.","DOI":"10.1109\/CoDIT55151.2022.9804158"},{"key":"ref_4","doi-asserted-by":"crossref","first-page":"1","DOI":"10.1186\/1743-0003-12-1","article-title":"Control Strategies for Active Lower Extremity Prosthetics and Orthotics: A Review","volume":"12","author":"Tucker","year":"2015","journal-title":"J. Neuroeng. Rehabil."},{"key":"ref_5","doi-asserted-by":"crossref","unstructured":"Rai, V., Sharma, A., Preechayasomboon, P., and Rombokas, E. (December, January 29). Coordinated Movement for Prosthesis Reference Trajectory Generation: Temporal Factors and Attention. Proceedings of the 2020 8th IEEE RAS\/EMBS International Conference for Biomedical Robotics and Biomechatronics (BioRob), New York, NY, USA.","DOI":"10.1109\/BioRob49111.2020.9224435"},{"key":"ref_6","doi-asserted-by":"crossref","first-page":"2592","DOI":"10.1109\/TCSVT.2021.3071461","article-title":"Continuous Prediction of Lower-Limb Kinematics From Multi-Modal Biomedical Signals","volume":"32","author":"Yi","year":"2022","journal-title":"IEEE Trans. Circuits Syst. Video Technol."},{"key":"ref_7","doi-asserted-by":"crossref","first-page":"2446","DOI":"10.1109\/TNSRE.2022.3200485","article-title":"Continuous Estimation of Human Knee Joint Angles by Fusing Kinematic and Myoelectric Signals","volume":"30","author":"Sun","year":"2022","journal-title":"IEEE Trans. Neural Syst. Rehabil. Eng."},{"key":"ref_8","doi-asserted-by":"crossref","unstructured":"Jamsrandorj, A., Kumar, K.S., Arshad, M.Z., Mun, K.-R., and Kim, J. (2022, January 11\u201315). Deep Learning Networks for View-Independent Knee and Elbow Joint Angle Estimation. Proceedings of the 2022 44th Annual International Conference of the IEEE Engineering in Medicine & Biology Society (EMBC), Glasgow, UK.","DOI":"10.1109\/EMBC48229.2022.9871106"},{"key":"ref_9","doi-asserted-by":"crossref","unstructured":"Geissinger, J.H., and Asbeck, A.T. (2020). Motion Inference Using Sparse Inertial Sensors, Self-Supervised Learning, and a New Dataset of Unscripted Human Motion. Sensors, 20.","DOI":"10.3390\/s20216330"},{"key":"ref_10","doi-asserted-by":"crossref","first-page":"10719","DOI":"10.1109\/JSEN.2022.3167686","article-title":"Motion Intention Prediction and Joint Trajectories Generation Toward Lower Limb Prostheses Using EMG and IMU Signals","volume":"22","author":"Wang","year":"2022","journal-title":"IEEE Sens. J."},{"key":"ref_11","doi-asserted-by":"crossref","unstructured":"Yu, T., Plummer, A., Iravani, P., Bhatti, J., Zahedi, S., and Moser, D. (2016, January 7\u20139). The Design, Analysis and Testing of a Compact Electrohydrostatic Powered Ankle Prosthesis. Proceedings of the BATH\/ASME 2016 Symposium on Fluid Power and Motion Control, Bath, UK.","DOI":"10.1115\/FPMC2016-1770"},{"key":"ref_12","doi-asserted-by":"crossref","first-page":"1467","DOI":"10.1109\/TII.2022.3158935","article-title":"A Function Approximator Model for Robust Online Foot Angle Trajectory Prediction Using a Single IMU Sensor: Implication for Controlling Active Prosthetic Feet","volume":"19","author":"Dey","year":"2022","journal-title":"IEEE Trans. Ind. Inform."},{"key":"ref_13","doi-asserted-by":"crossref","unstructured":"Yin, J., Xue, T., and Zhang, T. (2022, January 1\u20133). Real-Time Gait Trajectory Prediction Based on Convolutional Neural Network with Multi-Head Attention. Proceedings of the 2022 27th International Conference on Automation and Computing (ICAC), Bristol, UK.","DOI":"10.1109\/ICAC55051.2022.9911099"},{"key":"ref_14","doi-asserted-by":"crossref","first-page":"1557","DOI":"10.1109\/TNSRE.2022.3179978","article-title":"Data-Mined Continuous Hip-Knee Coordination Mapping With Motion Lag for Lower-Limb Prosthesis Control","volume":"30","author":"Lv","year":"2022","journal-title":"IEEE Trans. Neural Syst. Rehabil. Eng."},{"key":"ref_15","doi-asserted-by":"crossref","first-page":"654","DOI":"10.1016\/j.neunet.2008.03.006","article-title":"Powered Ankle-Foot Prosthesis to Assist Level-Ground and Stair-Descent Gaits","volume":"21","author":"Au","year":"2008","journal-title":"Neural Netw."},{"key":"ref_16","doi-asserted-by":"crossref","unstructured":"Simon, A.M., Ingraham, K.A., Fey, N.P., Finucane, S.B., Lipschutz, R.D., Young, A.J., and Hargrove, L.J. (2014). Configuring a Powered Knee and Ankle Prosthesis for Transfemoral Amputees within Five Specific Ambulation Modes. PLoS ONE, 9.","DOI":"10.1371\/journal.pone.0099387"},{"key":"ref_17","doi-asserted-by":"crossref","first-page":"461","DOI":"10.1007\/s10846-013-9979-3","article-title":"Improving Finite State Impedance Control of Active-Transfemoral Prosthesis Using Dempster-Shafer Based State Transition Rules","volume":"76","author":"Liu","year":"2014","journal-title":"J. Intell. Robot. Syst."},{"key":"ref_18","doi-asserted-by":"crossref","first-page":"45","DOI":"10.1515\/bmt.2010.057","article-title":"Complementary Limb Motion Estimation for the Control of Active Knee Prostheses","volume":"56","author":"Vallery","year":"2011","journal-title":"Biomed. Tech.\/Biomed. Eng."},{"key":"ref_19","doi-asserted-by":"crossref","first-page":"11503","DOI":"10.1109\/JSEN.2019.2933603","article-title":"Real-Time Intended Knee Joint Motion Prediction by Deep-Recurrent Neural Networks","volume":"19","author":"Huang","year":"2019","journal-title":"IEEE Sens. J."},{"key":"ref_20","doi-asserted-by":"crossref","first-page":"901","DOI":"10.1109\/TASE.2022.3185706","article-title":"Prediction of Contralateral Lower-Limb Joint Angles Using Vibroarthrography and Surface Electromyography Signals in Time-Series Network","volume":"20","author":"Wang","year":"2022","journal-title":"IEEE Trans. Autom. Sci. Eng."},{"key":"ref_21","doi-asserted-by":"crossref","first-page":"139","DOI":"10.1016\/j.neucom.2011.05.033","article-title":"sEMG-Based Continuous Estimation of Joint Angles of Human Legs by Using BP Neural Network","volume":"78","author":"Zhang","year":"2012","journal-title":"Neurocomputing"},{"key":"ref_22","doi-asserted-by":"crossref","first-page":"686","DOI":"10.1109\/TRO.2018.2794536","article-title":"Continuous-Phase Control of a Powered Knee\u2013Ankle Prosthesis: Amputee Experiments Across Speeds and Inclines","volume":"34","author":"Quintero","year":"2018","journal-title":"IEEE Trans. Robot."},{"key":"ref_23","doi-asserted-by":"crossref","unstructured":"Naeem, A., Rizwan, M., Farhan Maqbool, H., Ahsan, M., Raza, A., Abouhossein, A., and Ali Dehghani-Sanij, A. (2022). Virtual Constraint Control of Knee-Ankle Prosthesis Using an Improved Estimate of the Thigh Phase-Variable. Biomed. Signal Process. Control, 73.","DOI":"10.1016\/j.bspc.2021.103366"},{"key":"ref_24","doi-asserted-by":"crossref","first-page":"369","DOI":"10.1108\/AA-11-2016-155","article-title":"Deep Spatial-Temporal Model for Rehabilitation Gait: Optimal Trajectory Generation for Knee Joint of Lower-Limb Exoskeleton","volume":"37","author":"Liu","year":"2017","journal-title":"Assem. Autom."},{"key":"ref_25","doi-asserted-by":"crossref","unstructured":"Rai, V., Sharma, A., and Rombokas, E. (2019, January 3\u20135). Mode-Free Control of Prosthetic Lower Limbs. Proceedings of the 2019 International Symposium on Medical Robotics (ISMR), Atlanta, GA, USA.","DOI":"10.1109\/ISMR.2019.8710187"},{"key":"ref_26","doi-asserted-by":"crossref","unstructured":"Ding, G., Plummer, A., and Georgilas, I. (2022). Deep Learning with an Attention Mechanism for Continuous Biomechanical Motion Estimation across Varied Activities. Front. Bioeng. Biotechnol., 10.","DOI":"10.3389\/fbioe.2022.1021505"},{"key":"ref_27","unstructured":"Guyon, I., Luxburg, U.V., Bengio, S., Wallach, H., Fergus, R., Vishwanathan, S., and Garnett, R. (2017, January 4\u20139). Attention Is All You Need. Proceedings of the Advances in Neural Information Processing Systems, Beach, CA, USA."},{"key":"ref_28","first-page":"11121","article-title":"Are Transformers Effective for Time Series Forecasting?","volume":"37","author":"Zeng","year":"2023","journal-title":"Proc. AAAI Conf. Artif. Intell."},{"key":"ref_29","doi-asserted-by":"crossref","first-page":"335","DOI":"10.1007\/s10846-016-0436-y","article-title":"Multi-Channel Fusion Based Adaptive Gait Trajectory Generation Using Wearable Sensors","volume":"86","author":"Mazumder","year":"2017","journal-title":"J. Intell. Robot. Syst."},{"key":"ref_30","doi-asserted-by":"crossref","unstructured":"Cimolato, A., Milandri, G., Mattos, L.S., De Momi, E., Laffranchi, M., and De Michieli, L. (July, January 29). Hybrid Machine Learning-Neuromusculoskeletal Modeling for Control of Lower Limb Prosthetics. Proceedings of the 2020 8th IEEE RAS\/EMBS International Conference for Biomedical Robotics and Biomechatronics (BioRob), New York, NY, USA.","DOI":"10.1109\/BioRob49111.2020.9224448"},{"key":"ref_31","doi-asserted-by":"crossref","first-page":"14","DOI":"10.3389\/frobt.2018.00014","article-title":"Benchmark Datasets for Bilateral Lower-Limb Neuromechanical Signals from Wearable Sensors during Unassisted Locomotion in Able-Bodied Individuals","volume":"5","author":"Hu","year":"2018","journal-title":"Front. Robot. AI"},{"key":"ref_32","doi-asserted-by":"crossref","first-page":"600","DOI":"10.1109\/TNSRE.2022.3156786","article-title":"Lower-Limb Joint Torque Prediction Using LSTM Neural Networks and Transfer Learning","volume":"30","author":"Zhang","year":"2022","journal-title":"IEEE Trans. Neural Syst. Rehabil. Eng."},{"key":"ref_33","doi-asserted-by":"crossref","first-page":"1748","DOI":"10.1016\/j.ijforecast.2021.03.012","article-title":"Temporal Fusion Transformers for Interpretable Multi-Horizon Time Series Forecasting","volume":"37","author":"Lim","year":"2021","journal-title":"Int. J. Forecast."},{"key":"ref_34","doi-asserted-by":"crossref","unstructured":"He, K., Zhang, X., Ren, S., and Sun, J. (2016, January 27\u201330). Deep Residual Learning for Image Recognition. Proceedings of the 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA.","DOI":"10.1109\/CVPR.2016.90"},{"key":"ref_35","unstructured":"Bengio, Y., and LeCun, Y. (2015). Conference Track Proceedings, Proceedings of the 3rd International Conference on Learning Representations, ICLR 2015, San Diego, CA, USA, 7\u20139 May 2015, ICLR."},{"key":"ref_36","first-page":"22","article-title":"Andrew Ng, AI Minimalist: The Machine-Learning Pioneer Says Small Is the New Big","volume":"59","author":"Strickland","year":"2022","journal-title":"IEEE Spectr."},{"key":"ref_37","doi-asserted-by":"crossref","first-page":"26","DOI":"10.1016\/j.neucom.2020.10.056","article-title":"Cross-Subject Transfer Learning in Human Activity Recognition Systems Using Generative Adversarial Networks","volume":"426","author":"Soleimani","year":"2021","journal-title":"Neurocomputing"},{"key":"ref_38","unstructured":"Mitchell, P.J. (2022). Experimental Design and Statistical Analysis for Pharmacology and the Biomedical Sciences, Wiley Blackwell. [1st ed.]."},{"key":"ref_39","doi-asserted-by":"crossref","first-page":"699","DOI":"10.1109\/TNSRE.2022.3156884","article-title":"Improving IMU-Based Prediction of Lower Limb Kinematics in Natural Environments Using Egocentric Optical Flow","volume":"30","author":"Sharma","year":"2022","journal-title":"IEEE Trans. Neural Syst. Rehabil. Eng."},{"key":"ref_40","doi-asserted-by":"crossref","unstructured":"M\u00e4kela, S.-M., L\u00e4ms\u00e4, A., Ker\u00e4nen, J.S., Liikka, J., Ronkainen, J., Peltola, J., H\u00e4iki\u00f6, J., J\u00e4rvinen, S., and Bordallo L\u00f3pez, M. (2021). Introducing VTT-ConIot: A Realistic Dataset for Activity Recognition of Construction Workers Using IMU Devices. Sustainability, 14.","DOI":"10.3390\/su14010220"}],"container-title":["Sensors"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/1424-8220\/24\/1\/211\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,10]],"date-time":"2025-10-10T21:44:30Z","timestamp":1760132670000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/1424-8220\/24\/1\/211"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2023,12,29]]},"references-count":40,"journal-issue":{"issue":"1","published-online":{"date-parts":[[2024,1]]}},"alternative-id":["s24010211"],"URL":"https:\/\/doi.org\/10.3390\/s24010211","relation":{},"ISSN":["1424-8220"],"issn-type":[{"value":"1424-8220","type":"electronic"}],"subject":[],"published":{"date-parts":[[2023,12,29]]}}}