DeepAIR: a deep-learning framework for effective integration of sequence and 3D structure to enable adaptive immune receptor analysis

Yu Zhao, Bing He, Chen Li, Zhimeng Xu, Xiaona Su, Jamie Rossjohn, Jiangning Song, Jianhua YaobioRxiv 2022

Abstract

Structural docking between adaptive immune receptors (AIRs)—including T cell receptors (TCRs) and B cell receptors (BCRs)—and their cognate antigens is a fundamental process in adaptive immunity. Current methods for predicting AIR-antigen binding largely rely on sequence-derived features, omitting the structural features essential for binding affinity. We present DeepAIR, a deep-learning framework for accurate prediction of AIR-antigen binding by integrating both sequence and structure features. DeepAIR consists of three feature encoders (a gene encoder, a transformer-based sequence encoder, and a pre-trained AlphaFold2-based structure encoder), a gating-based attention mechanism, and a tensor fusion mechanism. Evaluated on five representative datasets, DeepAIR shows outstanding performance in predicting binding reactivity and classifying immune repertoires for conditions like nasopharyngeal carcinoma (NPC) and inflammatory bowel disease (IBD). DeepAIR serves as a powerful tool for profiling antigen-binding AIRs and informing personalized immunotherapy design.

Introduction

The adaptive immune system relies on TCRs and BCRs to recognize specific threats. Identifying which receptor binds to which antigen is a primary goal of personalized medicine. Historically, researchers have used sequence-based models, but binding is a physical process governed by 3D shapes. Two receptors might have different sequences but similar shapes that bind the same antigen. Conversely, a single mutation can drastically alter a receptor's binding capacity. Because experimental 3D structures are difficult to obtain, most computational tools have ignored structural data. DeepAIR addresses this "blind spot" by leveraging AlphaFold2-predicted structures to enhance predictive accuracy.

Methods and Architecture

DeepAIR overcomes the structural data shortage by using AlphaFold2 to predict 3D receptor structures from sequences. The framework utilizes a sophisticated three-channel architecture to process multimodal data:

  1. Gene Encoder: Employs a trainable embedding layer to capture the identity of V(D)J gene segments.
  2. Sequence Encoder: Uses a multi-layer Transformer to process the amino acid sequences of the highly diverse CDR3 regions.
  3. Structure Encoder: Extracts geometric features from AlphaFold2-predicted 3D coordinates using 1D convolutional layers.
The DeepAIR framework architecture, featuring multi-channel feature extraction, a multimodal feature fusion module, and task-specific prediction layers.

To integrate these data types, DeepAIR implements a gating-based attention mechanism and tensor fusion, allowing the model to dynamically weigh the importance of sequence versus structural features. For patient-level diagnosis, the model uses Multiple Instance Learning (MIL) to aggregate predictions from thousands of individual cells.

Experimental Evaluation

The authors evaluated DeepAIR across five datasets, including ~38,000 paired TCR chains from 10x Genomics, SARS-CoV-2 specific TCRs, and BCRs from the Immune Epitope Database (IEDB). Clinical repertoire data from patients with NPC and IBD were also used to test diagnostic capabilities.

Results and Biological Interpretability

DeepAIR consistently outperformed state-of-the-art (SOTA) sequence-only models like DeepTCR and TCRAI. In binding affinity tasks, it achieved a Pearson correlation of 0.813 and an AUC of 0.912. For disease diagnosis, DeepAIR reached a near-perfect AUC of 1.0 for both NPC and IBD, successfully distinguishing diseased samples from healthy controls.

A key strength of DeepAIR is its interpretability. By analyzing attention weights, the researchers found that the model focuses on the same "contact residues" identified by human crystallographers. For example, it correctly identified that the β-98R residue is critical for binding the Flu M1 protein.

Biological interpretability of DeepAIR, highlighting key residues in TCR chains that are critical for antigen binding, consistent with experimental structural data.

Conclusion

DeepAIR demonstrates that even "unliganded" structures predicted by AlphaFold2 provide sufficient context to significantly boost performance over sequence-only models. While future work is needed to account for conformational changes during binding and to improve BCR folding accuracy, DeepAIR represents a major step forward in using structural biology to inform immune analysis and immunotherapy design.

Summary updated

BibTeX
@misc{zhao2022deepair,
  author = {Yu Zhao and Bing He and Chen Li and Zhimeng Xu and Xiaona Su and Jamie Rossjohn and Jiangning Song and Jianhua Yao},
  title = {{DeepAIR: a deep-learning framework for effective integration of sequence and 3D structure to enable adaptive immune receptor analysis}},
  year = {2022},
  doi = {10.1101/2022.09.30.510251},
  howpublished = {bioRxiv},
}
Figure