• No results found

Determining Best Window Size for an Improved Gabor Transform in EMG Signal Analysis

N/A
N/A
Protected

Academic year: 2021

Share "Determining Best Window Size for an Improved Gabor Transform in EMG Signal Analysis"

Copied!
9
0
0

Loading.... (view fulltext now)

Full text

(1)

DOI: 10.12928/TELKOMNIKA.v16i4.9049  1650

Determining Best Window Size for an Improved Gabor

Transform in EMG Signal Analysis

E. F. Shair*1, S. A. Ahmad2, A. R. Abdullah3, M. H. Marhaban4, S. B. Mohd Tamrin5 1,2,4

Department of Electrical and Electronic Engineering, Faculty of Engineering, Universiti Putra Malaysia (UPM), 43400 UPM Serdang, Selangor, Malaysia

1,3

Centre for Robotics & Industrial Automation (CeRIA), Faculty of Electrical Engineering, Universiti Teknikal Malaysia Melaka (UTeM), Hang Tuah Jaya, 76100 Durian Tunggal, Melaka, Malaysia

5

Department of Environmental and Occupational Health, Faculty of Medicine and Health Sciences, Universiti Putra Malaysia (UPM), 43400 UPM Serdang, Selangor, Malaysia

2

Malaysian Research Institute of Ageing (MyAgeing), Universiti Putra Malaysia (UPM), 43400 UPM Serdang, Selangor, Malaysia

*Corresponding author, e-mail: [email protected]

Abstract

Electromyography EMG is a standout amongst the most regularly utilized tools to study human muscle condition. But due to the intricate attributes of the EMG itself, time-frequency distributions such as Gabor transform and spectrogram are more preferred than the simpler time distribution and frequency distribution. These techniques have been broadly utilized as it can provide both time and frequency information. However, both techniques have a fix window size for all frequency values, thus there exist a problem of determination of the window size, where excessively limit window and too wide window, will result in poor frequency resolution and time resolution, respectively. Along these lines, the point of this study is to choose the best window size so as to be utilized with Gabor transform to screen human muscle activity during core-lifting task. Four electrodes were placed on the right and left biceps brachii, and left and right erector spinae. In this study, the results of five acceptable window sizes (300, 400, 430, 450 and 520) were shown, despite the fact that other window sizes were also tested. Three criteria have been considered during the determination of the best window size, which are good time resolution, good frequency resolution, and high accuracy. Results demonstrate that window size of 450 is the best compared to others. As an additional analysis, the result is compared to a spectrogram and it can be seen that Gabor transform is better, as it has the flexibility in choosing the window size, thus affects the resolution and accuracy.

Keywords: Electromyography, Time-frequency distribution, Gabor transform, Best window size, Lifting task

Copyright © 2018 Universitas Ahmad Dahlan. All rights reserved.

1. Introduction

Electromyography (EMG) signal is a highly complex non-stationary signal used to measure electrical activity created by skeletal muscle in the human body [1]. Research involving EMG are inconceivably developing as it can be utilized as a part of different applications not restricted to clinical, biomedical and human-computer interaction. A few propelled techniques have been acquainted to efficiently and successfully analyze the signal [2].

Among researchers, it is well known that the Fourier transform (FT) is the simplest among the other transformation method [3]. It is also a perfect technique for analyzing periodic functions, and to represent them as a superposition of pure frequencies [4]. This, however, makes sense for stationary signals only [5], whereas EMG is a non-stationary signal. Thus, the idea of time-frequency representations (TFR) of signals came up [6]. One of the simplest methods is the short-time Fourier transform (STFT), since for many purposes the STFT of a signal is easier to handle because it depends in a linear way on the analyzed signal [7]. This technique has become a common tool in signal analysis. Other than this, the concept of the TFR also motivates other researchers to come up with a more advanced techniques such as spectrogram and Gabor transform. These two techniques are preferred than the traditional Fourier techniques, whenever time dependence of the analyzed signal is of an indistinguishable significance from its frequency dependence [6]. However, there exist strict limits to the maximal

(2)

selection process in determining Gabor transform’s best window size for the same application. The same selection criteria are applied which based on frequency resolution, time-frequency representation (TFR) and the plot of instantaneous RMS voltage (Vrms(t)). The

performances of the chosen window size for both techniques are then compared.

2. Experimental Procedures 2.1. Subjects

Eleven EMG recordings were inspected in this research. These EMG signals were recorded from eleven healthy control subjects aged 22-25 years. Table 1 summarized the subjects’ demographic details. The subjects were selected arbitrarily by the utilization of ads and notices. A fundamental idea in enrolment of the volunteers was that the subjects did not have a past history of musculoskeletal disorders. The Extremity Functional Index (UEFI) survey and Oswestry Low Back Pain Disability survey have been used in perceiving the typical reference control subjects with a particular end goal to enlist them. The experimental procedures were affirmed by the Human Ethics Committee of Universiti Putra Malaysia, and all the subjects are required to signed informed consent forms before the start of the experiment.

