Automated Detection of COVID-19 Cough Sound using Mel-Spectrogram Images and Convolutional Neural Network

Muhammad Fauzan Nafiz, Dwi Kartini, Mohammad Reza Faisal, Fatma Indriani, Triando Hamonangan Saragih


COVID-19 disease is known as a new disease caused by the Severe Acute Respiratory Syndrome Coronavirus 2 (SARS-CoV-2) variant. The initial symptoms of the disease commonly include fever (83-98%), fatigue or myalgia, dry cough (76-82%), and shortness of breath (31-55%). Given the prevalence of coughing as a symptom, artificial intelligence has been employed as a means of detecting COVID-19 based on cough sounds. This study aims to compare the performance of six different Convolutional Neural Network (CNN) models (VGG-16, VGG-19, LeNet-5, AlexNet, ResNet-50, and ResNet-152) in detecting COVID-19 using mel-spectrogram images derived from cough sounds. The training and validation of these CNN models were conducted using the Virufy dataset. Audio data was processed to generate mel-spectrogram images, which were subsequently employed as inputs for the CNN models. The AlexNet model, utilizing an input size of 227x227, exhibited the best performance with the highest Area Under the Curve (AUC) value of 0.930303. This study provides compelling evidence of the efficacy of CNN models in detecting COVID-19 based on cough sounds through the utilization of mel-spectrogram images. Furthermore, the study underscores the impact of input size on model performance. The primary contribution of this research lies in identifying the CNN model that demonstrates the best performance in COVID-19 detection based on cough sounds. Additionally, this study establishes the fundamental groundwork for selecting an appropriate CNN methodology for early detection of COVID-19.


Automated detection; COVID-19; Cough sound; Mel-spectrogram images; Convolutional neural network; Machine learning; Deep learning; Respiratory diseases; Medical diagnosis; Audio analysis

Full Text:




  • There are currently no refbacks.

Copyright (c) 2023 Muhammad Fauzan Nafiz, Dwi Kartini, Mohammad Reza Faisal, Fatma Indriani, Triando Hamonangan Saragih

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

About the JournalJournal PoliciesAuthor Information

Jurnal Ilmiah Teknik Elektro Komputer dan Informatika
ISSN 2338-3070 (print) | 2338-3062 (online)
Organized by Electrical Engineering Department - Universitas Ahmad Dahlan
Published by Universitas Ahmad Dahlan
Email 1:
Email 2:
Office Address: Kantor Program Studi Teknik Elektro, Lantai 6 Sayap Barat, Kampus 4 UAD, Jl. Ringroad Selatan, Tamanan, Kec. Banguntapan, Bantul, Daerah Istimewa Yogyakarta 55191, Indonesia