Techcyte Hamamatsu Grundium Bionovation Barco Aiforia Roche Epredia MUSE
Digital Pathology Place Digital Pathology Place Digital Pathology Place Digital Pathology Place
  • Welcome
  • About
  • Blog
  • Podcast
  • Webinars
  • Events
  • Contact
Digital Pathology Place Digital Pathology Place
  • Welcome
  • About
  • Blog
  • Podcast
  • Webinars
  • Events
  • Contact
Apr 28
Instance segmentation markups of the microglial cell processes generated in Aiforia
Instance segmentation markups of the microglial cell processes generated in Aiforia

Instance segmentation for digital pathology tissue image analysis – what is it and why do we need it?

  • April 28, 2021
  • Blog, Image Analysis, Pathology Resources, Software
  • aiforia, computer vision, digital pathology, image analysis, instance segmentation, microglia, tissue image analysis

This post is brought to you by Aiforia.

Table of Contents

Toggle
  • IMAGE ANALYSIS FROM PATHOLOGIST’S POINT OF VIEW
  • WHAT IS IMAGE SEGMENTATION?
  • SEMANTIC SEGMENTATION VS INSTANCE SEGMENTATION

In tissue image analysis for pathology detecting structures of interest accurately is critically important. With classical, hand-crafted image analysis algorithms it was often a challenging task requiring extensive image analysis expertise. With deep learning-based image segmentation as part of the pathology toolbox, this task can now be solved by pathologists and scientists with no prior image analysis experience. One especially powerful tool is instance segmentation, offered by Aiforia‘s cloud-based artificial intelligence (AI) for image analysis platform.

IMAGE ANALYSIS FROM PATHOLOGIST’S POINT OF VIEW

When regarding tissue image analysis from the pathologist’s point of view, there are practically only two categories of structures of interest:

  • regions
  • and objects.

Regions are larger areas of the whole slide image (WSI) sharing similar characteristics, such as different types of tissues found on the same WSI or different tissue compartments within the same tissue such as tumor stroma and tumor epithelium.

Objects can refer to:

  • subcellular structures
    • e.g., cell nuclei
    •  fat vacuoles
    • cellular  processes
  • cells
    • e.g., inflammatory cells,
    • epithelial cells
    • neurons
  •  non-cell objects
    • e.g., beta-amyloid plaques
    • infectious agents
  •  and objects that are made out of cells, but where the cells themselves are not of interest
    • e.g., renal glomeruli
    • pancreatic islands
    • nerve fibers.

 

Once the structures of interests are defined and identified, pathologists are interested in quantifying them in three different ways:

 

  1. They either just want to count them
    1. e.g., counting IHC positive cells such as the Ki67 positive cells in breast cancer,
  2. they might want to localize (delineate) and quantify their total area
    1. e.g., in the tumor stroma separation
    2. or fibrosis quantification
  3. or they might want to have it all: count, delineate and quantify the area of each object of interest.

 

For these pathology challenges three different computer vision solutions can be used:

 

  1. Object detection (where we just want to identify objects and count them)
  2. semantic segmentation (where we are interested in the total area of the class of interest, see below)
  3. and instance segmentation where we want to have it all.

WHAT IS IMAGE SEGMENTATION?

Image segmentation is the division of a digital image into meaningful segments (groups of pixels) that share similar characteristics. In the context of tissue image analysis, the meaningful segments share similar characteristics because they belong to the same category (so-called class) e.g., tumor stroma, tumor epithelium, inflammatory cells, kidney glomeruli.

 

The ability to automatically segment a tissue image is the foundation of the power and great utility of image analysis for pathology.

 

Correct image segmentation is the basis of quantitative image analysis.

 

Equipped with this tool, pathologists and scientists can quantify different pathological processes in the tissue. Segmentation can be used for delineating regions as well as objects which are later assigned to a particular class, based on their characteristics (computer vision task called “classification”). In deep learning-based image analysis the segmentation is coupled with classification in processes called:

 

  • Semantic segmentation and
  • Instance segmentation

 

In both processes the deep learning model is tasked with assigning each pixel in the image to a particular class, but instance segmentation uses an additional object detection step to separate all the individual instances belonging to the same class.

SEMANTIC SEGMENTATION VS INSTANCE SEGMENTATION

