An Approach to ECG-based Gender Recognition Using Random Forest Algorithm

Keywords: random forest, gender classification, ECG


Human-Computer Interaction (HCI) has witnessed rapid advancements in signal processing research within the health domain, particularly in signal analyses like electrocardiogram (ECG), electromyogram (EMG), and electroencephalogram (EEG). ECG, containing diverse information about medical history, identity, emotional state, age, and gender, has exhibited potential for biometric recognition. The Random Forest method proves essential to facilitate gender classification based on ECG. This research delves into applying the Random Forest method for gender classification, utilizing ECG data from the ECG ID Database. The primary aim is to assess the efficacy of the Random Forest algorithm in gender classification. The dataset employed in this study comprises 10,000 features, encompassing both raw and filtered datasets, evaluated through 10-fold cross-validation with Random Forest Classification. Results reveal the highest accuracy for raw data at 55.000%, with sensitivity at 46.452% and specificity at 63.548%. In contrast, the filtered data achieved the highest accuracy of 65.806%, with sensitivity and specificity at 67.097%. These findings conclude that the most significant impact on gender classification in this study lies in the low sensitivity value in raw data. The implications of this research contribute to knowledge by presenting the performance results of the Random Forest algorithm in ECG-based gender classification.


Download data is not yet available.


P. Wang and J. Hu, “A hybrid model for EEG-based gender recognition,” Cogn Neurodyn, vol. 13, no. 6, pp. 541–554, Dec. 2019, doi: 10.1007/s11571-019-09543-y.

N. K. Al-Qazzaz, M. K. Sabir, S. H. Bin Mohd Ali, S. A. Ahmad, and K. Grammer, “Complexity and Entropy Analysis to Improve Gender Identification from Emotional-Based EEGs,” J Healthc Eng, vol. 2021, 2021, doi: 10.1155/2021/8537000.

E. Al Alkeem et al., “Robust Deep Identification using ECG and Multimodal Biometrics for Industrial Internet of Things,” Ad Hoc Networks, vol. 121, Oct. 2021, doi: 10.1016/j.adhoc.2021.102581.

J. L. Cabra, D. Mendez, and L. C. Trujillo, “Wide machine learning algorithms evaluation applied to ECG authentication and gender recognition,” in ACM International Conference Proceeding Series, Association for Computing Machinery, May 2018, pp. 6–12. doi: 10.1145/3230820.3230830.

R. Ku. Tripathy, A. Acharya, and S. Kumar Choudhary, “Gender Classification from ECG Signal Analysis using Least Square Support Vector Machine,” American Journal of Signal Processing, vol. 2, no. 5, pp. 145–149, Dec. 2012, doi: 10.5923/j.ajsp.20120205.08.

Z. Ahmad, A. Tabassum, L. Guan, and N. M. Khan, “ECG heartbeat classification using multimodal fusion,” IEEE Access, vol. 9, pp. 100615–100626, 2021, doi: 10.1109/ACCESS.2021.3097614.

T. V. Janahiraman and P. Subramaniam, “Gender classification based on asian faces using deep learning,” 2019 IEEE 9th International Conference on System Engineering and Technology, ICSET 2019 - Proceeding, pp. 84–89, Oct. 2019, doi: 10.1109/ICSENGT.2019.8906399.

C. Y. Chen et al., “Automated ECG classification based on 1D deep learning network,” Methods, vol. 202, pp. 127–135, Jun. 2022, doi: 10.1016/J.YMETH.2021.04.021.

S. R. Bajare and V. V. Ingale, “ECG Based Biometric for Human Identification using Convolutional Neural Network,” 2019 10th International Conference on Computing, Communication and Networking Technologies, ICCCNT 2019, Jul. 2019, doi: 10.1109/ICCCNT45670.2019.8944895.

C. Bohan and H. Yang, “ECG Signal Processing and Human State Detection Based on Wearable Electrodes,” in Journal of Physics: Conference Series, IOP Publishing Ltd, Jun. 2021. doi: 10.1088/1742-6596/1952/3/032055.

N. Feng, S. Xu, Y. Liang, and K. Liu, “A Probabilistic Process Neural Network and Its Application in ECG Classification,” IEEE Access, vol. 7, pp. 50431–50439, 2019, doi: 10.1109/ACCESS.2019.2910880.

B. Fatimah, G. Priyanka, R. Sultana, and N. Rekha, “Analysis of ECG for biometric identification,” 2020 11th International Conference on Computing, Communication and Networking Technologies, ICCCNT 2020, Jul. 2020, doi: 10.1109/ICCCNT49239.2020.9225361.

F. Murat, O. Yildirim, M. Talo, U. B. Baloglu, Y. Demir, and U. R. Acharya, “Application of deep learning techniques for heartbeats detection using ECG signals-analysis and review,” Comput Biol Med, vol. 120, p. 103726, May 2020, doi: 10.1016/J.COMPBIOMED.2020.103726.

Z. Qawaqneh, A. A. Mallouh, and B. D. Barkana, “Age and gender classification from speech and face images by jointly fine-tuned deep neural networks,” Expert Syst Appl, vol. 85, pp. 76–86, Nov. 2017, doi: 10.1016/j.eswa.2017.05.037.

