Orain Models · Train your own 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.

Start freeComing from QuPath?
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. Over five random sets of strokes: 42-52%, then 56-65%.

Who it is for

Pathologists and scientists

You know the tissue; you do not need to write code or own a GPU.

QuPath users

Bring the annotations you already have as GeoJSON; the classes come with them.

Teams that must show it works

Every model reports how it does on tissue it never saw, per class, and ships with a model card.

Four steps

  1. 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.
  2. 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.
  3. Correct it. Orain shows you a check set of patches, half picked at random and half where it is least sure; your answers go into the next round.
  4. 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 (tumour, stroma, immune infiltrate, necrosis), 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, on each cell's measurements.

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, alongside 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 parts of the slide, and whole slides, that the model did not train on, per class, beside what always guessing the commonest class would score.

The failure shown

Orain picks the next patches to check: half at random, half where the model is least sure. Your answers go into the next round.

QuPath in and out

Import QuPath GeoJSON as labels; export your annotations as GeoJSON and the model as a bundle with its labels, predictions, a model card and a Python predict script.

From chat or Claude

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

Free to start

A free account comes with $5 of credit. Compute, storage and chat charge at provider cost plus 50%; there is no subscription and no demo call.

For a model you will publish or sell: ask Orain to set up a reader study. Several pathologists read the same patches blind in the review panel; Orain reports their agreement (Fleiss' kappa) and sends the disputed patches to an adjudicator.

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. Paint a few strokes on each of many slides, then check the patches Orain picks and train again.

Is any image sent to an outside AI model?

Not when you train from your own regions or points: the labels are your drawings, and the model trains on Orain's servers.

Do my slides train the Orain models?

No. Your slides and labels never enter the Orain models or the atlases without your written consent. A classifier you train stays in your workspace.

Can I use it for diagnosis?

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

Start free

Orain Models · For QuPath users · Pricing · Privacy