Image quality plays a crucial role in improving the performance of image-based classification models, particularly when raw images exhibit noise, uneven illumination, and unclear object boundaries. This study proposes a hybrid segmentation approach to enhance object separation by reducing background interference and refining object contours. The method combines Otsu thresholding for initial object–background separation with elliptical morphological operations to improve region consistency and boundary definition.The segmented grayscale images are replicated into three channels and resized to 224×224 pixels before being used as input to an EfficientNetB4-based classification model optimized with the AdamW optimizer and fine-tuning. Experimental results under identical data splits, training settings, and fine-tuning protocols show that the proposed segmentation-based method achieves a final test accuracy of 97%, outperforming the baseline model trained on raw images (95% test accuracy) using the same EfficientNetB4-AdamW configuration. These results demonstrate that incorporating segmentation in the preprocessing stage effectively enhances discriminative feature learning and improves overall classification performance.
Copyrights © 2026