// pathology image retrieval
CKKS · CP

Search tissue findings by image

Choose a finding to explore its representative tissue crop. BiomedCLIP and KEEP rank the same nine descriptions against it.

Loading tissue crops…

Search results for 338 finding–crop pairs

We fixed each target and crop before scoring. Lesion crops came from eligible cores in the reconstructed test set for which native images were available. The table counts how often each model ranked the reference finding first among nine English descriptions on 328 lesion crops and 10 normal controls from 161 cores.

Crops and plaintext target top-1 counts by finding
Target findingCropsBiomedCLIPKEEP
Pattern 3 · discrete glands739/7318/73
Pattern 4 · fused glands1020/10214/102
Pattern 4 · cribriform476/4729/47
Pattern 4 · glomeruloid102/100/10
Pattern 5 · solid393/392/39
Pattern 5 · cords3218/326/32
Pattern 5 · single cells123/125/12
Pattern 5 · comedonecrosis131/135/13
Vendor-labelled normal control102/1010/10

The 338 evaluations use 304 distinct crop images because one crop can represent multiple findings. Of 328 lesion crops, 255 had another finding marked in the same crop. Only the preselected reference counts as a match. Normal controls use the tissue provider’s whole-core classification.

We ran one encrypted search per finding–crop pair using the production library. Both models returned the same first result as plaintext for all 338/338 pairs. All nine ranks matched on 337/338 for BiomedCLIP and 336/338 for KEEP. Lower-ranked descriptions with nearly equal scores can switch places.

The browser sends the selected public case ID to the server. That server holds the prepared image vectors and keys, evaluates ciphertexts and decrypts the scores. Protecting a hospital query from an external evaluator requires a separately verified deployment with independent key custody.

How encrypted search works

Both roles run on the demo server. For each model, the client encrypts the prepared crop embedding and the search service scores it against the public descriptions. The client decrypts and averages four independent searches to rank all nine.

Harvard Dataverse core images are CC0; other core images are attributed by source. Harvard Dataverse · Finding annotations: GleasonXAI (CC BY 4.0). See the legacy provenance for TissueArray.com source and licensing details. Representative selection and sources · Core candidate data (CSV) · Legacy crop provenance