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.

The Challenge of Antigenic Drift

Influenza viruses are moving targets. Through a process called antigenic drift, the virus accumulates genetic mutations that allow it to escape the immunity built up from previous infections or vaccinations. To maintain vaccine efficacy, the World Health Organization (WHO) holds Vaccine Composition Meetings twice a year to decide which strains should be included in the next season's shot.

Currently, this decision relies heavily on the Hemagglutination Inhibition (HI) assay. This laboratory test measures how well antibodies (typically from ferrets) neutralize a specific virus isolate. However, HI assays are slow, expensive, and require specialized animal resources. There is a critical need for computational tools that can analyze a virus's genetic sequence and accurately predict its antigenic properties before lab work is completed.

A Seasonal Machine Learning Framework

Researchers developed a machine learning model based on AdaBoost (an ensemble of decision trees) to address this gap. A defining feature of this approach is its seasonal framework: unlike previous models that randomly sampled data across time, this model is trained strictly on "past" seasons to predict the "current" one, mimicking the actual constraints faced by health officials during surveillance cycles.

Overview of the seasonal prediction framework, AdaBoost model architecture, and the encoding process for genetic and metadata features.

Key technical components include:

  • Feature Encoding: Instead of simple one-hot encoding, the model uses the AAindex2 mutation matrix to represent amino acid changes, capturing the biochemical "distance" between mutations.
  • Metadata Integration: The model incorporates metadata often ignored by other tools, such as virus avidity, antiserum potency, and passage category (whether the virus was grown in eggs or cell cultures).
  • Non-linear Mapping: The model learns a non-linear relationship between genetic changes in the Hemagglutinin (HA1) protein and the resulting change in antigenic "distance," measured in Normalized HI Titers (NHTs).

Performance and Key Results

The study utilized a massive dataset spanning 37 influenza seasons (2003–2021), including over 36,000 virus-antiserum pairs. The optimized model achieved a Mean Absolute Error (MAE) of 0.702 antigenic units. In this field, one unit represents a two-fold change in antibody neutralization; an error under 1.0 is considered highly accurate.

Model performance (AUROC) in distinguishing antigenic variants across multiple Northern (NH) and Southern (SH) Hemisphere seasons.

As shown in the performance metrics, the model achieved an average AUROC of 92% in distinguishing "antigenic variants" (strains requiring a vaccine update) from "non-variants." It consistently outperformed linear models like NextFlu and other ensemble methods like Random Forests.

Insights and Limitations

Analysis of the model revealed several critical insights:

  • Metadata is Essential: Incorporating experimental metadata (like egg-adaptation) significantly boosted performance by allowing the model to account for lab-induced biases.
  • Biological Relevance: The model identified specific sites on the HA1 protein as primary drivers of antigenic change. Most of these sites mapped directly to known epitopes, confirming the model's biological validity.
  • The 10% Solution: While accuracy can dip during massive drift events, including just 10% of the current season's data in the training set restored high performance, suggesting a viable hybrid surveillance strategy.

Despite its success, the model faces challenges with "black swan" evolutionary events where the virus mutates in completely novel ways. Future work aims to incorporate data from the HA2 subunit and Neuraminidase (NA) protein, as well as explicitly accounting for epistasis—where the effect of one mutation depends on another.

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