Introduction

Electromyography (EMG) measures how accurately our muscles respond to nerve signals from the brain by evaluating and recording the electrical activity of muscles. EMG signals play an important role in clinical/medical and engineering fields. They are of two types: surface electromyography (sEMG) and intramuscular EMG1. Both differ from each other by electrodes i.e. non-invasive and invasive electrodes2. sEMG is preferably used nowadays to extract information about muscle activation3. EMG signals can be used to diagnose nerve damage, muscle dysfunction, etc. Furthermore, they can be used for rapid torque development4, gait analysis, and recording muscle movements e.g. muscle co-contraction5. For this purpose, the acquisition of an accurate EMG signal is essential6,7.

Muscle co-contraction refers to the simultaneous activation of antagonist muscles around a joint. It’s a normal motor control strategy that aids in performing several functional tasks. During limb movement, muscle co-contraction results in joint stiffness, hence enhancing the stability and accuracy of the joint8. Walking at various speeds and over greater distances/durations would increase muscle co-contraction recruitment and subject variability9. Excessive co-contraction is a major contributing factor to walking impairments10, causes fatigue11, increases energy expenditure, and may impede movement12. Muscular co-contraction is hypothesized to be a good application for clinical purposes. Different techniques have been introduced to evaluate muscular co-contraction, but a gold standard has not yet been established. Previous studies have demonstrated that various techniques have been adopted for the analysis of muscle co-contraction of sEMG signals taken from the upper limb i.e. Co-contraction Index (CCI)8, Double threshold statistical algorithm (DT)13, Rudolph’s index (RI)14 etc. However, there is a lack of information on lower limb15 muscle co-contraction during walking. Recently, a group of researchers presented a comprehensive analysis of thigh muscle16 and ankle muscle co-contraction17. Researchers have designed various studies, but due to poor decomposition performance, instability, modal aliasing effect, and low noise resistance, the efficacy of ankle muscle co-contraction to be helpful for joint health remains unclear, along with the evidence of ankle muscle co-contraction to be advantageous for rehabilitation purpose required improvement.

The need is to characterize the ankle muscle co-contraction in sEMG signal by using an efficient technique to make sure that it could be a non-pharmacological treatment for persons having ankle joint issues18. For this purpose, the present work will focus on Variational Mode Decomposition (VMD), a signal processing technique that decomposes the input signal into different band-limited intrinsic mode functions (IMFs)19, proposed by Dragomiretskiy et al. in 2013 20. The method can perfectly reconstruct the original signal from its smoothed decomposed in IMFs after demodulation into the baseband, making it robust to sampling and noise21. This advantage enhances its utility in various fields such as speech signal processing22, signal denoising23,24,25, fault diagnosis26,27, and seismic time-frequency analysis28. VMD provides improvement over other techniques such as no modal aliasing effect29, better decomposition performance, stability, and sensitivity to noise. Although VMD had been used previously for different purposes but it’s being used for this purpose first time.

This study is designed to assess the appropriate detection of ankle muscle co-contraction in healthy adults for clinical interpretation of the role of muscular co-contraction and control, and stabilization of ankle joint in clinical environment. To this aim, the Tibialis Anterior (TA) and Gastrocnemius Lateralis (GL) were selected as representative muscles of the ankle. In this study, VMD is compared with CWT approach only, not other denoising techniques like empirical mode decomposition, discrete wavelet transforms etc. because until now only CWT has been used as a decomposition technique for this purpose. In future, other denoising methods may be used. This study aims to introduce a better method that would be helpful for clinical and rehabilitation purposes to improve joint quality by identifying ankle muscle co-contraction accurately using the novel combination of scalogram visualization technique with VMD for the first time.

Methods

Subjects

