Downloads · 30 days
7
5% of all-time downloads
nileshhanotia/mutation-pathogenicity-predictor
mutation-pathogenicity-predictor is a machine learning model from nileshhanotia. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
Dual-output CNN model for predicting whether a DNA mutation is pathogenic or benign, with explicit explainability.
Downloads · 30 days
7
5% of all-time downloads
All-time downloads
151
Public
Repo size
780 KB
Likes
0
Public
Click a slice to open those files.
.pth780 KB · 53%
From the Hugging Face model README
Dual-output CNN model for predicting whether a DNA mutation is pathogenic or benign, with explicit explainability.
• Predicts pathogenic vs benign mutation
• Provides mutation importance score
• Explainability enforced via contrastive importance loss
• Trained on ClinVar GRCh38 dataset
• Supports genome-wide variants across chromosomes
Input encoding (1101 dim):
• Reference sequence (99bp one-hot)
• Mutated sequence (99bp one-hot)
• Difference mask
• Mutation type one-hot
Architecture:
CNN → Feature extraction →
→ Classification head (pathogenic prediction)
→ Importance head (mutation explainability)
Dataset: 16000 mutations (8000 pathogenic, 8000 benign)
Test metrics:
Accuracy: 57.5%
AUC: 0.6166
F1 score: 0.5896
Explainability:
Mutation importance score: 0.83 average
Contrastive gap: 0.409
Explainability prioritized over raw accuracy.
Importance head directly predicts importance of mutation location.
Contrastive loss ensures:
importance(mutation position) > importance(context)
This ensures causal explainability.
from huggingface_hub import hf_hub_download
import torch
model_path = hf_hub_download(
repo_id="nileshhanotia/mutation-pathogenicity-predictor",
filename="pytorch_model.pth"
)
checkpoint = torch.load(model_path)
⚠️ Research Use Only
This model is a research prototype and is NOT intended for clinical or diagnostic use.
Predictions should not be used for medical decision making.