/ Модель

Характеристики

Лицензия
Apache 2.0
Базовая модель
pubmedbert-base-embeddings
Библиотека
pytorch
Опубликована
9 ноя 2026

prenatal-case-dora

Классификация текстаТекст → label3 профессии

Англоязычный классификатор публикаций по пренатальной генетике, выделяющий описания клинических случаев и серии случаев среди других дизайнов исследований.

212скачиваний за 30 дней1лайквеса обновлены18 ноя 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Prenatal case-only DoRA — англоязычный бинарный классификатор научных публикаций по пренатальной генетике, разработанный проектом lanshi17. Он определяет, относится ли статья к описанию клинического случая или серии случаев, либо к другим типам исследований: когортным, скрининговым, обзорным, методическим и регистрационным работам. Модель предназначена для отбора и приоритизации публикаций в исследовательских библиографических процессах; её результат следует проверять специалисту.

Это дообученная с помощью DoRA модель на базе NeuML/pubmedbert-base-embeddings, построенная на PubMedBERT. Заголовок, аннотация и полный текст делятся на окна до 480 токенов, максимум 12 окон; их представления объединяются и поступают в линейный классификатор. Для обучения использовались разметки дизайна исследования 864 публикаций, часть которых могла содержать ошибки. Лицензия — Apache-2.0.

Модель рассчитана на литературу по пренатальной генетике. README указывает, что это исследовательский артефакт, а не инструмент клинических решений; качество за пределами целевой области неизвестно. Короткие фрагменты менее 128 токенов не получают бинарную классификацию, а некоторые крупные серии случаев могут быть ошибочно отнесены к когортным исследованиям.

Сценарии применения

  • отбор описаний случаев для обзора литературы по пренатальной генетике
  • приоритизация статей о пренатальных генетических вариантах
  • классификация дизайна исследований в корпусе биомедицинских публикаций

Ограничения

Предназначена для исследовательского отбора публикаций и не подходит для клинической диагностики или решений о лечении. Разметка обучающих данных содержит шум, крупные серии случаев могут ошибочно классифицироваться как когорты; качество вне литературы по пренатальной генетике не установлено.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Prenatal case-only DoRA (case report / case series)

Binary classifier for prenatal genetics literature: case report / case series vs other study designs (cohort, screening/validation, review, method, registry).

This is a research artifact, not a clinical decision tool.

GitHub

Model Sources

Model details

ComponentSetting
Base architecturemicrosoft/BiomedNLP-BiomedBERT-base-uncased-abstract-fulltext (PubMedBERT, MIT)
Training weightsNeuML/pubmedbert-base-embeddings, SentenceTransformer fine-tune of that encoder (Apache-2.0); the direct parent of this checkpoint
AdapterDoRA (PEFT), r=16, α=32, target query / value
Document encoding480-token chunks, max 12 chunks, keep first 2; L2(mean_all) ‖ L2(mean_first_2) → 1536-d
Headlinear 1536 → 2
Trainable params611,330 / 110,093,570 (0.56%): 608,256 DoRA + 3,074 head
Decision threshold0.3962 (F1-optimal on out-of-fold scores)
High-precision threshold0.3502 (P ≥ 0.90)
Short-input guardbelow 128 tokens a case call needs p ≥ 0.75; 0.396–0.75 → insufficient
Review bandlong inputs in [τ − 0.05, τ) → insufficient instead of non-case
Calibration (OOF)ECE 0.202, Brier 0.089; temperature scaling (T=0.338) → 0.080 / 0.054
Calibrated scorecase_score_calibrated = sigmoid(logit(case_score) / 0.338); decisions still use the uncalibrated score and threshold

Training labels: 864 papers with an existing design annotation (376 case report / case series, 488 cohort / screening / review / method / validation / registry; 110 missing or “other” excluded). The design labels come from an LLM + review annotation pipeline and contain some noise (e.g. large retrospective case series occasionally labeled as cohort).

