CoolFace
Modelpublic

DT4H/CardioBERTa.nl_P_enriched

sourceHugging Faceupdated 1mo agoView on Hugging Face
0likes8downloads
Model Card

DT4HCardioBERTaparentsnlenriched

DT4H_CardioBERTa_parents_nl_enriched is a Dutch biomedical terminology encoder for clinical concept normalization and entity linking. It is initialized from [UMCU/CardioBERTa.nl] and specialized using CUI-supervised terminology pairs and metric learning.

Backbone

The backbone belongs to the CardioBERTa family from CardioLM - a multilingual suite of small language models for the cardiology domain. CardioBERTa comprises language-specific encoder models adapted to cardiology through continued pretraining on monolingual biomedical and cardiology-related corpora using Masked Language Modeling (MLM). The family covers Czech, Dutch, English, Italian, Romanian, Spanish and Swedish.

Training

LanguageDutch (nl)
Triplet collectionenriched
Strategyparents
ObjectiveMulti-Similarity Loss
MiningAll triplets, margin 0.2
PoolingCLS
Epochs1
Batch size256
Learning rate2e-5
Max. length25

CUI-supervised terminology pairs enriched with parent-level ontology relations.

Terminology statistics

StrategyTripletsCUIsUnique termsUnique positivesTerms/CUIΔ terms
synonyms79,98579,985156,01979,7881.980
parents1,677,259476,525543,012405,6463.98+386,993
grandparents4,898,584476,972543,296463,5609.94+387,277

This model uses 1,677,259 triplets, covering 476,525 CUIs and 543,012 unique normalized terms.

The training terminology is not distributed with this repository because it contains resources subject to UMLS licensing conditions. Only aggregate statistics are released.

Intended use

The model is intended for terminology embedding, biomedical candidate retrieval, concept normalization and entity linking, particularly in cardiology and clinical NLP pipelines. It is not intended for direct clinical decision-making.

Usage

python
import torch
import torch.nn.functional as F
from transformers import AutoModel, AutoTokenizer

model_id = "DT4H/DT4H_CardioBERTa_parents_nl_enriched"

tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModel.from_pretrained(model_id)

inputs = tokenizer(
    "clinical concept",
    return_tensors="pt",
    truncation=True,
    max_length=25,
)

with torch.no_grad():
    output = model(**inputs)

embedding = F.normalize(
    output.last_hidden_state[:, 0, :],
    p=2,
    dim=1,
)

Reference

Danu et al. CardioLM - a multilingual suite of small language models for the cardiology domain.

Developed within the DataTools4Heart (DT4H) project, Grant Agreement 101057849.