October 3rd, 2024

Python script for real-time collection of ECG and IMU data

In this article we provide all the necessary facts about the newly published sample code, Python gatt_sensordata_app, for Movesense.

Content:

What is this?

This is a sample code, a Python script, for real-time collection of electrocardiogram (ECG) and inertial measurement unit (IMU) data from the Movesense sensors. It enables a direct computer connection with Movesense sensors, that is a very much requested feature! The sample is in Python, and it allows customers to port it to other programming languages too.

What does it do?

The script establishes a Bluetooth connection with the Movesense sensor and displays real-time ECG and IMU data on your computer. This allows further real-time measurement data processing, in real-time, and can be used as a starting point for own further development. Additionally, it provides a straightforward way to save the data directly to a CSV file for further analysis and post-processing.

Who can benefit from this?

Med and sport tech companies, healthcare providers, researchers – anyone who wants to visualize real-time ECG or IMU data on a computer or a screen!

This tool is especially useful for those needing immediate feedback during data collection and for those conducting detailed post-session analysis.
It also allows extensive data set collection and further processing in tools such Python, Matlab or Octave – or even Excel, with minimal extra steps.

For example, physiotherapists, clinicians, and sports trainers can use this script to track patient or athlete performance, assess rehabilitation progress, and gain insights into movement and cardiovascular health. In research projects it enables quick testing and formulating the scientific problem setting, and for example, in-lab physiotherapy data collection.

Examples of application or solutions that can use real-time ECG and IMU data.

For direct computed connection and real-time patient monitoring or straight forward in-lab measurements. For example with a patient on a treadmill, on an exercise bike, or just when being stationary.

Researchers can use the script to collect real-time ECG and IMU data for studies on heart health and movement. Monitoring movement during rehabilitation is extremely important. For example, gait analysis on a treadmill for individuals with limited mobility must be accurate from the start. Real-time data monitoring ensures that the recording is functioning correctly, allowing for immediate feedback.

Real-time monitoring is also crucial for athletes striving to reach their peak performance. For instance, sports scientists and trainers can track athletes’ acceleration during a relay, particularly when the baton is passed between runners.

How to use it?

To use the Python script, simply run it on your Bluetooth equipped computer’s terminal or command prompt. Additional information is provided in the source code.

Where to find it?

The Python code and its usage instructions are available in the Movesense Bitbucket repository: Python gatt_sensordata_app

Don’t hesitate to contact us, if have any further questions or you would like to take advantage of our Movesense software development services.

 

Book a meeting

By signing up, we will keep you updated about the latest news, events and offers of the Movesense community.

Discover more from Movesense

Subscribe now to keep reading and get access to the full archive.

Continue reading