A new framework for multilingual sentiment analysis in natural language processing using a pre-trained BERT model supported by multi-class machine learning methods
Abstract
Sentiment analysis is a core Natural Language Processing (NLP) task that aims to identify the polarity, emotions, and opinions expressed in text. Its reliable performance across languages requires methods that account for linguistic and cultural variation. In this study, we investigate text embeddings from a signal-processing perspective by modeling them as potentially cyclostationary sequences. This formulation enables the characterization of hidden periodic and statistical patterns in the frequency domain and supports the extraction of informative features for sentiment prediction. We integrate cyclostationarity-based analysis with dimensionality-reduction techniques, including Principal Component Analysis (PCA) and Linear Discriminant Analysis (LDA), to enhance BERT-based sentiment analysis without modifying the underlying BERT architecture. The extracted features are subsequently used in downstream classification and regression models. Experiments conducted on five benchmark datasets spanning four languages—English, Arabic, Brazilian Portuguese, and Turkish—as well as a mixed Arabic–English corpus, demonstrate accuracy improvements of up to 28% relative to the baseline. Finally, the proposed framework is evaluated against two contemporary Large Language Models (LLMs), DeepSeek and Gemini, under a consistent experimental setting. The results indicate that cyclostationarity-informed feature extraction can improve sentiment-analysis performance across linguistically diverse datasets.