DOI: 10.11118/ecos2026_020
FINE-TUNING ROBERTA FOR SENTIMENT ANALYSIS OF SUPPORT CONVERSATIONS WITH PRIVACY-PRESERVING ANONYMISATION
- Vojtech Mahdal1, Oldrich Trenz1
- 1 Department of Informatics, Faculty of Business and Economics, Mendel University in Brno, Zemědělská 1, 613 00 Brno, Czech Republic
This article describes a prototype system for processing support-conversation text. The system accepts a text input, classifies sentiment into three classes (positive, neutral, negative), masks selected sensitive items such as names, e-mails, phone numbers, URLs, usernames and long numeric strings, and stores an anonymised record. The sentiment classifier is based on RoBERTa and was fine-tuned in three stages on public chat and dialogue datasets. Evaluation showed that the second stage reached the best score on its internal test split, but its accuracy on a separate combined test set fell from 83.41% to 70.06%. After a final fine-tuning stage on a smaller dataset with a higher share of neutral examples, the model reached 92.82% accuracy on 1,573 independent samples. The anonymisation layer is rule-based and is most suitable for structured patterns; names, especially sentence-initial capitalised words, remain the main limitation. The result is a working demonstration consisting of a FastAPI service, a JavaScript dashboard and an SQLite log, containerised with Docker and deployed on Hugging Face Spaces.
Keywords: sentiment analysis, RoBERTa, fine-tuning, anonymisation, GDPR, customer support
pages: 204-210, online: 2026
References
- ASIMOPOULOS, D., SINIOSOGLOU, I., ARGYRIOU, V., KARAMITSOU, T., FOUNTOUKIDIS, E., GOUDOS, S. K., MOSCHOLIOS, I. D., PSANNIS, K. E., SARIGIANNIDIS, P. 2024. Benchmarking Advanced Text Anonymisation Methods: A Comparative Study on Novel and Traditional Approaches. Version 1. arXiv:2404.14465 https://doi.org/10.48550/ARXIV.2404.14465
Go to original source... - HUGGING FACE. 2022. Transformers Documentation. Hugging Face. https://huggingface.co/docs/transformers/v4.17.0/en/index
- KOTAMRAJU, S. 2022. Everything You Need to Know About ALBERT, RoBERTa and DistilBERT. Towards Data Science. https://towardsdatascience.com/everything-you-need-to-know-about-albert-roberta-and-distilbert-11a74334b2da/
- LIU, B. 2012. Sentiment Analysis and Opinion Mining. San Rafael: Morgan & Claypool. https://www.cs.uic.edu/~liub/FBS/SentimentAnalysis-and-OpinionMining.pdf
- MAHDAL, V. 2026. Analysis and extraction of data from conversations between users and support services [in Czech]. Master's thesis, head: Trenz, O. Brno: Mendel University in Brno. .
- MARIANI, M. M., HASHEMI, N., WIRTZ, J. 2023. Artificial Intelligence Empowered Conversational Agents: A Systematic Literature Review and Research Agenda. Journal of Business Research. 161, 113838. https://doi.org/10.1016/j.jbusres.2023.113838
Go to original source... - SHEN, W. et al. 2024. GDPR Compliance via NLP. New York: ACM. https://doi.org/10.1145/3690931.3691009
Go to original source... - VASWANI, A., SHAZEER, N., PARMAR, N., USZKOREIT, J., JONES, L., GOMEZ, A. N., KAISER, L., POLOSUKHIN, I. 2017. Attention Is All You Need. Advances in Neural Information Processing Systems. 30.
- XU, D. et al. 2024. Large Language Models for Generative Information Extraction: A Survey. Frontiers of Computer Science. 18, 186357. https://doi.org/10.1007/s11704-024-40555-y
Go to original source...