The dataset contains sEMG signals collected during the walking of 20 healthy adults (10 females and 10 males). Mean (± Standard Deviation, SD) characteristics are age 24 ± 2 years; height 172 ± 10 cm; weight 62 ± 8 kg; Body mass index (BMI) 21.5 ± 2.1 kg/m2. Exclusion criteria include pathological or chronic joint pain, abnormal gait, surgical intervention, and BMI ≥ 25. The other (online) walking dataset of 5 healthy subjects is taken from UCI Machine Learning Repository (O Sanchez et al., 2014). In the online dataset, each trial had a signal acquisition duration of 10 s. The signals were recorded under controlled conditions with standardized ankle movements. Data was acquired with a sampling rate of 1000 Hz to ensure high-resolution muscle activity measurements. Informed consent was obtained before the experiment from all subjects involved in this study. Approval (Ref # NUST/SMME-BME/ REC/000142/20012023) was granted by the local ethical committee of the National University of Science and Technology and accomplished according to the institutional regulations and principles of the Declaration of Helsinki. This study focused on healthy participants due to ethical constraint.

Experimental setup

Delsys Trigno Wireless EMG Sensors were used for data collection from lower limb muscles. Firstly, the targeted muscle area was cleaned with an alcohol swab, and excess hair was shaved. Before electrode placement, it was important to ensure that the skin surface above the muscles was clean for proper electrode-skin contact. sEMG electrodes were placed on the skin surface above the muscle belly of the muscle. The shin muscles used for data collection were TA and GL as they were selected as representative muscles of the ankle. The GL was selected as a representative of the gastrocnemius muscle group due to its accessibility for surface EMG and its established role in ankle plantarflexion, which is crucial for walking.

Signal acquisition and processing

To record muscle activity, two (2) wireless surface EMG sensors (Trigno Wireless EMG system, Delsys, Boston, MA, USA) were positioned on ankle muscles according to SENIAM (Surface Electromyography for the Non-Invasive Assessment of Muscles) recommendations [30]. sEMG signals were measured during 30 s of ground walking. The experimental setup is shown in Fig. 1. Subjects were instructed to walk on a flat surface for a period of 30 s at their usual pace. The natural pace was selected because walking at a comfortable speed enhances the consistency of EMG data, whereas variability increases when subjects are asked to walk abnormally30.

Data collection, preprocessing of data was carried out. Recorded data from sEMG signals were filtered by applying Butterworth 4th order bandpass filter, with lower and upper cut-off frequencies 20 Hz and 500 Hz respectively, to remove any undesired frequency content. To reduce power line interference, the sEMG signals were filtered using a notch filter with a 60 Hz cutoff frequency. After that, VMD was adopted to efficiently denoise the signal. VMD decomposes EMG data into a set of simpler components known as modes or IMFs. Research by Xiao et al. provides the mode selection criteria and shows that VMD has large potential to denoise EMG signals31.

Fig. 1
figure 1

Experimental Setup (a) Data protocol starts, as Delsys successfully initiated (b) Subject providing data (c) Electrode placement on Tibialis Anterior (TA) and Gastrocnemius Lateralis (GL) muscles of lower limb (d) sEMG acquisition system (e) Protocol ends after data collection.

Each mode represents a distinct component or pattern in the EMG signal. These patterns, as displayed in Fig. 2, correspond to muscle-relevant information e.g. muscular activity, or irrelevant information e.g. noise or artifact. These modes are refined iteratively by updating their parameters in each iteration32. This involves a two-step process: first, the modes are updated in the frequency domain, adjusting their central frequencies based on the signal’s spectral content. Then, in the time domain, the modes are refined by minimizing the interference between them.

The frequency spectrum shows that each IMF contains a central frequency and a narrow frequency band33 as illustrated in Fig. 3. Finally, IMF components with narrow bands were extracted based on the frequency domain characteristics of the signal31. Each IMF is updated with every iteration. Thus, minimizing noise iteratively. This study focuses on elucidating the distinct advantages of VMD, specifically in its utilization of iterative processes within the intrinsic mode functions (IMFs), resulting in more effective noise reduction compared to the conventional CWT. CWT lacks this intrinsic property of iterative refinement of IMFs. These decomposed models containing significant data are combined to reconstruct the original signal. Reconstructed signal represents the essential features of muscle activity while minimizing noise and artifacts. The overall stepwise methodology is displayed in Fig. 4.

Fig. 2
figure 2

Decomposition of sEMG signal using VMD. The original sEMG signal is decomposed into multiple Intrinsic Mode Functions (IMFs), each representing a specific frequency band.

Fig. 3
figure 3

Frequency spectrum of IMFs obtained by VMD. The first IMF contains the highest frequency range and thus the most amount of noise, while subsequent IMFs represent progressively lower frequency components with reduced noise. This spectral distribution highlights the effectiveness of VMD in decomposing the sEMG signal into distinct frequency bands for analysis.

Subsequently, the scalogram function was employed to evaluate muscular activation. Scalogram visualization techniques have always been used with wavelet transform in the past17,34. In this research, it is used with VMD for the first time. Scalogram represents energy localization in the time-frequency domain13. Using the Scalogram visualization technique with VMD helps gain insights into the time-frequency characteristics of the signal’s intrinsic mode functions.

The coscalogram function of denoised sEMG signals offers a quantitative approach for assessing the co-contraction between muscles. The onset and offset of co-contraction activity were determined by identifying the start and end points of the energy zones in the coscalogram. Furthermore, quantitative assessment of the co-contraction events was carried out to demonstrate the.

Fig. 4
figure 4

Methodology (A) Acquire the raw data through Delsys trigno wireless EMG sensors. (B) Apply a filtration process to remove unwanted noise or interference from the acquired data. (C) Utilize Variational Mode Decomposition (VMD) to decompose the signal into its constituent components. (D) Evaluate the Signal-to-Noise Ratio (SNR) to quantify the quality of the decomposed components. (E) Calculate the Root Mean Square Error (RMSE) to assess the accuracy of the decomposition process. (F) Conduct a comparative analysis between Variational Mode Decomposition (VMD) and Continuous Wavelet Transform (CWT) for signal decomposition. (G) Generate a scalogram to visualize the time-frequency representation of the signal. (H) Create a coscalogram to display the co-contraction of TA-GL muscles.

effectiveness of VMD compared to CWT. The ‘findpeaks’ function was used to identify prominent co-contraction events in the co-scalograms generated by both VMD and CWT. The peak amplitudes for the identified co-contraction events in both the VMD and CWT co-scalograms were then extracted. Next, the mean of these peak amplitudes for each technique was calculated to obtain a representative value of co-contraction intensity. Finally, the mean peak amplitudes between VMD and CWT were compared to determine which method more effectively captures stronger co-contraction events. The Fig. 5 shows the steps that are carried out for quantitative assessment of muscular co-contraction.

Evaluation parameters

To evaluate the denoising effect, the variational mode decomposition method is compared with the traditional wavelet method (CWT). In addition, the signal-to-noise ratio (SNR) and root mean square error (RMSE) between the denoising sEMG signal and the original signal are calculated. The corresponding Eq. (1) and Eq. (2) are below:

$$SNR = {\text{ }}10.{\text{ }}\log _{{10}} \left( {~\frac{{\Sigma \left( {f~2} \right)}}{{\Sigma \left( {~\left( {~~ - ~f~} \right)2~} \right)}}} \right)$$
(1)
$${\text{RMSE}} = ~\sqrt {{\text{~}}\frac{1}{L}\Sigma \left( {{\text{~}}f - \hat{f}~} \right)2{\text{~}})}$$
(2)