Table 1. Subject’s Demographic Details Demographic details

Age (years) (Mean ± SD) 23.5 ± 1.5 Body mass index (Mean ± SD) 22.5 ± 3 Sex, male/female 6/5

2.2. Lifting Protocol

Subjects were asked to perform a core-lifting task, which comprises of six lifting phases in 1 cycle. The succession of the 6 lifting phases was shown in Figure 1. Preceding the lifting protocols, the subject is required to remain in front of the Valpar work centre as in Figure 2 and certain anthropometric data that particularly relate to lifting were recorded (midsection height, and above shoulder height (jaw to nose level)). After one cycle, weights will be added to the container. Weight progression flip diagram as shown in Figure 3(a) in conjunction with the colour-coded weights as shown in Figure 3(b) was utilized to advance the subject through the lifting task. The entire lifting task was performed at the Social Security Organization (SOCSO) rehabilitation centre, Malaysia and takes after the convention set by the association to guarantee the outcomes are solid.

(3)

(a) (b)

Figure 3. (a) Weight progression flipchart and (b) container with colour-coded weights

3. sEMG Recording Procedure

sEMG signals were recorded by utilizing Consensys EMG Development Kits, which was design and fabricated by Shimmer Sensing (Dublin, Ireland). The signals were sampled at a sampling frequency of 1500 Hz. EMG signals from 4 muscles on the upper limb area (right and left biceps brachii) and the back area (right and left erector spinae) were obtained utilizing Ag/AgCl electrodes from Kendal Meditrace 200. To guarantee legitimate electrode attachment and to lessen noise, the whole area of the muscles were shaved and cleaned utilizing BD Alcohol Swabs (70% Isorophyl Alcohol), before rubbing it with Signa gel to give better conductivity.

The strategy for surface electrode placement follows the Non-Invasive Assessment of Muscle (SENIAM) rule to get the most extreme pickup zone of the EMG signals and to ensure that the EMG signals are stable. Figure 2(a) shows the surface EMG electrodes attached at the biceps brachii named as input (A) and the reference electrode named as (B), while Figure 2(b) is the surface EMG electrodes appended at the erector spinae.

(a)

(b)

Figure 4. Electrode placement on (a) biceps brachii and (b) erector spinae muscles

The ordinary pre-processing method was used as a hidden stage to prepare the 4 channels of the EMG information before continuing with the Gabor transform analysis. Since the

(4)

4. EMG Signal Analysis 4.1. Spectrogram

Spectrogram is defined as the squared magnitude of STFT and can be expressed as equation 1.

( ) |∫ ( ) ( )

| (1)

where S(t,f) is the time-frequency representation, x( ) is the input signal and w(t) is the observation window. In the previous research by the author herself, Hanning window was chosen for the spectrogram, since it has a low peak side slope compared to the rectangular and Hamming window, that would affect the narrow frequencies [12]. The window size was changed from 64, 128, 256, 512, 1024 and 2048 so as to locate the best window with good time-frequency resolution. Window size of 512 and 1024 were found to be suitable for the application, but window size 512 was found to be the best between those two.

4.2. Gabor transform

Gabor transform is an expanding of the signal into a set of functions that are concentrated in both time and frequency representation and then utilize the coefficients as the descriptors of the EMG signal’s property. Gabor transform is defined as equation 2.

( ) ∫ ( ) ( ) (2)

where C(n,k) is the time-frequency representation, x( ) is the raw EMG signal and h(n,k) is the set of elementary function, which defined as;

( ) ( ) (3)

where w(τ), Tω and f0 are the observation window, time sampling, and frequency sampling, respectively. Both time and frequency sampling must satisfy the Heisenberg uncertainty relationship as follows;

(4)

In this study, Hanning window was chosen, same as the spectrogram. Since the best window size for spectrogram is 512 as previously reported, the window size for the Gabor transform was varied around this value. This is to save time as the determination of window size was done on a trial and error basis. The window size was varied from 300 to 520 in order to find the best window with good time-frequency resolution. Frequency resolution (Fr) and time resolution (Tr) of the TFR were calculated using equation 5 and equation 6.

(5)

(6)

where Nw is the window size and Fs is the sampling frequency. From the TFR, the parameter used to represent the lifting flow is the instantaneous RMS voltage (Vrms(t)).

(5)

( ) √∫ ( ) (7)

where S(t,f) is the time-frequency representation and fmax is the maximum frequency. 4.3. Best Window Size Selection

For this application, frequency resolution and time resolution of the TFR must satisfy certain criteria, keeping in mind the end goal to be acknowledged as the best window size. Observe that the guidelines listed are distinctive for various applications and research needs. The two criteria that should be satisfied are listed as follows:

