JOURNAL ARTICLE

Three language political leaning text classification using natural language processing methods

Yurii A. KosivVitaliy Yakovyna

Year: 2022 Journal:   Applied Aspects of Information Technology Vol: 5 (4)Pages: 359-370

Abstract

In this article, the problem of political leaning classificationof the text resource is solved. First, a detailed analysis of ten stud-ies on the work’s topicwas performed in the form of comparative characteristicsof the used methodologies.Literary sources were compared according to the problem-solvingmethods,the learning that was carried out, the evaluation metrics, and according to the vectorizations.Thus, it was determined that machine learning algorithms and neural networks, as well as vectorizationmethods TF-IDF and Word2Vec, were most often used to solve the problem.Next, various classification models of whether textual information is pro-Ukrainian or pro-Russian were built based on a dataset containing messages from social media users about the events of the large-scale Russian invasion of Ukraine from February 24, 2022.The problem was solved with the help of Support Vector Machines, Decision Tree, Random Forest, Naïve Bayes classifier,eXtreme Gradient BoostingandLogistic Regressionmachine learning algo-rithms, Convolutional Neural Networks, Long short-term memory and BERT neural networks, techniques for working with unbal-anced dataRandom Oversampling, Random Undersampling , SMOTE and SMOTETomek, as well as stacking ensembles of models.Amongthe machine learning algorithms, LR performed best, showing a macro F1-scorevalue of 0.7966 when features were trans-formed by TF-IDF vectorization and 0.7933 when BoW.Among neural networks, the best macro F1-scorevalue of 0.76was ob-tained using CNN and LSTM.Applying data balancing techniques failed to improve the results of machine learning algorithms.Next, ensembles of models from machine learning algorithms were determined. Two of the constructed ensembles achieved the same macro F1-scorevalue of 0.7966 as with LR. Ensembles that wasable to do so consisted of the TF-IDF vectorization, the B-NBC meta-model, and the SVC, NuSVC LR, and SVC, LR base models, respectively.Thus, three classifiers, the LR machine learning algorithmand two ensembles of models, which were defined as a combination of existing methods of solving the problem, demon-strated the largest macro F1-score value of 0.7966. The obtained models can be used for a detailed review of various news publica-tions according to the political leaning characteristic, information about which can help people identify being isolated by a filter bubble.

Keywords:
Artificial intelligence Machine learning Computer science Word2vec Naive Bayes classifier Random forest Artificial neural network Support vector machine Sentiment analysis Macro Decision tree Undersampling Convolutional neural network

Metrics

3
Cited By
0.59
FWCI (Field Weighted Citation Impact)
12
Refs
0.68
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Citation History

Topics

Natural Language Processing Techniques
Physical Sciences →  Computer Science →  Artificial Intelligence

Related Documents

JOURNAL ARTICLE

Text Classification by using Natural Language Processing

Peiyang YuVictor CuiJiaxin Guan

Journal:   Journal of Physics Conference Series Year: 2021 Vol: 1802 (4)Pages: 042010-042010
JOURNAL ARTICLE

Email phishing: text classification using natural language processing

Priyanka VermaAnjali GoyalYogita Gigras

Journal:   Zenodo (CERN European Organization for Nuclear Research) Year: 2020
JOURNAL ARTICLE

Email phishing: text classification using natural language processing

Verma, PriyankaGoyal, AnjaliGigras, Yogita

Journal:   Zenodo (CERN European Organization for Nuclear Research) Year: 2020
JOURNAL ARTICLE

Email phishing: text classification using natural language processing

Priyanka VermaAnjali GoyalYogita Gigras

Journal:   Computer Science and Information Technologies Year: 2020 Vol: 1 (1)Pages: 1-12
© 2026 ScienceGate Book Chapters — All rights reserved.