Privacy Preserving Topic-wise Sentiment Analysis of the Iran Israel USA Conflict Using Federated Transformer Models
arXiv cs.CL / 3/17/2026
💬 OpinionDeveloper Stack & InfrastructureIdeas & Deep AnalysisTools & Practical UsageModels & Research
Key Points
- A privacy-preserving framework for topic-wise sentiment analysis is proposed, combining topic modeling, transformer-based sentiment classifiers, and federated learning to analyze YouTube comments about the Iran-Israel-USA conflict.
- The study collected around 19,000 comments from major international news channels; initial sentiment labeling used VADER and was validated manually; LDA identified key topics related to the conflict.
- Fine-tuned transformer models (BERT, RoBERTa, XLNet, DistilBERT, ModernBERT, ELECTRA) were evaluated, with ELECTRA achieving the best accuracy at 91.32%; the federated setup achieved 89.59% accuracy with two clients, preserving privacy.
- Explainable AI with SHAP was used to interpret predictions and identify influential words, demonstrating interpretability alongside strong performance.



