Biomedical User Group Documents

cancel
Showing results for 
Search instead for 
Did you mean: 

Select a Suitable Biosignal Preprocessing Method in Biomedical Toolkit

This document is to introduce the preprocessing VIs in Biomedical Toolkit.

If you have installed Biomedical Toolkit LabVIEW 2012(32-bit) Support version, you can find Biosignal Preprocessing VIs on the palette, including calculating the root mean square (RMS) value, applying filter, calculating the average value (ARV) and performing discrete integration and differentiation.

image001.jpg

Biosignal RMS VI

In mathematics, the root mean square (RMS), also known as the quadratic mean, is a statistical measure of the magnitude of a varying quantity. It is especially useful when variates are positive and negative.

Biosignal RMS calculates the online root mean square (RMS) value of each dataset of a biosignal. The length of each dataset is specified by window info.

image004.jpg

This VI firstly slides the window specifies window info through the biosignal to get the dataset. Then it calculates the RMS of the current data set using the following equation,

image003.gif

where ψx is RMS value and n is the length of the dataset X.

Following is an example of calculating online EMG RMS. The above figure shows the original EMG signal, sampled at 1000Hz. The below figure shows the RMS result with the window time 0.02s.

image007.jpg

Biosignal Filtering VI

Biosignal Filtering include classical filters (lowpass, highpass, bandpass and bandstop filters), notch filter and comb filter.

Biosignal Classical Filter

Biosignal Classical Filter includes lowpass, highpass, bandpass and bandstop filter. You can select onr of them through the filter type. Freq specs specifies the band edge frequencies of the filter in hertz and ripple specs specifies the ripple level in the passband and stopband of the filter.

image009.jpg

Biosignal Notch(Comb) Filter

A notch filter is a band-stop filter with a narrow stopband, which can be used to suppress noise at a specified frequency such as AC powerline fundamental.

image010.jpg

The following figure shows a typical notch filter. In a notch filter, f 0 denotes the center frequency and Δf denotes the frequency bandwidth at Ab . The default value of Ab is −3 dB. Q = f 0/Δf, which denotes the sharpness of the notch. Increasing the value of Q results in a sharper notch filter.

image011.jpg

Following is an example of removing the noise at 60 Hz from ECG signal. The following left figure shows the original ECG signal, sampled at 480 Hz, while the right figure shows its spectrum. In the left figure, you can identify noise at 60 Hz.

image012.jpg

To remove the noise, use the Biosignal Notch Filter with the f 0 60Hz and Df 0.5Hz.The following figures show the notch filtered ECG signal and its spectrum. You can find that 60Hz noise is decreased significantly.

image013.jpg

You can use notch filter to suppress noise at one particular frequency. However, you might want to suppress noise at more than one frequency, such as AC powerline fundamental and harmonics. In that situation, you can use a comb notch filter.

The following figure shows a typical comb notch filter in which the first notch occurs at f = 0, or equivalently, (|H(0)| = 0).

image014.jpg

Biosignal Average Rectified Value VI

Biosignal ARV is roughly equivalent to Biosignal RMS. It calculates the average rectified value (ARV) of each dataset of a biosignal. The length of each dataset is also specified by window info.

image015.jpg

Rectification type specifies the type of rectification that this VI uses to calculate the ARV of the biosignal.

For Absolute, it calculates the ARV of the current data set using the following equation,

image016.gif

For Square, it calculates the ARV of the current data set using the following equation,

image019.gif

where ψx is ARV value and n is the length of the dataset X.

Following is an example of calculating online EMG ARV. The above figure shows the original EMG signal, sampled at 1000Hz. The below figure shows the ARV result with the window time 0.02s.

image020.jpg

Biosignal Integral & Derivative VI

Biosignal Integral & Derivative performs the online discrete integration or differentiation of a biosignal.

Operation specifies the type of operation to perform on biosignal in, including Integral and Derivative. Integration time specifies the duration, in seconds, of one segment to perform integration. It is for Integral only.

image021.jpg

Following is an example of performing online EMG Integral. The first figure shows the original EMG signal, sampled at 1000Hz. The second figure shows the ARV result of the original EMG with the window time 0.02s. The third figure shows the Integral result of the ARV with integral time 0.25s.  Integral splits up the biosignal into segments and sets the integral value to 0 at each segment.

image022.jpg

If you have installed Biomedical Toolkit LabVIEW 2012(32-bit) Support version, you can find two examples related these preprocessing VIs described in this document under the folder …\National Instruments\LabVIEW 2012\examples\Biomedical\Biosignal.

Example 1:

image023.jpg

Example 2:

image024.jpg

Feel free to let us know your questions in using these VIs and Controls.

Download All
Contributors