Downloads · 30 days
18
37% of all-time downloads
omid-jf/VTE-BERT-DeID
VTE-BERT-DeID is a text classification model from omid-jf. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as agpl-3.0.
VTE-BERT-DeID is a BioClinicalBERT-based sequence-classification model for identifying venous thromboembolism (VTE) phenotypes in English clinical narratives. It was fine-tuned on de-identified clinical text and evalu…
Downloads · 30 days
18
37% of all-time downloads
All-time downloads
49
Public
Parameters
108M
433 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors433 MB · 100%
From the Hugging Face model README
VTE-BERT-DeID is a Bio_ClinicalBERT-based sequence-classification model for identifying venous thromboembolism (VTE) phenotypes in English clinical narratives. It was fine-tuned on de-identified clinical text and evaluated on the corresponding original clinical text.
Important: “DeID” indicates that de-identified text was used for model fine-tuning. This model classifies VTE phenotypes; it does not perform de-identification.
This checkpoint uses the same underlying annotated dataset, label definitions, and train/test split described for VTE-BERT. The original publication describes the study cohort, clinical annotation process, label development, and validation design.
| ID | Label |
|---|---|
| 0 | LE-DVT+ |
| 1 | PE+ |
| 2 | UE-DVT |
| 3 | atypical |
| 4 | history |
| 5 | none |
Operational definitions for these labels and the annotation procedures are provided in the VTE-BERT publication.
The underlying clinical data and predefined train/test split are the same as those used in the original VTE-BERT study.
| Parameter | Value |
|---|---|
| Training text field | final_deidentified_text |
| Maximum sequence length | 512 |
| Learning rate | 2e-5 |
| Weight decay | 0.01 |
| Maximum training epochs | 30 |
| Early-stopping patience | 5 |
| Training batch size | 8 |
| Evaluation batch size | 8 |
| Gradient accumulation steps | 1 |
| Model-selection metric | eval_pos_f1 |
The checkpoint was exported and tested with Transformers 5.10.1.
Numerical evaluation results are not included in this model card at this time.
from transformers import AutoModelForSequenceClassification, AutoTokenizer, pipeline
model_name = "omid-jf/VTE-BERT-DeID"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForSequenceClassification.from_pretrained(model_name)
classifier = pipeline(
"text-classification",
model=model,
tokenizer=tokenizer,
)
result = classifier(
"Your clinical text here.",
truncation=True,
max_length=512,
)
print(result)
For an end-to-end preprocessing and inference workflow, use NLPMed-Engine. Its MLInference component can load Hugging Face sequence-classification checkpoints such as this model.
This model is intended for research involving retrospective VTE phenotyping in clinical narratives.
It has not been validated for diagnosis, treatment selection, autonomous patient screening, or other clinical decision-making. Performance may vary across institutions, patient populations, note types, documentation practices, preprocessing configurations, and clinical settings. Users are responsible for obtaining appropriate institutional approvals and implementing applicable privacy and security controls.
This model is licensed under the GNU Affero General Public License v3.0. The research-use and clinical-safety statements in this model card describe the intended use and known limitations; they do not replace or add restrictions to the AGPLv3 license.
For the dataset, annotation process, label definitions, and original VTE-BERT study, please cite:
@article{jafaridevelopment,
title={Development and Validation of VTE-BERT Natural Language Processing Model for Venous Thromboembolism},
author={Jafari, Omid and Ma, Shengling and Lam, Barbara D and Jiang, Jun Y and Zhou, Emily and Ranjan, Mrinal and Ryu, Justine and Bandyo, Raka and Maghsoudi, Arash and Peng, Bo and others},
journal={Journal of Thrombosis and Haemostasis},
publisher={Elsevier},
year={2025},
doi={10.1016/j.jtha.2025.07.021}
}