Ravonjisoa Daniel1, *, Lidonah Franchice2, Rahajaniaina Andriamasinoro3
Ravonjisoa Daniel
Faculty of Sciences and Technology, Department of Mathematics, Computer Science and Applications, University of Toamasina, Toamasina, Madagascar
1Email: [email protected]
2Email: [email protected]
3Email: [email protected]
*Corresponding Author
This paper proposes a lightweight hybrid framework for the unsupervised clustering of breast cancer histological images. The proposed approach integrates transfer learning with metric learning and density-based clustering. Specifically, MobileFaceNet is employed as a compact feature extraction backbone, enhanced with ArcFace loss to enforce inter-class angular separability and intra-class compactness within a 64-dimensional hyperspherical embedding space. The dataset comprises 9,016 histological image patches distributed across five categories: Malignant (59.6%), Benign (27.2%), Carcinoma (5.7%), Fibroadenoma (4.9%), and Normal Tissue (2.5%), with input dimensions of (224×224×3) pixels and a batch size of 64. A two-phase training strategy over 100 epochs is adopted: in the first phase (60 epochs), the backbone is frozen while the projection head and ArcFace layer are optimized; in the second phase (40 epochs), selective fine-tuning is performed on the top layers of the backbone using a reduced learning rate. After training, Principal Component Analysis (PCA) is applied for dimensionality reduction, and two density-based clustering algorithms are compared: DBSCAN and HDBSCAN. Experimental results demonstrate that HDBSCAN outperforms DBSCAN across all evaluation metrics, achieving a Normalized Mutual Information (NMI) of 0.7008, an Adjusted Rand Index (ARI) of 0.6914, an F1-Score of 0.8062, and an Accuracy of 0.7245. Cross-validation across 5 folds confirms the stability and robustness of the proposed model. The global silhouette score of 0.435 further validates the quality of the learned cluster structures. Despite its lightweight architecture (3.6 GFLOPs), the proposed model delivers competitive clustering performance on a complex multi-class breast cancer dataset.
Breast cancer clustering, MobileFaceNet, ArcFace loss, HDBSCAN, DBSCAN, metric learning, unsupervised learning, histological image analysis, deep representation learning
Ravonjisoa Daniel, Lidonah Franchice, Rahajaniaina Andriamasinoro (2026). Hybrid Clustering of Breast Cancer Histological Images. Journal of Artificial Intelligence and Systems, 8, 106–123. https://doi.org/10.33969/AIS.2026.080107.
[1] Sung, H., et al. (2021). Global Cancer Statistics 2020: GLOBOCAN Estimates of Incidence and Mortality Worldwide for 36 Cancers in 185 Countries. CA: A Cancer Journal for Clinicians, 71(3), 209-249.
[2] Litjens, G., et al. (2017). A Survey on Deep Learning in Medical Image Analysis. Medical Image Analysis, 42, 60-88.
[3] Spanhol, F. A., Oliveira, L. S., Petitjean, C., & Heutte, L. (2016). A Dataset for Breast Cancer Histopathological Image Classification. IEEE Transactions on Biomedical Engineering, 63(7), 1455-1462.
[4] Jahanian, M., Karimi, A., Osati Eraghi, N., & Zarafshan, F. (2024). MedTransCluster: Transfer Learning for Deep Medical Image Clustering. Intelligence-Based Medicine, 9. https://doi.org/10.1016/j.ibmed.2024.100139
[5] Nahid, A.-A., Mehrabi, M. A., & Kong, Y. (2018). Histopathological Breast Cancer Image Classification by Deep Neural Network Techniques Guided by Local Clustering. BioMed Research International, 2018, 2362108. https://doi.org/10.1155/2018/2362108
[6] Eskandari, S., Eslamian, A., Munia, N., Alqarni, A., & Cheng, Q. (2025). Evaluating Deep Learning Models for Breast Cancer Classification: A Comparative Study. In Medical Imaging 2025: Digital and Computational Pathology (Vol. 13413, pp. 289-294). SPIE. https://doi.org/10.1117/12.3047441
[7] Xie, J., Liu, R., Luttrell IV, J., & Zhang, C. (2019). Deep Learning Based Analysis of Histopathological Images of Breast Cancer. Frontiers in Genetics, 10, 80. https://doi.org/10.3389/fgene.2019.00080
[8] Salloum, S. (2025). K-Means Clustering and Classification of Breast Cancer Images Using Histogram of Oriented Gradients Features and Convolutional Neural Network Models: Diagnostic Image Analysis Study. JMIR Formative Research, 9, e71974. https://doi.org/10.2196/71974
[9] Deng, J., Guo, J., Xue, N., & Zafeiriou, S. (2019). ArcFace: Additive Angular Margin Loss for Deep Face Recognition. Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 4690-4699.
[10] Chen, S., Liu, Y., Gao, X., & Han, Z. (2018). MobileFaceNets: Efficient CNNs for Accurate Real-Time Face Verification on Mobile Devices. Chinese Conference on Biometric Recognition (CCBR), 428-438.
[11] Ester, M., Kriegel, H. P., Sander, J., & Xu, X. (1996). A Density-Based Algorithm for Discovering Clusters in Large Spatial Databases with Noise. Proceedings of the 2nd International Conference on Knowledge Discovery and Data Mining (KDD), 226-231.
[12] Campello, R. J., Moulavi, D., & Sander, J. (2013). Density-Based Clustering Based on Hierarchical Density Estimates. Proceedings of the Pacific-Asia Conference on Knowledge Discovery and Data Mining (PAKDD), 160-172.
[13] Rahajaniaina, A., & Ratiarison, A. A. (2026). Lightweight Hybrid Model for Kidney Stone Images Clustering. International Research Journal of Modernization in Engineering Technology and Science, 8(4), 10045–10051. https://www.doi.org/10.56726/IRJMET'S95972.