Sentiment Classification of Tweets Using Hybrid Transformers-CNN Architecture on the Twitter Platform

Authors

  • Safrizal Ardana Ardiyansa Brawijaya University https://orcid.org/0009-0007-8683-5568
  • Abdi Negara Guci Brawijaya University
  • Jemmy Febryan Brawijaya University
  • Dian Alhusari Brawijaya University
  • Haidar Ahmad Fajri Brawijaya University

DOI:

https://doi.org/10.33022/ijcs.v14i3.4653

Keywords:

Sentiment classification, Transformer-CNN, Twitter

Abstract

Twitter, now known as X, is a popular platform used to express opinions on the latest trends, making it a valuable source of data for sentiment analysis research. The huge volume of data makes manual analysis impractical because it requires a long time and human resources, so it is necessary to automate the sentiment classification process through machine learning. Machine learning can be used to classify sentiment on a large scale quickly and accurately by utilising patterns. Machine learning models such as Transformers-CNN show the most superior performance with accuracy reaching 85.71% on test data and 99.90% on training data. The accuracy on the test data was better than other architectures namely LSTM, CNN, BERT, Transformers-LSTM, and LSTM-CNN with accuracies of 84.73%; 82.27%; 77.34%; 85.71%; 84.24% respectively. Transformers-CNN also has a training time of 30.17 minutes which is shorter than Transformers-LSTM, but longer than the other architectures.

Author Biography

Safrizal Ardana Ardiyansa, Brawijaya University

My name is Safrizal Ardana Ardiyansa, a master's student in the Mathematics department at Universitas Brawijaya. I have a strong interest in mathematics and technology, which drives me to combine these two fields. I am also fascinated by innovative ways to solve problems using advanced mathematical approaches.

My primary research focus is on mathematics, swarm intelligence, and machine learning. I believe that the combination of these fields holds great potential to optimize the performance of algorithms in various applications. I am interested in exploring how algorithms inspired by the collective behavior of living organisms can be enhanced through machine learning to provide more efficient and effective solutions. My hope is to contribute to the development of technology that benefits society.

Downloads

Published

09-06-2025