If we are now able to classify every pixel in the image with semantic segmentation does that not give us a tool for solving every image analysis problem in pathology? In many cases, such as region detection and area-based measurements yes, but…

 

What do we do if we are interested in separating individual objects belonging to the same class?

 

If the objects do not touch each other and are separated by pixels assigned to a different class, semantic segmentation is sufficient.

 

But what about cases where our objects of interests, e.g., cells or cell parts are touching? With semantic segmentation, they would be merged together and detected as a region and we are interested in the numbers and characteristics (e.g., size and shape) of the individual objects.  To achieve that

 

we need to introduce an additional step of object detection. And this is exactly where instance segmentation comes in.

 

Not only does it enable us to classify every pixel in the image, but now we can also train the model to predict the individual objects belonging to the same class.

 

For example, when quantifying microglia in mouse brain tissue sections, both the number of microglia cells as well as the number and morphology of microglial processes is relevant for the researchers.

 

The microglia cells often touch each other, and several microglial processes can originate from the same stem in the cell body (soma). These touchpoints would cause merging of the objects (cells and their processes) if semantic segmentation were used.

 

In order to separate every microglial cell process branching from the soma we would need to use instance segmentation. This would give us the counts and the shapes of the microglial processes.


The morphological transitions of microglial processes have been shown to be crucial for microglial interactions with other cells. The detailed information about the length and shape of the processes could give us insights into understanding microglial functionality. If the researchers were able to characterize different categories of microglia based on the numbers and shapes of their processes, they could also correlate this information with other available data and gain even more granular insights.

Instance segmentation is the tool that can provide us with information about the shapes of our structures of interest as well as their counts. It can separate and delineate each microglial process, including processes that originate from the same stem.

To visualize how useful the instance segmentation is, let us take a step back and investigate different computer vision tasks and the granularity of the information they deliver:

Instance segmentation is the combination of all other tasks – classification, localization, object detection and semantic segmentation. As such, this tool is very suitable for solving complex pathology problems such as in our example of microglial processes. This deep learning approach is extremely useful in pathology.

 

While many AI-based software solutions for tissue image analysis already provide the option of training a deep learning model to perform semantic segmentation, instance segmentation is not yet included.

 

Aiforia, a company specializing in AI for image analysis, recognized the importance of this powerful feature for solving pathology and medical imaging problems and incorporated instance segmentation into its software. Now it is at pathologists’ and scientists’ disposal integrated into a software platform for supervised deep learning model development. Depending on the problem to solve, users can choose to perform:

  • semantic segmentation
  • semantic segmentation with object detection (if they would just want to know the microglial counts)
  • or instance segmentation (if they want to have detailed information, like the size and shape of each cell and their processes).

Each option is supported by intuitive annotation tools that let scientists start solving their image analysis problems immediately, without spending hours learning the software.

 

So, if you find yourself struggling with object delineation in your tissue image analysis project, evaluate if instance segmentation from Aiforia’s platform can help you. You can book a demo here.

  • Facebook
  • Twitter
  • Pinterest
  • LinkedIn
  • E-Mail

Related Posts

Comments are closed.

Recent Posts

  • The New Era of Pathology: Introduction to Digital Pathology Workflow with Slide-free Technology
  • Advantages and Disadvantages of Digital Pathology
  • How is Artificial Intelligence and Machine Learning Used in Pathology?

Digital Pathology Place » Image Analysis » Instance segmentation for digital pathology tissue image analysis – what is it and why do we need it?

Digital Pathology Place

Digital Pathology Place provides up-to-date information, principle knowledge, as well as advice and guidance for image analysis, tissue interpretation and implementation or optimisation of digital pathology solution. We share knowledge gained during long-term work with image analysis engineers, quality control and regulatory experts and academic and industry partners.

Recent blog posts

  • The New Era of Pathology: Introduction to Digital Pathology Workflow with Slide-free Technology
  • Advantages and Disadvantages of Digital Pathology
  • How is Artificial Intelligence and Machine Learning Used in Pathology?

Legal Pages

  • Cookies Policy
  • Disclaimer
  • Privacy Policy
  • Terms and Conditions
© 2025 Digital Pathology Place · Aleksandra Żuraw, DVM, Ph.D., Dipl. ACVP | Website by Gillen Design
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. AcceptRejectCookie settingsRead More
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT