Skip to main content
QUICK REVIEW

[Paper Review] Predicting the Flu from Instagram

Oguzhan Gencoglu, Miíkka Ermes|arXiv (Cornell University)|Nov 27, 2018
Data-Driven Disease SurveillanceMedicine27 references5 citations
TL;DR

This study proposes a machine learning pipeline that leverages publicly available Instagram data—including text, hashtags, and image content via deep convolutional neural networks—to nowcast and forecast influenza-like illness (ILI) incidents in Finland. Using 317 weeks of data, the best model achieved a mean absolute error of 11.33 and a correlation of 0.963 in nowcasting, demonstrating that visual content from social media significantly enhances predictive accuracy in infodemiology.

ABSTRACT

Conventional surveillance systems for monitoring infectious diseases, such as influenza, face challenges due to shortage of skilled healthcare professionals, remoteness of communities and absence of communication infrastructures. Internet-based approaches for surveillance are appealing logistically as well as economically. Search engine queries and Twitter have been the primarily used data sources in such approaches. The aim of this study is to assess the predictive power of an alternative data source, Instagram. By using 317 weeks of publicly available data from Instagram, we trained several machine learning algorithms to both nowcast and forecast the number of official influenza-like illness incidents in Finland where population-wide official statistics about the weekly incidents are available. In addition to date and hashtag count features of online posts, we were able to utilize also the visual content of the posted images with the help of deep convolutional neural networks. Our best nowcasting model reached a mean absolute error of 11.33 incidents per week and a correlation coefficient of 0.963 on the test data. Forecasting models for predicting 1 week and 2 weeks ahead showed statistical significance as well by reaching correlation coefficients of 0.903 and 0.862, respectively. This study demonstrates how social media and in particular, digital photographs shared in them, can be a valuable source of information for the field of infodemiology.

Motivation & Objective

  • To evaluate the predictive power of Instagram data—particularly its visual content—for monitoring and forecasting influenza-like illness (ILI) incidents.
  • To address limitations in traditional surveillance systems, such as healthcare workforce shortages and infrastructure gaps in remote areas.
  • To explore whether deep learning models can effectively extract epidemiologically relevant signals from Instagram images and text.
  • To compare multiple machine learning algorithms in both nowcasting (current week estimation) and forecasting (1–2 week predictions) of official ILI statistics.

Proposed method

  • Collected 317 weeks of publicly available Instagram data from Finland, focusing on posts containing keywords related to influenza in Finnish.
  • Extracted temporal features (date), textual features (hashtag counts), and visual features using pre-trained deep convolutional neural networks (ResNet-50) on image content.
  • Performed image similarity search using 4 reference images (e.g., coughing, fever, flu symptoms) to identify and extract relevant visual patterns from user posts.
  • Trained and compared 9 machine learning models, including XGBoost, LightGBM, and LSTM networks, for both nowcasting and forecasting tasks.
  • Used correlation coefficient and mean absolute error (MAE) as evaluation metrics on test data to assess model performance.
  • Conducted feature importance analysis to quantify the contribution of image features relative to other input features, finding visual content contributed 12.1% to predictions.

Experimental results

Research questions

  • RQ1Can Instagram’s publicly available image and text data be effectively used to predict real-world influenza-like illness (ILI) incidence in a country with reliable surveillance data?
  • RQ2To what extent do visual features from Instagram images—extracted via deep learning—improve the accuracy of ILI prediction models compared to text and temporal features alone?
  • RQ3How does the inclusion of image content affect the performance of machine learning models in both nowcasting and short-term forecasting of ILI cases?
  • RQ4Can a model trained on a single language (Finnish) and a single country (Finland) generalize to other regions, and what are the limitations of such an approach?

Key findings

  • The best nowcasting model achieved a mean absolute error (MAE) of 11.33 incidents per week and a correlation coefficient of 0.963 with official ILI data.
  • Forecasting models for 1-week and 2-week predictions achieved correlation coefficients of 0.903 and 0.862, respectively, demonstrating statistical significance.
  • Incorporating image features reduced the test MAE from 13.83 to 11.33, indicating a measurable performance gain from visual content.
  • Image features contributed 12.1% to the overall predictive power, as determined by feature importance analysis.
  • The use of a limited set of 4 reference images for image similarity search suggests that performance could improve with a larger, more diverse set of reference images.
  • The study is the first to demonstrate the feasibility of using deep learning on social media images for forecasting influenza epidemics, highlighting a novel data source for infodemiology.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.