Fine-tuned model from the PsyNamic project (code, webapp): Sex of Participants.
This is the model deployed in the PsyNamic webapp after the revision (Nov 2026). It supersedes STRIDE-lab/biobert-sex-of-participants-20250221 (tag submission-v1, initial submission). All current models: PsyNamic collection.
michiyasunaga/BioLinkBERT-base
Sex of Participants
Reports the sex distribution of study participants.
| ID | Label | Definition |
|---|---|---|
| 0 | Both sexes | We assume both sexes if nothing reported and ≥ 5 included subjects. |
| 1 | Female | – |
| 2 | Male | – |
| 3 | Not applicable | e.g., for most systematic reviews |
| 4 | Unknown | Neither the number of participants nor their sex is reported. |
Single-label: softmax over the labels, the label with the highest probability (argmax) is predicted.
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.
Held-out test set (96 abstracts), argmax as in the webapp, 95% bootstrap CIs (1,000 BCa resamples).
| Metric (test) | Value [95% CI] |
|---|---|
| Weighted F1 | 0.945 [0.876–0.979] |
| Weighted precision | 0.953 [0.902–0.980] |
| Weighted recall | 0.948 [0.896–0.979] |
import torch
from transformers import AutoTokenizer, AutoModelForSequenceClassification
repo = "STRIDE-lab/biolinkbert-sex-of-participants-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))]
{
"data": "<private_dataset>",
"task": "Sex of Participants",
"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.
michiyasunaga/BioLinkBERT-base