This is the official pytorch implementation of DoNet, please refer the paper and demo for more details.
Cell instance segmentation in cytology images has significant importance for biology analysis and cancer screening, while remains challenging due to 1) the extensive overlapping translucent cell clusters that cause the ambigu- ous boundaries, and 2) the confusion of mimics and debris as nuclei. In this work, we proposed a De-overlapping Network (DoNet) in a decompose-and-recombined strategy. A Dual-path Region Segmentation Module (DRM) explicitly decomposes the cell clusters into intersection and complement regions, followed by a Semantic Consistency-guided Recombination Module (CRM) for integration. To further introduce the containment relationship of the nucleus in the cytoplasm, we design a Mask-guided Region Proposal Strategy (MRP) that integrates the cell attention maps for inner-cell instance prediction. We validate the proposed approach on ISBI2014 and CPS datasets. Experiments show that our proposed DoNet significantly outperforms other state-of-the-art (SOTA) cell instance seg- mentation methods.
ISBI2014 dataset
Methods | mAP | Dice | F1 | AJI |
---|---|---|---|---|
Mask R-CNN | 59.09 | 91.15 | 92.54 | 77.07 |
Cascade R-CNN | 62.45 | 91.29 | 92.51 | 77.91 |
Mask Scoring R-CNN | 63.56 | 91.28 | 91.87 | 75.14 |
HTC | 59.62 | 91.39 | 88.08 | 75.00 |
Occlusion R-CNN | 62.35 | 91.75 | 93.18 | 78.64 |
Xiao et al. | 57.34 | 91.70 | 92.75 | 78.29 |
DoNet | 64.02 | 92.13 | 93.23 | 79.05 |
CPS dataset
Methods | mAP | Dice | F1 | AJI |
---|---|---|---|---|
Mask R-CNN | 48.28 |
89.32 |
85.07 |
69.20 |
Cascade R-CNN | 47.87 |
89.24 |
83.33 |
68.86 |
Mask Scoring R-CNN | 48.38 |
89.39 |
82.98 |
67.45 |
HTC | 47.60 |
89.08 |
81.30 |
66.35 |
Occlusion R-CNN | 48.14 |
89.08 |
85.69 |
69.51 |
Xiao et al. | 48.53 |
89.29 |
85.46 |
69.37 |
DoNet | 49.43 |
89.54 |
85.51 |
70.08 |
DoNet w/ Aug. | 49.65 |
89.50 |
86.30 |
70.56 |
Download official ISBI 2014 dataset from Overlapping Cervical Cytology Image Segmentation Challenge.
You can also download our preprocessed ISBI 2014 datasets (COCO format annotations, amodal instance GT generation).
See INSTALL.md.
Use customized_tools/inference.py
python inference.py
--annTestFile <path to the test json file>
--imgTestFile <path to the test image file>
--configFile <path to the config file>
--outputDir <path to the output directory>
--weightsFile <name of the weights file>
Download ISBI pre-trained model
Use customized_tools/evaluate.py
The evaluation code rely on a modified pycoco package that provides a new function iouIntUni
to compute intersection over union between masks, return iou, intersection, union together. For installation of the modified pycoco package, please refer to https://github.com/Amandaynzhou/MMT-PSM
python customized_tools/evaluate.py
--annTestFile <path to the test json file>
--imgTestFile <path to the test image file>
--configFile <path to the config file>
--outputDir <path to the output directory>
--weightsFile <name of the weights file>
Use customized_tools/preprocess.py
to process your dataset.
python customized_tools/preprocess.py
--json_path <path to the original json file>
--output_json_path <path to the output json file>
Use customized_tools/train.py
to train your model.
python train.py
--annTrainFile <path to the train json file>
--imgTrainFile <path to the train image file>
--annValFile <path to the validation json file>
--imgValFile <path to the validation image file>
--configFile <path to the config file>
--outputDir <path to the output directory>
(Please refer to Table 3 in the paper)
model | config file |
---|---|
Base | COCO-InstanceSegmentation/mask_rcnn_R_50_FPN_3x.yaml |
Base + DRM | COCO-InstanceSegmentation/mask_triple_branch_rcnn_R_50_FPN_3x_DRM.yaml |
Base + DRM + CRM | COCO-InstanceSegmentation/mask_triple_branch_rcnn_R_50_FPN_3x_DRM_CRM.yaml |
Base + DRM + CRM + MRP | COCO-InstanceSegmentation/mask_triple_branch_rcnn_R_50_FPN_3x_DRM_CRM_MRP.yaml |
Detectron2 is released under the Apache 2.0 license.
@InProceedings{Jiang_2023_CVPR,
author = {Jiang, Hao and Zhang, Rushan and Zhou, Yanning and Wang, Yumeng and Chen, Hao},
title = {DoNet: Deep De-Overlapping Network for Cytology Instance Segmentation},
booktitle = {Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR)},
month = {June},
year = {2023},
pages = {15641-15650}
}
The code of DoNet is built on detectron2 and ORCNN, many thanks for the Third Party Libs.
Feel free to email us if you have any questions:
Rushan Zhang(rzhangbq@connect.ust.hk), Hao Jiang(hjiangaz@cse.ust.hk)