Implementation of K-Nearest Neighbor to Predict the Chances of COVID-19 Patients’ Recovery
Salma Nurzaqiah, Ichsan Taufik, Dian Sa’adillah Maylawati, Wildan Budiawan Zulfikar, Popon Dauni · 2022
Coronavirus Disease 2019 (COVID-19) is a new disease discovered in 2019 in Wuhan, China, and then spread worldwide. Many victims have confirmed varying positive levels of infection based on the patient’s immunity. This study aimed to predict the chances of COVID-19 patients’ recovery based on the patient’s symptoms and conditions. The method used is the K-Nearest Neighbor (KNN) algorithm. KNN produces two classes of predictions: the chance of recovering or the possibility of dying. Based on the experimental results on 496 data from patients who were confirmed positive for COVID-19, KNN predicted the chances of recovery for patients with confirmed COVID-19 with an average accuracy of 88.16%. A prediction system for the chance of recovery for COVID-19 patients is constructed by choosing the best model from five test scenarios based on the given k value. The best model is at a value of k equal to 4, with an accuracy value of 88.8%.