biolinkbert-relevant-20261107

Fine-tuned model from the PsyNamic project (code, webapp): Abstract Screening (relevant/irrelevant). This is the model deployed in the PsyNamic webapp after the revision (Nov 2026). It supersedes STRIDE-lab/biobert-relevant-20250306 (tag submission-v1, initial submission). All current models: PsyNamic collection.

Base Model

michiyasunaga/BioLinkBERT-base

Task

Abstract Screening (relevant/irrelevant)

Whether a record (title and abstract) meets the PsyNamic inclusion criteria.

  • Inclusion: any human study reporting the use of eligible psychedelic substances. Eligible study types: randomized controlled trials (RCT), cohort and case-control studies, pharmacological/pharmacokinetic/mechanistic studies, surveys on recreational use, systematic reviews/meta-analyses, study protocols, and pooled or secondary analyses of previous studies.
  • Exclusion: studies not involving predefined substances (e.g., THC, CBD, or heroin), philosophical discussions on psychedelic use, animal studies, non-systematic reviews (including opinions, commentaries, and editorials), grey literature (e.g., conference abstracts), and studies without an available abstract.

Labels (id2label)

ID Label Definition
0 irrelevant –
1 relevant –

Prediction rule

Single-label: softmax over the labels, the label with the highest probability (argmax) is predicted.

Model selection

Five base models (BiomedBERT-abstract, BioBERT, BioLinkBERT, ClinicalBERT, SciBERT) were fine-tuned with identical hyperparameters. The checkpoint is the one with the lowest validation loss (early stopping), and the base model was selected on the validation set (weighted F1). The test set was used once, after selection.

Test Performance

Held-out test set (565 abstracts), argmax as in the webapp, 95% bootstrap CIs (1,000 BCa resamples).

Metric (test) Value [95% CI]
Weighted F1 0.894 [0.865–0.918]
Weighted precision 0.894 [0.865–0.917]
Weighted recall 0.894 [0.865–0.919]
F1, relevant class 0.910 [0.886–0.933]
Precision, relevant class 0.902 [0.862–0.932]
Recall, relevant class 0.919 [0.889–0.947]

Confusion matrix (relevant = positive): TP 305, FP 33, FN 27, TN 200.

Usage

import torch
from transformers import AutoTokenizer, AutoModelForSequenceClassification

repo = "STRIDE-lab/biolinkbert-relevant-20261107"
tokenizer = AutoTokenizer.from_pretrained(repo)
model = AutoModelForSequenceClassification.from_pretrained(repo)
inputs = tokenizer("<title>. <abstract>", truncation=True, max_length=512, return_tensors="pt")
logits = model(**inputs).logits
pred = model.config.id2label[int(logits.argmax(-1))]

Training Parameters

{
  "data": "<private_dataset>",
  "task": "Relevant",
  "model": "biolinkbert",
  "cross_val": false,
  "batch_size": 8,
  "learning_rate": 5e-05,
  "weight_decay": 0.01,
  "lr_scheduler": "linear",
  "warmup_ratio": 0.1,
  "epochs": 30,
  "dropout": 0.1,
  "early_stopping_patience": 5,
  "gradient_clipping": 1.0,
  "max_length": 512,
  "threshold": 0.5,
  "is_multilabel": false
}

threshold (0.5) is only used to compute the validation metrics of multi-label tasks during training. It has no effect for this single-label model, which predicts by argmax.

Downloads last month
69
Safetensors
Model size
0.1B params
Tensor type
F32
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for STRIDE-lab/biolinkbert-relevant-20261107

Finetuned
(33)
this model

Collection including STRIDE-lab/biolinkbert-relevant-20261107