Downloads · 30 days
9
23% of all-time downloads
omid-jf/VTE-ModernBERT-DeID
VTE-ModernBERT-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-ModernBERT-DeID is a BioClinical ModernBERT-based sequence-classification model for identifying venous thromboembolism (VTE) phenotypes in English clinical narratives. It was fine-tuned on de-identified clinical t…
Downloads · 30 days
9
23% of all-time downloads
All-time downloads
39
Public
Parameters
396M
1.6 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.6 GB · 100%
From the Hugging Face model README
VTE-ModernBERT-DeID is a BioClinical ModernBERT-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.
Although the underlying architecture supports sequences of up to 8,192 tokens, this checkpoint was fine-tuned with a maximum sequence length of 1,024 tokens.
| 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 training sequence length | 1,024 |
| Architecture context capacity | 8,192 |
| Learning rate | 2e-5 |
| Weight decay | 0.01 |
| Maximum training epochs | 15 |
| Early-stopping patience | 20 |
| Training batch size | 8 |
| Evaluation batch size | 8 |
| Gradient accumulation steps | 1 |
| Model-selection metric | eval_pos_f1 |
| Mixed-precision training | bfloat16 |
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-ModernBERT-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=1024,
)
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, including use cases that may benefit from more context than conventional 512-token BERT models.
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}
}