Abstract
The severity of the coronavirus pandemic necessitates the need of effective administrative decisions. Over 4 lakh people in India succumbed to COVID-19, with over 3 crore confirmed cases, and still counting. The threat of a plausible third wave continues to haunt millions. In this ever changing dynamic of the virus, predictive modeling methods can serve as an integral tool. The pandemic has further triggered an unprecedented usage of social media. This paper aims to propose a method for harnessing social media, specifically Twitter, to predict the upcoming scenarios related to COVID-19 cases. In this study, we seek to understand how the surges in COVID-19 related tweets can indicate rise in the cases. This prospective analysis can be utilised to aid administrators about timely resource allocation to lessen the severity of the damage. Using word embeddings to capture the semantic meaning of tweets, we identify Significant Dimensions (SDs). Our methodology predicts the rise in cases with a lead time of 15 days and 30 days with R2 scores of 0.80 and 0.62 respectively. Finally, we explain the thematic utility of the SDs.
Introduction
Pandemic surveillance is traditionally reactive. By the time clinical data—such as hospitalizations and positive test results—confirms a surge, the healthcare system is often already overwhelmed. While social media offers a real-time "pulse" of the population, extracting a clean, predictive signal from its inherent noise is a significant challenge. This study explores how the semantic shifts in Indian Twitter discourse can be transformed into a predictive signal for public health crises, specifically focusing on the devastating second wave driven by the Delta variant.
Methodology
Data Collection and Pre-processing
The researchers utilized two primary datasets: COVID-19 related tweets from the Panacea Lab repository (filtered for India between August 2020 and July 2021) and daily confirmed case counts from the Johns Hopkins University Center for Systems Science and Engineering (JHU CSSE).
To prepare the Twitter data for analysis, a multi-stage NLP pipeline was implemented. Tweets were cleaned by removing hashtags, URLs, mentions, and emojis, followed by tokenization and lemmatization to standardize the text.
Feature Engineering and Selection
Processed tweets were converted into 100-dimensional vectors using a Word2Vec model. To represent the collective discourse of a single day, the researchers averaged the vectors of all tweets from that day. Rather than using raw vector values, they calculated the 3-day rolling variance of these dimensions to capture the volatility and shifting nature of the conversation.
To identify which of the 100 dimensions were truly predictive, the team employed two methods:
- Cross-Correlation Function (CCF): To find dimensions that "lead" case counts temporally.
- Boruta Analysis: A Random Forest-based wrapper method used to identify the most relevant features while discarding statistical noise.
Key Insights and Results
Predictive Power
The researchers trained a Random Forest Regressor to predict new cases using the identified "Statistically significant Tweet dimensions" (STwD). The model demonstrated strong predictive power:
- 15-Day Lead Time: Achieved an $R^2$ score of 0.67, explaining a significant portion of the variance in future case counts.
- 30-Day Lead Time: Achieved an $R^2$ score of 0.47, providing a meaningful early warning a full month in advance.
Thematic Utility
Explainability analysis revealed that the most predictive dimensions mapped directly to real-world concerns. For example, Dimension 3 was associated with terms like "government" and "failure," reflecting administrative anxiety. Dimensions 14 and 26 were linked to "ventilator," "ICU," and "oxygen," capturing the resource scarcity that defined the peak of the second wave.
Conclusion
This study demonstrates that the variance in social media discourse is a potent predictor of epidemiological trends. By identifying semantic clusters and thematic shifts in real-time, administrators can gain a 15-to-30-day lead time to allocate resources more effectively. Future work will look toward incorporating Transformer-based models like BERT and expanding the analysis to include vernacular languages to capture a more comprehensive signal of the public's health concerns.
Summary updated