ColonSegNet is an encoder-decoder that uses residual block with squeeze and excitation network as the main component. The network is designed to have very few trainable parameters as compared to other networks baseline networks such as U-Net, PSPNet, DeepLabV3+, and others. The use of fewer trainable parameters makes the proposed architecture a very light-weight network that leads to real-time performance.
Real-Time Polyp Detection, Localization and Segmentation in Colonoscopy Using Deep Learning.
Please run the files in the following sequence:
- data_aug.py - Change the dataset path. This will create a new_data folder containing augmented data.
- train.py - If you want to use augmented data from the new_data folder then uncomment the lines from 70-74 and comment the lines 76 and 77.
- test.py - Set the proper path for the dataset in line number 55 and run the code. This will provide the scores of different evaluation metrics as well as masks which are saved in the "results" folder.
You can download the Kvasir-SEG from here: https://datasets.simula.no/downloads/kvasir-seg.zip
Note: ColonSegNet is not an end to end network for polyp detection. Basically, it is a segmentation network. We have converted the ground truth masks into bounding boxes. The link for the script can be found below:
https://github.com/sharibox/EAD2019/tree/master/fileFormatConverters
Please cite our paper if you find the work useful:
@article{jha2021real, title={Real-Time Polyp Detection, Localization and Segmentation in Colonoscopy Using Deep Learning}, author={Jha, Debesh and Ali, Sharib and Tomar, Nikhil Kumar and Johansen, H{\aa}vard D and Johansen, Dag and Rittscher, Jens and Riegler, Michael A and Halvorsen, P{\aa}l}, journal={Ieee Access}, volume={9}, pages={40496--40510}, year={2021} }
Please contact debesh.jha@northwestern.edu and nikhilroxtomar@gmail.com for any further questions.