TLDR: HEMERA is a new explainable AI model that uses transformer deep learning to predict lung cancer risk directly from raw genetic data (SNPs) without relying on clinical factors. It achieved over 99% accuracy and can identify specific genetic markers contributing to risk, with many aligning with known lung cancer susceptibility loci. This transparent approach offers a powerful tool for personalized genetic risk assessment and early intervention.
Lung cancer remains a significant global health challenge, being the third most common cancer and the leading cause of cancer-related deaths in the United States. While smoking is a primary risk factor, a substantial number of cases occur in individuals who have never smoked, and family studies highlight a clear genetic component to the disease. Current screening methods often rely on factors like smoking history and age, potentially missing individuals with a genetic predisposition.
The field of genomic medicine offers new avenues for predicting lung cancer risk. Genome-wide association studies (GWAS) have identified numerous genetic markers, particularly single nucleotide polymorphisms (SNPs), linked to lung cancer susceptibility. However, integrating this complex, high-dimensional genetic data into clinically useful risk models has been a challenge, requiring advanced computational tools that can understand intricate interactions and provide clear explanations.
Introducing HEMERA: A New Approach to Genetic Risk Prediction
Researchers have developed a novel framework called HEMERA, which stands for Human-Explainable Transformer Model for Estimating Lung Cancer Risk using GWAS Data. This innovative model applies explainable transformer-based deep learning to raw genetic information (SNPs) to predict an individual’s lung cancer risk. Unlike many previous methods, HEMERA focuses solely on inherited genetic variation, meaning it doesn’t use clinical factors like age or sex in its primary prediction, allowing for a clearer assessment of genetic contribution.
HEMERA introduces several key innovations. It processes raw genotype data directly, using additive positional encodings and neural genotype embeddings to create richer, more meaningful representations of genetic variants. It also incorporates a sophisticated post hoc explainability module, based on Layer-wise Integrated Gradients. This module is crucial because it allows the model to attribute its predictions to specific SNPs, providing transparency and helping researchers understand which genetic markers are most influential. This alignment with known lung cancer risk regions is a significant step towards building trust in AI-driven medical predictions.
How HEMERA Was Developed and Tested
The model was trained using data from 27,254 participants in the Million Veteran Program (MVP), including individuals diagnosed with lung cancer and cancer-free controls. These groups were carefully matched for demographic and clinical characteristics such as age, sex, ancestry, and smoking status. The genetic data included over 378,000 SNPs after quality control.
HEMERA treats each participant’s SNP sequence like a text sequence, with individual SNPs acting as ‘tokens’. These tokens are then mapped to numerical representations. The core of the model is a transformer architecture, specifically a Linformer, which is efficient for handling long genetic sequences. The model learns unique embedding vectors for each SNP, capturing complex genetic information.
The training involved two stages: pretraining the encoder to learn contextual representations of genomic variants, followed by fine-tuning for binary classification (lung cancer vs. control). To ensure the model’s reliability and generalizability, a rigorous 5-fold cross-validation approach was used, where the model was tested on different subsets of the data.
Impressive Performance and Explainable Insights
HEMERA achieved remarkable performance, with an average Area Under the Receiver Operating Characteristic Curve (AUC) score exceeding 0.99 across all cross-validation folds. This indicates a very high accuracy in distinguishing between individuals with and without lung cancer based purely on their genetic data. Studies also showed that including less frequent genetic variants (those with a minor allele frequency as low as 0.01) improved predictive performance, suggesting these rare variants hold important information for lung cancer prediction.
Beyond just predicting, HEMERA’s explainability module provides crucial insights. By generating ‘Manhattan-style’ plots of SNP attribution scores, the model visually highlights which genetic positions are most influential in its predictions. Importantly, many of the top-attributed SNPs showed strong positional agreement with known lung cancer susceptibility loci identified in other large-scale genetic studies. For instance, several highly ranked SNPs were found within the major histocompatibility complex (MHC) region on Chromosome 6, a region critical for immune responses and known to be involved in cancer.
The model also identified SNPs with ‘negative attribution scores’, which could indicate genetic variants that potentially protect against lung cancer. While these require further biological investigation, they open new avenues for understanding protective mechanisms.
Also Read:
- A New Approach to Pinpoint Cancer Driver Genes Using Multi-Network Analysis
- AI Unifies Deep Learning and Language Models for Advanced Skin Lesion Diagnosis
The Future of Personalized Lung Cancer Risk Assessment
This research demonstrates the significant potential of transformer-based deep learning models to accurately predict lung cancer risk using only raw genetic data. The ability of HEMERA to not only predict with high accuracy but also to explain its predictions by pointing to specific genetic markers is a major step forward for precision medicine. This transparency is vital for clinical adoption, allowing healthcare professionals to understand the genetic basis of an individual’s risk.
While the study acknowledges limitations, such as using unimputed genotype data, it lays a strong foundation for future research. Expanding this framework to larger and more diverse populations, incorporating more detailed genetic data, and integrating other biological signals could further enhance both the predictive power and biological understanding of lung cancer risk. HEMERA represents a promising tool for early detection and personalized intervention strategies in the fight against lung cancer. You can read the full research paper here.


