Feasibility of fully homomorphic encryption in mental health risk detection via text messages
Authors:
Open Access
- 25 November 2026
- journal article
- Published by Frontiers Media SA in Frontiers in Digital Health
- Vol. 8
Abstract
Cyberbullying detection and online mental health assessments raise significant privacy concerns, requiring strict confidentiality for sensitive textual narratives. Fully Homomorphic Encryption (FHE) enables privacy-preserving machine learning inference on cloud servers, but non-linear activation functions such as the logistic sigmoid require polynomial approximations under schemes like Cheon-Kim-Kim-Song (CKKS). This paper evaluates an encrypted inference pipeline using 384-dimensional text embeddings extracted via all-MiniLM-L6-v2 and logistic regression models for risk classification across a three-party architecture (user, server, clinician). We compare 3rd-degree ( f 3 ) and 5th-degree ( f 5 ) Taylor polynomial activations under CKKS contexts with polynomial degree N = 16,384 . Empirical evaluations show that while f 5 improves global accuracy ( RMSE = 0.0190 vs. 0.0283 ), f 3 reduces homomorphic evaluation latency by 36.2% (1.55 s vs. 2.43 s per 5-sentence block). Across N = 210 targeted near-boundary test samples ( p ∈ [ 0.4 , 0.6 ] ), neither approximation induced a single classification swap across the 0.5 threshold ( MAE ≤ 0.0099 ). Additionally, we introduce a theoretical non-interactive zero-knowledge proof framework based on Fiat–Shamir with aborts to defend against Byzantine servers. Our findings demonstrate that 3rd-degree polynomial approximations offer an advantageous trade-off between computational efficiency and inference fidelity in human-in-the-loop clinical risk scoring.This publication has 16 references indexed in Scilit:
- A comparative study of validated Taylor and Chebyshev long time integration of ODEsCommunications in Nonlinear Science and Numerical Simulation, 2025
- A survey on implementations of homomorphic encryption schemesThe Journal of Supercomputing, 2023
- Prospective associations of text‐message‐based sentiment with symptoms of depression, generalized anxiety, and social anxietyDepression and Anxiety, 2022
- The role of the adversary model in applied security researchComputers & Security, 2019
- Facebook language predicts depression in medical recordsProceedings of the National Academy of Sciences of the United States of America, 2018
- Prevalence and Effect of Cyberbullying on Children and Young PeopleJAMA Pediatrics, 2015
- Cyberbullying in social networking sites: An adolescent victim’s perspectiveComputers in Human Behavior, 2014
- Decision-making in the adolescent brainNature Neuroscience, 2012
- Current and Future Trends in Internet-Supported Mental Health InterventionsJournal of Technology in Human Services, 2011
- Behavioral and emotional consequences of brief delays in human–computer interactionInternational Journal of Human-Computer Studies, 2009