a. Fr must be equal or smaller than the minimum frequency to be distinguished (fmin = 5 Hz) b. Tr must be smaller than 1 s in order to effectively distinguish each lifting phases

5. Results and Discussions

Since this research is concentrating on finding the best window size for Gabor transform, only the TFR and instantaneous RMS voltage plot for stage 5 were displayed. Figure 5 shows the TFR and Vrms(t) plot for spectrogram using window size 512 which is found

to be the best window size for this application, based on previous research done by the author. Roughly looking at Figure 5(a), it can be seen that the spectrogram able to produce a good time resolution and frequency resolution of the TFR and the red colour in the TFR showed the location of the highest peak amplitude

(a)

(b)

Figure 5. (a) TFR of spectrogram and (b) Vrms(t) plot for window size 512

The following five figures as shown in Figure 6, Figure 7, Figure 8, Figure 9 and Figure 10 represent the TFR and Vrms(t)plot of Gabor transform for window size 300, 400, 430,

450 and 520, respectively. The selection of these window sizes are based on the selected best window size (512) explained in previous research. The window sizes were varied by trial and error method near this value and the resolution for both time and frequency were monitored for

(6)

(a) (b)

Figure 6. (a) TFR of Gabor transform and (b) Vrms(t) plot for window size 300

(a) (b)

Figure 7. (a) TFR of Gabor transform and (b) Vrms(t) plot for window size 400

(a) (b)

(7)

(a) (b)

Figure 9. (a) TFR of Gabor transform and (b) Vrms(t) plot for window size 450

(a) (b)

Figure 10. (a) TFR of Gabor transform and (b) Vrms(t) plot for window size 520

All five window sizes presented in this paper have acceptable time and frequency resolution based on the criteria listed before. Table 2 summarizes the frequency resolution and time resolution for all window sizes tested. Since a bandpass filter with a range of 5-500 Hz was used in the pre-processing stage, thus the minimum frequency, fmin to be detected is 5 Hz. It can be seen that all window sizes in Table 2 able to detect the minimum frequency exist in the signal since all of them have frequency resolution that is either equal or smaller than fmin. Similar to the time resolution, Tr criteria, all window sizes must have Tr less than 1 s to effectively distinguish each lifting cycle. All window sizes listed in Table 2 satisfy this criterion.

Table 2. Comparison of Time Resolution and Frequency Resolution for Each Window Size Window Size Sampling Frequency, Fs Frequency Resolution, Fr Time Resolution, Tr

300 1500 Hz 5 Hz 0.2 s

400 1500 Hz 3.75 Hz 0.2667 s

430 1500 Hz 3.49 Hz 0.2865 s

450 1500 Hz 3.33 Hz 0.3003 s

520 1500 Hz 2.85 Hz 0.3509 s

As to distinguish which window size is the best, the TFR peak time and Vrms(t) peak time

were measured and the absolute error was calculated. By referring to Table 3, as the window size increased, the absolute error is also increased. Thus, after thorough study and comparing, and considering not just the time resolution and frequency resolution, but also the absolute error exist between the TFR peak time and Vrms(t) peak time, the window size of 450 was considered

(8)

Table 4 summarizes the results of Gabor transform and spectrogram using their best window size resulted from the analysis. Not just by having a slightly better time resolution compared to the spectrogram, Gabor transform also has a lower absolute error, which is the main criteria to look at when having results that have acceptable time and frequency resolution.

Table 4. Performance Comparison between Gabor Transform and Spectrogram Gabor Transform Spectrogram Frequency Resolution, Fr (Hz) 3.33 2.93

Time Resolution, Tr (ms) 0.3003 0.3413

TFR Peak Time (ms) 3.091 3.090 Instantaneous RMS Voltage Peak Time (ms) 2.858 2.833 Absolute Error (ms) 0.233 0.257

Despite the fact that only the result for one subject and one muscle was presented, alternate subjects still have comparable patterns of TFR and Vrms(t) plot as the window size is changed. This can be seen from the absolute error mean plot and standard deviation error bars of eleven subjects for every window size, as in Figure 11.

Figure 11. Absolute error mean plot with standard deviation error bars of eleven subjects for each window size

6. Conclusions

Results presented demonstrated that the study effectively introduces guidelines to decide acceptable Gabor transform window size to be used in the analysis of core-lifting task. The main problem occurs when dealing with time-frequency distribution such as Gabor transform and spectrogram, is the problem of resolution, as this can affects the reliability and accuracy of the analysis. This issue, however, can be solved by choosing a suitable window size.

