Skip to content
Go to insights Blog

Viral Escape

Viral Escape
Written by
Data Science Lab
Published on
17 August 2021
We're almost there. By now, almost everyone in the Netherlands has had the chance to get vaccinated, the 1.5-metre distancing rule is being lifted, and the government aims to lift the other measures too. That sounds like the end of the pandemic, doesn't it? Unfortunately, SARS-CoV-2 (the coronavirus that causes COVID-19) mutates rapidly, just like the flu virus. Alongside those thousands of mutations, we have also seen several variants of SARS-CoV-2, including the alpha, beta, gamma and (currently the most common) delta variant. Fortunately, most vaccines also work well against the new variants of the virus. But what if that changes? A "viral escape" is a worst-case scenario in which the virus mutates just enough for existing antibodies to stop recognising it. The consequences are serious: such a dangerous mutation would evade the immune systems of people who have been vaccinated (or previously infected). In short, we would be back to square one.

A depiction of virus particles with protrusions.

How artificial intelligence can help

To avoid this scenario, it is important to identify which of the thousands of mutations could pose a serious threat, so that vaccine development can respond as quickly as possible. Artificial intelligence (AI) can help. Researchers at MIT have developed a new way to model ‘viral escapes’ using models originally built to analyse language: the familiar Natural Language Processing (NLP) models.

The idea behind using an NLP model in this case is as follows: viruses mutate in ways that follow the biological rules of protein structure, while also favouring their own survival. For example, SARS-CoV-2 mutates in the spike protein shown in the image below. People who have recently had COVID-19 or been vaccinated currently have antibodies that fit the spike protein. As a result, SARS-CoV-2 virus cells can no longer make contact with human cells, and someone becomes infected. The virus therefore aims to mutate its spike proteins quickly so that the antibodies no longer fit, but the receptors on human cells still do. It needs to mutate in a way that lets it escape the human immune system (the antibodies) without dying or losing its ability to reproduce. Similarly, for an NLP model, a sentence must not only have the right meaning (semantics), but also be grammatically correct (syntax). Using those same two principles, the researchers have creatively adapted NLP models to detect changes in the genetic code of viruses.

Diagram of a coronavirus binding to a human cell via its spike protein.

An example

The example below illustrates how the NLP model estimates which virus mutations could lead to viral escape. The first sentence represents the virus before it mutates. The second sentence (from the left) shows a small mutation. Its meaning has barely changed, and the sentence is grammatically correct. With this mutation, the new virus still resembles the original closely enough for the immune system to recognise and attack it. No new antibodies are needed. The third sentence is grammatically incorrect. In the language of the virus, such a mutation would be considered unsuccessful. The last sentence is where the danger lies. It is grammatically correct and has the right semantics. These are the exceptions that the NLP model estimates could lead to viral escape. The researchers call the search for these exceptions 'constrained semantic change search' (CSCS).

Four versions of the same sentence, ordered from the original to nonsense.

NLP model and training

Of course, the actual NLP model was not trained on sentences, but on the building blocks of various spike proteins from coronaviruses: amino acid sequences. The training set contained just under 1,000 sequences of the SARS-CoV-2 spike protein and a further 3,000 spike protein amino acid sequences from other types of coronavirus. The NLP model is shown in the image below. Internally, the model constructs a semantic representation, also known as an “embedding”, for a given amino acid sequence. The model’s output shows how well an amino acid fits the “grammar” of the sequence. In the image, the amino acid that fits the sequence best grammatically is marked with a capital A.

Diagram of a language model evaluating protein sequences.

Testing

Of the 891 different coronavirus spike protein amino acid sequences the researchers examined with the model, one came from a strain that reinfected someone who had recovered from Covid-19 the previous year. This sequence was quickly ranked highly by the CSCS. Only three other sequences in the set showed both greater semantic change and greater so-called grammaticality. The researchers also fed some of the new variants into their algorithm and found that both the South African and British strains scored "quite high" for their likelihood of escape.

How viral escape can be prevented

What now? If new mutations are tracked closely and the algorithm is used to assess the threat they pose, researchers can test suspicious strains in the laboratory as quickly as possible and adjust the vaccines accordingly. The test works as follows. Suspicious strains are brought together with antibodies. If the antibodies do not bind to the spike proteins, the current antibodies no longer offer protection. It is still unclear how much time vaccine developers would actually save with an AI-based approach like this. What we do know is that, in a pandemic on this scale, every second counts.

References

  1. Hie, Brian, et al. "Learning the language of viral evolution and escape." Science371.6526 (2021): 284-288. DOI: 10.1126/science.abd7331
  2. https://singularityhub.com/2021/01/19/a-language-ai-is-accurately-predicting-covid-19-escape-mutations/
  3. https://spectrum.ieee.org/ai-predicts-most-potent-covid-19-mutations
  4. https://news.mit.edu/2021/model-viruses-escape-immune-0114
  5. https://qz.com/africa/1995639/scientists-use-algorithms-to-predict-new-covid-19-variants/
Blog

You may also find this interesting,

Sign up for our newsletter.

Want to be the first to hear about a new blog post?

Enter a valid email address.