Training Image Creation

The Positive Cell detection in QuPath is not accurate enough for very acellular tissue as the cell detection always recognises some tissue artefacts as cells, therefore we train an image.

To create a training image on which we can train QuPath to recognise positive cells, negative cells, and no cells we need to choose our regions of interest.

  1. Click on โ€บ โ€บ (on the three dots) โ€บ Add/Remove โ€บ Add class

    For my project, I have chosen the following classes,

    • Region

    • Ignore*

    • PositiveCell

    • NegativeCell

    • NoCell

    either

    • TissueComponent1 (e.g. CEP)

    • TissueComponent2 (e.g NP)

    • TissueComponent3 (e.g. iAF)

    • TisueComponent4 (e.g. oAF)

    or

    • Antibody 1 (e.g. IL1)

    • Antibody 2 (e.g. IL6)

    Colours can be changed by double-clicking on the coloured square in front of the class.

  1. Once the classes are added choose e.g TissueComponent1 and click on auto set, so that it automatically sets whatever you draw to the according class.

  2. By clicking on a raster will appear which can help draw squares of the same size (3x3). Fifteen to twenty regions in different slides should be chosen and saved as changes. They must represent the whole project and contain all sorts of different regions containing cells (pos/neg), tissue folds, dirt on the slide, etc. The more regions chosen to train on, the better the outcome will be, however too many can slow down the computer. Furthermore, the classifier will be optimised on additional regions later on.

  1. Once all the different regions are chosen a training image is created by choosing under classify, training images, create training image. Change the classification to TissueComponent1 and click on Ok.

Creation of training image
Training image for TissueComponent4 (oAF)
Training image for TissueComponent2 (NP)

If the question "What type of images is this?" pops up select H-DAB

Last updated