Seasonal antigenic prediction of influenza A H3N2 using machine learning

Syed Awais Wahab Shah, Daniel P. Palomar, Ian Barr, Leo L. M. Poon, Ahmed Abdul Quadeer, Matthew R. McKay

Abstract

Antigenic characterization of circulating influenza A virus (IAV) isolates is routinely assessed by using the hemagglutination inhibition (HI) assays for surveillance purposes. It is also used to determine the need for annual influenza vaccine updates as well as for pandemic preparedness. Performing antigenic characterization of IAV on a global scale is confronted with high costs, animal availability, and other practical challenges. Here we present a machine learning model that accurately predicts (normalized) outputs of HI assays involving circulating human IAV H3N2 viruses, using their hemagglutinin subunit 1 (HA1) sequences and associated metadata. Each season, the model learns an updated nonlinear mapping of genetic to antigenic changes using data from past seasons only. The model accurately distinguishes antigenic variants from non-variants and adaptively characterizes seasonal dynamics of HA1 sites having the strongest influence on antigenic change. Antigenic predictions produced by the model can aid influenza surveillance, public health management, and vaccine strain selection activities.

Introduction

The global surveillance of influenza A virus (IAV) is a critical public health endeavor, primarily aimed at informing the selection of vaccine strains for annual updates. The World Health Organization (WHO) coordinates this effort through Vaccine Composition Meetings (VCMs), where experts analyze the antigenic properties of circulating strains. The gold standard for this analysis is the Hemagglutination Inhibition (HI) assay, which measures the ability of specific antisera to neutralize the virus. However, HI assays are resource-intensive, requiring specialized animal facilities and significant time, which often lags behind the rapid antigenic drift of H3N2 viruses. While genetic sequencing is now fast and inexpensive, the relationship between a virus's genetic code and its antigenic profile is non-linear and complex. This study presents a machine learning framework to bridge this gap, predicting HI assay results directly from sequence data.

Methods

The researchers developed a machine learning framework based on Random Forest (RF) regression to predict antigenic distances—specifically normalized HI titers (NHTs)—directly from viral genetic sequences and associated metadata.

Overview of the machine learning pipeline for seasonal antigenic prediction, including data collection, feature encoding, and model evaluation.

The model operates within a "seasonal framework," mimicking the real-world decision-making process by training only on data available prior to a target season. The study utilized a massive longitudinal dataset of 36,709 NHTs from 35 biannual reports (2003–2021) published by the Worldwide Influenza Centre. Genetic features were derived from the HA1 subunit (the "head" of the virus) and encoded using mutation matrices from the AAindex2 database to capture biochemical similarities between amino acids. Crucially, the model incorporates experimental metadata, such as passage history (egg vs. cell culture), which is known to introduce antigenic artifacts that can mask a virus's true profile in humans.

Key Results and Insights

The RF model demonstrated high predictive accuracy and robustness across various testing scenarios:

  • Prediction Accuracy: The model achieved a Mean Absolute Error (MAE) of 0.738 antigenic units (where 1 unit represents a 2-fold change in HI titer).
  • Classification Power: In the critical task of identifying "drifted" variants (those with ≥ 3 units of antigenic distance), the model achieved an Area Under the Receiver Operating Characteristic (AUROC) curve of 92%.
  • The "Two-Season" Rule: A key finding was that training on the most recent two seasons of data provided performance comparable to using the entire historical dataset. This reflects the rapid evolutionary turnover of H3N2, where older data eventually becomes biologically irrelevant.
  • Metadata Importance: The inclusion of passage history significantly improved model performance. By learning to account for mutations that occur when a virus adapts to growing in eggs, the model can better isolate true antigenic drift.
  • Identifying Drivers of Change: The model successfully identified 37 amino acid sites in the HA1 subunit that drive antigenic change. While most were located in known antibody binding sites (epitopes), others were nearby sites that likely influence the protein's overall shape.

Discussion and Conclusion

By capturing non-linear epistatic interactions—where the effect of one mutation depends on another—the Random Forest approach outperformed traditional linear substitution models like NextFlu. This confirms that the "fitness landscape" of influenza is rugged and requires sophisticated modeling to navigate accurately.

While data sparsity in seasons prior to 2012 remains a limitation, the framework's ability to maintain high predictive power even with reduced training data suggests it is a viable tool for real-time influenza surveillance. Furthermore, the authors showed that adding just 10% of current-season lab data could "rescue" performance during periods of extreme antigenic drift. This machine learning approach provides a scalable, accurate alternative to traditional HI assays, potentially streamlining the global vaccine strain selection process and enhancing pandemic preparedness.

Summary updated

BibTeX
@inproceedings{shah2024seasonal,
  author = {Syed Awais Wahab Shah and Daniel P. Palomar and Ian Barr and Leo L. M. Poon and Ahmed Abdul Quadeer and Matthew R. McKay},
  title = {{Seasonal antigenic prediction of influenza A H3N2 using machine learning}},
  booktitle = {Nature Communications},
  year = {2024},
  doi = {10.1038/s41467-024-47862-9},
}
Figure