Recently, the infectious disease COVID-19 remains to have a catastrophic effect on the lives of human beings all over the world. To combat this deadliest disease, it is essential to screen the affected people quickly and least inexpensively. Radiological examination is considered the most feasible step toward attaining this objective; however, chest X-ray (CXR) and computed tomography (CT) are the most easily accessible and inexpensive options. This paper proposes a novel ensemble deep learning-based solution to predict the COVID-19-positive patients using CXR and CT images. The main aim of the proposed model is to provide an effective COVID-19 prediction model with a robust diagnosis and increase the prediction performance. Initially, pre-processing, like image resizing and noise removal, is employed using image scaling and median filtering techniques to enhance the input data for further processing. Various data augmentation styles, such as flipping and rotation, are applied to capable the model to learn the variations during training and attain better results on a small dataset. Finally, a new ensemble deep honey architecture (EDHA) model is introduced to effectively classify the COVID-19-positive and -negative cases. EDHA combines three pre-trained architectures like ShuffleNet, SqueezeNet, and DenseNet-201, to detect the class value. Moreover, a new optimization algorithm, the honey badger algorithm (HBA), is adapted in EDHA to determine the best values for the hyper-parameters of the proposed model. The proposed EDHA is implemented in the Python platform and evaluates the performance in terms of accuracy, sensitivity, specificity, precision, f1-score, AUC, and MCC. The proposed model has utilized the publicly available CXR and CT datasets to test the solution’s efficiency. As a result, the simulated outcomes showed that the proposed EDHA had achieved better performance than the existing techniques in terms of Accuracy, Sensitivity, Specificity, Precision, F1-Score, MCC, AUC, and Computation time are 99.1%, 99%, 98.6%, 99.6%, 98.9%, 99.2%, 0.98, and 820 s using the CXR dataset.