Force Platform - Center of Pressure Estimation
Difficulty Level:
 Tags extract☁force platform

Posture is an important indication of the health of the muscles involved in it. Specifically, there are specialised muscles involved in maintaining a correct posture, being it standing, sitting or laying down, which should be involuntarily activated. When those muscles are not well adjusted, other muscles need to compensate, resulting in possible back pain or inflammation.

Bad posture can be caused by poor work environment, incorrect working posture, unhealthy sitting and standing habits, stress, obesity, etc. So, identifying bad posture is only the first step to solve it, because it is the cause that should be corrected.

There are multiple ways to assess posture. One of them may be by the analysis of the center of pressure that gives an indication regarding the posture while standing .

The current Jupyter Notebook will demonstrate how to use a force platform in order to calculate the center of pressure.

1 - Import required packages

These packages will facilitate our job, as they provide a set of functions that we would need to implement otherwise.

In [1]:
# biosignalsnotebooks project own package.
import biosignalsnotebooks as bsnb

# Powerful scientific package for array operations.
from numpy import array


To calculate the center of pressure, we used a force platform.
The force platform is composed by 4 load cells that represent channels to our devices. Here, we will load the signals from the platform and from each channel.

In [2]:
path_to_file = "//biosignalsplux.com/signal_samples/loft_time_subject_1.h5"

# Load the data from the file

# Identify the mac address of the device
force_platform_mac, _ = force_platform.keys()

# Get the signals acquired by the force_platform
force_platform_signals = force_platform[force_platform_mac]


The next step consists on getting the signal of each load cell and store it in a new list.

In [3]:
load_cells = []


3 - Raw Signal Conversion

The signals need to be converted to weight in order to be used ahead.

In order to convert those signals to weight, we need to specify every constant to be used on the conversion formula. Both the formula to convert the raw signal to weight and to calculate the center of pressure were taken from the Force Platform datasheet .

The V$_{FS}$ constants are specific for each load cell and are obtained by a calibration process (supplied during the purchase).

In [4]:
# Constant for load cell 1.
Vfs_1 = 2.00061
# Constant for load cell 2.
Vfs_2 = 2.00026
# Constant for load cell 3.
Vfs_3 = 2.00011
# Constant for load cell 4.
Vfs_4 = 2.00038

C = 406.831 # kg.mV/V

# Sampling rate used during the acquisition.
sr = 500 # Hz

# Resolution of the device.
resolution = 16 # bits


The next step consists in converting the raw signal samples ($ADC$) to weight. In order to do that, we will use the formula:

$Weight = \dfrac{ADC \times C}{V_{FS}(2^{resolution} - 1)}$
We converted that formula to a Python function so that it is direct to calculate the weight applied for each load cell.
Note that $C$ is a constant common to all Load Cells and $V_{FS}$ is the previously mentioned calibration values specific of each Load Cell

In [5]:
def weight(ADC, Vfs, C, resolution):
return array(ADC) * C / (Vfs * ( (2**resolution) - 1 ) )


Thus, we can apply the function for each load cell such as demonstrated on the following cell.

In [6]:
weight_1 = weight(load_cells[0], Vfs_1, C, resolution)
weight_2 = weight(load_cells[1], Vfs_2, C, resolution)
weight_3 = weight(load_cells[2], Vfs_3, C, resolution)
weight_4 = weight(load_cells[3], Vfs_4, C, resolution)


The next plots show the evolution in time of the weight applied in each load cell. We can see that if we sum them, we get an almost constant value around the true weight of the subject, so, the formula is applicable. Furthermore, there are changes on the force applied to each load cell, which means that the center of pressure moved during the acquisition, therefore, we should be able to see those movements on a plot of the position of the center of pressure .

In [7]:
sr = 500 # Hz
resolution = 16 # bits

load_cells = [weight_1, weight_2, weight_3, weight_4]
t_i = 22
t_f = 35