Text Classification
Model2Vec
English
poster-sentry
document-classification
scientific-posters
multimodal
poster-detection
machine-actionable
FAIR-data
posters-science
quality-control
Instructions to use fairdataihub/poster-sentry with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Model2Vec
How to use fairdataihub/poster-sentry with Model2Vec:
from model2vec import StaticModel model = StaticModel.from_pretrained("fairdataihub/poster-sentry") embeddings = model.encode(["It's dangerous to go alone!", "It's a secret to everybody."]) print(embeddings.shape) - Notebooks
- Google Colab
- Kaggle
Release 1.1.0: MIT-clean pipeline (pdfplumber + pypdfium2)
Browse filesHead retrained on features re-extracted with pdfplumber (text/structure) and pypdfium2 (rendering), replacing AGPL PyMuPDF. Held-out 89.2 percent, out-of-fold 88.0 percent.
- README.md +23 -22
- config.json +10 -6
- models/poster_sentry_head.npz +1 -1
README.md
CHANGED
|
@@ -35,7 +35,8 @@ Developed by the [**FAIR Data Innovations Hub**](https://fairdataihub.org/) at t
|
|
| 35 |
|
| 36 |
| Version | Date | Notes |
|
| 37 |
|---------|------|-------|
|
| 38 |
-
| **1.
|
|
|
|
| 39 |
|
| 40 |
Earlier unversioned weights (April 2026) were trained on heuristically labeled data and are superseded; they remain available in the repository history.
|
| 41 |
|
|
@@ -86,14 +87,14 @@ Evaluated against human-validated labels (three-reviewer survey with blinded adj
|
|
| 86 |
|
| 87 |
| Metric | Value |
|
| 88 |
|--------|-------|
|
| 89 |
-
| **Held-out accuracy** (508 documents) | **
|
| 90 |
-
| Macro F1 (held-out) | 0.
|
| 91 |
-
| Precision / Recall / F1 (poster) | 0.
|
| 92 |
-
| Precision / Recall / F1 (non-poster) | 0.
|
| 93 |
-
| Out-of-fold accuracy (all 3,381 documents, 5-fold) |
|
| 94 |
-
|
|
| 95 |
|
| 96 |
-
Errors concentrate where the human panel itself divided: out-of-fold agreement is
|
| 97 |
|
| 98 |
### Top Features by Importance
|
| 99 |
|
|
@@ -101,18 +102,18 @@ Standardized logistic regression coefficients of the trained head (positive push
|
|
| 101 |
|
| 102 |
| Rank | Feature | Coefficient | Signal |
|
| 103 |
|------|---------|------------|--------|
|
| 104 |
-
| 1 | `
|
| 105 |
-
| 2 | `
|
| 106 |
-
| 3 | `
|
| 107 |
-
| 4 | `
|
| 108 |
-
| 5 | `
|
| 109 |
-
| 6 | `
|
| 110 |
-
| 7 | `page_count` | -1.
|
| 111 |
-
| 8 | `
|
| 112 |
-
| 9 | `
|
| 113 |
-
| 10 | `
|
| 114 |
-
|
| 115 |
-
Structural and visual cues carry most of the decision;
|
| 116 |
|
| 117 |
## Training Data
|
| 118 |
|
|
@@ -185,7 +186,7 @@ Training completes in ~40 minutes on CPU (PDF rendering is the bottleneck, not t
|
|
| 185 |
- **CPU**: Any modern CPU (no GPU needed)
|
| 186 |
- **RAM**: ≥4GB
|
| 187 |
- **Python**: ≥3.10
|
| 188 |
-
- **Dependencies**: numpy, model2vec, scikit-learn,
|
| 189 |
|
| 190 |
## Citation
|
| 191 |
|
|
@@ -194,7 +195,7 @@ Training completes in ~40 minutes on CPU (PDF rendering is the bottleneck, not t
|
|
| 194 |
title = {PosterSentry: Multimodal Scientific Poster Classifier},
|
| 195 |
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},
|
| 196 |
year = {2026},
|
| 197 |
-
version = {1.
|
| 198 |
url = {https://huggingface.co/fairdataihub/poster-sentry},
|
| 199 |
note = {Part of the posters.science initiative}
|
| 200 |
}
|
|
|
|
| 35 |
|
| 36 |
| Version | Date | Notes |
|
| 37 |
|---------|------|-------|
|
| 38 |
+
| **1.1.0** | 2026-08-28 | Feature extraction moved off the AGPL-licensed PyMuPDF to pdfplumber (text and structure) and pypdfium2 (page rendering), both permissively licensed, so the whole stack is MIT-compatible. The head was retrained on the re-extracted features; held-out accuracy is 89.2%. |
|
| 39 |
+
| **1.0.0** | 2026-08-18 | Head trained on the human-validated corpus: 3,381 documents labeled by a three-reviewer survey (Krippendorff's alpha 0.79) with blinded adjudication of the 439 contested documents. |
|
| 40 |
|
| 41 |
Earlier unversioned weights (April 2026) were trained on heuristically labeled data and are superseded; they remain available in the repository history.
|
| 42 |
|
|
|
|
| 87 |
|
| 88 |
| Metric | Value |
|
| 89 |
|--------|-------|
|
| 90 |
+
| **Held-out accuracy** (508 documents) | **89.2%** (95% CI 86.2 to 91.6) |
|
| 91 |
+
| Macro F1 (held-out) | 0.892 |
|
| 92 |
+
| Precision / Recall / F1 (poster) | 0.887 / 0.897 / 0.892 |
|
| 93 |
+
| Precision / Recall / F1 (non-poster) | 0.897 / 0.886 / 0.892 |
|
| 94 |
+
| Out-of-fold accuracy (all 3,381 documents, 5-fold) | 88.0% |
|
| 95 |
+
| Classifier speed | under one second per file on a CPU (PDF parsing is the bottleneck) |
|
| 96 |
|
| 97 |
+
Errors concentrate where the human panel itself divided: out-of-fold agreement is 90.3% on documents the panel rated unanimously and 73.2% on documents decided two to one.
|
| 98 |
|
| 99 |
### Top Features by Importance
|
| 100 |
|
|
|
|
| 102 |
|
| 103 |
| Rank | Feature | Coefficient | Signal |
|
| 104 |
|------|---------|------------|--------|
|
| 105 |
+
| 1 | `line_count` | +2.80 | Posters pack many short text lines |
|
| 106 |
+
| 2 | `edge_density` | +2.61 | Visually busy layouts |
|
| 107 |
+
| 3 | `page_width_pt` | +2.22 | Posters are physically wide |
|
| 108 |
+
| 4 | `img_width` | +2.16 | Large rendered width |
|
| 109 |
+
| 5 | `size_per_page_kb` | +1.82 | Dense, high-resolution single pages |
|
| 110 |
+
| 6 | `color_diversity` | +1.70 | Posters are visually rich |
|
| 111 |
+
| 7 | `page_count` | -1.64 | More pages pushes away from poster |
|
| 112 |
+
| 8 | `font_count` | +1.52 | Many fonts across poster panels |
|
| 113 |
+
| 9 | `is_landscape` | +1.26 | Many posters are landscape |
|
| 114 |
+
| 10 | `file_size_kb` | -1.25 | Multi-page documents are bigger overall |
|
| 115 |
+
|
| 116 |
+
Structural and visual cues carry most of the decision; three embedding dimensions appear among the fifteen largest coefficients.
|
| 117 |
|
| 118 |
## Training Data
|
| 119 |
|
|
|
|
| 186 |
- **CPU**: Any modern CPU (no GPU needed)
|
| 187 |
- **RAM**: ≥4GB
|
| 188 |
- **Python**: ≥3.10
|
| 189 |
+
- **Dependencies**: numpy, model2vec, scikit-learn, pdfplumber, pypdfium2, Pillow
|
| 190 |
|
| 191 |
## Citation
|
| 192 |
|
|
|
|
| 195 |
title = {PosterSentry: Multimodal Scientific Poster Classifier},
|
| 196 |
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},
|
| 197 |
year = {2026},
|
| 198 |
+
version = {1.1.0},
|
| 199 |
url = {https://huggingface.co/fairdataihub/poster-sentry},
|
| 200 |
note = {Part of the posters.science initiative}
|
| 201 |
}
|
config.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"model_type": "poster-sentry",
|
| 3 |
-
"version": "1.
|
| 4 |
"architecture": "logistic_regression_multimodal",
|
| 5 |
"embedding_backbone": "minishlab/potion-base-32M",
|
| 6 |
"embedding_dim": 512,
|
|
@@ -15,10 +15,14 @@
|
|
| 15 |
"head_file": "models/poster_sentry_head.npz",
|
| 16 |
"scaler": "StandardScaler",
|
| 17 |
"classifier": "LogisticRegression",
|
| 18 |
-
"accuracy": 0.
|
| 19 |
-
"accuracy_ci95": [
|
| 20 |
-
|
|
|
|
|
|
|
|
|
|
| 21 |
"training_samples": 3381,
|
| 22 |
"label_provenance": "human-validated (three-reviewer survey with blinded adjudication)",
|
| 23 |
-
"library_name": "model2vec"
|
| 24 |
-
|
|
|
|
|
|
| 1 |
{
|
| 2 |
"model_type": "poster-sentry",
|
| 3 |
+
"version": "1.1.0",
|
| 4 |
"architecture": "logistic_regression_multimodal",
|
| 5 |
"embedding_backbone": "minishlab/potion-base-32M",
|
| 6 |
"embedding_dim": 512,
|
|
|
|
| 15 |
"head_file": "models/poster_sentry_head.npz",
|
| 16 |
"scaler": "StandardScaler",
|
| 17 |
"classifier": "LogisticRegression",
|
| 18 |
+
"accuracy": 0.8917,
|
| 19 |
+
"accuracy_ci95": [
|
| 20 |
+
0.8622,
|
| 21 |
+
0.9161
|
| 22 |
+
],
|
| 23 |
+
"oof_accuracy": 0.8797,
|
| 24 |
"training_samples": 3381,
|
| 25 |
"label_provenance": "human-validated (three-reviewer survey with blinded adjudication)",
|
| 26 |
+
"library_name": "model2vec",
|
| 27 |
+
"pdf_backend": "pdfplumber + pypdfium2"
|
| 28 |
+
}
|
models/poster_sentry_head.npz
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 10004
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:26b89dca324e939ecf57e6aeae06336bcc0fd43e947b6c9955acc3be2fda9c9c
|
| 3 |
size 10004
|