Employing Brakerski/Fan-Vercauteren's for secure data classification in GRU networks for sentiment analysis

Authors

  • Nibras Hadi Jawad College of Education, University of Al-Qadisiyah

DOI:

https://doi.org/10.29304/jqcsm.2025.17.42581

Keywords:

Homomorphic encryption,, BFV, GRU.

Abstract

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

Download data is not yet available.

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.

C. Gentry, “A Fully Homomorphic Encryption Scheme,” Dissertation, no. September, p. 169, 2009.

E. M. Alsaedi and A. Farhan, “RCAE_BFV: Retrieve Encrypted Images using Convolution AutoEncoder and BFV,” Iraqi J. Comput. Commun. Control Syst. Eng., vol. 22, no. 3, pp. 48–61, 2022.

M. Babenko and E. Golimblevskaia, “About One Property of Number Rank in RNS,” Proc. 2021 IEEE Conf. Russ. Young Res. Electr. Electron. Eng. ElConRus 2021, pp. 212–216, 2021, doi: 10.1109/ElConRus51938.2021.9396072.

Mohsen, S., “ Recognition of human activity using GRU deep learning algorithm”. Multimedia Tools and Applications, 82(30), 47733-47749.‏ 2023.

Salem, F. M., “Gated RNN: the gated recurrent unit (GRU) RNN”. In Recurrent neural networks: from simple to gated architectures (pp. 85-100). Cham: Springer International Publishing.‏ 2021.

NH Jawad, “ FHE Cryptographic Systems with Using Chaotic Secret Key Generation”, Boletim da Sociedade Paranaense de Matemática.vol. 43, ISSN-0037-8712,

Downloads

Published

2025-12-30

How to Cite

Nibras Hadi Jawad. (2025). Employing Brakerski/Fan-Vercauteren’s for secure data classification in GRU networks for sentiment analysis . Journal of Al-Qadisiyah for Computer Science and Mathematics, 17(4), Comp 301–308. https://doi.org/10.29304/jqcsm.2025.17.42581

Issue

Section

Computer Articles