Introduction of medpmc-screening-bioformer-8l-caption-only
Model Details of medpmc-screening-bioformer-8l-caption-only
MedPMC Initial Screening Model
This model is used in the
initial screening stage
of the MedPMC data curation pipeline. It is a text-based classifier that takes a figure caption and its inline reference text from a PubMed Central article as input and predicts whether the corresponding figure is likely to be a clinically relevant medical image for downstream multimodal data curation.
This repository corresponds to the
caption only
version of the initial screening model. The input text should concatenate the figure caption and inline reference text using the following format:
"Caption": {figure_caption}
Quick start
import torch
from transformers import AutoTokenizer, AutoModelForSequenceClassification
repo_id = "Yale-BIDS-Chen/medpmc-screening-bioformer-8l-caption-only"
tokenizer = AutoTokenizer.from_pretrained(repo_id)
model = AutoModelForSequenceClassification.from_pretrained(repo_id)
model.eval()
caption = "Axial CT image showing a pulmonary nodule in the right upper lobe."
text = '"Caption": ' + caption
inputs = tokenizer(
text,
return_tensors="pt",
truncation=True,
padding=True,
max_length=512,
)
with torch.no_grad():
outputs = model(**inputs)
probs = torch.softmax(outputs.logits, dim=-1)
pred = torch.argmax(probs, dim=-1).item()
print("Prediction:", pred)
print("Probabilities:", probs.tolist())
Model Performance
MedPMC includes multiple initial screening variants depending on the input text and model backbone.
The table below summarizes the performance of different screening models evaluated on the MedPMC validation set.
medpmc-screening-bioformer-8l-caption-only huggingface.co is an AI model on huggingface.co that provides medpmc-screening-bioformer-8l-caption-only's model effect (), which can be used instantly with this Yale-BIDS-Chen medpmc-screening-bioformer-8l-caption-only model. huggingface.co supports a free trial of the medpmc-screening-bioformer-8l-caption-only model, and also provides paid use of the medpmc-screening-bioformer-8l-caption-only. Support call medpmc-screening-bioformer-8l-caption-only model through api, including Node.js, Python, http.
medpmc-screening-bioformer-8l-caption-only huggingface.co is an online trial and call api platform, which integrates medpmc-screening-bioformer-8l-caption-only's modeling effects, including api services, and provides a free online trial of medpmc-screening-bioformer-8l-caption-only, you can try medpmc-screening-bioformer-8l-caption-only online for free by clicking the link below.
Yale-BIDS-Chen medpmc-screening-bioformer-8l-caption-only online free url in huggingface.co:
medpmc-screening-bioformer-8l-caption-only is an open source model from GitHub that offers a free installation service, and any user can find medpmc-screening-bioformer-8l-caption-only on GitHub to install. At the same time, huggingface.co provides the effect of medpmc-screening-bioformer-8l-caption-only install, users can directly use medpmc-screening-bioformer-8l-caption-only installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
medpmc-screening-bioformer-8l-caption-only install url in huggingface.co: