Uterine fibroids are common benign tumors that originate from the smooth muscle layer of the uterus and are often associated with reproductive complications. Early identification is important for timely management and the prevention of complications such as infertility. However, diagnosing fibroids can be challenging because their symptoms often overlap with other gynecological conditions, such as adenomyosis and ovarian cysts, which may lead to delayed diagnosis or misdiagnosis. In this study, we propose a two-stage hierarchical deep learning framework that combines a Detection Transformer (DETR) for fibroid localization with an ensemble of Vision Transformers for classification using ultrasound images. The dataset was first divided at the image level prior to patch extraction, after which fibroid and normal tissue patches were generated from each subset to support model training and evaluation. This two-stage approach enables improved localization while addressing class imbalance and preserving relevant contextual information in ultrasound images. The proposed framework achieved high performance on the available dataset, with an accuracy of 99.42%, a precision of 99.10%, a recall of 99.36%, an F1 score of 99.42%, and an area under the curve (AUC) of 99.9%. However, the dataset contains a limited number of normal cases and does not include patient-level identifiers, which may affect the generalizability of the results. Therefore, further validation on larger and more diverse clinical datasets is necessary before clinical deployment.
Background: Human Epidermal Growth Factor Receptor 2 (HER2) overexpression is detected in approximately 25–30% of malignant breast cancer cases and is intrinsically associated with aggressive tumor progression. Reliable assessment of HER2 status is critical for selecting optimal targeted therapies; however, conventional immunohistochemistry (HER2 SISH) evaluation predominantly relies on visual inspection, a process that is highly subjective and susceptible to inter-observer variability. To mitigate diagnostic inconsistencies, this study proposes an automated classification framework leveraging a VGG19 convolutional neural network, fundamentally enhanced via Particle Swarm Optimization (PSO) for rigorous hyperparameter tuning. The model development and evaluation in this study were performed using a purely synthetic image dataset. Methods: The PSO algorithm is systematically employed to optimize critical training parameters, facilitating an efficient exploration of the complex search space and significantly improving the stability of the learning process. Experimental evaluations conducted on these purely synthetic high-resolution histopathology images demonstrate that the proposed PSO-VGG19 framework substantially outperforms baseline architectures, including MobileNet. Results: Specifically, the optimized system achieves a classification accuracy of 98.10%, sensitivity of 98.11%, specificity of 99.37%, and an Area Under the Curve (AUC) of 99.66%. Conclusions: These empirical results demonstrate that integrating metaheuristic optimization with deep learning architectures yields robust computational performance for HER2 patch-level classification, serving as a foundational computational proof-of-concept for future digital pathology research.