🏆
Quality Assured Publisher
Serving Researchers Since 2012

EMG Muscle Activity Recognition Using a Hybrid CNN–BiLSTM Architecture with Attention Mechanism

DOI : 10.5281/zenodo.24739623
Download Full-Text PDF Cite this Publication

Text Only Version

EMG Muscle Activity Recognition Using a Hybrid CNNBiLSTM Architecture with Attention Mechanism

Dr. Lince Rachel Varghese

Department of MCA Union Christian College, Aluva, Kerala

Mr .Roshan Sibu Markosse

5 th Semester Computer Science Engr.

Federal Institute of Science and Technology Angamaly, Kerala

Abstract – Electromyography (EMG) signals provide important information about muscle activity and are widely used in rehabilitation, prosthetic control and humanmachine interaction. However, recognizing muscle movements accurately is challenging due to signal variations, noise and differences in muscle activation among individuals. Traditional methods often depend on manually extracted features, which may limit their ability to capture complex signal patterns.

This research proposes a hybrid deep learning approach combining a One-Dimensional Convolutional Neural Network (1D- CNN), Bidirectional Long Short-Term Memory (BiLSTM) and an attention mechanism for automated EMG-based hand and finger movement recognition. The CNN extracts relevant signal features, BiLSTM learns temporal relationships, and the attention mechanism focuses on important information for classification. The proposed model uses the NinaPro DB2 dataset for training and evaluation. The study aims to improve movement recognition and support applications in prosthetic control, rehabilitation and intelligent humanmachine interaction.

