1
|
Xie J, Wu Q, Dey N, Shi F, Sherratt RS, Kuang Y. Empowering stroke recovery with upper limb rehabilitation monitoring using TinyML based heterogeneous classifiers. Sci Rep 2025; 15:18090. [PMID: 40413260 PMCID: PMC12103544 DOI: 10.1038/s41598-025-01710-y] [Citation(s) in RCA: 0] [Impact Index Per Article: 0] [Reference Citation Analysis] [Abstract] [Key Words] [MESH Headings] [Grants] [Track Full Text] [Download PDF] [Figures] [Journal Information] [Subscribe] [Scholar Register] [Received: 10/17/2024] [Accepted: 05/07/2025] [Indexed: 05/27/2025] Open
Abstract
Stroke is one of the leading causes of disability worldwide, with approximately 70% of survivors experiencing motor impairments in the upper limbs, significantly affecting their quality of life. Home-based rehabilitation offers a cost-effective approach to improving motor function, but it faces challenges, including inaccurate movement reporting, lack of real-time feedback, and the high cost of rehabilitation equipment. Therefore, there is a need for affordable, lightweight home-based rehabilitation monitoring systems. This paper presents an intelligent wearable sensor system that utilizes TinyML AI technology to classify eight upper limb rehabilitation movements with minimal sensors. The system is designed for patients with upper limb impairments who retain antigravity voluntary movement, enabling them to monitor rehabilitation progress at home. The study recruited 10 healthy volunteers to perform rehabilitation movements, creating a standardized dataset for model training. Data normalization, preprocessing, model training, and deployment were carried out using the Edge Impulse platform. A hybrid classifier, combining multilayer perceptron and k-means clustering, achieved 96.1% training accuracy, 95.09% testing accuracy, and 88.01% deployment accuracy. The proposed TinyML-based system shows promising potential for home-based rehabilitation of stroke patients.
Collapse
Affiliation(s)
- Jiayu Xie
- Zhejiang Sci-Tech University, Hangzhou, 310029, Zhejiang, China
| | - Qun Wu
- Zhejiang Sci-Tech University, Hangzhou, 310029, Zhejiang, China
| | - Nilanjan Dey
- Department of Computer Science and Engineering, Techno International New Town, Kolkata, 700156, India
| | - Fuqian Shi
- Laura and Isaac Perlmutter Cancer Center, New York University Langone Health, New York, NY, 10003, USA
| | - R Simon Sherratt
- Department of Biomedical Engineering, the University of Reading, Berkshire, RG6 6AY, UK
| | - Yuxiang Kuang
- Jiangxi University of Finance and Economics, Nanchang, 330013, China.
| |
Collapse
|
2
|
Suwannaphong T, Jovan F, Craddock I, McConville R. Optimising TinyML with quantization and distillation of transformer and mamba models for indoor localisation on edge devices. Sci Rep 2025; 15:10081. [PMID: 40128553 PMCID: PMC11933347 DOI: 10.1038/s41598-025-94205-9] [Citation(s) in RCA: 0] [Impact Index Per Article: 0] [Reference Citation Analysis] [Abstract] [Key Words] [Grants] [Track Full Text] [Journal Information] [Subscribe] [Scholar Register] [Received: 10/07/2024] [Accepted: 03/12/2025] [Indexed: 03/26/2025] Open
Abstract
This paper proposes small and efficient machine learning models (TinyML) for resource-constrained edge devices, specifically for on-device indoor localisation. Typical approaches for indoor localisation rely on centralised remote processing of data transmitted from lower powered devices such as wearables. However, there are several benefits for moving this to the edge device itself, including increased battery life, enhanced privacy, reduced latency and lowered operational costs, all of which are key for common applications such as health monitoring. The work focuses on model compression techniques, including quantization and knowledge distillation, to significantly reduce the model size while maintaining high predictive performance. We base our work on a large state-of-the-art transformer-based model and seek to deploy it within low-power MCUs. We also propose a state-space-based architecture using Mamba as a more compact alternative to the transformer. Our results show that the quantized transformer model performs well within a 64 KB RAM constraint, achieving an effective balance between model size and localisation precision. Additionally, the compact Mamba model has strong performance under even tighter constraints, such as a 32 KB of RAM, without the need for model compression, making it a viable option for more resource-limited environments. We demonstrate that, through our framework, it is feasible to deploy advanced indoor localisation models onto low-power MCUs with restricted memory limitations. The application of these TinyML models in healthcare has the potential to revolutionize patient monitoring by providing accurate, real-time location data while minimising power consumption, increasing data privacy, improving latency and reducing infrastructure costs.
Collapse
Affiliation(s)
| | - Ferdian Jovan
- School of Natural and Computing Sciences, University of Aberdeen, Aberdeen, UK
| | - Ian Craddock
- School of Engineering Mathematics and Technology, University of Bristol, Bristol, UK
| | - Ryan McConville
- School of Engineering Mathematics and Technology, University of Bristol, Bristol, UK
| |
Collapse
|
3
|
Yang M, Blight A, Bhardwaj H, Shaukat N, Han L, Richardson R, Pickering A, Jackson-Mills G, Barber A. TinyML-Based In-Pipe Feature Detection for Miniature Robots. SENSORS (BASEL, SWITZERLAND) 2025; 25:1782. [PMID: 40292914 PMCID: PMC11945833 DOI: 10.3390/s25061782] [Citation(s) in RCA: 0] [Impact Index Per Article: 0] [Reference Citation Analysis] [Abstract] [Key Words] [Grants] [Track Full Text] [Subscribe] [Scholar Register] [Received: 01/23/2025] [Revised: 03/07/2025] [Accepted: 03/11/2025] [Indexed: 04/30/2025]
Abstract
Miniature robots in small-diameter pipelines require efficient and reliable environmental perception for autonomous navigation. In this paper, a tiny machine learning (TinyML)-based resource-efficient pipe feature recognition method is proposed for miniature robots to identify key pipeline features such as elbows, joints, and turns. The method leverages a custom five-layer convolutional neural network (CNN) optimized for deployment on a robot with limited computational and memory resources. Trained on a custom dataset of 4629 images collected under diverse conditions, the model achieved an accuracy of 97.1%. With a peak RAM usage of 195.1 kB, flash usage of 427.9 kB, and an inference time of 1693 ms, the method demonstrates high computational efficiency while ensuring stable performance under challenging conditions through a sliding window smoothing strategy. These results highlight the feasibility of deploying advanced machine learning models on resource-constrained devices, providing a cost-effective solution for autonomous in-pipe exploration and inspection.
Collapse
Affiliation(s)
- Manman Yang
- School of Mechanical Engineering, University of Leeds, Leeds LS2 9JT, UK; (A.B.); (H.B.); (N.S.); (L.H.); (R.R.); (A.P.); (G.J.-M.); (A.B.)
| | | | | | | | | | | | | | | | | |
Collapse
|
4
|
Sadowski J, Stefanski J. A Selection of Starting Points for Iterative Position Estimation Algorithms Using Feedforward Neural Networks. SENSORS (BASEL, SWITZERLAND) 2024; 24:332. [PMID: 38257425 PMCID: PMC10818289 DOI: 10.3390/s24020332] [Citation(s) in RCA: 0] [Impact Index Per Article: 0] [Reference Citation Analysis] [Abstract] [Key Words] [Track Full Text] [Subscribe] [Scholar Register] [Received: 11/21/2023] [Revised: 12/28/2023] [Accepted: 01/03/2024] [Indexed: 01/24/2024]
Abstract
This article proposes the use of a feedforward neural network (FNN) to select the starting point for the first iteration in well-known iterative location estimation algorithms, with the research objective of finding the minimum size of a neural network that allows iterative position estimation algorithms to converge in an example positioning network. The selected algorithms for iterative position estimation, the structure of the neural network and how the FNN is used in 2D and 3D position estimation process are presented. The most important results of the work are the parameters of various FNN network structures that resulted in a 100% probability of convergence of iterative position estimation algorithms in the exemplary TDoA positioning network, as well as the average and maximum number of iterations, which can give a general idea about the effectiveness of using neural networks to support the position estimation process. In all simulated scenarios, simple networks with a single hidden layer containing a dozen non-linear neurons turned out to be sufficient to solve the convergence problem.
Collapse
Affiliation(s)
- Jaroslaw Sadowski
- Faculty of Electronics, Telecommunications and Informatics, Gdansk University of Technology, 80-233 Gdansk, Poland;
| | | |
Collapse
|
5
|
Singh R, Mozaffari S, Akhshik M, Ahamed MJ, Rondeau-Gagné S, Alirezaee S. Human-Robot Interaction Using Learning from Demonstrations and a Wearable Glove with Multiple Sensors. SENSORS (BASEL, SWITZERLAND) 2023; 23:9780. [PMID: 38139627 PMCID: PMC10748097 DOI: 10.3390/s23249780] [Citation(s) in RCA: 0] [Impact Index Per Article: 0] [Reference Citation Analysis] [Abstract] [Key Words] [MESH Headings] [Grants] [Track Full Text] [Subscribe] [Scholar Register] [Received: 11/13/2023] [Revised: 12/07/2023] [Accepted: 12/08/2023] [Indexed: 12/24/2023]
Abstract
Human-robot interaction is of the utmost importance as it enables seamless collaboration and communication between humans and robots, leading to enhanced productivity and efficiency. It involves gathering data from humans, transmitting the data to a robot for execution, and providing feedback to the human. To perform complex tasks, such as robotic grasping and manipulation, which require both human intelligence and robotic capabilities, effective interaction modes are required. To address this issue, we use a wearable glove to collect relevant data from a human demonstrator for improved human-robot interaction. Accelerometer, pressure, and flexi sensors were embedded in the wearable glove to measure motion and force information for handling objects of different sizes, materials, and conditions. A machine learning algorithm is proposed to recognize grasp orientation and position, based on the multi-sensor fusion method.
Collapse
Affiliation(s)
- Rajmeet Singh
- Mechanical, Automotive, and Material Engineering Department, University of Windsor, Windsor, ON N9B 3P4, Canada; (R.S.); (S.M.); (M.A.); (M.J.A.)
| | - Saeed Mozaffari
- Mechanical, Automotive, and Material Engineering Department, University of Windsor, Windsor, ON N9B 3P4, Canada; (R.S.); (S.M.); (M.A.); (M.J.A.)
| | - Masoud Akhshik
- Mechanical, Automotive, and Material Engineering Department, University of Windsor, Windsor, ON N9B 3P4, Canada; (R.S.); (S.M.); (M.A.); (M.J.A.)
| | - Mohammed Jalal Ahamed
- Mechanical, Automotive, and Material Engineering Department, University of Windsor, Windsor, ON N9B 3P4, Canada; (R.S.); (S.M.); (M.A.); (M.J.A.)
| | - Simon Rondeau-Gagné
- Department of Chemistry and Biochemistry, University of Windsor, Windsor, ON N9B 3P4, Canada;
| | - Shahpour Alirezaee
- Mechanical, Automotive, and Material Engineering Department, University of Windsor, Windsor, ON N9B 3P4, Canada; (R.S.); (S.M.); (M.A.); (M.J.A.)
| |
Collapse
|
6
|
Nkabiti KP, Chen Y. Device-Free Tracking through Self-Attention Mechanism and Unscented Kalman Filter with Commodity Wi-Fi. SENSORS (BASEL, SWITZERLAND) 2023; 23:5527. [PMID: 37420694 PMCID: PMC10304888 DOI: 10.3390/s23125527] [Citation(s) in RCA: 0] [Impact Index Per Article: 0] [Reference Citation Analysis] [Abstract] [Key Words] [Track Full Text] [Subscribe] [Scholar Register] [Received: 05/06/2023] [Revised: 05/29/2023] [Accepted: 05/31/2023] [Indexed: 07/09/2023]
Abstract
Recent advancements in target tracking using Wi-Fi signals and channel state information (CSI) have significantly improved the accuracy and efficiency of tracking mobile targets. However, there remains a gap in developing a comprehensive approach that combines CSI, an unscented Kalman filter (UKF), and a sole self-attention mechanism to accurately estimate the position, velocity, and acceleration of targets in real-time. Furthermore, optimizing the computational efficiency of such approaches is necessary for their applicability in resource-constrained environments. To bridge this gap, this research study proposes a novel approach that addresses these challenges. The approach leverages CSI data collected from commodity Wi-Fi devices and incorporates a combination of the UKF and a sole self-attention mechanism. By fusing these elements, the proposed model provides instantaneous and precise estimates of the target's position while considering factors such as acceleration and network information. The effectiveness of the proposed approach is demonstrated through extensive experiments conducted in a controlled test bed environment. The results exhibit a remarkable tracking accuracy level of 97%, affirming the model's ability to successfully track mobile targets. The achieved accuracy showcases the potential of the proposed approach for applications in human-computer interactions, surveillance, and security.
Collapse
Affiliation(s)
- Kabo Poloko Nkabiti
- School of Computer and Communication Engineering, University of Science and Technology Beijing, Beijing 100083, China;
- School of Computing and Information Systems, Botswana Accountancy College, Private Bag, Gaborone 00319, Botswana
| | - Yueyun Chen
- School of Computer and Communication Engineering, University of Science and Technology Beijing, Beijing 100083, China;
| |
Collapse
|