Architecture

Case-only DoRA model architecture

One document, one forward pass: title/abstract and full text are concatenated, split into 480-token windows (at most 12; the first 2 are kept, the rest sampled evenly), encoded by PubMedBERT with DoRA on query/value, pooled as L2(mean_all) ‖ L2(mean_first_2) into 1536-d, and classified by a linear head. The same chunking and pooling protocol is used in training and inference. Thresholds: 0.3962 = out-of-fold F1 optimum, 0.3502 = precision ≥ 0.90.

The corpus pipeline that uses this model is a two-pass system — a relevance DoRA + rule layer (threshold 0.7619, 23,378 → 13,752 retained), then this design model (13,752 → 8,048 case):

The explicit-title guard (case report / case series / report of N<100 cases) lives in the pipeline, not in this checkpoint.

Evaluation

5-fold stratified cross-validation, each fold with an internal validation split for early stopping and threshold selection:

MetricResult
Test average precision (AP)0.987 ± 0.009
Test F10.938 ± 0.021
Test precision (mean)0.926
Test recall (mean)0.952
Out-of-fold AUC0.970
Out-of-fold AP0.965
OOF at threshold 0.396P 0.942 / R 0.947 / F1 0.944
OOF at threshold 0.350P 0.900 / R 0.960

Per-fold test evaluation matrix

Thresholds are selected on each fold's internal validation split, then applied to the held-out fold.

FoldThrTPFPFNTNPrecisionRecallF1APAUC
00.64656936950.9580.9200.9390.9900.992
10.43277015970.9860.9330.9590.9930.994
20.40807451930.9370.9870.9610.9960.997
30.211272114860.8680.9470.9060.9720.972
40.244973102870.8800.9730.9240.9840.984
Mean—————0.9260.9520.9380.9870.988

Out-of-fold confusion at the deployed thresholds:

ThresholdTPFPFNTNPrecisionRecallF1
0.3962 (F1-optimal)35622204660.9420.9470.944
0.3502 (P≥0.90 on val)36140154480.9000.9600.929

External validity

protocolAPF1
random 5-fold0.987 ± 0.0090.938 ± 0.021
temporal (train ≤2019, test ≥2020)0.9870.939
journal GroupKFold (183 journals)0.986 ± 0.0050.925 ± 0.019

Ranking transfers across time and journals; the score distribution does not. Temporal threshold 0.505 vs 0.396 in-domain; journal folds range 0.299–0.760. Recalibrate the threshold on the target corpus (or use case_score_calibrated). Details in the GitHub docs/VALIDATION.md.

Baselines and ablations (5-fold)

All methods use identical splits; thresholds are selected on each fold's inner validation split. AP and F1 are mean ± std across folds.

MethodInputAPAUCPrecisionRecallF1
Majority———0.0000.0000.000
TF-IDF + LRtitle0.963 ± 0.0070.9640.8760.8940.882 ± 0.018
TF-IDF + LRtitle+abstract0.971 ± 0.0160.9740.9380.9100.923 ± 0.027
Frozen PubMedBERT + LRtitle0.953 ± 0.0100.9560.8720.8730.869 ± 0.029
Frozen PubMedBERT + LRtitle+abstract0.961 ± 0.0200.9650.9100.8960.902 ± 0.019
Frozen PubMedBERT + LRfull, mean only0.968 ± 0.0180.9720.9100.8780.890 ± 0.046
Frozen PubMedBERT + LRfull, single 5120.960 ± 0.0160.9610.8920.8990.894 ± 0.017
Frozen PubMedBERT + LRfull, 12 chunks0.971 ± 0.0160.9740.8940.9100.897 ± 0.049
DoRAfull, 12 chunks0.987 ± 0.0090.9880.9260.9520.938 ± 0.021
DoRAtitle+abstract0.974 ± 0.0080.9750.9160.9360.926 ± 0.024

