Sensor technology advancements have provided a viable solution to fight COVID and to develop healthcare systems based on Internet of Things (IoTs). In this study, image processing and Artificial Intelligence (AI) are used to improve the IoT framework. Computed Tomography (CT) image‐based forecasting of COVID disease is among the important activities in medicine for measuring the severity of variability in the human body. In COVID CT images, the optimal gamma correction value was optimised using the Whale Optimisation Algorithm (WOA). During the search for the optimal solution, WOA was found to be a highly efficient algorithm, which has the characteristics of high precision and fast convergence. Whale Optimisation Algorithm is used to find best gamma correction value to present detailed information about a lung CT image, Also, in this study, analysis of important AI techniques has been done, such as Support Vector Machine (SVM) and Deep‐Learning (Deep‐Learning (DL)) for COVID disease forecasting in terms of amount of data training and computational power. Many experiments have been implemented to investigate the optimisation: SVM and DL with WOA and without WOA are compared by using confusion matrix parameters. From the results, we find that the DL model outperforms the SVM with WOA and without WOA.