HAHassan Ashraf

Hassan Ashraf

*This is an algorithmically generated author record based on publicly available information.

Current Organizations / Institutes

The organizations/institutes from the scholar's latest article

Previous Organizations / Institutes

The organizations / institutes from the scholar's other articles in the past ten years


Hassan Ashraf has a total of 17 co-authors. Here are the top co-authors by number of shared publications:


Latest Publications

  • Open Access

    Enhancing ECG disease detection accuracy through deep learning models and P-QRS-T waveform features

    by Rida Nayyab, Asim Waris, Iqra Zaheer, Muhammad Jawad Khan, Fawwaz Hazzazi, Muhammad Adeel Ijaz, Hassan Ashraf, Syed Omer Gilani

    Cardiovascular diseases (CVDs) have surpassed cancer and become the major cause of death worldwide. An electrocardiogram (ECG) is a non-invasive and quicker method for diagnosing abnormal heart conditions. While research has extensively focused on ECG analysis for disease classification, it has been primarily directed toward binary classification or classification of Arrhythmias, highlighting the dire need for detailed classification models. This study utilises the extensive PTB-XL database ECG records to develop a robust method for classifying various heart abnormalities. The data with unique labels is filtered through the Butterworth bandpass filter and Discrete Wavelet Transform (DWT) db-8. The R-peaks of the clean signal were used to detect the subsequent morphological features, i.e., P-QRS-T intervals and amplitudes. The feature set was balanced using the Synthetic Minority Oversampling Technique for Nominal and Continuous (SMOTE-NC) and fed into Convolutional Neural Network (CNN) and Deep Neural Network (DNN) with 5-fold cross-validation. The models classified the ECG records into one normal and four abnormal classes: Conduction Disturbance (CD), Myocardial Infarction (MI), Hypertrophy (HYP), and ST-T Changes (STTC). Performance metrics such as F1 score, recall, precision, and accuracy were evaluated for each model. The CNN model achieved a mean accuracy of 81% ± 0.03, while the DNN model achieved a mean accuracy of 84% ± 0.01. One key finding is that Hypertrophy (HYP) was consistently classified with up to 98% accuracy. Thus, the study demonstrates the effectiveness of combining advanced signal processing and deep learning techniques for precise multi-class heart disease classification using P-QRS-T features, paving the way for future real-time clinical applications.


  • Evaluation of windowing techniques for intramuscular EMG-based diagnostic, rehabilitative and assistive devices

    by Hassan Ashraf, Asim Waris, Syed Omer Gilani, Amer Sohail Kashif, Mohsin Jamil, Mads Jochumsen, Imran Khan Niazi

    Objective. Intramuscular electromyography (iEMG) signals, invasively recorded, directly from the muscles are used to diagnose various neuromuscular disorders/diseases and to control rehabilitative and assistive robotic devices. iEMG signals are potentially being used in neurology, kinesiology, rehabilitation and ergonomics, to detect/diagnose various diseases/disorders. Electromyography-based classification and analysis systems are being designed and tested for the classification of various neuromuscular disorders and to control rehabilitative and assistive robotic devices. Many studies have explored parameters such as the pre-processing, feature extraction and selection of classifiers that can affect the performance and efficacy of iEMG-based classification systems. The pre-processing stage includes the removal of any unwanted noise from the original signal and windowing of the signal. Approach. This study investigated and presented the optimum windowing configurations for robust control and better performance results of an iEMG-based analysis system based on the stationarity rate (SR) and classification accuracy. Both disjoint and overlap, windowing techniques with varying window and overlap sizes have been investigated using a machine learning-based classification algorithm called linear discriminant analysis. Main results. The optimum window size ranges are from 200–300 ms for the disjoint and 225–300 ms for the overlap windowing technique, respectively. The inferred results show that for the overlap windowing technique the optimum range of overlap size is from 10%–30% of the length of window size. The mean classification accuracy (MCA) and mean stationarity rate (MSR) were found to be lower in the disjoint windowing technique compared to overlap windowing at all investigated overlap sizes. Statistical analysis (two-way analysis of variance test) showed that the MSR and MCA of the overlap windowing technique was significantly different at overlap sizes of 10%–30% ( p -values < 0.05). Significance. The presented results can be used to achieve the best possible classification results and SR for any iEMG-based real-time diagnosis, detection and control system, which can enhance the performance of the system significantly.


  • Open Access

    Determination of Optimum Segmentation Schemes for Pattern Recognition-Based Myoelectric Control: A Multi-Dataset Investigation

    by Hassan Ashraf, Asim Waris, Mohsin Jamil, Syed Omer Gilani, Imran Khan Niazi, Ernest Nlandu Kamavuako, Hammad Nazeer, Syed Hammad Nazeer Gilani

    Pattern recognition (PR) algorithms have shown promising results for upper limb myoelectric control (MEC). Several studies have explored the efficacy of different pre and post processing techniques in implementing PR-based MECs. This paper explores the effect of segmentation type (disjoint and overlap) and segment size on the performance of PR-based MEC, for multiple datasets recorded with different recording devices. Two PR-based methods; linear discriminant analysis (LDA) and support vector machine (SVM) are used to classify hand gestures. Optimum values of segment size, step size and segmentation type were considered as performance measure for a robust MEC. Statistical analysis showed that optimum values of segment size for disjoint segmentation are between 250ms and 300ms for both LDA and SVM. For overlap segmentation, best results have been observed in the range of 250ms-300ms for LDA and 275ms-300ms for SVM. For both classifiers the step size of 20% achieved highest mean classification accuracy (MCA) on all datasets for overlap segmentation. Overall, there is no significant difference in MCA of disjoint and overlap segmentation for LDA (P-value = 0.15) but differ significantly in the case of SVM (P-value < 0.05). For disjoint segmentation, MCA of LDA is 88.68% and for SVM, it is 77.83%. Statistical analysis showed that LDA outperformed SVM for disjoint segmentation (P-value < 0.05). For overlap segmentation, MCA of LDA is 89.86% and for SVM, it is 89.16%, showing that statistically, there is no significant difference between MCA of both classifiers for overlap segmentation (P-value = 0.45). The indicated values of segment size and overlap size can be used to achieve better performance results, without increasing delay time, for a robust PR-based MEC system.


  • Open Access

    Performance Evaluation of Convolutional Neural Network for Hand Gesture Recognition Using EMG

    by Ali Raza Asif, Asim Waris, Syed Omer Gilani, Mohsin Jamil, Hassan Ashraf, Muhammad Shafique, Imran Khan Niazi

    Electromyography (EMG) is a measure of electrical activity generated by the contraction of muscles. Non-invasive surface EMG (sEMG)-based pattern recognition methods have shown the potential for upper limb prosthesis control. However, it is still insufficient for natural control. Recent advancements in deep learning have shown tremendous progress in biosignal processing. Multiple architectures have been proposed yielding high accuracies (>95%) for offline analysis, yet the delay caused due to optimization of the system remains a challenge for its real-time application. From this arises a need for optimized deep learning architecture based on fine-tuned hyper-parameters. Although the chance of achieving convergence is random, however, it is important to observe that the performance gain made is significant enough to justify extra computation. In this study, the convolutional neural network (CNN) was implemented to decode hand gestures from the sEMG data recorded from 18 subjects to investigate the effect of hyper-parameters on each hand gesture. Results showed that the learning rate set to either 0.0001 or 0.001 with 80-100 epochs significantly outperformed (p < 0.05) other considerations. In addition, it was observed that regardless of network configuration some motions (close hand, flex hand, extend the hand and fine grip) performed better (83.7% ± 13.5%, 71.2% ± 20.2%, 82.6% ± 13.9% and 74.6% ± 15%, respectively) throughout the course of study. So, a robust and stable myoelectric control can be designed on the basis of the best performing hand motions. With improved recognition and uniform gain in performance, the deep learning-based approach has the potential to be a more robust alternative to traditional machine learning algorithms.