Employing Brakerski/Fan-Vercauteren's for secure data classification in GRU networks for sentiment analysis
DOI:
https://doi.org/10.29304/jqcsm.2025.17.42563Keywords:
Homomorphic encryption, BFVAbstract
Due to the widespread use of technology and the resulting vast amounts of big data, which are beneficial for product and application development, sentiment analysis is one such benefit. It allows users to understand their opinions and guide development and growth in the right direction. However, the use of sensitive textual data remains a matter of privacy and requires careful handling. Therefore, users must be provided with the necessary guarantees regarding the security of their privacy. This work introduces a privacy-preserving binary sentiment analysis system that categorizes text as positive or negative through comprehensive contextual understanding while safeguarding user data using homomorphic encryption. The Gated Recurrent Unit (GRU) model is trained on unencrypted data of type IMDB and performs inference on encrypted inputs with the BFV graded homomorphic encryption technique. To facilitate efficient encrypted inference, it was replaced non-polynomial activations with low-degree polynomial approximations, reduce the depth of multiplication. The accuracy attained by the proposed technique is 90.1%.
Downloads
References
Inferati Inc. , “Introduction to the BFV FHE Scheme”, Washington, USA. https://inferati.com/blog/fhe-schemes-bfv, 2021.
Dey, R., & Salem, F. M. , “ Gate-variants of gated recurrent unit (GRU) neural networks”. In 2017 IEEE 60th international midwest symposium on circuits and systems (MWSCAS) (pp. 1597-1600). IEEE. 2017.
William Stallings, “Cryptography and Network Security Principles and Practice”, Fifth edition. Prentice-Hall, Inc, 1995.
Podschwadt, R., & Takabi, D. Classification of Encrypted Word Embeddings using Recurrent Neural Networks. In PrivateNLP@ WSDM (pp. 27-31). 2020.
Pulido-Gaytan, B., Tchernykh, A., Cortés-Mendoza, J. M., Babenko, M., Radchenko, G., Avetisyan, A., & Drozdov, A. Y. Privacy-preserving neural networks with homomorphic encryption: C hallenges and opportunities. Peer-to-Peer Networking and Applications, 14(3), 1666-1691. 2021.
Lee, J. W., Kang, H., Lee, Y., Choi, W., Eom, J., Deryabin, M., ... & No, J. S. Privacy-preserving machine learning with fully homomorphic encryption for deep neural network. iEEE Access, 10, 30039-30054. 2022.
Song, C., & Shi, X. ReActHE: A homomorphic encryption friendly deep neural network for privacy-preserving biomedical prediction. Smart Health, 32, 100469. 2024.
Njungle, N. B., Jahns, E., Stojkov, M., & Kinsy, M. A. PrivSpike: Employing Homomorphic Encryption for Private Inference of Deep Spiking Neural Networks. arXiv preprint arXiv:2510.03995. 2025.
J. Fan and F. Vercauteren, “Somewhat Practical Fully Homomorphic Encryption,” Proc. 15th Int. Conf. Pract. Theory Public Key Cryptogr., pp. 1–16, 2012.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2025 Nibras Hadi Jawad

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.








