Configuring your model
What you'll get: how to change what an active model reports without retraining: the prediction threshold, the measurements it takes, parent-child hierarchies, and grown, shrunk or ring-shaped classes.
Open the settings
Go to Projects and open your project.
On the Active models tab, click the version you want to change.
Use the sidebar on the left of the version page. Predictions is under Performance; Metrics, Class hierarchy, Size group hierarchy and Class transforms are under Configuration.
Prediction threshold
Every object the model finds has a confidence score from 0 to 1. The prediction threshold is the lowest score an object needs to be kept. A higher threshold gives fewer, surer objects; a lower one gives more objects, and more junk. It applies to object classes.

Click Predictions.
Open an image and zoom in on a spot with small specks or faint objects.
Under thresholds by size group, drag the Change threshold slider for the size group and watch the outlines appear and disappear.
When the junk is gone and the real objects stay, click Save on that row.
Older models without size groups have a single prediction threshold slider instead. Click Save as analysis default to keep it.
If good objects disappear before the junk does, the threshold can't fix it. Label more tiles and train again.
Measurements (metrics)
Metrics are what Biodock measures for every object. A new model reports X and Y Positions and Area. When you train a new version, it starts with the previous version's selection.

Click Metrics. The Analysis metrics list opens.
Type in Filter metric names to find a metric, for example
intensity.Click Include on the metric and tick the size groups to compute it for. A chip appears for each one. Click the × on a chip to remove it.
If the Parameters column shows Configure, set it up (see below).
Click Save selection.
Add only what you need: fewer metrics mean smaller result files and faster downloads. What each metric means is in the Measurement reference.
Metrics with parameters
Two kinds of metric need settings before they can be computed. Click Configure in the Parameters column:
Colocalization: Pearson and Colocalization: Manders: choose the pairs of channels to compare (channel A and channel B). Offered for images with 2 or more channels.
Area threshold: measures how much of each object is above (or below) a brightness threshold in one channel. In the Channel thresholds window, choose Percentage or Pixels, the Channel, Above or Below, the threshold, the Brightness and Contrast to apply first, and a Display name. Then click Done.

Measurements such as area are in pixels, unless the image file carried a pixel size when it was uploaded. See Supported image types.
Class hierarchy
A class hierarchy links each child object to the parent object it sits in. It lets you answer questions like:
Organoid → cell: how many cells are in each organoid?
Cell → puncta: how many puncta are in each cell?
Tissue region → positive cell: how many positive cells are in a region?
Tumor → immune cell: how far have immune cells infiltrated?

You need at least 2 classes.
Click Class hierarchy, then Add hierarchy.
Choose the Parent class and the Child class.
Set the Overlap threshold: how much of a child must fall inside a parent to count as its child.
Click Create hierarchy.

Once a hierarchy exists, the Aggregations table below it chooses what the hierarchy adds to your results:
Parent ID: adds the parent's object ID to each child. Keep it on if you want Inside a parent object populations on the results page: without it, that option is not offered.
Number of children: adds "Number of child within parent" to each parent.
Area overlap fraction of children (0–1): adds the share of each parent's area covered by its children.
Click Save selection after you change it.
Size group hierarchy
If your project has more than one size group, a size group hierarchy makes Biodock look for the child group's objects only inside the parent group's objects. For example:
Tissue region → positive cell: positive cells are only looked for inside the tissue.
Organoid → cell: cells are only looked for inside organoids.
This avoids false objects in empty background and saves time and credits, because the child model skips everything outside the parent.
You can set it up when you train (see Training a model), or later under Size group hierarchy on the version page:
Set Parent size group to the large container (for example the tissue group).
Set Child size group to the small objects (for example the nucleus group).
Click Add.
Class transforms
A class transform draws a new class from an existing one, with no extra labeling. The new class is measured like any other, intensity included.

Click Class transforms, then New transform.
Under Transform type, choose:
Grow: expand an object class by a number of pixels, for example to reach from a nucleus into the cytoplasm, or to connect puncta to the nearest cell.
Shrink: contract an object class, for example to drop autofluorescence or edge effects at a boundary.
Ring: wrap a band around any class. Set Inward (pixels) and Outward (pixels).
Choose the class to transform (for a ring, under Wrap a ring around).
For Grow or Shrink, choose the Transformed shape: Hollow (only the ring outside the original object) or Filled (the whole new shape).
Give it a Transformed class name and a Display color.
Click Create transform.
Last updated