Downloads · 30 days
10
1% of all-time downloads
ltmai/Bio_ClinicalBERT_DDI_finetuned
Bio_ClinicalBERT_DDI_finetuned is a text classification model from ltmai. Use it when you need a label for a piece of text. It is set up for transformers.
This model was initialized from BioClinicalBERT by adding three hidden layers after the BERT pooler layer. The model was trained on the Drug-Drug Interaction dataset extracted from DrugBank database and National Libra…
Downloads · 30 days
10
1% of all-time downloads
All-time downloads
1K
Public
Repo size
4.8 GB
Likes
2
Public
Click a slice to open those files.
.bin434 MB · 100%
From the Hugging Face model README
This model was initialized from Bio_ClinicalBERT by adding three hidden layers after the BERT pooler layer. The model was trained on the Drug-Drug Interaction dataset extracted from DrugBank database and National Library of Medicine API. It achieves the following results on the Test dataset:
Predict Drug Drug Interaction (DDI) from Chemical Structure of two drugs. The Model returns the probability of the two drugs having interaction with each other.
To construct the input, using "[SEP]" token to seperate between the two drugs, example of a properly constructed input is as following
drug1 = "[Ca++].[O-]C([O-])=O" #Calcium Carbonate
drug2 = "OC[C@H](O)[C@@H](O)[C@H](O)[C@H](O)CO" #Sorbitol
correct_input = "[Ca++].[O-]C([O-])=O [SEP] OC[C@H](O)[C@@H](O)[C@H](O)[C@H](O)CO"
To avoid data leakage and able to predict DDI for new drugs, the drug1 or drug2 in the validation and the test set were not included in the training set. Their SMILES chemical structures were never exposed to the training process.
Using AWS EC2 g5.4xlarge instance. 24GB GPU.
The following hyperparameters were used during training:
| Training Loss | Epoch | Validation Loss | F2 | Recall | Precision | Mcc |
|---|---|---|---|---|---|---|
| 0.6068 | 1.0 | 0.7061 | 0.6508 | 0.6444 | 0.6778 | 0.2514 |
| 0.4529 | 2.0 | 0.8334 | 0.7555 | 0.7727 | 0.6939 | 0.3451 |
| 0.3375 | 3.0 | 0.9582 | 0.7636 | 0.7840 | 0.6915 | 0.3474 |
| 0.2624 | 4.0 | 1.2588 | 0.7770 | 0.8004 | 0.6954 | 0.3654 |