1 of 36

Segmentation and Statistical Analysis of Cellular Images using Deep-Learning��Prof. Abdul Barakat

1

Reference: Pachitariu, M., Stringer, C. Cellpose 2.0: how to train your own model. Nat Methods 19, 1634–1641 (2022). 

Stringer, C., Wang, T., Michaelos, M. et al. Cellpose: a generalist algorithm for cellular segmentation. Nat Methods 18, 100–106 (2021).

Thenier, F. Segmentation of Microfluidic Images using Deep-Learning - Focusing on Image enhancement and domain transfer challenges�

2 of 36

0. Introduction

2

3 of 36

4 of 36

4

https://www.jove.com/fr/v/10511/growth-curves-generating-growth-curves-using-colony-forming-units?language=Chinese

Dataset

5 of 36

1. Preprocess images

5

6 of 36

6

Preprocess

Limit noise amplification

Deepen the gap between background and nuclei intensity values

CLAHE

Sigmoid

Reference: Thenier, F. Segmentation of Microfluidic Images using Deep-Learning - Focusing on Image enhancement and domain transfer challenges�

7 of 36

Preprocessing

8 of 36

Image quality metrics

SSIM (Structural Similarity) :

measure the visual quality of a compressed or denoised image compared to the original image, by measuring the structural similarity between the two images.

The closer to 1, the better.

PSNR (Peak Signal-to-Noise Ratio) :

PSNR is a metric used to measure the quality of reconstructed images compared to the original,

where a higher value indicates better resemblance.

Note: neither metric is perfect, and the best one to use depends on the specific application and characteristics.

 

9 of 36

9

CLAHE parameters

Sigmoid parameters

10 of 36

2. Train the model

10

11 of 36

After that, we randomly took 25 images from each cell, completed the annotation.

MCF10A

0

1

2

3

4

MCF10A_Braf

MCF10A_Rac

Annotation

0

1

2

3

4

0

1

2

3

4

12 of 36

12

13 of 36

14 of 36

15 of 36

After that, I trained the model with different numbers of images, with or without preprocessing and tested their accuracy.

16 of 36

Pachitariu, M. Nat Methods 2022

Conclusion:

Preprocessing does not seem to improve the accuracy of the model.

It is also in line with the paper: only 5 images are needed to train a more accurate model.

17 of 36

3. Use the model to segment

17

18 of 36

Use custom model to segment images

Sources: https://forum.image.sc/t/cellpose-flow-and-cell-threshold/70347/4

Flow Threshold:

It determines the maximum allowed error of the predicted flows for each mask. It's used to ensure the recovered shapes after the flow dynamics step are consistent with real ROIs.

Cell Probability Threshold:

It determines the minimum cell "probability" required for pixels to be used in dynamics determination and ROI identification.

19 of 36

20 of 36

Experiments about

Threshold: Expen Phase

B1_3_frame_0022

21 of 36

22 of 36

In the case of using the trained model,

  • Flow threshold 0.4 and Cell prob 0 yield high average precision.

Remark

23 of 36

4. Analysis the results

23

24 of 36

We ran Cellpose on each of the well images, counted the number and area change with time per well for each cell.

Statistic

MCF10A

0

1

2

3

4

MCF10A_Braf

MCF10A_Rac

0

1

2

3

4

0

1

2

3

4

25 of 36

26 of 36

27 of 36

MCF10A_0

MCF10A_2

MCF10A_3

MCF10A_4

MCF10A_1

28 of 36

MCF10A_Braf_0

MCF10A_Braf_2

MCF10A_Braf_3

MCF10A_Braf_4

MCF10A_Braf_1

29 of 36

MCF10A_Rac_0

MCF10A_ Rac_2

MCF10A_ Rac_3

MCF10A_ Rac_4

MCF10A_ Rac_1

30 of 36

31 of 36

32 of 36

  1. Cell area both increase and then decrease with time. It can be fitted with a cubic function. And cell numbers can be fitted with a logistic function.

  • MCF10A and MCF10A_Braf have similar cell area distribution and number changes. While MCF10A_Rac has a larger cell area and a more dispersed cell area over time, but also has fewer cells.

Remark:

33 of 36

5. Convolutional Autoencoder

33

34 of 36

Unsupervised learning classification

35 of 36

More work to optimize the network structure and classifier performance needs to be done in the future…

36 of 36

Thank you very much!

36