The ovaries play a crucial role in the female reproductive system by producing eggs. However, the presence of ovarian cysts can result in complications such as torsion, infertility, and cancer. Therefore, it is crucial to diagnose ovarian cysts promptly. Detecting ovarian cysts using ultrasound images is a common practice. However, it can be challenging to separate the cyst regions from the surrounding tissue because of the complex patterns and similar intensities.