J. Rwigema, J. Mfitumukiza, and K. Tae-Yong, “A hybrid approach of neural networks for age and gender classification through decision fusion,” Biomed Signal Process Control, vol. 66, p. 102459, Apr. 2021, doi: 10.1016/J.BSPC.2021.102459.

Y. Zhou, H. Ni, F. Ren, and X. Kang, “Face and gender recognition system based on convolutional neural networks,” Proceedings of 2019 IEEE International Conference on Mechatronics and Automation, ICMA 2019, pp. 1091–1095, Aug. 2019, doi: 10.1109/ICMA.2019.8816192.

M. V. Rajee and C. Mythili, “Gender classification on digital dental x-ray images using deep convolutional neural network,” Biomed Signal Process Control, vol. 69, p. 102939, Aug. 2021, doi: 10.1016/J.BSPC.2021.102939.

A. Krishnan, A. Almadan, and A. Rattani, “Understanding Fairness of Gender Classification Algorithms across Gender-Race Groups,” Proceedings - 19th IEEE International Conference on Machine Learning and Applications, ICMLA 2020, pp. 1028–1035, Dec. 2020, doi: 10.1109/ICMLA51294.2020.00167.

A. Venugopal, Y. O. Yadukrishnan, and R. N. Nair, “A SVM based Gender Classification from Children Facial Images using Local Binary and Non-Binary Descriptors,” Proceedings of the 4th International Conference on Computing Methodologies and Communication, ICCMC 2020, pp. 631–634, Mar. 2020, doi: 10.1109/ICCMC48092.2020.ICCMC-000117.

K. Yudhaprawira Halim, D. Turianto Nugrahadi, M. Reza Faisal, R. Herteno, and I. Budiman, “Gender Classification Based on Electrocardiogram Signals Using Long Short Term Memory and Bidirectional Long Short Term Memory,” Jurnal Ilmiah Teknik Elektro Komputer dan Informatika (JITEKI), vol. 9, no. 3, pp. 606–618, 2023, doi: 10.26555/jiteki.v9i3.26354.

E. H. A. Rady and A. S. Anwar, “Prediction of kidney disease stages using data mining algorithms,” Inform Med Unlocked, vol. 15, p. 100178, Jan. 2019, doi: 10.1016/J.IMU.2019.100178.

S. Baloch and M. S. Muhammad, “An Intelligent Data Mining-Based Fault Detection and Classification Strategy for Microgrid,” IEEE Access, vol. 9, pp. 22470–22479, 2021, doi: 10.1109/ACCESS.2021.3056534.

S. Sahoo, A. Subudhi, M. Dash, and S. Sabut, “Automatic Classification of Cardiac Arrhythmias Based on Hybrid Features and Decision Tree Algorithm,” International Journal of Automation and Computing, vol. 17, no. 4, pp. 551–561, Aug. 2020, doi: 10.1007/s11633-019-1219-2.

F. F. TALININGSIH, Y. N. FU’ADAH, S. RIZAL, A. RIZAL, and M. A. PRAMUDITO, “Sistem Otentikasi Biometrik Berbasis Sinyal EKG Menggunakan Convolutional Neural Network 1 Dimensi,” MIND Journal, vol. 7, no. 1, pp. 1–10, Jun. 2022, doi: 10.26760/mindjournal.v7i1.1-10.

N. Demir, M. Kuncan, Y. Kaya, and F. Kuncan, “Multi-Layer Co-Occurrence Matrices for Person Identification from ECG Signals,” Traitement du Signal, vol. 39, no. 2, pp. 431–440, Apr. 2022, doi: 10.18280/ts.390204.

T. S. Lugovaya, “Biometric human identification based on electrocardiogram,” Master’s thesis, Faculty of Computing Technologies and Informatics, Electrotechnical University ‘LETI’, Saint-Petersburg, Russian Federation, 2005.

U. Satija, B. Ramkumar, and M. S. Manikandan, “A review of signal processing techniques for electrocardiogram signal quality assessment,” IEEE Rev Biomed Eng, vol. 11, pp. 36–52, 2018.

B. Charbuty and A. Abdulazeez, “Classification based on decision tree algorithm for machine learning,” Journal of Applied Science and Technology Trends, vol. 2, no. 01, pp. 20–28, 2021.

I. Södergren, M. P. Nodeh, P. C. Chhipa, K. Nikolaidou, and G. Kovács, “Detecting COVID-19 from Audio Recording of Coughs Using Random Forests and Support Vector Machines.,” in Interspeech, 2021, pp. 916–920.

R. T. Yunardi, R. Apsari, and M. Yasin, “Comparison of Machine Learning Algorithm For Urine Glucose Level Classification Using Side-Polished Fiber Sensor,” Journal of Electronics, Electromedical Engineering, and Medical Informatics, vol. 2, no. 2, pp. 33–39, 2020.

P. Kulkarni, S. Umarani, V. Diwan, V. Korde, and P. P. Rege, “Child cry classification-an analysis of features and models,” in 2021 6th Interna

How to Cite
N. H. Arif, M. R. Faisal, A. Farmadi, D. Nugrahadi, F. Abadi, and U. A. Ahmad, “An Approach to ECG-based Gender Recognition Using Random Forest Algorithm”,, vol. 6, no. 2, pp. 107-115, Mar. 2024.
Research Paper