Abstract
Automated analysis of histopathological scans allows for cancer diagnosis, yet deploying deep learning models for automated classification brings the risk of misuse of patient data and privacy violations. Fully homomorphic encryption (FHE) is a cryptographic paradigm that allows for computation to be performed on encrypted data by untrusted parties, without decrypting the data. While FHE solves the problem of preserving privacy for remote computation on sensitive data, it is prohibitively computationally expensive when used with deep neural networks. To address this bottleneck, this study proposes a hybrid architecture that distributes computation between the client and the server. Our method utilizes a pretrained DINO ViT model for local image feature extraction on the client, followed by dimensionality reduction using the principal and neighborhood component analysis methods. These reduced features are then encrypted and classified remotely by a support vector machine (SVM), that can be executed in untrusted environments using FHE. We evaluated this approach on demonstrating that feature dimensions can be reduced by approximately 50% with less than one percentage point decrease in classification accuracy, while dramatically reducing encrypted model inference time.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Similar content being viewed by others
References
Alom, M.Z., et al.: Breast cancer classification from histopathological images with inception recurrent residual convolutional neural network. J. Digit. Imaging 32(4), 605–617 (2019)
Bychkov, D., et al.: Deep learning based tissue analysis predicts outcome in colorectal cancer. Sci. Rep. 8(1), 3395 (2018)
Caron, M.: Emerging properties in self-supervised vision transformers (2021)
Chandranegara, D.R.: Compact Dino-vit: feature reduction for visual transformer. Electronics 13(23) (2024)
Chandranegara, D.R., et al.: A study on highly efficient compact transformer features for histopathological image recognition. In: Artificial Intelligence and Soft Computing: 24th International Conference. ICAISC 2025, Zakopane, Poland, June 22–26, 2025, Proceedings, Part II, pp. 38–49. Springer, Heidelberg (2025)
Cheon, J.H., Kim, A., Kim, M., Song, Y.: Homomorphic encryption for arithmetic of approximate numbers. In: Takagi, T., Peyrin, T. (eds.) ASIACRYPT 2017. LNCS, vol. 10624, pp. 409–437. Springer, Cham (2017). https://doi.org/10.1007/978-3-319-70694-8_15
Chillotti, I., Gama, N., Georgieva, M., Izabachène, M.: Faster fully homomorphic encryption: bootstrapping in less than 0.1 seconds. In: Cheon, J.H., Takagi, T. (eds.) ASIACRYPT 2016. LNCS, vol. 10031, pp. 3–33. Springer, Heidelberg (2016). https://doi.org/10.1007/978-3-662-53887-6_1
Chillotti, I., et al.: Tfhe: fast fully homomorphic encryption over the torus. J. Cryptol. 33(1), 34–91 (2020)
Coudray, N., et al.: Classification and mutation prediction from non-small cell lung cancer histopathology images using deep learning. Nat. Med. 24(10), 1559–1567 (2018)
Dosovitskiy, A.: An image is worth 16x16 words: transformers for image recognition at scale (2021)
Gentry, C.: Fully homomorphic encryption using ideal lattices. In: Proceedings of the Forty-First Annual ACM Symposium on Theory of Computing, pp. 169–178. STOC ’2009, Association for Computing Machinery, New York, NY, USA (2009)
Goldberger, J., et al.: Neighbourhood components analysis. In: Proceedings of the 18th International Conference on Neural Information Processing Systems, pp. 513–520. NIPS’04, MIT Press, Cambridge, MA, USA (2004)
Hotelling, H.: Relations Between Two Sets of Variates, pp. 162–190. Springer (1992)
Kather, J.N., et al.: Multi-class texture analysis in colorectal cancer histology. Sci. Rep. 6(1), 27988 (2016)
Kather, J.N., et al.: Predicting survival from colorectal cancer histology slides using deep learning: Retrospective Multicenter Study 16, 1–22 (2019)
Koziarski, M., et al.: Diagset: a dataset for prostate cancer histopathological image classification. Sci. Rep. 14(1), 6780 (2024)
Kumar, A., et al.: Vision transformer based effective model for early detection and classification of lung cancer. SN Comput. Sci. 5(7), 839 (2024)
Łażewski, S., Cyganek, B.: Highly compressed image representation for classification and content retrieval. Integr. Comput.-Aided Eng 31(3), 267–284 (2024)
Łażewski, S., Cyganek, B.: Vision transformer representations for efficient content-based image retrieval. In: Rutkowski, L., Scherer, R., Korytkowski, M., Pedrycz, W., Tadeusiewicz, R., Zurada, J.M. (eds.) Artificial Intelligence and Soft Computing, pp. 144–157. Springer Nature Switzerland, Cham (2026)
Lee, E.: Low-complexity deep convolutional neural networks on fully homomorphic encryption using multiplexed parallel convolutions. Cryptology ePrint Archive. (). Paper 2021/1688 (2021)
Lee, J.W., et al.: Privacy-preserving machine learning with fully homomorphic encryption for deep neural network. IEEE Access 10, 30039–30054 (2022)
Mohassel, P., Zhang, Y.: Secureml: a system for scalable privacy-preserving machine learning. In: 2017 IEEE Symposium on Security and Privacy (SP), pp. 19–38. (2017)
Ozkan, M., et al.: A histopathology aware Dino model with attention based representation enhancement. Sci. Rep. 15(1), 45083 (2025)
Paladini, E.: Two ensemble-CNN approaches for colorectal cancer tissue type classification. J. Imaging 7(3) (2021)
Sabry, M.: A vision transformer approach for breast cancer classification in histopathology. In: 2024 IEEE International Symposium on Biomedical Imaging (ISBI), pp. 1–4. (2024)
Spanhol, F.A., et al.: A dataset for breast cancer histopathological image classification. IEEE Trans. Biomed. Eng. 63(7), 1455–1462 (2016)
Spanhol, F.A.: Breast cancer histopathological image classification using convolutional neural networks. In: 2016 International Joint Conference on Neural Networks (IJCNN), pp. 2560–2567 (2016)
Sriwastawa, A., et al.: Vision transformer and its variants for image classification in digital breast cancer histopathology: a comparative study. Multimedia Tools Appl. 83(13), 39731–39753 (2024)
Sun, K.: Automatic classification of histopathology images across multiple cancers based on heterogeneous transfer learning. Diagnostics 13(7), (2023)
Zhu, L.: Deep leakage from gradients (2019)
Acknowledgments
This research was funded in whole by the National Science Centre, Poland, grant number: UMO-2024/55/B/ST6/01681.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Ethics declarations
Disclosure of Interests
The authors declare no conflicts of interest.
Rights and permissions
Copyright information
© 2026 The Author(s), under exclusive license to Springer Nature Switzerland AG
About this paper
Cite this paper
Moskalewicz, D., Cyganek, B. (2026). Hybrid Privacy-preserving Histopathological Image Classification Using Fully Homomorphic Encryption. In: Paszynski, M., Barnard, A.S., Zhang, Y.J. (eds) Computational Science – ICCS 2026 Workshops. ICCS 2026. Lecture Notes in Computer Science, vol 16787. Springer, Cham. https://doi.org/10.1007/978-3-032-29909-3_38
Download citation
DOI: https://doi.org/10.1007/978-3-032-29909-3_38
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-032-29908-6
Online ISBN: 978-3-032-29909-3
eBook Packages: Computer ScienceComputer Science (R0)Springer Nature Proceedings Computer Science