where f is the original signal and \(\hat{f}\) is the denoised signal and L is the length of the signal.

Fig. 5
figure 5

Steps of quantitative assessment of co-contraction.

Statistical analysis

The results obtained were validated by comparing the SNR and RMSE of all three groups (raw data, CWT-processed data, VMD-processed data) collectively using the ANOVA test. A significant difference (p < 0.05) was determined through the ANOVA one-way testing.

Results

The VMD technique was applied to sEMG data from 20 subjects, decomposing the signal into multiple IMFs. The significant data in the decomposed models are merged to reconstruct the original signal. In Fig. 6, a comparison between the original signal and the signal after denoising can be clearly seen. The signal has retained its original characteristics while minimizing the noise. The results illustrated in Figs. 7 and 8 demonstrate a notable enhancement of SNR and a significant reduction in RMSE respectively, of TA and GL muscles after applying VMD. These outcomes strongly indicate the efficacy and suitability of the VMD technique. A higher SNR and lower RMSE indicate better noise reduction while preserving important signal features33. After obtaining promising outcomes through the application of the VMD, a comparative assessment was conducted with the Continuous Wavelet Transform (CWT) technique to discern their relative effectiveness. SNR results displayed in Fig. 9, and RMSE results in Fig. 10 showed a noticeable discrepancy between VMD and CWT in terms of their noise reduction capabilities.

Fig. 6
figure 6

Comparison between the original signal and the signal after denoising. The original sEMG signal contains high-frequency noise, which is effectively reduced through the applied denoising technique. The figure illustrates the effectiveness of the VMD in preserving the essential signal components while eliminating unwanted noise, ensuring a cleaner and more interpretable signal for further analysis.

Fig. 7
figure 7

SNR of TA and GL muscles before and after application of VMD.

Fig. 8
figure 8

