Research Article Open Access

Deep Learning Synergy: CNNs and Transformers for Epidemic Outbreak Forecasting

Alexander R.1, Shakthi Priya V.1, Sumathi G.2, Mary Valentina Janet A.1, Reni Hena Helan R.3 and Sinduja R.1
  • 1 Department of Computer Science and Engineering, St. Joseph’s College of Engineering, Chennai, India
  • 2 Department of Computer Science and Engineering, SRM Institute of Science and Technology, Chennai, India
  • 3 Department of Computer Science and Engineering, Dhanalakshmi College of Engineering, Chennai, India

Abstract

An Accurate prediction of outbreaks is extremely crucial for taking proactive public health interventions, distributing limited resources, and controlling a disease. This paper assesses and also compares the performances of the available deep learning models, namely, Convolutional Neural Network (CNN), Long Short-Term Memory (LSTM) networks, and Bidirectional Long Short-Term Memory (BiLSTM) networks, in predicting. CNNs are best for feature extraction from medical data, while LSTMs and BiLSTM take care of temporal dependencies in sequential epidemiological data. These models have been shown to struggle at the integration of spatial, temporal, and contextual factors at once, yielding lowered predictive efficiency. A hybrid model, CNN-Transformer, leverages the spatial feature extraction ability of CNNs and the self-attention mechanism of Transformers to identify long-range dependencies and multi-source epidemiological patterns. Our approach integrates feature fusion techniques for abroader understanding of diseases' spread. Experimental results demonstrates that the proposed CNN-Transformer hybrid model outperforms standard CNN, LSTM, and BiLSTM architectures halfway through predicting outbreaks of diseases like COVID-19, Tuberculosis, Influenza, Dengue, and Measles. This study clearly illustrates the promise of hybrid deep learning models towards improving the accuracy of prediction of epidemics and the advancement of epidemic disease-surveillance systems. The time-series epidemic dataset is used for outbreak forecasting, and the hybrid model achieves an overall accuracy of 98.0%.

Journal of Computer Science
Volume 21 No. 12, 2025, 3019-3030

DOI: https://doi.org/10.3844/jcssp.2025.3019.3030

Submitted On: 5 July 2025 Published On: 23 January 2026

How to Cite: R., A., V., S. P., G., S., A., M. V. J., R., R. H. H. & R., S. (2025). Deep Learning Synergy: CNNs and Transformers for Epidemic Outbreak Forecasting. Journal of Computer Science, 21(12), 3019-3030. https://doi.org/10.3844/jcssp.2025.3019.3030

  • 31 Views
  • 4 Downloads
  • 0 Citations

Download

Keywords

  • Epidemic Prediction
  • Deep Learning Models
  • CNN-Transformer Hybrid Model
  • Self-Attention Mechanism
  • Feature Fusion