Dataset · Computer vision
A citation-guided dataset helps models find medically similar images
Researchers built a large collection of clinically similar image pairs from case reports. After fine-tuning, the model found a matching image in the top ten for 42.98% of image-plus-text searches, compared with 29.68% before fine-tuning.
In brief
- The researchers used citations between case reports to find candidate cases, then used clinical text and figure captions to identify matching images.
- The dataset contains 86,144 image pairs from 56,013 case reports, covering many imaging types, body regions and diagnoses.
- Fine-tuning improved retrieval: for image-plus-text searches, Hit@10 rose from 29.68% to 42.98%; for image-only searches it rose from 21.47% to 28.31%.
- In a review of 163 pairs, experts judged 147 to match overall and 10 not to match; the remaining 6 were borderline.
- The dataset contains positive pairs only, so an unlisted pair is not necessarily clinically dissimilar.
The background
A clinician, teacher or researcher may want to find images from other patients that show a similar medical problem. Image retrieval is a way to search for those examples: give the system an image, and it ranks other images by how closely they match. A figure in a published report can contain several panels, and a report may show more than one condition, so the right image has to be identified within the article as well as across articles.
BiomedCLIP is a model trained to connect biomedical images with text. Its earlier training used image-and-caption pairs from scientific papers, which helps it represent both kinds of information in a shared way. In this study, the researchers further trained it using the new image pairs. [s1]1
What the researchers did
The team began with case reports whose source articles cite one another. A citation can point to a similar medical case, but it can also be made for another reason, and it does not identify which figures match. The researchers therefore used a four-stage process: interpret the citation, generate questions comparing the cases, answer those questions from the case descriptions, and match figure captions that describe the same kind of image and abnormality.
The process is called citation-guided hierarchical image-pair annotation, or CHIPA. Its questions move from broad details such as imaging type and body system to diagnosis and specific findings. Once pairs were proposed, the team assigned labels for imaging type, anatomy and diagnosis, and divided the images into training, validation and test groups so that pairs and source articles stayed together.
What they found
The resulting PMC-PaIR dataset contains 86,144 clinically similar image pairs from 56,013 open-access case reports. The team compared CHIPA with a one-step approach on 50 case pairs: experts judged 25 of CHIPA’s 25 proposed pairs correct, compared with 12 correct out of 14 proposals from the one-step approach. The abstract describes CHIPA as finding twice as many correct pairs in this comparison.
The researchers fine-tuned BiomedCLIP and tested it on 8,096 queries. For image-only searches, the share of queries with at least one matching image among the top ten rose from 21.47% with the pretrained model to 28.31% after fine-tuning; the share of each query’s matching images found in the top ten rose from 14.62% to 20.15%. For image-plus-text searches, the corresponding top-ten hit rate rose from 29.68% to 42.98%, and the share of matching images found rose from 20.53% to 31.62%.
The gains were not equally consistent across the tested categories. For image-only search, the confidence interval excluded zero in 40 of the 44 categories; for image-plus-text search, it did so in all 44. In a separate review of 163 image pairs, experts judged 147 (90.2%) to match overall, 10 (6.1%) not to match, and 6 (3.7%) borderline.
Of 19 head-to-head comparisons the paper prints, 10 favour its own contribution, 9 go against it.
- Compared with fine-tuned (i+t)2i, 4 results: 0 favour the paper, 4 go against it.
- Compared with fine-tuned i2i, 4 results: 0 favour the paper, 4 go against it.
- Compared with pretrained BiomedCLIP (i+t)2i, 4 results: 4 favour the paper, 0 go against it.
- Compared with pretrained BiomedCLIP i2i, 4 results: 4 favour the paper, 0 go against it.
| What was measured | Result | Compared with | Difference |
|---|---|---|---|
| PMC-PaIR | |||
| clinically similar image pairs in the datasetThe released dataset | 86,144 pairs | ||
| open-access case reports contributing to the dataset | 56,013 case reports | ||
| CHIPA | |||
| correct-pair yield relative to direct matchingRandomly selected case pairs | 2 times | direct matching from full articles | |
| Selected cases | |||
| number of cases selected | 138,103 cases | ||
| Candidate case pairs | |||
| number of candidate case pairs | 159,388 case pairs | ||
| Case pairs submitted for annotation | |||
| number of case pairsAfter the listed selection criteria | 122,365 case pairs | ||
| Image pairs proposed | |||
| number of proposed image pairs | 93,113 image pairs | ||
| Veterinary-report filter | |||
| case pairs removedApplied after annotation | 534 case pairs | ||
| Released case-pair citation records | |||
| number of recordsAfter the veterinary-report filter | 121,831 records | ||
| Released image pairs | |||
| number of image pairs | 86,144 image pairs | ||
| 9899453_1_1 | |||
| positive pairs contributing to the illustrated image-level labelsIllustrative case pair | 3 positive pairs | ||
| CT labels | |||
| images labeled CTPercentages use all 86,893 images | 40,327 images | ||
Show 28 more results
| What was measured | Result | Compared with | Difference |
|---|---|---|---|
| CT labels | |||
| share of images labeled CTPercentages use all 86,893 images | 46.4 % | ||
| MRI labels | |||
| images labeled MRI | 20,104 images | ||
| share of images labeled MRI | 23.1 % | ||
| Radiography labels | |||
| images labeled radiography | 13,459 images | ||
| Thorax/respiratory labels | |||
| images with this anatomy labelImages can carry several labels per field | 12,851 images | ||
| Mass/lesion labels | |||
| images with this diagnosis labelImages can carry several labels per field | 27,277 images | ||
| Citation-intent analyses | |||
| analyses supported by the source articles and citation contexts25 randomly sampled case pairs · 95% CI 68.8--97.5% for the reported 88.0% proportion | 22 case pairs | ||
| CHIPA | |||
| precision among proposed pairs in the workflow comparison50 sampled case pairs; all pairs proposed by either workflow reviewed; 25 of 25 CHIPA proposals correct · 95% CI 86.3--100.0% | 100.0 % | single-step annotation: 85.7 | +14.3 |
| Single-step annotation | |||
| precision among proposed pairs in the workflow comparison50 sampled case pairs; 12 correct and 2 incorrect proposals · 95% CI 57.2--98.2% | 85.7 % | CHIPA: 100.0 | -14.3Goes against the paper |
| Image pairs | |||
| sampled pairs judged to match overall163 randomly sampled pairs; two independent reviewers followed by consensus · 95% CI 84.5--94.3% for the reported 90.2% proportion | 147 pairs | ||
| sampled pairs judged not to match overall163 randomly sampled pairs; errors concerned modality or anatomy · 95% CI 3.0--11.0% for the reported 6.1% proportion | 10 pairs | Goes against the paper | |
| Independent reviewers | |||
| inter-reviewer agreement on pair ratings before consensus163 randomly sampled pairs | 0.70 | ||
| Image-level labels | |||
| reviewed images whose labels were judged correct overall320 images in reviewed pairs · 95% CI 90.1--95.9% for the reported 93.4% proportion | 299 images | ||
| reviewed images whose labels were judged incorrect overall320 images in reviewed pairs · 95% CI 3.9--9.5% for the reported 6.3% proportion | 20 images | Goes against the paper | |
| Fine-tuned i2i model | |||
| rank of the example query's only positive among test candidatesIllustrative query; pretrained BiomedCLIP ranked the positive 29th among 7,844 candidates | 1 rank | pretrained BiomedCLIP: 29 | -28 (-96.6%) |
| Pretrained BiomedCLIP, i2i | |||
| Recall@10 on test queries8,096 test queries; image-only retrieval | 14.62 % | fine-tuned i2i: 20.15 | -5.53Goes against the paper |
| Hit@10 on test queries8,096 test queries; image-only retrieval | 21.47 % | fine-tuned i2i: 28.31 | -6.84Goes against the paper |
| MRR on test queries8,096 test queries; image-only retrieval | 0.111 | fine-tuned i2i: 0.143 | -0.032 (-22.4%)Goes against the paper |
| median rank of first positive8,096 test queries; image-only retrieval | 65 rank | fine-tuned i2i: 37 | +28 (+75.7%)Goes against the paper |
| Fine-tuned i2i | |||
| Recall@10 on test queries8,096 test queries; training seed 42 · 95% CI for fine-tuned minus pretrained difference: 4.61 to 6.55 percentage points | 20.15 % | pretrained BiomedCLIP i2i: 14.62 | +5.53 |
| Hit@10 on test queries8,096 test queries; training seed 42 · 95% CI for fine-tuned minus pretrained difference: 5.73 to 8.09 percentage points | 28.31 % | pretrained BiomedCLIP i2i: 21.47 | +6.84 |
| MRR on test queries8,096 test queries; training seed 42 · 95% CI for fine-tuned minus pretrained difference: 0.027 to 0.039 | 0.143 | pretrained BiomedCLIP i2i: 0.111 | +0.032 (+28.8%) |
| median rank of first positive8,096 test queries; training seed 42 | 37 rank | pretrained BiomedCLIP i2i: 65 | -28 (-43.1%) |
| Pretrained BiomedCLIP, (i+t)2i | |||
| Recall@10 on test queries8,096 test queries; image-plus-text retrieval | 20.53 % | fine-tuned (i+t)2i: 31.62 | -11.09Goes against the paper |
| Hit@10 on test queries8,096 test queries; image-plus-text retrieval | 29.68 % | fine-tuned (i+t)2i: 42.98 | -13.30Goes against the paper |
| MRR on test queries8,096 test queries; image-plus-text retrieval | 0.154 | fine-tuned (i+t)2i: 0.220 | -0.066 (-30.0%)Goes against the paper |
| Fine-tuned (i+t)2i | |||
| Recall@10 on test queries8,096 test queries; training seed 42 · 95% CI for fine-tuned minus pretrained difference: 9.89 to 12.38 percentage points | 31.62 % | pretrained BiomedCLIP (i+t)2i: 20.53 | +11.09 |
| Hit@10 on test queries8,096 test queries; training seed 42 · 95% CI for fine-tuned minus pretrained difference: 12.07 to 14.66 percentage points | 42.98 % | pretrained BiomedCLIP (i+t)2i: 29.68 | +13.30 |
What to be careful about
The dataset contains positive pairs only. Images that are not paired in the release are unlabeled, not confirmed negatives, and retrieval scores measure whether a model finds the listed pairs rather than every image that might be clinically similar. The task also excludes pairs across imaging types, even if the images show the same kind of abnormality.
The manual reviews cover samples, not every released pair or label. In the reviewed sample, 20 of 320 images had labels judged incorrect overall. The authors also note that models pretrained on figures from PubMed Central may have encountered some of the dataset’s images during pretraining.
The retrieval results use the reported test set, including 5 images whose files are withheld from distribution. The authors say that results computed using only the distributed images differ slightly; category-level confidence intervals were also not adjusted for multiple comparisons.
Who can use it
The dataset is intended for developing and comparing medical image retrieval systems, and it can also support representation learning and figure classification. Its case-comparison questions and citation information may be useful for training or evaluating systems that compare clinical cases, generate comparative questions or study why researchers cite earlier cases.
Terms explained
- case report
- A published account describing one patient's medical case, often including images and clinical details.
- image retrieval
- Searching for images related to a query image by ranking possible matches.
- image pair
- Two images from different case reports that the dataset labels as sharing an imaging type, body region and kind of abnormality.
- CHIPA
- The study's four-stage process for using citations, case descriptions, questions and image captions to propose matching image pairs.
- BiomedCLIP
- A model trained to represent biomedical images and text so their relationship can be assessed. Here it is further trained on the new image pairs.
- fine-tuning
- Further training an existing model on examples for a particular task.
- Hit@10
- The share of searches where at least one matching image appears among the ten highest-ranked results.
- Recall@10
- The average share of a query's known matching images that appear among the ten highest-ranked results.
- confidence interval
- A range used to show uncertainty around an estimated result.
Questions this paper answers
What is PMC-PaIR, the medical image retrieval dataset?
PMC-PaIR is a collection of 86,144 pairs of clinically similar images from 56,013 open-access case reports. Each pair is annotated with the imaging type, anatomy and diagnosis it shares.
How does CHIPA find similar medical images in case reports?
CHIPA uses article citations to select candidate cases, then has language models interpret the citation, compare the case descriptions with structured questions, and match figure captions for shared imaging and clinical findings.
Does fine-tuning BiomedCLIP on PMC-PaIR improve medical image retrieval?
Yes, on the paper’s test set. For image-plus-text searches, Hit@10 increased from 29.68% to 42.98%; for image-only searches it increased from 21.47% to 28.31%.
How accurate were the PMC-PaIR image pairs in expert review?
In a random sample of 163 pairs, experts judged 147 (90.2%) to match overall, 10 (6.1%) not to match, and 6 (3.7%) borderline.
Are image pairs missing from PMC-PaIR negative examples?
No. PMC-PaIR contains positive pairs only; an unlisted pair is unlabeled, not confirmed to be dissimilar.
The paper in detail
Everything below is recorded from the paper and matched against its text.
What the paper claims, in its own terms
- Shown
The authors construct PMC-PaIR, a large dataset of clinically similar image pairs from open-access case reports.
- Shown
Expert review supports the accuracy of the proposed pairs, and CHIPA identifies more correct pairs than direct single-step matching in their sampled comparison.
Holds when: The workflow comparison used randomly sampled case pairs and manually reviewed proposed pairs.
- Shown
Fine-tuning BiomedCLIP improves retrieval across the tested modality, anatomy and diagnosis categories.
Holds when: For the 44 categories meeting the query and article-group thresholds, the confidence interval excluded zero in 40 categories for i2i and all 44 for (i+t)2i.
- Shown
The release provides citation evidence and generated case-comparison questions and answers alongside the image-pair dataset.
- Shown
The image pairs are generated from text and captions without using an image model to determine the pair labels.
Holds when: The CHIPA annotation stages read text and captions.
- Shown
In the sampled workflow comparison, CHIPA proposed no incorrect pairs.
Holds when: 50 randomly selected case pairs; manually reviewed proposals.
The method, step by step
- Select citation-linked case pairs from PMC-Patients records, retaining articles associated with exactly one case.
- Retrieve source article XML, figures, captions, case descriptions and citation evidence; exclude pairs failing the required availability and verification criteria.
- Run CHIPA: infer citation intent; generate hierarchical comparative questions; answer them from the case descriptions; propose image pairs from captions and return shared descriptors.
- Post-process model responses and remove invalid, unavailable, veterinary-report and duplicate proposals.
- Map pair descriptors to controlled image-level modality, anatomy and diagnosis labels; combine labels across pairs containing each image.
- Build article groups so no source article or positive pair crosses partitions, then assign groups to training, validation and test partitions.
- Fine-tune BiomedCLIP for image-only and image-plus-text retrieval, select checkpoints using validation Recall@10 and evaluate on test queries.
- Manually review samples of citation analyses, proposed pairs, image labels and top-ranked retrieval candidates.
New in this paper
- CHIPA's four-stage citation-guided hierarchical image-pair annotation workflow.
- PMC-PaIR, its pair annotations, derived labels and article-disjoint retrieval partitions.
- Fine-tuning and evaluation of BiomedCLIP on the dataset for i2i and (i+t)2i tasks.
Taken from earlier work
- Citation-linked case records from PMC-Patients.
- BiomedCLIP pretrained on PMC-15M figure-caption pairs.
- InfoNCE contrastive training, triplet-ranking losses and hard-negative sampling from cited prior methods.
Assumptions
- Citation-linked case reports provide candidate pairs likely to concern similar patients, but the citation itself does not establish that their figures match.
- A valid positive match requires the same imaging modality family and type of abnormality within the same anatomical region or organ system.
- Case descriptions and citation intent provide context that can help match images using article captions.
- Whole article groups can be assigned to partitions to avoid source-article and positive-pair leakage.
Terms as the paper defines them
- clinically similar images
- Images from different reports that share an imaging modality, anatomical region and type of abnormality.
- case pair
- Two cases whose source articles are linked by a citation, counted once regardless of citation direction.
- positive pair
- An included pair of images from the two source articles of a citation-linked case pair.
- connected component
- A set of images linked directly or indirectly through positive pairs in the image graph.
- cross-modality matches
- Matches between images from different imaging modalities; these are excluded by the dataset's design.
Methods, datasets and ideas it names
- citation-guided hierarchical image-pair annotation (CHIPA)Method · Introduced here
A four-stage procedure that uses citation context, comparative questions and image captions to propose clinically similar image pairs.
- PMC-PaIRDataset · Introduced here
A dataset of clinically similar image pairs from open-access PubMed Central case reports.
- PMC-PatientsDataset · Used
A collection linking cases from reports when one source article cites the other.
- BiomedCLIPMethod · Used
A pretrained vision-language model fine-tuned and evaluated on the dataset.
- 12 modality categoriesOther · Used
A controlled vocabulary used to assign modality labels to images.
- 20 anatomy categoriesOther · Used
A controlled vocabulary used to assign anatomy labels to images.
- 40 diagnosis categoriesOther · Used
A controlled vocabulary used to assign diagnosis labels to images.
- i2iMethod · Used
The image-only task ranks candidates by cosine similarity between image embeddings.
- (i+t)2iMethod · Used
The image-plus-text task ranks candidates using image similarity and similarity to descriptions of the query's positive pairs.
- Hit@kMeasure · Used
The proportion of queries with at least one positive among the top k candidates.
- Recall@kMeasure · Used
The mean fraction of each query's positives found among the top k candidates.
- mean reciprocal rank (MRR)Measure · Used
The mean reciprocal rank of the first positive, with each query weighted equally.
- three-crop image representationMethod · Used
An image representation formed by resizing the image, taking three crops and averaging their embeddings.
- positive-pair graphOther · Used
An undirected graph with images as nodes and positive pairs as edges.
- article groupConcept · Introduced here
A merged group of connected components arranged so every image from a source article belongs to the same group.
- eligible negativesConcept · Used
Training images not linked directly or indirectly to the anchor through positive pairs.
- hard negativesConcept · Used
Images rated similar by pretrained BiomedCLIP but from a different connected component and source article.
- positive pairConcept · Used
A pair of images from different source articles judged to share modality, anatomy and type of abnormality.
- positive-only labelsConcept · Used
The dataset lists positive pairs; unlisted image pairs are unlabeled, not negative.
Limits the authors state
- Retrieval metrics reflect retrieval of annotated positives, not every clinically similar image in the test set.
- Unlisted pairs are unlabeled, so the dataset does not supply negative-pair labels.
- The pair definition excludes cross-modality matches, including images of the same lesion acquired with different modalities.
- Per-category results can involve overlapping query labels, and the reported intervals are not adjusted for multiple comparisons.
- With distributed image files, evaluation excludes withheld images and their pairs, so metrics differ slightly from the reported results.
- Figures may contain author-added marks that users may want to crop or mask.
- Image reuse is subject to the source articles' licenses.
- The workflow comparison evaluates proposed pairs rather than a fully labeled set of positive and negative pairs.
How the evidence was gathered
- Samples or repeats
- Manual review: 25 citation pairs; 50 case pairs in the CHIPA versus single-step comparison; 163 image pairs; 320 images for label review; and 17 retrieval queries (85 query-candidate pairs). Retrieval evaluation used 8,096 test queries, 5,000 paired cluster-bootstrap resamples, and three training seeds (42, 43 and 44) for reported seed variability.
- Uncertainty reported
- For some results
- Significance tested
- Yes
- Notes
- Manual proportion estimates include exact Clopper--Pearson 95% confidence intervals. Retrieval metric differences use 95% confidence intervals from a paired cluster bootstrap over article groups. Category intervals are not adjusted for multiple comparisons. The main Table 7 metrics are reported for training seed 42.
Code and data
- Data from the authors: https://doi.org/10.5281/zenodo.23439169 (CC BY 4.0 for original annotations and content, to the extent of the authors' rights; source images, captions and citation contexts retain source terms)
- Code from the authors: https://github.com/GuyShmueli/pmc-pair-pipeline (MIT License for code, documentation, configuration files and prompts)
- Code from the authors: https://github.com/GuyShmueli/pmc-pair-retrieval (MIT License for code, documentation, configuration files and prompts)
- Model from the authors: https://github.com/GuyShmueli/pmc-pair-retrieval (MIT License, together with the license notice of BiomedCLIP)
- Data from the authors: https://doi.org/10.5281/zenodo.23439169 (CC BY 4.0 for original annotations and content, to the extent of the authors' rights)
- Model from the authors: https://huggingface.co/dhtandguy21/PMC-PaIR-BiomedCLIP (MIT License)
- Data from the authors: https://huggingface.co/datasets/dhtandguy21/PMC-PaIR (CC BY 4.0 for original annotations and content, to the extent of the authors' rights)
Sources
Paper details
- Title
- A dataset of clinically similar image pairs from citation-linked case reports for medical image retrieval
- Authors
- Guy Shmueli, Keno K. Bressem, Tom Hope
- Published
- 23 November 2026
- Version read
- v1
- Field
- Computer vision
- arXiv
- 2611.31465
This explanation was written for this site from the paper's own source. 109 passages and figures recorded from the paper were matched against its own text; 7 that could not be matched were left off this page. It does not judge whether the paper is right, and most papers on arXiv have not been peer reviewed. Read the paper before relying on a result.