Submitted:
17 October 2024
Posted:
18 October 2024
Read the latest preprint version here
Abstract
Keywords:
1. Introduction
1.1. Background and Motivation
- Monitoring: The system ensures mental health monitoring through digital engagement, providing regular feedback, and identifying potential crises early on.
- Privacy Protection: Individual privacy is protected by using FL and Data Obfuscation mechanisms to secure data used in interactions.
1.2. Contributions
- Novel Integration of FL and Data Obfuscation Privacy: This study introduces Federated Learning with Data Obfuscation (FL-DO), a novel approach that integrates data obfuscation techniques into federated learning to enhance privacy protection while maintaining model performance.
- Continuous and adaptive monitoring of mental health: A framework that can help with continuous and adaptive monitoring of mental health non-stop. Based on the model feedback, an alert can be triggered if a user is in a mental crisis. This approach is pretty proactive rather than reactive.
- Privacy vs. Accuracy Trade-off: Comprehensive evaluation of FL-DO’s effectiveness, demonstrating how it achieves a better balance between privacy and model accuracy compared to the traditional federated learning approaches, particularly the baseline FL-DP (LDP+CDP) [1]
- Empirical evaluation, proof of concept and POC evaluation: The paper is not limited to presenting the concept; it also provides evaluation on a bigger dataset to prove that the FL and DP model can be used in a sensitive field like mental health. The empirical evaluations confirm that such a system can be implemented for sensitive information, as well.
2. Related Work
3. Methodology
3.1. Dataset Description
3.2. Federated Learning Framework
3.3. BERT Model Configuration
3.4. Data Obfuscation Techniques
4. Experimentation
4.1. Synthetic Dataset Generation for Data Obfuscation
4.2. FL-BERT with Data Obfuscation
4.3. Performance Analysis
4.3.1. Model Privacy Validation
4.3.2. Model Privacy Validation through Adversarial Attacks
5. Discussion
5.1. Comparison of Accuracy vs. Privacy Trade-Off in Sentiment Analysis
5.2. Interpretation of Findings
5.3. Implications for Practice
5.4. Comparative Analysis: FL-DO vs. DP
5.4.1. Balancing Privacy and Accuracy
5.4.2. Improved Defense Against Privacy Attacks
5.4.3. Greater Robustness with Data-Level Privacy Protection
5.4.4. Tailored for Federated BERT-Based Sentiment Analysis
6. Practical Applications and Limitations
7. Future Directions
8. Conclusions
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Naseri, M.; Hayes, J.; De Cristofaro, E. Local and Central Differential Privacy for robustness and privacy in federated learning, 2020, [2009.03561].
- Ramaswamy, A.T.S.; D’Mello, S.; Hard, A.; Smith, E.; Mathews, R.; Eichner, H.; Kiddon, C.; Ramage, D. Federated Learning for Emoji Prediction. Proceedings of the 18th International Conference on Mobile Systems, Applications, and Services, 2019, pp. 425–437.
- Basu, P.; Roy, T.S.; Naidu, R.; Muftuoglu, Z.; Singh, S.; Mireshghallah, F. Benchmarking Differential Privacy and Federated Learning for BERT Models. arXiv preprint arXiv:2106.13973 2021.
- Wu, Q.; Chen, X.; Zhou, Z.; Zhang, J. FedHome: Cloud-edge based personalized federated learning for in-home health monitoring. IEEE Trans. Mob. Comput. 2022, 21, 2818–2832. [Google Scholar] [CrossRef]
- Nagy, B.; Hegedus, I.; Sandor, N.; Egedi, B.; Mehmood, H.; Saravanan, K.; Loki, G.; Kiss, A. Privacy-preserving Federated Learning and its application to natural language processing. Knowledge-Based Systems 2023, 268, 110475. [Google Scholar] [CrossRef]
- Heikal, M.; Torki, M.; El-Makky, N. Sentiment Analysis of Arabic Tweets using Deep Learning. Procedia Computer Science 2018, 142, 114–122. [Google Scholar] [CrossRef]
- Kamis, A.; Ismail, S.; Nazlan, M. Evaluation of DL Techniques for Twitter Sentiment Analysis. Proceedings of the 2019 3rd International Conference on Compute and Data Analysis, 2019, pp. 1–5.
- Sinha, A.; Chakma, K. A.; Chakma, K. A comparative analysis. In Communications in Computer and Information Science; Springer Nature Switzerland: Cham, 2022; pp. 123–132. [Google Scholar]
- Zhang, W.; Zhou, Y.; Chen, M.; Chen, J. Benefits and Challenges of Federated Learning in IoT Systems. Journal of Network and Computer Applications 2022, 204, 103–114. [Google Scholar]
- Qin, H.; Chen, G.; Tian, Y.; Song, Y. Improving Federated Learning for Aspect-based Sentiment Analysis via Topic Memories. Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing. Association for Computational Linguistics, 2021, pp. 3942–3954.
- Mutanov, G.; Karyukin, V.; Mamykova, Z. Multi-class sentiment analysis of social media data with machine learning algorithms. Comput. Mater. Contin. 2021, 69, 913–930. [Google Scholar] [CrossRef]
- Zadeh, A.; Chen, M.; Poria, S.; Cambria, E.; Morency, L.P. ensor Fusion Network for Multi-modal Sentiment Analysis. Proceedings of the 2017 ACM on Conference on Information and Knowledge Management 2017, pp. 1731–1740.
- Qin, H.; Chen, G.; Tian, Y.; Song, Y. Improving Federated Learning for Aspect-based Sentiment Analysis via Topic Memories. Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing (EMNLP). Association for Computational Linguistics, 2021, pp. 3942–3954.
- Juyal, I. Emotions in Text. https://www.kaggle.com/datasets/ishantjuyal/emotions-in-text, 2023. Accessed: 2024-09-24.


