Melola Discovery

← Melola Discovery

Open access Journal SINTA 1

ArSentBERT: fine-tuned bidirectional encoder representations from transformers model for Arabic sentiment classification

Bulletin of Electrical Engineering and Informatics · Vol. 12 No. 2 (2023) · pp. 1196–1202

DOI
10.11591/eei.v12i2.3914
ISSN
2089-3191, 2302-9285
Published
2023-04-01
Publisher
Institute of Advanced Engineering and Science (IAES)
Language
en
License
creativecommons.org/licenses/by-sa/4.0/

Abstract

Sentiment analysis in the Arabic language is challenging because of its linguistic complexity. Arabic is complex in words, paragraphs, and sentence structure. Moreover, most Arabic documents contain multiple dialects, writing alphabets, and styles (e.g., Franco-Arab). Nevertheless, fine-tuned bidirectional encoder representations from transformers (BERT) models can provide a reasonable prediction accuracy for Arabic sentiment classification tasks. This paper presents a fine-tuning approach for BERT models for classifying Arabic sentiments. It uses Arabic BERT pre-trained models and tokenizers and includes three stages. The first stage is text preprocessing and data cleaning. The second stage uses transfer-learning of the pre-trained models’ weights and trains all encoder layers. The third stage uses a fully connected layer and a drop-out layer for classification. We tested our fine-tuned models on five different datasets that contain reviews in Arabic with different dialects and compared the results to 11 state-of-the-art models. The experiment results show that our models provide better prediction accuracy than our competitors. We show that the choice of the pre-trained BERT model and the tokenizer type improves the accuracy of Arabic sentiment classification.

Keywords

Collaboration network of the authors

7 authors · 9 co-authorship links · 2 across different organisations

Hover or tap a name to highlight its co-authors. Double-click to open the author's page.

  • Arab Academy for Science, Technology, and Maritime Transport
  • Galala University
  • Different organisations
  • Same organisation
  • Affiliation unknown
  • Thicker line = more joint articles · bigger circle = more articles
Show as table
Co-authorOrganisationJoint articles
Shourok AbdelRahimArab Academy for Science, Technology, and Maritime Transport1
Samy A. GhoniemyGalala University1
Nashwa El-BendaryArab Academy for Science, Technology, and Maritime Transport1
Islam A. MonirArab Academy for Science, Technology, and Maritime Transport1

Affiliations come from OpenAlex; journal OAI-PMH metadata carries none. Authors without an OpenAlex ID are matched by name, which can merge or split people.

Metadata source: OpenAlex API (jurnal SINTA, ADR 0048) https://openalex.org/S2765016208, first harvested 22 Nov 2026, last seen 22 Nov 2026.
Original metadata (oai_dc)
<oai_dc:dc xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/"><dc:title xml:lang="en">ArSentBERT: fine-tuned bidirectional encoder representations from transformers model for Arabic sentiment classification</dc:title><dc:creator>Mohamed Fawzy</dc:creator><dc:creator>Mohamed Waleed Fakhr</dc:creator><dc:creator>Mohamed A. Aborizka</dc:creator><dc:subject>BERT fine-tuning</dc:subject><dc:subject>Arabic language</dc:subject><dc:subject>transfer learning</dc:subject><dc:subject>Arabic dialects</dc:subject><dc:subject>text preprocessing</dc:subject><dc:subject>tokenizers</dc:subject><dc:description xml:lang="en">Sentiment analysis in the Arabic language is challenging because of its linguistic complexity. Arabic is complex in words, paragraphs, and sentence structure. Moreover, most Arabic documents contain multiple dialects, writing alphabets, and styles (e.g., Franco-Arab). Nevertheless, fine-tuned bidirectional encoder representations from transformers (BERT) models can provide a reasonable prediction accuracy for Arabic sentiment classification tasks. This paper presents a fine-tuning approach for BERT models for classifying Arabic sentiments. It uses Arabic BERT pre-trained models and tokenizers and includes three stages. The first stage is text preprocessing and data cleaning. The second stage uses transfer-learning of the pre-trained models’ weights and trains all encoder layers. The third stage uses a fully connected layer and a drop-out layer for classification. We tested our fine-tuned models on five different datasets that contain reviews in Arabic with different dialects and compared the results to 11 state-of-the-art models. The experiment results show that our models provide better prediction accuracy than our competitors. We show that the choice of the pre-trained BERT model and the tokenizer type improves the accuracy of Arabic sentiment classification.</dc:description><dc:publisher>Institute of Advanced Engineering and Science (IAES)</dc:publisher><dc:date>2023-04-01</dc:date><dc:type>info:eu-repo/semantics/article</dc:type><dc:format>application/pdf</dc:format><dc:identifier>https://doi.org/10.11591/eei.v12i2.3914</dc:identifier><dc:identifier>10.11591/eei.v12i2.3914</dc:identifier><dc:source>Bulletin of Electrical Engineering and Informatics; Vol 12 No 2 (2023); 1196-1202</dc:source><dc:source>2089-3191</dc:source><dc:source>2302-9285</dc:source><dc:language>en</dc:language><dc:relation>https://beei.org/index.php/EEI/article/download/3914/3260</dc:relation><dc:rights>https://creativecommons.org/licenses/by-sa/4.0/</dc:rights></oai_dc:dc>