Orain Classifiers · Custom Classifier

Train a classifier on your own slides. See how good it is before you trust it.

Paint a few examples with the brush or import your QuPath annotations. Orain trains on pathology foundation-model features of your slides, scores the model on tissue it did not train on, and shows you where it is wrong, so the next examples go where they help.

Four panels of breast H&E: brush strokes on slide 1, the map on slide 2 from another hospital with most tumour called stroma, the map after three strokes on slide 2, and the expert labels.
A demo on public data, not a product score: two 0.6 mm crops of TCGA breast slides from two hospitals, expert labels from BCSS (CC0). A few short strokes on slide 1 (three per class) gave a map that was right on 52% of slide 2 and called most of its tumour stroma; three more strokes on slide 2 took it to 65%. A guess is right 33% of the time.

Four steps

01

Show it examples

Paint a few regions per class on your slides with the brush in the viewer, or import your QuPath GeoJSON annotations. This works on H&E, IHC and multiplex IF slides once their patch features are computed.

02

Orain trains and tells you how good it is

A classifier learns from pathology foundation-model features of your slides and reports its accuracy, per class, on parts of the slide it did not train on, and on whole slides it did not train on when you give it several.

03

Correct it

Orain shows you a check set of patches, half picked at random and half where it is least sure, more of them from slides with few labels. Your answers go into the next round.

04

Run it on every slide

Each slide gets a map in the viewer and a row of numbers per slide or region, as CSV. Your annotations export to QuPath as GeoJSON, and the model as a bundle with its labels, predictions and a Python predict script.

How many examples

Spread your examples over many slides. On four breast-cancer hospitals the model never saw, labels spread over many slides gave 77% of patches right with 10 labels per class, 87% with 50 and 90% with 200. The same counts from exactly 3 slides gave 73%, 80% and 75%, and varied far more with the slides chosen (57% to 90%); no 3 slides held 100 labels of every class.

Line chart: share of patches right on 4 unseen hospitals against labelled patches per class. Labels spread over many slides: 77% at 10 per class, 87% at 50, 90% at 200. Labels from exactly 3 slides: 73% at 10, 80% at 20, 75% at 50, with a much wider spread.
Orain H&E patch classifier (Hibou-B features, logistic head), 4 classes, TCGA breast slides with BCSS expert labels (CC0). Trained on slides from 17 hospitals, scored on 1,790 patches (those where one class covers at least 60%) of 28 slides from 4 other hospitals. Always guessing the commonest test class (stroma): 38%. Mean of 10 random label sets; the band is lowest to highest.

One flow for every stain

H&E and IHC

Tissue classes from regions you draw, on the slide’s foundation-model patch features; cell classes from points you place on cells.

Multiplex IF and imaging mass cytometry

Regions on the slide’s multiplex patch features, or points on cells read through each cell’s marker values, beside marker gating and phenotypes.

A lung cancer multiplex immunofluorescence crop: the five-channel composite and each channel on its own.
Public multiplex IF: LuCa-7color_Scan1 (lung cancer, Vectra), © PerkinElmer, from the OME sample images (downloads.openmicroscopy.org), licensed CC BY 4.0 (creativecommons.org/licenses/by/4.0). Cropped and false-coloured by Orain. Channels are filter names.

What is different

A number on tissue it did not see

The score is measured on tissue the model did not train on, per class, beside what always guessing the commonest class would score.

QuPath in and out

Import QuPath GeoJSON as labels; export your annotations as GeoJSON and the model as a bundle you can run in Python.

No image leaves Orain when you draw the labels

Trained from your own regions or points, the labels are your drawings and the model trains on Orain servers. If you let Orain propose labels, a vision model sees image tiles first. Your slides never train the Orain models without your written consent.

From chat or Claude

Ask in a sentence, “train a tumour/stroma classifier on these slides from my regions”, and the Orain analyst runs the same steps in your project.

Free to start

A free account comes with $5 of credit. Compute, storage and chat are charged at provider cost plus 50%. No subscription, no demo call.

Questions

How many examples do I need?

Training starts at 10 labelled patches or cells per class. What matters more is how many slides they come from: on unseen hospitals, 50 labels per class spread over many slides gave 87% of tissue patches right, and 50 from exactly 3 slides gave 75%, with results from 60% to 80% depending on the slides.

Can I use it for diagnosis?

No. It is for research use only and is not a diagnostic device.

For research use only. Not for use in diagnostic procedures.

Train your first classifier

Upload a slide, draw a few regions of each class, and get a score on tissue the model did not see. A free account comes with $5 of credit.