Despite the two main criteria of a good frequency resolution (Fr must be equal or smaller than the minimum frequency to be detected) and good time resolution (Tr must be smaller than 1 s to correctly identify each lifting phases) as presented in the author’s previous research, another criteria that is important to determine the best window size especially when dealing with multiple window size that have good time and frequency resolution, is the absolute error. By considering these three criteria, the window size of 450 was found to be the best for this application. However, this value is not fixed as different researchers may have different opinions and different applications may have a different level of importance of the three criteria.

(9)

When the performance of Gabor transform and spectrogram were compared, it can be seen that Gabor transform provides a marginally better time resolution and lower absolute error, with a more flexibility in choosing the window size to suits various research applications.

Acknowledgements

The authors acknowledge and thank the Control and Signal Processing group of Universiti Putra Malaysia, Rehabilitation and Assistive Technology research group of Universiti Teknikal Malaysia Melaka and Social Security Organization rehabilitation centre, Malaysia for their continuous support in the research. This research is fully funded by the Ministry of Higher Education Malaysia (MOHE).

References

[1] RK Tripathy, A Acharya, SK Choudhary, S Kumar. Artificial Neural Network based Body Posture Classification from EMG Signal Analysis. Indonesian Journal of Electrical Engineering and Informatics (IJEEI). 2013; 1(2): 59-63.

[2] FA Mahdavi, SA Ahmad. Surface Electromyography Feature Extraction Based on Wavelet Transform. International Journal of Integrated Engineering. 2012; 4(3): 1–7.

[3] S Shenbaga Ezhil. Real Time Application of Fourier Transforms. Indonesian Journal of Electrical Engineering and Computer Science (IJEECS). 2017; 8(2): 574-577.

[4] EF Shair, SA Ahmad, AR Abdullah, MH Marhaban, SB Mohd Tamrin. Impact of Different Lifting Height and Load Mass on Muscle Performance Using Periodogram. Pertanika Journal of Science and Technology. 2017; 25(S): 1–8.

[5] MH Jopri, AR Abdullah, M Manap, MR Yusoff, T Sutikno, MF Habban. An Improved Detection and Classification Technique of Harmonic Signals in Power Distribution by Utilizing Spectrogram.

International Journal of Electrical and Computer Engineering (IJECE). 2017; 7(1):12-20.

[6] M Wacker, H Witte. Time-Frequency Techniques in Biomedical Signal Analysis: A Tutorial Review of Similarities and Differences. Methods Inf. Med. 2013; 52(4): 279–296.

[7] D MacIsaac, PA. Parker, RN Scott. The Short-Time Fourier Transform and Muscle Fatigue Assessment in Dynamic Contractions. Journal of Electromyography and Kinesology. 2001; 11: 439– 449.

[8] EF Shair, SA Ahmad, MH Marhaban, SB Mohd Tamrin, AR Abdullah. EMG Processing Based Measures of Fatigue Assessment during Manual Lifting. BioMed Research International. 2017; 2017: 3937254.

[9] G Venugopal, M Navaneethakrishna, S Ramakrishnan. Extraction and Analysis of Multiple Time Window Features Associated with Muscle Fatigue Conditions Using sEMG Signals. Expert Systems with Applications. 2014; 41(6): 2652–2659.

[10] AR Abdullah, NS Ahmad, EF Shair, A Jidin. Open Switch Faults Analysis in Voltage Source Inverter Using Spectrogram. In 2013 IEEE 7th International Power Engineering and Optimization Conference (PEOCO). 2013: 438–443.

[11] R Merletti. Standards for Reporting EMG Data. Journal of Electromyography and Kinesiology. 1999; 9(1): 1–5.

[12] B Zeng, Y Zhou, Z Teng, G Li. A Novel Approach for Harmonic Parameters Estimation under Nonstationary Situations. International Journal of Electrical Power & Energy Systems. 2013; 44(1): 930–937.

References

Related documents

MATERIALS, BENCH WORK, MACHINE TOOLS GENERAL, MACHINE ELEMENTS, BRAZING and WELDING, HEAT TREATMENT, THREADS, TURNING, MILLING, SHAPING and PLANING, DRILLING and REAMING,

Efficiency and limitations of alternative decontamination technologies to reduce the level of PCDD/Fs, DL-PCBs and polybrominated diphenyl ether flame retardants (PBDEs) in

The results in a final selection of 5 risk factors (industry risk, efficiency risk, capacity risk, capital availability risk, and default credit risk) that

In 1998, the Miami Bayside Foundation created an endowment at Miami-Dade College for the purpose of awarding scholarships to minority students who reside in the City of Miami.

(2011), I also contribute to the literature by studying whether the earnings acceleration information value derives from the operating cash flow or accruals component of earn- ings,

Working with the Campus Community to Create Engaging Social Media Content..

For each school, a daily time-step behaviour analysis of the rainwater harvesting system with a specified storage was carried out for a period of 101 years (over which rainfall

Initiatives Targets Measures Objectives Stakeholders To satisfy our stakeholders what business processes must we excel at3. Initiatives Targets