| Paper | Model | Accuracy (%) | Precision (%) | F1-Score (%) | Privacy |
|---|---|---|---|---|---|
| [6] | Ensemble (CNN+LSTM) | No | |||
| [11] | Naïve Bayes | No | |||
| SVM | No | ||||
| Logistic Regression | No | ||||
| k-NN | No | ||||
| Decision Tree | No | ||||
| Random Forest | No | ||||
| XGBoost | No | ||||
| [8] | SVM | - | - | No | |
| Logistic Regression | No | ||||
| Naïve Bayes | No | ||||
| Random Forest | No | ||||
| [7] | Single CNN Network | No | |||
| Single LSTM Network | No | ||||
| Individual CNN+LSTM | No | ||||
| Multiple CNN+LSTM | No | ||||
| [12] | Random | No | |||
| C-MKL | - | No | |||
| SAL-CNN | - | - | No | ||
| SVM-MD | No | ||||
| RF | No | ||||
| TFN | No | ||||
| Human | No | ||||
| [2] | Federated Learning | - | - | FL | |
| [4] | SVM | - | - | No | |
| KNN | - | - | No | ||
| RF | - | - | No | ||
| MLP | - | - | No | ||
| CNN | - | - | No | ||
| GCAE (FedHome) | - | - | FL | ||
| FL-MLP | - | - | FL | ||
| FL-CNN | - | - | FL | ||
| FL-CNN-Large | - | - | FL | ||
| FedHome-p | - | - | FL | ||
| FedHome | - | - | FL | ||
| [13] | BT-b (single) | - | - | ||
| BT-b (union) | - | - | |||
| FL (BT-b) | FL | ||||
| TM-FL (BT-b) | TM-FL | ||||
| BT-l (single) | - | - | |||
| BT-l (union) | - | - | |||
| FL (BT-l) | - | FL | |||
| TM-FL (BT-l) | - | TM-FL | |||
| [5] | FL RR-LDP (IMDB) | - | - | LDP | |
| FL RR-LDP (MovieLens) | - | - | LDP | ||
| [3] | BERT (FL-IID) | - | - | DP | |
| BERT (FL-Non IID) | - | - | DP | ||
| RoBERTa (FL-Non IID) | - | - | DP | ||
| DistilBERT (Centralized DP) | - | - | DP | ||
| DistilBERT (FL-IID) | - | - | DP | ||
| ALBERT (Centralized DP) | - | - | DP | ||
| Proposed | FL-BERT+DO | DO |
| ID | Text | Emotion |
|---|---|---|
| 1 | I didn’t feel humiliated | Sadness |
| 2 | I can go from feeling so hopeless to so damned hopeful just from being around you | Sadness |
| 3 | I’m grabbing a minute to post; I feel greedy, wrong | Anger |
| 4 | I am ever feeling nostalgic about the fireplace; I will know that it is still on | Love |
| 5 | I am feeling grouchy | Anger |
| Metric | FL-BERT with DO | LDP+CDP |
|---|---|---|
| Accuracy | ||
| Precision | ||
| Recall | ||
| F1-score |
| Attack Type | Model Type | AUC Score | Privacy Risk |
|---|---|---|---|
| Membership Inference Attack | Global Model | Low | |
| Membership Inference Attack | Local Model | Moderate | |
| Linkage Attack | Individual Clients (Macro-Avg.) | Moderate |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).