Reading: frozen features already reach AP 0.971; DoRA fine-tuning adds +0.016 AP. Full text adds a limited but consistent gain over title+abstract (AP +0.013, F1 +0.012); title+abstract TF-IDF is already strong (F1 0.923), so study design is mostly explicit in the title/abstract. Chunk pooling over 12 chunks beats mean-only and single-512 truncation.

The final checkpoint was trained on all 864 rows for 2 epochs (median best epoch across folds).

Usage

pip install torch transformers peft safetensors huggingface_hub numpy
from modeling_case_dora import CaseDoraPredictor

clf = CaseDoraPredictor.from_pretrained("<repo-id>")
out = clf.score(
    title="Prenatal diagnosis of a 22q11.2 deletion in a fetus with tetralogy of Fallot",
    text="Full article text (methods/results are useful; title alone also works).",
)
print(out)
# {'case_score': 0.93, 'case_decision': 'case',
#  'case_decision_p90': 'case', 'n_tokens': 212, 'evidence_sufficient': True,
#  'threshold': 0.396..., 'threshold_p90': 0.350..., 'n_chunks': 1,
#  'case_score_calibrated': 0.90, 'temperature': 0.338}

# Fragments shorter than 128 tokens do not get a binary call:
out = clf.score(title="Fetal genetic testing was performed after ultrasound detection of a cardiac anomaly.")
# {'case_score': 0.5994, 'case_decision': 'insufficient', 'n_tokens': 13,
#  'evidence_sufficient': False, ...}

modeling_case_dora.py is included in this repository and implements the chunking, DoRA-wrapped encoder and pooling exactly as used during training.

Files

FileDescription
model.safetensorsfull model state (encoder + DoRA adapter + classifier)
config.jsonbase model, adapter, chunking, thresholds, CV metrics
modeling_case_dora.pyself-contained inference code
model-architecture.pngmodel architecture diagram
architecture.png, architecture.pdfsystem-level two-pass plate
DESIGN_PHILOSOPHY.mddesign notes behind the plate
cv_metrics.json, report.mdcross-validation results
tokenizer.json, tokenizer_config.jsontokenizer snapshot

Intended use and limitations

  • Use: screening/candidate prioritization for prenatal genetic variant case reports in research workflows; output should be reviewed by a domain expert.
  • Not for: clinical diagnosis or treatment decisions.
  • Scope: prenatal genetics literature; performance outside this domain is unknown.
  • Label noise: study-design labels are not perfect; large case series may be scored “non-case” if the annotation treated them as cohorts. In the accompanying corpus pipeline, titles explicitly containing case report / case series (or report of N<100 cases) are retained by a rule, independent of this model.
  • Truncation: very long articles are sampled to 12 chunks (first 2 + evenly spaced), so evidence in unsampled sections is not seen.
  • Short inputs: below 128 tokens the design signal is unreliable. Such inputs are scored but need p ≥ 0.75 for case; scores in [0.396, 0.75) return insufficient instead of case, and the corpus pipeline routes them to case_dora_insufficient.csv for human review.
  • Uncalibrated scores: case_score is a ranking score, not P(case). OOF ECE is 0.20; use the thresholds rather than reading 0.9 as “90% correct”. case_score_calibrated applies temperature scaling (T=0.338) for consumers that need probabilities; it is not used for the released decisions. Long inputs within 0.05 below the threshold are labelled insufficient and should be reviewed.
  • Threshold drift: on a temporal split (train ≤2019, test ≥2020) ranking stayed at AP 0.987, but the score distribution shifted (negative mean 0.424 > threshold 0.396); recalibrate the threshold per corpus. See the GitHub README §4.8.

License

Apache-2.0, following the base model. Training data (PubMed PDFs) is not redistributed.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · pytorch · text-classification

Можно запустить

Подбираем GPU…

Ревизия весов
9751ad7

0 моделей