Application of machine learning for the diagnosis of COVID-19