Background

Manual object segmentation and measurements have been one of the most popular ways to generate quantitative information from microscopy data. Such procedures are cumbersome and time consuming - an inefficient use of a microscopist's time. To gain a more detailed insight into the inspiration for the current work and its present applicability, see the following pre-print.

Instance Segmentation

instance_seg.jpg
Overview of common image segmentation methods

Instance segmentation is a type of image segmentation method that combines object detection with semantic segmentation aiming to separate both object class and instance with instance masks also generated, as shown above. This is a really powerful tool when objects are likely to be touching rendering semantic segmentation inadequate alone. When applied to Plagioclase feldspar, the model is able to pull out each separate crystal, allowing for automated textural analyses:

plag_seg_example.jpg
Example Plagioclase segmentation result using a trained instance segmentation model
with the 100 largest segmented crystals lined up in descendin size order.

Deep Learning Models

There are various deep learning models available with with multiple different flavours - see the MMDetection model zoo. Some of the most popular models are based on the Mask R-CNN architecture that are employed in the present work. Other include query based, YOLO-based and even transformer based models. All of these may be easily trained using the MMDetection toolbox and applied in an identical fashion to the pre-trained models used in PlagDetect.