Image segmentation is a crucial part in the automatic detection of rice appearance quality. Due to morphological characteristics of rice grains, missed detection and non-smooth boundaries may exist in the image segmentation of adhesive rice. To address the above issues, this study proposes a novel model named Swgan combined generative adversarial networks (GANs) with nested skip connections for obtaining accurate masks. In order to learn the mask distribution of each object in adhesive rice image and further avoid missed detection, the discriminator in GAN is used as a modifier of Cascade Mask...