Why Use RCT-Reviewer?
RCT-Reviewer is designed as an automated ML third-party tiebreaker for Cochrane RoB and systematic reviews. Unlike generative AI, this structured machine learning model provides an instant, objective, and data-driven third opinion to resolve ties without the risk of hallucination.
-
Near-Human Accuracy
The system achieves 71.0% accuracy for Risk of Bias judgments, performing within <8% of human expert consensus (which stands at 78.3%) [1].
-
Highly Precise Extraction
In a randomized Cochrane user trial, the models demonstrated 87% Precision and 90% Recall for identifying the exact text snippets supporting the bias judgment [2].
-
Validated Acceptance
Real-world feasibility studies show that human reviewers accept the tool's judgments at a rate equal to that of their human peers (Risk Ratio 1.02) [3].
-
Rigorous Methodology
Developed by Marshall, Kuiper, and Wallace, the models were trained on 12,808 clinical trial PDFs using "distant supervision" to ensure high-quality classification without prohibitive manual labeling costs [1,4].
Architecture & Models
This project preserves the machine learning core of the original RobotReviewer while modernizing the infrastructure.
# The ML Pipeline
1. PDF Parsing: PyMuPDF (fitz) + spaCy sentence segmentation
(No Java/GROBID dependency required)
2. Feature Extract: HashingVectorizer (scikit-learn)
converts text into high-dimensional sparse matrices
3. Classification: MiniClassifier (lightweight Linear SVM wrapper)
loads pre-trained .npz weights
# SVM-Only Pipeline:
# CNN models removed due to dead TensorFlow 1.x dependencies.
# Results in a measured 4.4% F1 drop (validated in Tier B).
Model Redistribution Note: This repository contains joblib-converted model artifacts
originally developed in RobotReviewer. The old pickle model files were compressed and redistributed
into .joblib format using convert_models.py for better compatibility and
smaller file sizes.
Quick Start — Running RCT-Reviewer
Clone, install, and run the recommended mode (Hugging Face Hub):
# Clone the repository
git clone https://github.com/aurumz-rgb/RCT-Reviewer.git
cd RCT-Reviewer
# Create and activate virtual environment
python3.12 -m venv .venv
source .venv/bin/activate # Linux/macOS
.venv\Scripts\activate # Windows
# Install dependencies
pip install -r requirements.txt
python -m spacy download en_core_web_sm
# Run app2.py — Hugging Face Hub mode (recommended, no LFS required)
python -m streamlit run rct_reviewer/app2.py
Other modes: app.py uses local .joblib files (requires
git lfs pull); app1.py uses legacy .pickle/.pck
files (requires git lfs pull).
Differences from Original RobotReviewer
| Feature | Original RobotReviewer (2017) | RCT-Reviewer |
|---|---|---|
| Interface | Flask + React | Streamlit (Pure Python) |
| PDF Parsing | GROBID (Requires Java/Docker) | PyMuPDF (Native Python) |
| Task Queue | Celery + RabbitMQ | Synchronous (Local execution) |
| Data Models | MultiDict | Pydantic |
| Deployment | Docker Compose | Local Streamlit Run |
| ML Core | SVM / CNN | Same Weights (SVM prioritized) |
| Measured Accuracy Difference After CNN Removal | Baseline reference (Full Ensemble) | F1 drops 0.969 → 0.925 (Tier B, p < 0.0001) |
| Core Purpose | Automated Risk of Bias assessment for RCTs | Modernized standalone implementation for automated Risk of Bias assessment |
| Underlying ML Research | Original ML models trained on 12,808 RCT PDFs | Preserves the same trained ML models and weights |
| Risk of Bias Accuracy | ~71.0% agreement accuracy vs expert consensus | Identical SVM weights (verified Tier C); 60–76% human concordance (Tier E) |
| Supporting Text Precision | ~87% precision for rationale extraction | Same extraction models retained |
| Supporting Text Recall | ~90% recall | Same extraction models retained |
| Model Storage | Pickle / HDF5 / NPZ | Joblib / NPZ / legacy compatibility modes |
| Compatibility | Compatible with Python 3.6 | Modernized for Python 3.12 |
Note on SVM vs CNN
This project uses a Linear SVM-only pipeline instead of the
original SVM + CNN ensemble. CNN models were removed because they depend on TensorFlow 1.x/Keras
.h5 files that cannot run in a maintained environment. The SVM model preserves the core predictive signal with a
measured 4.4% F1 drop (0.925 vs 0.969, Tier B), is faster, and ensures reproducibility across all systems.
Validation
RCT-Reviewer has been independently validated against the original 2017 RobotReviewer implementation using a dedicated five-tier validation harness that runs both tools side by side and checks them against human reference standards. In short:
-
Predictive validity
On the Clinical Hedges benchmark (n = 751), the refactored RCT classifier reproduces the original code bit-for-bit (max score difference 0.0) and scores sensitivity 94.1%, specificity 88.1%, F1 0.925, kappa 0.826 against human labels.
-
CNN ablation
The cost of dropping the unmaintainable TensorFlow CNN is quantified: SVM-only F1 0.925 vs 0.969 for the original full ensemble (McNemar p < 0.0001) — most of the gap comes from publication-type features, not the CNN.
-
Risk-of-Bias fidelity
6,018/6,018 RoB judgements are identical to the original 2017 implementation (kappa 1.0), with byte-identical vectorizer outputs — published RoB accuracy therefore transfers by weight identity.
-
Parser robustness
All 1,000/1,000 corpus PDFs parsed successfully (median 1.57 s/PDF, scaling linearly with document length).
-
External human validation
On the open-access subset of the Tian 2024 human reference standard (n = 313), agreement with human reviewers is within the range published for the original tool — and the original and refactored implementations agree on 100% of judgements when given identical text.
This is only a summary. For the full methodology, per-tier statistics, figures, and step-by-step reproduction instructions, please view the README of the Validation repository.
Project File Structure
RCT-Reviewer/
├── .dockerignore
├── .gitattributes
├── .gitignore
├── .zenodo.json
├── INFO.md
├── LICENSE.txt
├── README.md
├── convert_models.py
├── requirements.txt
│
├── data/
│ ├── bias/
│ │ ├── bias_doc_level.npz
│ │ ├── bias_sent_level.npz
│ │ ├── bias_ab.npz
│ │ ├── bias_prob_clf.pck
│ │ ├── domain_clf.pck
│ │ ├── overall_clf.pck
│ │ ├── drugbank.pck
│ │ └── humans/ (AC, BOA, BPP, RSG — .hdf5/.json/.pickle)
│ ├── pico/ (I/O/P _idf.npz, _model.npz)
│ ├── rct/ (rct_svm_weights.npz + CNN artifacts retained, unused)
│ └── vocab/ (embeddings.200d.trimmed.npz)
│
└── rct_reviewer/
├── __init__.py
├── app.py (Joblib Mode)
├── app1.py (Pickle Mode)
├── app2.py (HF Hub Mode — default)
├── config.py
├── processors/ (bias_robot, pico_robot, rct_robot)
└── ui/ (streamlit components)
Troubleshooting
FileNotFoundError: data/pico/P_model.npz
You likely skipped the Git LFS step. Run git lfs pull to download the actual
model weights (only required for app.py and app1.py).
ModuleNotFoundError: No module named 'rct_reviewer'
Ensure you are running the command from the root directory, or set your
PYTHONPATH:
export PYTHONPATH=$PYTHONPATH:$(pwd)
Can't find model 'en_core_web_sm'
You forgot to download the spaCy model. Run:
python -m spacy download en_core_web_sm
References
-
Marshall IJ, Kuiper J, Wallace BC. RobotReviewer: evaluation of a system for automatically assessing bias in clinical trials. Journal of the American Medical Informatics Association. 2016;23(1):193-201. doi
-
Soboczenski F, et al. Machine learning to help researchers evaluate biases in clinical trials: a prospective, randomized user study. BMC Medical Informatics and Decision Making. 2019;19(1):96. doi
-
Nussbaumer-Streit B, et al. Automating risk of bias assessment in systematic reviews: a real-time mixed methods comparison of human researchers to a machine learning system. BMC Medical Research Methodology. 2022;22:160. doi
-
Marshall I, Kuiper J, Wallace B. Automating Risk of Bias Assessment for Clinical Trials. IEEE Journal of Biomedical and Health Informatics. 2015;19(4):1406-1412. doi
Frequently Asked Questions
What is RCT-Reviewer and how does it relate to RobotReviewer?
RCT-Reviewer is a modernized, standalone version of the original RobotReviewer developed by Marshall, Kuiper, and Wallace. It preserves the original machine learning models trained on 12,808 randomized controlled trial PDFs while modernizing the infrastructure with Streamlit, PyMuPDF, and Python 3.12 compatibility. It is designed as a third-party tiebreaker reference tool for systematic reviews.
How accurate is RCT-Reviewer for Risk of Bias assessment?
RCT-Reviewer achieves 71.0% accuracy for Risk of Bias judgments, performing within 8% of human expert consensus (which stands at 78.3%). In a randomized Cochrane user trial, the models demonstrated 87% precision and 90% recall for identifying the exact text snippets supporting each bias judgment.
Why was the CNN model removed in favor of an SVM-only pipeline?
CNN models were removed because they depend on TensorFlow 1.x/Keras .h5 files
that cannot run in a maintained environment. The Linear SVM model preserves the core predictive signal with a
measured 4.4% F1 drop (0.925 vs 0.969, Tier B), is faster, and
ensures reproducibility across all systems.
Do I need Java or GROBID to run RCT-Reviewer?
No. Unlike the original RobotReviewer which required GROBID and Java, RCT-Reviewer uses PyMuPDF (fitz) for native Python PDF parsing and spaCy for sentence segmentation. This eliminates the Java and Docker dependencies entirely.
What are the different ways to run RCT-Reviewer?
There are three modes. app.py uses compressed .joblib and
.npz files for modernized local storage. app1.py uses legacy
.pickle, .pck, and .npz files.
app2.py connects directly to the Hugging Face Hub repository
Aurumz/RCT-Reviewer without requiring large local files. The recommended
mode is app2.py for the latest version.
Is RCT-Reviewer free and open source?
Yes, RCT-Reviewer is completely free and open source under the GNU General Public License v3.0. It is a derivative work of RobotReviewer and the source code is available on GitHub.
Can RCT-Reviewer replace human reviewers in systematic reviews?
No. RCT-Reviewer is designed as a third-party tiebreaker reference. Standard systematic review guidelines require two independent human reviewers. When they disagree, RCT-Reviewer provides an instant, objective, data-driven third opinion to help resolve ties. Real-world feasibility studies show human reviewers accept the tool's judgments at a rate equal to that of their human peers.
Where can I download the RCT-Reviewer model files?
The default RCT-Reviewer model files in .joblib format are available on
Hugging Face at huggingface.co/Aurumz/RCT-Reviewer. The legacy
.pickle and .pck model files are available at huggingface.co/Aurumz/RCT-Reviewer-pickle. For running without
large downloads, use app2.py which fetches models directly from the Hugging
Face Hub.
Is my uploaded PDF data safe?
If you self-host RCT-Reviewer locally, all processing happens entirely on your machine — no data leaves your system. The hosted online version at rct-reviewer.streamlit.app processes PDFs in-memory and does not permanently store uploaded files.
Citation
If you use this software in your research, please cite both RCT-Reviewer and the original RobotReviewer paper.
RCT-Reviewer:
Sahu, V. (2026). RCT-Reviewer: A Modernized, Standalone Tool for
Automated Analysis of Clinical Trials (RCTs). Zenodo.
https://doi.org/10.5281/zenodo.20618338
@software{RCT-Reviewer,
author = {Sahu, V.},
title = {RCT-Reviewer: A Modernized, Standalone Tool for
Automated Analysis of Clinical Trials (RCTs)},
year = {2026},
publisher = {Zenodo},
doi = {10.5281/zenodo.20618338},
url = {https://doi.org/10.5281/zenodo.20618338}
}
Original RobotReviewer:
Marshall IJ, Kuiper J, Banner E, Wallace BC. “Automating Biomedical
Evidence Synthesis: RobotReviewer.” Proceedings of the Conference
of the Association for Computational Linguistics (ACL).
2017 (July): 7–12.
@article{RobotReviewer2017,
title = "Automating Biomedical Evidence Synthesis: {RobotReviewer}",
author = "Marshall, Iain J and Kuiper, Jo{\"e}l and Banner, Edward and Wallace, Byron C",
journal = "Proceedings of the Conference of the Association for Computational Linguistics (ACL)",
volume = 2017,
pages = "7--12",
month = jul,
year = 2017,
}