The clinical differentiation between benign and malignant ovarian tumors represents a substantial challenge in the fields of obstetrics and gynecology, particularly following the detection of ovarian cysts through ultrasound. Ovarian cancers, diverse in type, often exhibit overlapping characteristics that complicate diagnosis. In this study, a deep learningbased methodology was developed to aid in the rapid and accurate differentiation of ovarian cancer types using ultrasound imaging. A deep learning approach, utilizing transfer learning with Convolutional Neural Network (CNN) models, was employed. To ensure the stability and robustness of the solution, ten iterations of training and validation were executed, with data randomly sampled for each iteration. The mean of the ten iterations' outcomes constituted the final evaluation metric. Initially, ultrasound images were enhanced to augment the quality of the training dataset, followed by the extraction of low-level texture features for the segmentation of images. Subsequently, ten established CNN models were utilized for both training and transfer learning processes. In the culmination of the study, a multitask model was proposed, capable of concurrently executing detection and segmentation tasks. The conducted evaluations reveal that the deep learning models can classify ovarian tumors with an accuracy of 98.79%, a rate comparable to that of skilled medical practitioners.