DeepLION2: deep multi-instance contrastive learning framework enhancing the prediction of cancer-associated T cell receptors by attention strategy on motifs

Xinyang Qian, Guang Yang, Fan Li, Xuanping Zhang, Xiaoyan Zhu, Xin Lai, Xiao Xiao, Tao Wang, Jiayin WangFrontiers in Immunology 2024

Abstract

DeepLION2 is a novel deep multi-instance learning framework designed to enhance the detection of cancer-associated T-cell receptors (caTCRs) within complex immune repertoires. By integrating content-based sparse self-attention with a self-contrastive learning strategy, the model effectively identifies rare cancer-reactive TCRs while filtering out background noise. Experimental results demonstrate DeepLION2's potential for improving cancer detection and facilitating personalized immunotherapy. The framework is publicly available on GitHub for academic use.

Introduction

The human immune system relies on T-cell receptors (TCRs) to recognize and eliminate threats, including malignant cells. Identifying specific cancer-associated TCRs (caTCRs) in clinical samples is a "needle in a haystack" problem, as over 80% of TCRs in a typical repertoire are unrelated to the tumor. Existing computational methods often treat TCR repertoires as a "bag of instances" using Multi-Instance Learning (MIL) but struggle with contextual neglect and the extreme sparsity of caTCR signals. DeepLION2 addresses these hurdles by modeling inter-TCR relationships and focusing on the most relevant sequences.

Methodology

DeepLION2 introduces a three-stage workflow: data preprocessing, TCR antigen-specificity extraction, and a sophisticated MIL component.

The DeepLION2 workflow, illustrating the transition from raw TCR sequences to cancer scoring via sparse self-attention and contrastive learning.

Sparse Self-Attention and Contrastive Learning

The core innovation of DeepLION2 lies in its MIL stage. Instead of calculating relationship scores for every TCR in a sample—which is computationally expensive and noisy—the model employs a "top-$k$" strategy. This content-based sparse self-attention focuses only on the $k$ most relevant TCRs for each instance, effectively pruning the search space to focus on potential clusters of cancer-reactive cells.

To optimize training on small clinical datasets, a self-contrastive learning strategy is utilized. This involves a contrastive loss function that minimizes the discrepancy between standard and sparse attention outputs, forcing the model to fixate on rare caTCRs rather than ubiquitous background cells.

Experimental Results

The framework was validated using datasets from The Cancer Genome Atlas (TCGA) and the Geneplus clinical database, covering various cancer types including thyroid (THCA), lung (LUCA), and gastrointestinal (GICA).

DeepLION2 outperformed state-of-the-art methods like DeepTCR and TransMIL across multiple metrics. It achieved high diagnostic power with AUC values of 0.933 for THCA, 0.880 for LUCA, and 0.763 for GICA. Furthermore, the model demonstrated robustness across ten different cancer types in the TCGA dataset.

Motif Discovery and Interpretability

Beyond classification, DeepLION2 provides biological insights by identifying key amino acid motifs (e.g., "NVLT") enriched in cancer patients. Analysis of the model's attention weights revealed a consistent focus on the middle and rear sections of the CDR3 region, aligning with established structural biology findings regarding TCR-antigen binding.

Conclusion

DeepLION2 represents a significant step forward in the detection of cancer-associated TCRs. By leveraging sparsity and contrastive learning, it overcomes the inherent noise and sparsity of immune repertoire data. Future developments will aim to incorporate TCR $\alpha$-chain data and improve denoising techniques to further enhance predictive accuracy and clinical utility.

Summary updated

BibTeX
@inproceedings{qian2024deeplion,
  author = {Xinyang Qian and Guang Yang and Fan Li and Xuanping Zhang and Xiaoyan Zhu and Xin Lai and Xiao Xiao and Tao Wang and Jiayin Wang},
  title = {{DeepLION2: deep multi-instance contrastive learning framework enhancing the prediction of cancer-associated T cell receptors by attention strategy on motifs}},
  booktitle = {Frontiers in Immunology},
  year = {2024},
  doi = {10.3389/fimmu.2024.1345586},
}
Figure