Instructions to use STRIDE-lab/biolinkbert-study-conclusion-20261107 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use STRIDE-lab/biolinkbert-study-conclusion-20261107 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="STRIDE-lab/biolinkbert-study-conclusion-20261107")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("STRIDE-lab/biolinkbert-study-conclusion-20261107") model = AutoModelForSequenceClassification.from_pretrained("STRIDE-lab/biolinkbert-study-conclusion-20261107", device_map="auto") - Notebooks
- Google Colab
- Kaggle
biolinkbert-study-conclusion-20261107
Fine-tuned model from the PsyNamic project (code, webapp): Study Conclusion.
Retrained for the revision (Nov 2026) together with the other PsyNamic models. Not shown in the PsyNamic webapp and not reported in the paper (excluded parameter, see Task). It supersedes STRIDE-lab/scibert-study-conclusion-20251005 (tag submission-v1, initial submission). All current models: PsyNamic collection.
Base Model
michiyasunaga/BioLinkBERT-base
Task
Study Conclusion
Summarizes the main finding of the study (positive, negative, neutral, mixed).
Not shown in the PsyNamic webapp and not reported in the paper. Clinical Trial Phase and Study Conclusion were excluded from the final PsyNamic parameters due to their limited informativeness (predominantly "unknown" or "not applicable" labels) and comparatively low inter-annotator agreement (S1 Appendix of the PsyNamic paper, section 4.2).
Labels (id2label)
| ID | Label | Definition |
|---|---|---|
| 0 | Positive | Having a beneficial therapeutic impact (e.g., if a study reports: 'lsd might decrease suicidal ideation in depression'). |
| 1 | Negative | E.g., if a study reports: 'ketamine worsened neuropathic pain in patients'. |
| 2 | Neutral | E.g., if a study reports: “we did not observe an effect of MDMA on avoidance behaviour”. |
| 3 | Mixed | Both negative and positive conclusion. |
| 4 | Unknown | No conclusion. |
| 5 | Not Applicable | E.g., for a study assessing fMRI changes of lsd or for a study protocol. |
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 (98 abstracts), argmax as in the webapp, 95% bootstrap CIs (1,000 BCa resamples).
| Metric (test) | Value [95% CI] |
|---|---|
| Weighted F1 | 0.789 [0.697–0.864] |
| Weighted precision | 0.766 [0.652–0.848] |
| Weighted recall | 0.816 [0.735–0.878] |
Usage
import torch
from transformers import AutoTokenizer, AutoModelForSequenceClassification
repo = "STRIDE-lab/biolinkbert-study-conclusion-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": "Study Conclusion",
"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
- 88
Model tree for STRIDE-lab/biolinkbert-study-conclusion-20261107
Base model
michiyasunaga/BioLinkBERT-base