RMSE of TA and GL muscles before and after application of VMD.

The iterative nature of VMD in generating IMFs demonstrated a marked reduction in noise levels, underscoring its superiority over CWT. The absence of an iterative process in CWT hindered its ability to achieve comparable levels of noise reduction. To further reinforce the findings, the process was repeated using online data. This extended evaluation consistently affirmed VMD’s superior performance over CWT. The comparison of results obtained after applying CWT and VMD on online data as well as offline data illustrated improvement in SNR in Fig. 11 and minimization in RMSE in Fig. 12. The results demonstrate that VMD outperforms CWT in terms of both SNR and RMSE. Furthermore, quantitative assessment of the co-contraction events was carried out by comparing the mean peak amplitudes of VMD and CWT to demonstrate the effectiveness of VMD compared to CWT. Table 1 shows the mean peak amplitude values obtained from the VMD co-scalogram in every segment is substantially higher than the mean peak amplitude obtained from the CWT co-scalogram.

The application of VMD denoising yields more reliable ankle-muscle sEMG signal enhancing the accuracy of subsequent co-contraction quantification. The novel combination of the Scalogram visualization technique with VMD is employed to gain insights into the time-frequency characteristics of the signal’s intrinsic mode functions.

Fig. 9
figure 9

Comparison of VMD and CWT in terms of SNR. A higher SNR indicates better noise reduction and signal preservation. The comparison highlights the effectiveness of VMD in enhancing signal quality compared to CWT.

Fig. 10
figure 10

Comparison of VMD and CWT in terms of RMSE. A lower RMSE indicates better signal reconstruction with minimal error. The comparison demonstrates the effectiveness of VMD in reducing reconstruction error compared to CWT.

The co-scalogram results from Figs. 13 and 14 highlight periods of coordinated muscle activity, indicating co-contraction between antagonist muscles, and providing a visual representation of the temporal and frequency-specific aspects of this coordination. A coscalogram complements the information provided by individual scalograms of antagonistic muscle signals.

Panel A and B of Fig. 13 show the scalogram function of the sEMG signal, after VMD denoising, of antagonist muscles i.e. tibialis anterior (TA) and gastrocnemius lateralis (GL) respectively. Panel C shows a coscalogram of the cross-energy density in the time-frequency domain between the denoised TA and GL signals.

Table 1 Mean peak amplitude values of VMD as well as CWT.
Fig. 11
figure 11

Comparison of CWT and VMD using both online and offline datasets in terms of SNR.

Fig. 12
figure 12

Comparison of CWT and VMD using both online and offline datasets in terms of RMSE.

Discussion

This paper proposes a VMD method to characterize ankle muscle co-contraction in sEMG signal. To gain insights into the time-frequency characteristics of sEMG signals’ intrinsic mode functions (IMFs), a novel combination of Scalogram visualization techniques is employed with VMD. The study focuses on the efficient denoising of the sEMG signal as a better-denoised signal will give a clear result of co-contraction that would be useful for the treatment of patients having ankle joint issues.

Fig. 13
figure 13

Panel (A): TA sEMG Scalogram, Panel (B): GL sEMG Scalogram, Panel (C): TA-GL Coscalogram obtained by offline data.

Fig. 14
figure 14

Panel (A): TA sEMG Scalogram, Panel (B): GL sEMG Scalogram, Panel (C): TA-GL Coscalogram obtained by online data.

Although CWT quantifies ankle muscles very finely as mentioned in35, when VMD was compared with CWT by using online as well as offline data, the proposed method (VMD) provides better results than the previously proposed method (CWT) as evident from Figs. 11 and 12. In our study, we observed that, on average, the increase in SNR with VMD (from − 17.65 ± 8.1dB to 2.98 ± 2.2dB, p < 0.05) exceeded that achieved with CWT (from − 17.65 ± 3.7dB to 1.34 ± 1.5dB). Likewise, we found that the reduction in RMSE using VMD (from 0.023 ± 0.0029 to 0.017 ± 0.0015, p < 0.05) outperformed CWT’s performance (from 0.023 ± 0.0027 to 0.020 ± 0.0025). VMD, characterized by its iterative refinement of IMFs, shows superiority over CWT. The single-pass nature of CWT limited its adaptability to complex signal environments, thereby rendering it less effective in achieving comparable levels of noise reduction.