Keywords: Electromyography (EMG), Deep Learning, Artificial Intelligence, Muscle Activity Recognition, Neural Networks, Biomedical Signal Processing, Pattern Recognition

  1. INTRODUCTION

    Electromyography (EMG) is an important technique in biomedical engineering that records the electrical signals generated during skeletal muscle activity. These signals provide valuable information about muscle activation and are widely used in rehabilitation, prosthetic device control, neuromuscular assessment, and humanmachine interaction. Accurate recognition of EMG signals is essential for developing reliable assistive technologies. However, EMG signals are often affected by noise, variations in muscle activation, and differences between individuals, making accurate classification challenging.

    Conventional EMG recognition methods generally involve preprocessing, handcrafted feature extraction, and classification. Although these approaches have been widely used, manually selected features may not capture the complex characteristics of EMG signals. Deep learning offers an alternative by automatically learning relevant features from signal data, reducing dependence on predefined feature extraction techniques.

    Convolutional Neural Networks (CNNs) are effective in extracting local features from EMG signals but may have limitations in capturing long-term temporal dependencies. Long Short-Term Memory (LSTM) networks can learn sequential relationships, while Bidirectional LSTM (BiLSTM) networks capture temporal information in both forward and backward directions. However, these architectures may not adequately distinguish the most informative features. Attention mechanisms address this limitation by assigning different weights to learned features, allowing the model to focus on relevant information.

    To address these challenges, this study proposes a hybrid deep learning architecture combining a One-Dimensional Convolutional Neural Network (1D-CNN), BiLSTM, and an attention mechanism for EMG-based movement recognition. The 1D-CNN extracts local signal features, the BiLSTM captures bidirectional temporal dependencies, and the attention mechanism emphasizes important feature representations. The proposed framework is developed and evaluated using the NinaPro DB2 dataset.

    The main contribution of this study is the integration of local feature extraction, bidirectional temporal learning, and attention- based feature weighting into a unified model for EMG movement recognition. The effectiveness of the proposed architecture is evaluated through comparative experiments to investigate its potential for applications in rehabilitation, prosthetic control, and humanmachine interaction.

  2. LITERATURE REVIEW

    Electromyography (EMG) signals have emerged as an effective means of analyzing muscle activity and distinguishing various hand gestures. By capturing the electrical activity generated during muscle contractions, EMG signal offer valuable insights into neuromuscular behavior and has found widespread applications. Earlier approaches to EMG classification mainly depended on manually extracted features and conventional machine learning algorithms. However, recent developments in deep learning have

    encouraged researchers to explore neural network architectures that can automatically learn meaningful patterns from complex EMG signals.

    Atzori et al. [1] introduced an important contribution to EMG-based research by presenting a publicly available dataset for the development of naturally controlled robotic hand prostheses. Their work provided multichannel EMG recordings along with corresponding hand movement information. The dataset became a valuable resource for researchers developing and evaluating different pattern recognition techniques. It also supported further investigations into reliable hand gesture recognition using surface electromyography.

    Hochreiter and Schmidhuber [2] introduced the Long Short-Term Memory (LSTM) network to overcome the limitations of traditional recurrent neural networks in learning long-term dependencies. The architecture uses memory cells and gating mechanisms to retain important information across sequential data. This capability makes LSTM networks useful for applications involving time-dependent signals, including biomedical signal analysis.

    Schuster and Paliwal [3] proposed Bidirectional Recurrent Neural Networks (BRNNs), which process sequential information in both forward and backward directions. Unlike conventional recurrent networks that consider information from only one direction, bidirectional networks learn from past and future context within a sequence. This approach provides a strong foundation for BiLSTM architectures, which can capture more complete temporal information from EMG signals.

    Vaswani et al. [4] introduced the attention-based Transformer architecture through their influential work, Attention Is All You Need. Their approach demonstrated the effectiveness of attention mechanisms in identifying relationships between different elements of sequential data. Attention allows a learning model to assign different importance to different input features instead of treating all information equally. This concept has influenced several subsequent deep learning architectures, including attention- based approaches for biomedical signal processing.

    LeCun et al. [5] presented a significant contribution to deep learning through their research on gradient-based learning applied to document recognition. Their work demonstrated the ability of Convolutional Neural Networks (CNNs) to automatically learn useful features through convolution and hierarchical processing. Although the original application focused on document recognition, the fundamental CNN architecture has since been adopted in various fields, including image processing, speech recognition, and biomedical signal classification.

    Buongiorno et al. [6] conducted a comprehensive survey of deep learning techniques used for processing electromyographic signals. Their study examined different neural network architectures and their applications in EMG-based gesture recognition and othr biomedical tasks. The authors highlighted the increasing importance of CNN-based models for automatic feature extraction. Their review also discussed the potential of deep learning to reduce dependence on traditional handcrafted features and improve the analysis of complex EMG signals.

    Zhang et al. [7] proposed a dilated residual convolutional network for recognizing hand gestures using surface electromyography signals. Their approach combined dilated convolution operations with residual connections to improve the extraction of relevant signal features. The architecture was designed to capture information across different temporal scales while maintaining effective feature learning. The study also addressed the challenges associated with recognition across different recording sessions, which is an important consideration for practical EMG applications.

    Zhong et al. [8] presented a study on deep feature learning techniques for EMG-based gesture recognition systems. Their work examined different approaches to representing and learning information from electromyographic signals. These included temporal, spatial, frequency-based, and graph-based representations. The study also discussed important challenges, such as limited training data, variations in signal characteristics, and the difficulty of achieving consistent recognition performance under different conditions. Their findings highlight the need for more robust and generalizable deep learning models.

    Karnam et al. [9] developed EMGHandNet, a hybrid deep learning architecture combining CNN and BiLSTM networks for hand activity classification using surface EMG signals. In their model, CNN layers were used to extract important features from the input signals, while BiLSTM layers learned the temporal relationships in both forward and backward directions. This combination enabled the model to consider both signal characteristics and sequential information during classification. Their research demonstrated the potential of hybrid CNNBiLSTM architectures for EMG-based hand activity recognition.

    Tamilvanan et al. [10] proposed a surface EMG-based hand gesture recognition framework combining Variational Mode Decomposition (VMD) with a deep learning classifier. Their approach focused on handling the complex and non-stationary characteristics of EMG signals. VMD was applied to separate the original signal into different frequency components, which were subsequently used for classification. The study demonstrated how signal decomposition techniques can be combined with deep learning to obtain useful information for gesture recognition.

    Zhang et al. [11] introduced a convolutional neural network with multiple attention mechanisms for electromyographic hand gesture recognition. Their model incorporated different attention components to improve the identification of important features from EMG signals. By assigning greater importance to relevant information, the architecture aimed to distinguish between

    different muscle activation patterns more effectively. Their work demonstrated the potential of combining CNN-based feature extraction with attention mechanisms for improving gesture recognition.

    Kok et al. [12] investigated machine learning-based feature extraction and classification methods for EMG signals in intuitive prosthetic control applications. Their study examined signal preprocessing techniques, including filtering and Discrete Wavelet Transform, together with statistical features such as Mean Absolute Value, Root Mean Square, and Waveform Length. Different classification algorithms were evaluated to identify suitable approaches for recognizing muscle activities. The research highlighted the importance of proper preprocessing and feature selection in developing reliable EMG-based prosthetic control systems.

    He et al. [13] investigated the use of wrist-based surface electromyography signals for gesture recognition as an alternative to conventional forearm-based signal acquisition. Their research explored the application of deep learning techniques to recognize hand movements using signals collected from the wrist region. This approach is relevant to wearable systems because electrode placement and user comfort are important factors in practical applications. Their study also emphasized the potential of deep learning in recognizing gestures under different signal acquisition conditions.

    1. Research Gap

      The above studies demonstrate the growing importance of deep learning in EMG-based muscle activity recognition. CNN architectures have shown their ability to extract meaningful features from input signals, while LSTM and BiLSTM networks are effective in learning temporal relationships. Similarly, attention mechanisms provide an opportunity to emphasize relevant information and improve feature representation.

      However, recognizing different hand and finger movements from EMG signals remains challenging because of the complex nature of muscle activation patterns and variations in signal characteristics. A model that focuses only on feature extraction may not fully capture temporal dependencies, while a model based only on sequential learning may not effectively identify all relevant local signal patterns.

      To address these challenges, the present research proposes a hybrid CNNBiLSTM architecture with an attention mechanism for EMG-based muscle activity recognition using the NinaPro DB2 dataset. The CNN component is employed to extract important features from multichannel EMG signals, while the BiLSTM network learns temporal relationships in both directions. An attention mechanism is incorporated to assign greater importance to informative features before the final classification stage. By combining these components, the proposed framework aims to achieve effective recognition of different hand and finger movements.

  3. PROBLEM STATEMENT AND RESEARCH OBJECTIVES

    1. Problem Statement

      Electromyography (EMG) signals provide important information about muscle activity and are widely utilized in biomedical applications. However, accurate recognition of muscle activities remains challenging due to the non-stationary characteristics of EMG signals, variations in muscle activation patterns, noise interference, and differences in individual physiological conditions. Conventional machine learning approaches often depend on manually extracted features, which may not adequately represent the complex temporal characteristics of EMG signals.

      Although deep learning techniques have demonstrated promising results in biomedical signal classification, there is a need to investigate more effective architectures that can automatically extract discriminative features and capture temporal dependencies in muscle activation patterns. In particular, the integration of convolutional neural networks, bidirectional long short-term memory networks, and attention mechanisms offers an opportunity to improve the representation and classification of complex EMG signals.

      Therefore, this research proposes an attention-enhanced hybrid CNNBiLSTM framework for automated muscle activity recognition. The objective is to develop an intelligent recognition model capable of extracting relevant signal features, learning temporal relationships, and identifying distinct muscle activity patterns with improved classification performance.

    2. Research Objectives

      The major objectives of the proposed research are:

      1. To develop an intelligent deep learning framework for automated muscle activity recognition using EMG signals.

      2. To investigate the application of one-dimensional Convolutional Neural Networks (1D-CNN) for automatic feature extraction from EMG signals.

      3. To integrate Bidirectional Long Short-Term Memory (BiLSTM) networks to capture temporal dependencies in muscle activation atterns.

      4. To incorporate an attention mechanism to identify significant features and improve the representation of EMG signal characteristics.

      5. To evaluate the proposed architecture using standard classification performance metrics, including accuracy, precision, recall, and F1-score.

      6. To compare the proposed hybrid architecture with existing deep learning approaches to assess its effectiveness in EMG- based muscle activity recognition.

    3. Research Contribution

      The proposed research investigates a hybrid deep learning architecture that combines CNN-based feature extraction, BiLSTM- based temporal learning, and attention-based feature representation for EMG muscle activity recognition. The integration of these components is intended to provide a comprehensive representation of muscle activation patterns and support accurate automated classification.

  4. PROPOSED METHODOLOGY

    The proposed methodology employs a hybrid 1D-CNNBiLSTM with Attention architecture for recognizing hand and finger movements using surface electromyography (sEMG) signals. The NinaPro DB2 dataset is used for signal acquisition. The acquired signals are preprocessed and passed through CNN for feature extraction, BiLSTM for temporal learning and an attention mechanism for identifying important features. Finally, a Softmax classifier predicts the corresponding movement.

    1. Algorithm of the Proposed System

      The overall operation of the proposed methodology can be summarized as follows:

      Algorithm 1: Attention-Enhanced CNNBiLSTM for EMG Muscle Activity Recognition Input: Raw EMG signals and corresponding activity labels.

      Output: Predicted muscle activity class.

      1. Acquire the EMG signals from the selected dataset.

      2. Apply appropriate filtering techniques to remove unwanted noise.

      3. Normalize the filtered signals.

      4. Divide the signals into fixed-length segments.

      5. Provide the segmented signals as input to the 1D-CNN network.

      6. Extract relevant features using convolutional and pooling layers.

      7. Pass the extracted feature sequences to the BiLSTM network.

      8. Learn forward and backward temporal dependencies.

      9. Apply the attention mechanism to assign weights to informative temporal features.

      10. Generate a weighted feature representation.

      11. Pass the representation through the fully connected classification layer.

      12. Apply Softmax to obtain class probabilities.

      13. Select the activity category with the highest probability.

        And then Evaluate the classification performance using standard metrics

        EMG Signal Acquisition

        The proposed system uses the NinaPro DB2 dataset, which contains surface electromyography (sEMG) signals collected from 40 healthy subjects performing different hand and finger movements.The dataset provides signals from 12 EMG electrodes positioned around the forearm.

        These multichannel signals capture muscle activation patterns associated with different hand movements. The recorded signals serve as input to the proposed deep learning model for automatic movement recognition.

        Signal Preprocessing

        Raw EMG signals may contain noise, unwanted variations and baseline disturbances. Therefore, preprocessing is performed before feature extraction.

        The preprocessing stage consists of:

        1. Filtering: Removes unwanted noise and signal disturbances.

        2. Normalization: Brings signal amplitudes into a consistent range.

        3. Segmentation: Divides continuous EMG signals into fixed-length windows of 200 ms with 50% overlap.

        4. Label Assignment: Associates each segmented signal with its corresponding hand or finger movement. The resulting segments are provided as input to the proposed hybrid network.

        Figure 1: Attention-Enhanced CNNBiLSTM for EMG Muscle Activity Recognition

        CNN-Based Feature Extraction

        A one-dimensional Convolutional Neural Network (1D-CNN) is employed to automatically extract relevant features from the preprocessed EMG signals.

        The convolutional layers identify local muscle activation patterns, while ReLU activation introduces non-linearity. Pooling operations can be used to reduce feature dimensions and computational complexity.

        The extracted feature representations are then passed to the BiLSTM network for temporal analysis.

        Bidirectional LSTM for Temporal Learning

        The extracted CNN features are supplied to a Bidirectional Long Short-Term Memory (BiLSTM) network.

        Unlike a conventional LSTM, BiLSTM processes sequential information in both forward and backward directions. This enables the network to learn temporal relationships from previous and subsequent signal segments.

        By combining information from both directions, the model develops a more comprehensive representation of muscle activation patterns associated with different movements.

        Attention Mechanism

        An attention mechanism is incorporated after the BiLSTM layer to identify the most relevant temporal features.

        The mechanism assigns different weights to the extracted features based on their contribution to movement recognition. Important features receive higher attention weights, while less informative features receive lower weights.

        The weighted feature representation is then forwarded to the classification layer.

        Movement Classification

        The attention-weighted features are passed through a fully connected layer followed by a Softmax classifier.

        The Softmax layer estimates the probability of each movement category. The class with the highest predicted probability is selected as the final recognized hand or finger movement.

        The model is trained using categorical cross-entropy loss and the Adam optimization algorithm

    2. Model Evaluation

      The proposed Hybrid CNNBiLSTM Attention model is evaluated using standard classification metrics to measure its effectiveness in recognizing hand and finger movements from EMG signals. The evaluation includes the following metrics:

      • Accuracy: Measures the overall percentage of correctly classified samples.

      • Precision: Measures the correctness of positive predictions.

      • Recall: Evaluates the model's ability to identify actual movement classes.

      • F1-Score: Represents the balance between precision and recall.

      • Confusion Matrix: Provides a detailed comparison between actual and predicted movement classes, helping identify correctly classified and misclassified movements.

      The confusion matrix is particularly useful for analyzing the classification performance of individual hand and finger movements. Training and validation accuracy are also monitored to assess the model's learning behavior and generalization capability.

      Figure 2: Illustrative Normalized Confusion Matrix for EMG Movement Recognition

  5. EXPERIMENTAL SETUP AND IMPLEMENTATION

    The proposed Hybrid CNNBiLSTM Attention model is implemented using the NinaPro DB2 dataset to recognize hand and finger movements from surface EMG signals.

    1. Dataset and Preprocessing

      The NinaPro DB2 dataset consists of EMG recorings from 40 healthy subjects using 12 electrodes placed around the forearm. The signals are filtered, normalized and segmented into 200 ms windows with 50% overlap. Each segment is assigned its corresponding movement label.

    2. Implementation Environment

      The model developed using Python with TensorFlow/Keras. NumPy, SciPy and Scikit-learn are used for data processing, signal preprocessing and performance evaluation.

    3. Model Training and Testing

      The dataset is divided into training (70%), validation (15%) and testing (15%) subsets using a subject-independent strategy. The model is trained using the Adam optimizer and categorical cross-entropy loss. Its performance is evaluated using accuracy, precision, recall, F1-score and confusion matrix analysis.

      Fig3: Implementation of Hybrid CNNBiLSTM Architecture with Attention Mechanism

  6. RESULTS AND DISCUSSION

    The proposed Hybrid CNNBiLSTM Attention model is evaluated using the NinaPro DB2 dataset. Its performance is analyzed and the results are used to examine the model's ability to distinguish different hand and finger movements.

    1. Performance Comparison

      The proposed model will be compared with individual CNN, LSTM, BiLSTM and CNNBiLSTM architectures to evaluate the contribution of the attention mechanism.

    2. Discussion

      The combination of CNN-based feature extraction, bidirectional temporal learning and attention-based feature selection is expected to provide an effective approach to EMG movement recognition. The actual improvement will be established through experimental results.

  7. CONCLUSION

    This paper proposes a hybrid deep learning architecture combining 1D-CNN, BiLSTM and an attention mechanism for EMG- based hand and finger movement recognition. The CNN extracts important muscle activation features, while BiLSTM captures temporal dependencies and attention highlights relevant information. The proposed approach aims to improve movement classification and provide a foundation for intelligent assistive and rehabilitation applications.

  8. FUTURE SCOPE

    Future work will focus on real-time EMG recognition, testing across larger and more diverse populations, reducing computational complexity and integrating the proposed model with prosthetic hand control systems.

  9. REFERENCES

  1. M. Atzori, A. Gijsberts, C. Castellini, B. Caputo, A.-G. Mittaz Hager, S. Elsig, G. Giatsidis, F. Bassetto, and H. Müller, Electromyography data for non- invasive naturally-controlled robotic hand prostheses, Scientific Data, vol. 1, Art. no. 140053, 2014, doi: 10.1038/sdata.2014.53.

  2. S. Hochreiter and J. Schmidhuber, Long short-term memory, Neural Computation, vol. 9, no. 8, pp. 17351780, 1997, doi: 10.1162/neco.1997.9.8.1735.

  3. M. Schuster and K. K. Paliwal, Bidirectional recurrent neural networks, IEEE Transactions on Signal Processing, vol. 45, no. 11, pp. 26732681, Nov. 1997, doi: 10.1109/78.650093.

  4. A. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, . Kaiser, and I. Polosukhin, Attention is all you need, in Advances in Neural Information Processing Systems, vol. 30, pp. 59986008, 2017.

  5. Y. LeCun, L. Bottou, Y. Bengio, and P. Haffner, Gradient-based learning applied to document recognition, Proceedings of the IEEE, vol. 86, no. 11, pp. 22782324, Nov. 1998, doi: 10.1109/5.726791.

  6. D. Buongiorno, G. D. Cascarano, I. De Feudis, A. Brunetti, L. Carnimeo, G. DiMauro, and V. Bevilacqua, Deep learning for processing electromyographic signals: A taxonomy-based survey, Neurocomputing, vol. 452, pp. 549565, 2021, doi: 10.1016/j.neucom.2020.06.139.

  7. Z. Zhang et al., "Dilated residual convolutional network for surface electromyographic hand gesture recognition," Biomedical Signal Processing and Control, 107438, 2025. DOI: 10.1016/j.bspc.2024.107438.

  8. W. Zhong et al., "Deep Feature Learning From Electromyographic Signals for Gesture Recognition Systems," IEEE Transactions on Neural Systems and Rehabilitation Engineering, vol. 34, pp. 2035, 2026. DOI: 10.1109/TNSRE.2025.3635419

  9. N. K. Karnam, S. R. Dubey, A. C. Turlapaty, and B. Gokaraju, EMGHandNet: A hybrid CNN and Bi-LSTM architecture for hand activity classification using surface EMG signals, Biocybernetics and Biomedical Engineering, vol. 42, no. 1, pp. 325340, 2022, doi: 10.1016/j.bbe.2022.02.005.

  10. P. Tamilvanan, V. K. Elumalai, E. Balaji, and D. Sandhiya, A surface electromyography based hand gesture recognition framework leveraging variational mode decomposition technique and deep learning classifier, Engineering Applications of Artificial Intelligence, vol. 130, Art. no. 107669, 2024, doi: 10.1016/j.engappai.2023.107669.

  11. Z. Zhang, Q. Shen, and Y. Wang, Electromyographic hand gesture recognition using convolutional neural network with multi-attention, Biomedical Signal Processing and Control, vol. 91, Art. no. 105935, 2024, doi: 10.1016/j.bspc.2023.105935.

  12. C. L. Kok, C. K. Ho, F. K. Tan, and Y. Y. Koh, Machine learning-based feature extraction and classification of EMG signals for intuitive prosthetic control,

    Applied Sciences, vol. 14, no. 13, Art. no. 5784, 2024, doi: 10.3390/app14135784.

  13. J. He, X. Niu, P. Zhao, C. Lin, and N. Jiang, From forearm to wrist: Deep learning for surface electromyography-based gesture recognition, IEEE Transactions on Neural Systems and Rehabilitation Engineering, vol. 32, pp. 102111, 2024, doi: 10.1109/TNSRE.2023.3341220

  14. B. Jiang et al., An efficient surface electromyography-based gesture recognition algorithm based on multiscale fusion convolution and channel attention,

Scientific Reports, vol. 14, Art. no. 30867, 2024, doi: 10.1038/s41598-024-81369-z