Training code and data for reproducing the PosterSentry multimodal scientific poster classifier.
Part of the quality control pipeline for posters.science, a platform for making scientific conference posters Findable, Accessible, Interoperable, and Reusable (FAIR).
Developed by the FAIR Data Innovations Hub at the California Medical Innovations Institute (CalMI2).
This repository contains the data and the as-run code behind the released PosterSentry classifier:
- Training data: 3,235 documents with human-validated labels (1,605 poster, 1,630 non-poster), each released by its depositor under CC0, CC-BY, or an equivalent permissive license
- Training script: label construction from the survey and adjudication, multimodal feature extraction, and two-stage (stacked) logistic regression training
- Corpus classification script: batch classification of the full 30,205-document corpus with the trained head
Release 1.0.0 supersedes the earlier heuristic-label release, which remains available in the repository history.
The training data comes from real scientific documents with human-validated labels, zero synthetic data. Three reviewers independently classified 3,414 candidate documents at survey.posters.science (inter-rater Krippendorff's alpha 0.79), each released by its depositor under CC0, CC-BY, or an equivalent permissive license, and the 420 documents without a unanimous panel were settled in a blinded adjudication review. After removing 172 near-duplicates and 7 documents with unavailable PDFs, the remaining 3,235 form the training corpus:
| Class | Count | Label provenance |
|---|---|---|
| Poster | 1,605 | Unanimous panel label or blinded adjudication |
| Non-poster | 1,630 | Unanimous panel label or blinded adjudication |
Candidates were drawn from a collection of 30,000+ PDFs scraped from Zenodo and Figshare as part of the posters.science initiative. When the trained classifier was applied back to that full corpus, it classified 80.4% of repository-labeled "posters" as posters: roughly one in five records labeled as posters is something else.
data/poster_sentry_train.ndjson is newline-delimited JSON, one row per document:
{"id": "fxd4ylwf0byrtj307b5k3kpm", "doi": "10.5281/zenodo.1234567", "doi_link": "https://doi.org/10.5281/zenodo.1234567", "source": "zenodo", "license": "CC-BY-4.0", "label": "poster", "label_source": "unanimous_panel", "text_raw": "## Effects of Temperature on Enzyme Kinetics\n...", "text": "## Effects of Temperature on Enzyme Kinetics ...", "extraction": "poster2json"}Rows are in the order used for training; the stratified split at seed 42 depends on that order.
| Field | Description |
|---|---|
id |
Survey document identifier |
doi, doi_link |
DOI of the source repository record (present for every row) and its resolvable link |
source |
zenodo or figshare |
license |
License of the source record (CC0, CC-BY, or an equivalent permissive license) |
text_raw |
First-page text from the poster2json layout engine on pdfplumber (headings marked ## ); pdfplumber's default extraction where it returns no text |
text |
text_raw whitespace-normalized and truncated to 4,000 characters: the text the model embeds |
extraction |
poster2json or pdfplumber_default |
label |
poster or non_poster (human-validated) |
label_source |
unanimous_panel (2,822 rows) or adjudicated (413 rows) |
This is the same dataset published on HuggingFace at fairdataihub/poster-sentry-training-data (release 1.1.0), which also carries every feature value the model was trained on.
scripts/train_poster_sentry.py is the as-run training script. It builds the human-validated labels from the survey votes and adjudication decisions (the inputs/ folder of poster-sentry-evaluation-paper-code), takes the training documents in the order of data/poster_sentry_train.ndjson, resolves the source PDFs, extracts the feature channels (512-d text embedding + 15 visual + 15 structural) in parallel, trains the two-stage classifier on a stratified 85/15 split at seed 42 (stage 1 scores the text embedding; its inner 5-fold out-of-fold poster probability becomes the text_score feature of the 31-feature final classifier), refits the same recipe on the full corpus, and saves that head as a NumPy archive (both stages' weights, biases, and scaler parameters plus the label mapping; about 20 KB).
The script requires the local PDF store harvested with poster-repo-scraper, so it documents the training as run rather than serving as a portable tool; the NDJSON data file contains the extracted text for every training document, sufficient for text-only retraining without the PDFs.
precision recall f1-score support
non_poster 0.9360 0.9551 0.9455 245
poster 0.9534 0.9336 0.9434 241
accuracy 0.9444 486
macro avg 0.9447 0.9444 0.9444 486
weighted avg 0.9446 0.9444 0.9444 486
Top stage-2 features by |coefficient| (training split):
page_count coef=-3.48
size_per_page_kb coef=+2.60
line_count coef=+1.88
file_size_kb coef=-1.75
mean_g coef=+1.21
Feature extraction uses a selectable backend, defaulting to pdfplumber
(pdfplumber for text and structure, pypdfium2 for rendering) — the permissively
licensed stack the released model is trained on. To retrain with the faster but
AGPL-licensed PyMuPDF backend instead, install it and set the environment
variable; no code change is needed:
pip install poster-sentry[pymupdf]
POSTER_SENTRY_BACKEND=pymupdf python scripts/train_poster_sentry.py --n-per-class 2000The backends extract slightly different features, so a model trained with one backend should be used for inference with the same backend.
scripts/classify_corpus.py classifies the full corpus with the trained head in resumable batches: parallel feature extraction with multiprocessing, checkpointed part files so an interrupted run resumes where it stopped, batch text embedding, and TSV output with a JSON metrics summary.
PosterSentry extracts three feature channels per PDF:
| Channel | Dimensions | Features |
|---|---|---|
| Text | 512 | model2vec static embeddings (potion-base-32M), L2-normalized, of first-page text read with the poster2json layout engine |
| Visual | 15 | Color stats (RGB mean/std), edge density, FFT spatial complexity, whitespace ratio, color diversity |
| Structural | 15 | Page count/dimensions, text block count, font count/size/variance, title score, text density, file size |
Stage 1 (StandardScaler + LogisticRegression) summarizes the 512-d text embedding into a single text score; the final classifier is a second StandardScaler + LogisticRegression over 31 features (text score + 15 visual + 15 structural).
| Resource | Description |
|---|---|
| poster-sentry (GitHub) | Installable classifier package |
| poster-sentry (HuggingFace) | Model weights |
| poster-sentry-training-data (HuggingFace) | Dataset on HuggingFace Hub |
| poster-sentry-evaluation-paper-code | Reproducible analysis for the paper |
| poster2json | Poster to structured JSON extraction |
| posters.science | Platform |
@dataset{poster_sentry_data_2026,
title = {PosterSentry Training Data: Scientific Poster Text Corpus},
author = {O'Neill, Jamey and Portillo, Dorian and Zeinali, Nahid and Soundarajan, Sanjay and Blake, Gerard and Sarin, Parth and Buttrick, Adam and Patel, Bhavesh},
year = {2026},
version = {1.1.0},
url = {https://github.com/fairdataihub/poster-sentry-training},
note = {Part of the posters.science initiative at FAIR Data Innovations Hub}
}MIT License. See LICENSE for details.
- FAIR Data Innovations Hub at California Medical Innovations Institute (CalMI2)
- posters.science platform
- Funded by The Navigation Fund, "Poster Sharing and Discovery Made Easy"