Figure. 6. clearly shows that denoising has been done effectively as the reconstructed signal maintains the attributes of the original signal. The reliability of the proposed method is proved by an increase in SNR in Fig. 7 and a decrease in RMSE in Fig. 8.

The identification of TA-GL co-contraction in Figs. 13 and 14 is achieved by analyzing the scalograms and coscalograms of the respective muscles. The scalogram of the TA muscle (Panel A) and the GL muscle (Panel B) individually display regions of muscle activation, indicated by yellow-colored areas, which represent high-intensity time-frequency components corresponding to muscle contraction. The coscalogram (Panel C) integrates the scalograms of both muscles, highlighting areas where simultaneous contraction occurs. Figures 13 and 14 shows that co-contraction of TA-GL will appear only on the coscalogram if both muscles contract at the same time. In Fig. 14, the right yellow box in panel C shows no co-contraction because the GL muscle is not activated, although TA shows activation. The left yellow box shows activation in panels A and B, so it also shows co-contraction in panel C. This visual representation allows for a clear identification of synchronized muscle activity and provides insights into the temporal characteristics of co-contraction between the TA and GL muscles.

The effectiveness of VMD and CWT was compared in detecting muscle co-contraction events by examining the mean peak amplitudes of co-scalograms. The results consistently showed that VMD produced higher mean peak amplitudes, suggesting stronger and more robust detection of co-contraction events. This quantitative assessment demonstrates the superior performance of VMD in capturing intense muscle activity, providing a clearer and more accurate representation of co-contraction dynamics compared to CWT.

While this study primarily compares VMD with CWT, other techniques such as Discrete Wavelet Transform (DWT), Empirical Mode Decomposition (EMD), and Sparse Representation Techniques have been widely used for EMG signal analysis. However, these methods present certain limitations: EMD suffers from mode-mixing issues, DWT lacks adaptive decomposition capabilities, and sparse representation methods require complex optimization models. In contrast, VMD provides improved mode separation and better adaptability to non-stationary signals, making it a more effective choice for muscle co-contraction analysis. Future research should explore these alternative methods to further validate the benefits of VMD.

Analyzing coscalograms provides insights into how different muscle groups work together to stabilize the ankle joint and ensure proper movement control, as cocontractions of ankle muscles play a pivotal role in maintaining joint stability. A coscalogram may help in assessing muscle coordination changes after injury and throughout the rehabilitation process. It aids clinicians and therapists in designing targeted exercises to restore optimal muscle cocontractions and joint stability.

Conclusion

The study aimed to detect and quantify the ankle muscle co-contraction accurately in sEMG signal for ankle rehabilitation purpose. The study proposes an efficient technique i.e., VMD to analyze surface electromyographic signals from TA-GL muscles of 20 healthy individuals and assess muscular co-contraction by using coscalogram function. This method (VMD) was compared with the previous used method (CWT) and the results prove that VMD provides better performance than CWT in terms of SNR and RMSE.

Future recommendations

In future, investigation on the potential of incorporating machine learning techniques, such as deep learning or reinforcement learning, can be carried out to enhance the accuracy and real-time applicability of muscle co-contraction analysis in ankle rehabilitation. This study focused on the Tibialis Anterior (TA) and Gastrocnemius Lateralis (GL) muscles, which are key players in ankle function. However, other muscles, such as the soleus and peroneals, also contribute significantly to ankle stability and movement. The inclusion of these additional muscles would require specific protocol modifications, such as altered sensor placements and extended data acquisition periods, which were beyond the scope of the current study. Future research should investigate the co-contraction patterns of a broader muscle group to provide a more complete picture of ankle dynamics during walking. Including these additional muscles would enhance the clinical applicability of the proposed method. A key direction for future research is to investigate the co-contraction patterns in individuals with ankle pathologies (e.g., sprains, osteoarthritis, neurological conditions) which require specific ethical approvals. Investigating these populations is crucial for establishing the clinical utility of the proposed method and translating our findings into practical applications for rehabilitation. In cases where recruiting pathological subjects is challenging, data augmentation and generative AI-based techniques, such as those proposed by Yuan et al. (2023) and Trabassi et al. (2024), could potentially aid in creating synthetic datasets to simulate muscle co-contraction patterns in these populations. Future studies should also explore the impact of longer recording durations and more varied walking conditions on the analysis of muscle co-contraction. Including tasks such as walking on uneven surfaces or with added loads will help assess the method’s robustness in more realistic and challenging environments.