In this study, a comprehensive analysis of classical linear regression forecasting models and deep learning techniques for predicting coronavirus disease of 2019 (COVID-19) pandemic data was presented. Among the deep learning models, the long short-term memory (LSTM) neural network demonstrated superior performance, delivering accurate predictions with minimal errors. The neural network effectively addressed overfitting and underfitting issues through rigorous tuning. However, the diversity of countries and dataset attributes posed challenges in achieving universally optimal predictions. The current study explored the application of the LSTM in predicting healthcare resource demand and optimizing hospital management to provide potential solutions for overcrowding and cost reduction. The results showed the importance of leveraging advanced deep learning techniques for improved COVID-19 forecasting and extending the application of the models to address broader healthcare challenges beyond the pandemic. To further enhance the model performance, future work needed to incorporate additional attributes, such as vaccination rates and immune percentages.