Application Name | IKOSA AI Instance Segmentation App |
Version | 1.0.0 |
Documentation Version | 05.07.2022 - 1 |
Input Image(s) | 2D (standard and/or WSI) / Time Series / z-Stack / Multichannel Images; RGB or Grayscale (8/16 bit) |
Input Parameter(s) |
|
Keywords | - |
Short Description | Instance Segmentation of objects that resemble ones annotated and labeled in the training data of this application. Extraction of morphometric parameters and intensity/distance/density measures of objects and corresponding outgrowth areas. |
References / Literature |
Table of contents
Table of Contents | ||||||
---|---|---|---|---|---|---|
|
IKOSA AI Instance Segmentation App
Your IKOSA AI application was created using our training for instance segmentation algorithmsmodels. All information presented in this document is applicable to your trained application.
Application description
This application automatically segments instances of objects that resemble ones previously annotated and labeled in the training data of this application. The application supports multiple classes, for each class an outgrowth region can be defined separately. Object count, morphometric feature measurements, densities and distances between instances are calculated. Color channel intensities (Red/Green/Blue or Gray values) are measured for the object-, outgrowth-, and combined area. This analysis can also be performed on time-lapse recordings (Time Series), z-stacks or multichannel images.
In the following, the prerequisites for an accurate analysis are outlined and the output of the application is described.
Input data requirements
Input image(s)
Input for this application is the following image data:
Image type | Color channels | Color depth (per channel) | Size (px) | Resolution (μm/px) |
---|---|---|---|---|
2D (standard and/or WSI), Time Series, Multichannel, |
Z-stack* Check image format | 3 (RGB) 1 (Grayscale) | 8 Bit or 16 Bit (Gray) | WSI formats: arbitrary Standard images: max. 10,000 x 10,000 (100 MPx) | arbitrary |
Image content Arbitrary Additional requirements None |
Info |
---|
*Please note: Z-stack images cannot be uploaded into IKOSA but still can be analyzed via IKOSA Prisma API. |
Note |
---|
Important: For all images, the following requirements apply:
|
Input parameter(s)
Required input parameters:
Max. outgrowth: For each class (trained label) a maximum outgrowth in the range of 0 - 99 pixels can be defined.
As an optional parameter, a single or multiple regions of interest (ROIs) can be defined in which the analysis should be performed (‘inclusion ROIs’).
Description of output files and their content
Files
File format | Description | |||
---|---|---|---|---|
1 | csv | results.csv A csv file containing the overall analysis results for the input image or all inclusion ROIs. | ||
2 | csv | results_<xx>_<class-name>.csv A csv file containing the analysis results for all detected objects of class number <xx> with class name <class-name> (in training data) in the input image or inclusion ROIs. | ||
3 | jpg | results_vis/<xx>_<class-name>_vis.jpg (2D image, no ROI), or results_vis/<xx>_<class-name>_t<time-step>_z<z-layer>_c<channel>.jpg (for time series, z-stack, or multichannel image, no ROI), or results_vis/<xx>_<class-name>_<roi-id>.jpg (2D image, ROI <roi-id>), or results_vis/<xx>_<class-name>_t<time-step>_z<z-layer>_c<channel>_<roi-id>.jpg for time series, z-stack, or multichannel image, ROI <roi-id>): A visualization of the analysis result for a specific time step (of a time series), z-layer (of a z-stack), or channel (of a multichannel image) for either the whole image (if no inclusion ROIs selected for analysis) or each individual inclusion ROI, for each class number <xx> with class name <class-name> (in training data). Each visualization includes two parts:
| ||
4 | json | annotation_results.json A json file that includes geometries of the objects detected in the input image or inclusion ROIs. | ||
5 | json | roiMeta.json A json file containing all information regarding the ROIs defined for the analysis job to ensure reproducibility. The file is empty if no ROIs were defined for analysis. | ||
6 | jpg | rois_visualization.jpg or t<time-step>_z<z-layer>_c<channel>_rois_visualization.jpg An overview visualization to show locations of all analyzed ROIs for the 2D image or time step <time-step> of a time series, z-layer <z-layer> of a z-stack, or channel <channel> of a multichannel image.
| ||
7 | json | jobResultBundleMeta.json A json file containing all information regarding the analysis job (application name and version, project, etc.) to ensure reproducibility.
|
Info |
---|
Please note:
|
Content
results.csv
Single csv-file
If one or more time steps (of a Time Series), z-layers (of a z-Stack), or channels (of a multichannel image) were specified, the results in a specific row refer to the time step/z-layer/channel specified in the corresponding column.
If one or more ROIs were specified, the results in a specific row refer to the ROI specified in the corresponding columns, otherwise (empty ROI columns) the results refer to the whole image.
Column NO. | Column name | Examples | Value range | Description |
---|---|---|---|---|
1 | t | 3 | 1 - | Time step, i.e. the position of the image in the time series. |
2 | z | 5 | 1 - | z-layer, i.e. the position of the layer in the z-stack. |
3 | c | 2 | 1 - | Channel, i.e. the position of the channel in the multichannel image. |
4 | roi_id | ROI-03 | ROI-01 - | <roi-id> starting from “ROI1”. Empty, if no inclusion ROI is specified and the whole image was analyzed. |
5 | roi_name | “central” | text | Custom text to identify the ROI. Empty, if no inclusion ROI is specified and the whole image was analyzed. |
6 | roi_size [Px^2] | 1212212 | 1 - | Size of the ROI that was analyzed in pixels^2. The size of the whole image is given if no inclusion ROI is specified and the whole image was analyzed. |
7 | bit depth [Bit] | 8 | 8, 16 | Bit/color depth of each channel of the image |
8 | class | “cell nuclei” | text | Name of the trained label (<class-name>). |
9 | object_max_outgrowth [Px] | 2 | 0 - 99 | Maximum outgrowth in pixels. |
10 | total_num_objects | 788 | 1 - | Total number of objects which are detected in the image/ROI. |
11 | density_num_objects [1/Px^2] | 0.0007514953 | 0 - 1 | Total number of objects divided by area of image/ROI. |
12 | total_area_objects [Px^2] | 101863 | 8 - #pixels | Total area of objects which are detected in the image/ROI. |
13 | density_area_objects | 0.0971441268 | 0 - 1 | Total area of objects divided by area of image/ROI. |
14 | total_area_outgrowth [Px^2] | 125326 | 0 - #pixels | Total area of object’s outgrowth which are detected in the image/ROI. |
15 | density_area_outgrowth | 0.11952018737 | 0 - 1 | Total area of outgrowth divided by area of image/ROI. |
16 | total_area_objects_incl_outgrowth [Px^2] | 227189 | 8 - #pixels | Total area of objects including outgrowth which are detected in the image/ROI. |
17 | density_area_objects_incl_outgrowth | 0.2166643142 | 0 - 1 | Total area of objects including outgrowth divided by area of image/ROI |
18 | mean_area_objects [Px^2] | 14.324523 | 8 - #pixels | Mean area of detected objects in Pixels^2. |
19 | stddev_area_objects [Px^2] | 1.213133 | 0 - #pixels | Standard deviation of area of detected objects in Pixels^2. |
20 | median_area_objects [Px^2] | 13.983252 | 8 - # pixels | Median area of detected objects in Pixels^2. |
21 | mean_area_outgrowth [Px^2] | 21.363824 | 0 - #pixels | Mean area of outgrowth in Pixels^2. |
22 | stddev_area_outgrowth [Px^2] | 2.573912 | 0 - #pixels | Standard deviation of areas of outgrowth in Pixels^2. |
23 | median_area_outgrowth [Px^2] | 20.874623 | 0 - #pixels | Median area of outgrowth in Pixels^2. |
24 | mean_area_objects_incl_outgrowth [Px^2] | 35.836274 | 8 - #pixels | Mean area of detected objects including outgrowth in Pixels^2. |
25 | stddev_area_objects_incl_outgrowth [Px^2] | 2.309003 | 0 - #pixels | Standard deviation of area of detected objects including outgrowth in Pixels^2. |
26 | median_area_objects_incl_outgrowth [Px^2] | 35.473222 | 8 - #pixels | Median area of detected objects including outgrowth in Pixels^2. |
27 | mean_distance [Px] | 13.5016475693 | 0 - | Mean distance (center-to-center) between detected objects in Pixels. The distance is calculated by the nearest-neighbor distance to other objects of the same type. |
28 | stddev_distance [Px] | 5.5485792042 | 0 - | Standard deviation of distances between detected objects in Pixels. The distance is calculated by the nearest-neighbor distance to other objects of the same type. |
29 | median_distance [Px] | 12.529964086 | 0 - | Median distance between detected objects in Pixels. The distance is calculated by the nearest-neighbor distance to other objects of the same type. |
30 | mean_bbox_area [Px^2] | 202.03426395 | 8 - | Mean area of bounding box of detected objects in Pixels^2. |
31 | mean_area_ratio [%] |
0.0124492385 | 0 - 100 | Mean area of detected object as percentage of overall image area or ROI area inside the image. | |
32* | mean_perimeter [Px] |
40.434010152 | 8 - | Mean perimeter of detected objects in Pixels. | |
33* | mean_circularity |
0.92114213197 | 0 - ~1 | Mean circularity factor of detected objects. Circularity = 4*pi*area/(perimeter^2). The circularity of a circle is 1. Note: Detected objects with a circularity of infinity are ignored when calculating mean_circularity. | |
34* | mean_solidity |
0.9310659898 | 0 - 1 | Mean solidity value of all detected objects. Solidity is calculated out of the ratio of an object’s area to the area of its convex hull. | |
35* | mean_eccentricity |
0.7109644670 | 0 - 1 | Mean eccentricity of all detected objects. Eccentricity of the ellipse that has the same second-moments as the object area. The eccentricity is the ratio of the focal distance (distance between focal points) over the major axis length. When it is 0, the ellipse becomes a circle. | |
36* | mean_equivalent_diameter [Px] |
11.737309644 | 1 - | Mean equivalent diameter of all detected objects. The equivalent diameter is the diameter of a circle having the same area as the detected object. | |
37* | mean_extent |
0.709022842 | 0 - 1 | Mean extent of all detected objects. The extent value is the ratio of the object area to the total bounding box area. | |
38* | mean_minor_axis_length [Px] |
9.4835025380 | 1 - | Mean minor axis length of all detected objects. The minor axis length is the length of the minor axis of the ellipse that has the same normalized second central moments as the object. | |
39* | mean_major_axis_length [Px] |
15.843908629 | 1 - | Mean major axis length of all detected objects. The major axis length is the length of the major axis of the ellipse that has the same normalized second central moments as the object. | ||
For the three different color channels [CC] of an RGB image ([CC] ∈ {01, 02, 03}). For gray value images, only values for [CC]=01 are provided: | ||||
40/ 52/ … | channel_#[CC]_index | 1 | 1, 2, 3 | Index of channel |
41/ 53/ … | channel_#[CC]_name | Green | Red, Green, Blue, Gray | Color of channel |
42/ 54/ … | channel_#[CC]_total_intensity | 170486667 | 0 - 65535 x #pixels | Total intensity (sum) of this channel CC in the image/ROI. |
43/ 55/ … | channel_#[CC]_objects_mean_intensity | 272.93074030 | 0 - 65535 | Mean intensity of this channel CC over the areas of all detected objects. |
44/ 56/ … | channel_#[CC]_objects_stddev_intensity | 130.84258715 | 0 - 65535 | Standard deviation of intensity of this channel CC over the areas of all detected objects. |
45/ 57/ … | channel_#[CC]_objects_intensity_dominant | 265 | 0 - total_num_objects | Number of objects for which mean intensity is highest (=dominant) in this channel CC, compared to all other channels (mean intensity larger than in other channels of type “intensity”). |
46/ 58/ … | channel_#[CC]_outgrowth_mean_intensity | 273.26551765 | 0 - 65535, or ”” (empty) | Mean intensity of this channel CC over the areas of the outgrowths of all detected objects. Is empty ““ if no outgrowth was set (max. outgrowth was set to 0 pixels). |
47/ 59/ … | channel_#[CC]_outgrowth_stddev_intensity | 203.15327249 | 0 - 65535, or ”” (empty) | Standard deviation of intensity of this channel CC over the areas of the outgrowths of all detected objects. Is empty ““ if no outgrowth was set (max. outgrowth was set to 0 pixels). |
48/ 60/ … | channel_#[CC]_outgrowth_intensity_dominant | 724 | 0 - total_num_objects | Number of objects for which mean intensity of outgrowth areas is highest (=dominant) in this channel CC, compared to all other channels (mean intensity larger than in other channels of type “intensity”). |
49/ 61/ … | channel_#[CC]_objects_incl_outgrowth_mean_intensity | 273.115521066 | 0 - 65535 | Mean intensity of this channel CC over the areas of the objects including outgrowths of all detected objects. |
50/ 62/ … | channel_#[CC]_objects_incl_outgrowth_stddev_intensity | 174.47822028 | 0 - 65535 | Standard deviation of intensity of this channel CC over the areas of the objects including outgrowths of all detected objects. |
51/ 63/ … | channel_#[CC]_objects_incl_outgrowth_intensity_dominant | 530 | 0 - total_num_objects | Number of objects for which mean intensity of areas of detected objects incl. outgrowth is highest (=dominant) in this channel CC, compared to all other channels (mean intensity larger than in other channels of type “intensity”). |
results_<xx>_<class-name>.csv
Single or multiple csv-file(s)
If one or more time steps (of a Time Series), z-layers (of a z-Stack), or channels (of a multichannel image) were specified, the results in a specific row refer to the time step/z-layer/channel specified in the corresponding column.
If one or more ROIs were specified, the results in a specific row refer to the ROI specified in the corresponding columns, otherwise (empty ROI columns) the results refer to the whole image.
Column NO. | Column name | Examples | Value range | Description |
---|---|---|---|---|
1 | t | 3 | 1 - | Time step, i.e. the position of the image in the time series. |
2 | z | 5 | 1 - | z-layer, i.e. the position of the layer in the z-stack. |
3 | c | 2 | 1 - | Channel, i.e. the position of the channel in the multichannel image. |
4 | roi_id | ROI-03 | ROI-01 - | <roi-id> starting from “ROI1”. Empty, if no inclusion ROI is specified and the whole image was analyzed. |
5 | roi_name | “central” | text | Custom text to identify the ROI. Empty if no inclusion ROI is specified and the whole image was analyzed. |
6 | roi_size [Px^2] | 1212212 | 1 - | Size of the ROI that was analyzed in pixels^2. The size of the whole image is given if no inclusion ROI is specified and the whole image was analyzed. |
7 | bit depth [Bit] | 8 | 8, 16 | Bit/color depth of each channel of the image |
8 | max_outgrowth [Px] | 2 | 0 - 99 | Maximum outgrowth in pixels. |
9 | object_id | 5 | 1 - | ID of detected object. |
10 | object_center_x | 741 | 1 - image/ROI width | x-coordinate of object center (starting from upper left corner, along image/ROI width). |
11 | object_center_y | 26 | 1 - image/ROI height | y-coordinate of object center (starting from upper left corner, along image/ROI height). |
12 | object_area [Px^2] | 174 | 8 - | Area of object in pixels^2. |
13 | outgrowth_area [Px^2] | 310 | 0 - or ““ (empty) | Area of outgrowth in pixels^2. Is empty ““ if no outgrowth was set (max. outgrowth was set to 0 pixels). |
14 | object_incl_outgrowth_area [Px^2] | 484 | 8 - | Sum of areas of object and outgrowth in pixels^2. |
15 | distance_nearest_neighbor [Px] | 22.090722034 | 0 - | Distance (center-to-center) to the nearest other object of the same class in pixels. |
16 | bbox_area [Px^2] | 304 | 8 - | Area of bounding box of detected object in pixels^2. |
17 | area_ratio [%] | 0.02 | 0 - 100 | Area of detected object as percentage of overall image area or ROI area inside the image. |
18* | perimeter [Px] | 53 | 8 - | Perimeter of detected object in Pixels. |
19* | circularity | 0.78 | 0 - ~1 | Circularity of detected object. Circularity = 4*pi*area/(perimeter^2). The circularity of a circle is 1. |
20* | solidity | 0.97 | 0 - 1 | Solidity of detected object. Solidity is calculated out of the ratio of an object’s area to the area of its convex hull. |
21* | eccentricity | 0.92 | 0 - 1 | Eccentricity of detected object. Eccentricity of the ellipse that has the same second-moments as the object area. The eccentricity is the ratio of the focal distance (distance between focal points) over the major axis length. When it is 0, the ellipse becomes a circle. |
22* | equivalent_diameter [Px] | 14 | 1 - | Equivalent diameter of detected object. The equivalent diameter is the diameter of a circle having the same area as the detected object. |
23* | extent | 0.57 | 0 - 1 | Extent of detected object. The extent value is the ratio of the object area to the total bounding box area. |
24* | minor_axis_length [Px] | 9 | 1 - | Minor axis length of detected object. The minor axis length is the length of the minor axis of the ellipse that has the same normalized second central moments as the object. |
25* | major_axis_length [Px] | 23 | 1 - | Major axis length of detected object. The major axis length is the length of the major axis of the ellipse that has the same normalized second central moments as the object. |
For the three different color channels [CC] of an RGB image ([CC] ∈ {01, 02, 03}). For gray value images, only values for [CC]=01 are provided: | ||||
26/ 37/ … | channel_#[CC]_index | 1 | 1, 2, 3 | Index of channel |
27/ 38/ … | channel_#[CC]_name | Green | Red, Green, Blue, Gray | Color of channel |
28/ 39/ … | channel_#[CC]_object_mean_intensity | 272.93074030 | 0 - 65535 | Mean intensity of this channel CC over the area of the detected object. |
29/ 40/ … | channel_#[CC]_object_stddev_intensity | 130.84258715 | 0 - 65535 | Standard deviation of intensity of this channel CC over the area of the detected object. |
30/ 41/ … | channel_#[CC]_object_intensity_dominant | “True” | “True”, or ”False”, or ”nan” | Boolean indicator to show if the mean intensity of this channel CC over the area of the object is the highest (=dominant), compared to all other channels (mean intensity larger than in other channels of type “intensity”). |
31/ 42/ … | channel_#[CC]_outgrowth_mean_intensity | 273.26551765 | 0 - 65535, or ”” (empty) | Mean intensity of this channel CC over the area of the outgrowth for the detected object. Is empty ““ if no outgrowth was set (max. outgrowth was set to 0 pixels). |
32/ 43/ … | channel_#[CC]_outgrowth_stddev_intensity | 203.15327249 | 0 - 65535, or ”” (empty) | Standard deviation of the intensity of this channel CC over the area of the outgrowth for the detected object. Is empty ““ if no outgrowth was set (max. outgrowth was set to 0 pixels). |
33/ 44/ … | channel_#[CC]_outgrowth_intensity_dominant | “True” | “True”, or ”False”, or ”nan” | Boolean indicator to show if the mean intensity of this channel CC over the area of the outgrowth for the detected object is the highest (=dominant), compared to all other channels (mean intensity larger than in other channels of type “intensity”). Is “False“ if no outgrowth is set (max. outgrowth is 0 pixels). |
34/ 45/ … | channel_#[CC]_object_incl_outgrowth_mean_intensity | 273.115521066 | 0 - 65535 | Mean intensity of this channel CC over the combined area of the detected object and outgrowth. |
35/ 46/ … | channel_#[CC]_object_incl_outgrowth_stddev_intensity | 174.47822028 | 0 - 65535 | Standard deviation of intensity of this channel CC over the combined area of the detected object and outgrowth |
36/ 47/ … | channel_#[CC]_object_incl_outgrowth_intensity_dominant | “True” | “True”, or ”False”, or ”nan” | Boolean indicator to show if the mean intensity of this channel CC over the combined area of the detected object and outgrowth is the highest (=dominant), compared to all other channels (mean intensity larger than in other channels of type “intensity”). |
Info |
---|
Please note: The parameters marked with an asterisk (*) are calculated using https://scikit-image.org/. |
Error information
More information about errors can be found in the Application Error Documentation.
Contact
If you have any questions about IKOSA AI and the applications you can create with it, please refer to Algorithm Application Training with IKOSA AI section in the Knowledge Base.
You can also always contact our team at support@kmlvisionsupport@ikosa.comai for any further clarifications.
Feel free to book a 30-minute meeting to speak with us about IKOSA and the apps!
https://calendly.com/kmlvisionkolaido/book-the-ikosa-platform-demo