Physical Activity Recognition and Tracking of Diabetic Patients using Wearable Sensors

We propose to recognize and track the physical activities performed by a diabetic patient. Apart from taking prescribed medicine regularly, diabetic patients are also strongly advised to do physical activities such as walking or running for a specific amount of time on a daily basis. Most importantl

2025-06-28 16:28:47 - Adil Khan

Project Title

Physical Activity Recognition and Tracking of Diabetic Patients using Wearable Sensors

Project Area of Specialization Artificial IntelligenceProject Summary

We propose to recognize and track the physical activities performed by a diabetic patient. Apart from taking prescribed medicine regularly, diabetic patients are also strongly advised to do physical activities such as walking or running for a specific amount of time on a daily basis. Most importantly, the information about these activities such as their intensity and time duration must be reported to the doctors with high accuracy so that the patients can get valuable feedback. This will be done by our proposed system which will automatically recognize and then track the physical activities of a diabetic patient, generate a detailed report about these activities and then send it to the doctor at the end of the day. Nonetheless, the most challenging part of this system is the automatic recognition of physical activities that will be performed by applying machine learning algorithms on the data acquired from the wearable sensors attached to various body organs such as arms and legs.

In order to train and then test machine learning algorithms, sensor data collection is an important step. This will be performed under the supervision of an expert as the time and intensity of a given physical activity is highly dependent upon the gender, age, and other health issues of the subjects. The acquired will then be processed to generate its features and split into train and test sets. The training set will be used to train various machine learning algorithms such as random forest, support vector machine (SVM), and convolutional neural networks (CNN).

The algorithm with the best classification accuracy on the test set will then be selected to recognize and track physical activities in real-time. Consequently, our system will take data from wearable sensors, send it to a Raspberry Pi where the activity will be recognized and tracked in real-time with the help of the trained model. This information will be maintained in a log file which will then be sent to the doctor as a daily report.

Project Objectives

The following are the objectives of Physical Activity recognition and tracking of Diabetic Patients using wearable sensors:

Project Implementation Method

The following are the steps for the project implementation:

1. Acquisition of Data

The data is proposed to be collected under the supervision of a doctor along with the help of PARQ (Physical Activity Readiness Questionnaire). The responders are proposed to be divided into two categories based upon their age.

  1. Group 2: Aging between 18-65+ years
  2. Group 1: Aging between 5-17 years

2. Data pre-processing

After collecting the data from different responders, it will be pre-processed by applying a time windowing operation. The input signal of a given sensor such as an accelerometer will be sampled for a fixed time such as 2 or 3 seconds.

3. Extracting features from Data

After preprocessing the data, features like mean, standard deviation, and entropy, etc. will be extracted in order to represent that particular signal window in the form of a feature vector. These feature vectors will then be stacked to form the complete data matrix.

4. Performance evaluation of machine learning algorithms 

The complete data matrix constructed for each activity will then be used to train and then test the machine learning algorithms to recognize that particular activity. The proposed machine learning algorithms to be evaluated are (but not limited to) k-nearest neighbors (k-NN), logistic regression, support vector machine (SVM), artificial neural network (ANN), and decision trees. 

5. Real-time activity recognition and Sending Updates to the Doctor

After acquiring accurate results for physical activity, the patient’s activity will be tracked in real-time using wearable sensors and Raspberry Pi, and the final reports will be sent to the doctor thereby helping him to recommend physical activity to the patient in a more convenient way.

Block Diagram:

Block Diagram of the Proposed System

Flow Chart:

2021-01-27_05:22:01pm_image.png

Benefits of the Project

The project has a wide scope and great benefits for living a healthy lifestyle. Some of these benefits include:

Technical Details of Final Deliverable Physical Activity Recognition Platform for Diabetic Patients: Final Deliverable of the Project HW/SW integrated systemCore Industry HealthOther Industries Medical Core Technology Artificial Intelligence(AI)Other Technologies Internet of Things (IoT), Wearables and ImplantablesSustainable Development Goals Good Health and Well-Being for People, Sustainable Cities and CommunitiesRequired Resources
Item Name Type No. of Units Per Unit Cost (in Rs) Total (in Rs)
Total in (Rs) 79150
MetaMotionR+ Equipment31495044850
R Wristband Equipment216003200
Sleeveband Equipment129002900
Velcro Armband Equipment115001500
Raspberry Pi 4B 4GB Ram Equipment11700017000
Exhaust Fan for Raspberry Pi Miscellaneous 1500500
32 GB Micro SD Card Miscellaneous 116001600
Card Reader Miscellaneous 1100100
Other Miscellaneous expenses (Wires, Paper work, print) Miscellaneous 175007500

More Posts