<?xml version="1.0" encoding="UTF-8"?>
<article article-type="research-article" dtd-version="1.3" xml:lang="en" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <front>
    <journal-meta>
      <journal-title-group>
        <journal-title>Journal of Artificial Intelligence and Digital Health</journal-title>
      </journal-title-group>
      <issn pub-type="epub">3139-6267</issn>
      <abbrev-journal-title abbrev-type="publisher">JAID</abbrev-journal-title>
      <publisher>
        <publisher-name>Confmeets Publishing, an imprint of Conve International Pvt Ltd</publisher-name>
        <publisher-loc>Visakhapatnam, Andhra Pradesh, India</publisher-loc>
      </publisher>
    </journal-meta>
    <article-meta>
      <article-categories>
        <subj-group subj-group-type="heading">
          <subject>Research Article</subject>
        </subj-group>
      </article-categories>
      <article-id pub-id-type="doi">10.67238/jaid.2026.v1.21</article-id>
      <article-id pub-id-type="publisher-id">JAID-26-2523</article-id>
      <title-group>
        <article-title>Transformer-based Framework for Election Outcome Prediction using Electorate Opinion</article-title>
      </title-group>
      <pub-date pub-type="epub">
        <day>09</day>
        <month>09</month>
        <year>2026</year>
      </pub-date>
      <volume>1</volume>
      <issue>2</issue>
      <fpage>160</fpage>
      <lpage>169</lpage>
      <counts>
        <page-count count="10"/>
      </counts>
      <history>
        <date date-type="received">
          <day>20</day>
          <month>07</month>
          <year>2026</year>
        </date>
        <date date-type="rev-recd">
          <day>17</day>
          <month>08</month>
          <year>2026</year>
        </date>
        <date date-type="pub">
          <day>09</day>
          <month>09</month>
          <year>2026</year>
        </date>
      </history>
      <permissions>
        <license xlink:href="https://creativecommons.org/licenses/by/4.0/" license-type="open-access">
          <license-p>This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (CC BY 4.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.</license-p>
        </license>
      </permissions>
      <self-uri content-type="pdf" xlink:href="https://www.confmeets.com/journals/jaid/articles/JAID-26-2523-14.pdf"/>
      <aff id="aff1">
        <institution-wrap>
          <institution>Department of Information Systems, Faculty of Computing, University of Uyo, Uyo, Nigeria</institution>
        </institution-wrap>
      </aff>
      <aff id="aff2">
        <institution-wrap>
          <institution>Department of Software Engineering, Faculty of Computing, University of Uyo, Uyo, Nigeria</institution>
        </institution-wrap>
      </aff>
      <aff id="aff3">
        <institution-wrap>
          <institution>Department of Computer Science, Faculty of Computing, University of Uyo, Uyo, Nigeria</institution>
        </institution-wrap>
      </aff>
      <aff id="aff4">
        <institution-wrap>
          <institution>Department of computer Engineering, Faculty of Engineering, University of Uyo, Uyo, Nigeria</institution>
        </institution-wrap>
      </aff>
      <contrib-group>
        <contrib contrib-type="author">
          <name>
            <surname>Uduak</surname>
            <given-names>Umoh Augustine</given-names>
          </name>
          <xref ref-type="aff" rid="aff1"/>
        </contrib>
        <contrib contrib-type="author">
          <name>
            <surname>Ekong</surname>
            <given-names>Victor Eshiet</given-names>
          </name>
          <xref ref-type="aff" rid="aff2"/>
        </contrib>
        <contrib contrib-type="author">
          <name>
            <surname>Fakiesi</surname>
            <given-names>Temitope Joel</given-names>
          </name>
          <xref ref-type="aff" rid="aff3"/>
        </contrib>
        <contrib contrib-type="author">
          <name>
            <surname>Asuquo</surname>
            <given-names>Philip</given-names>
          </name>
          <xref ref-type="aff" rid="aff4"/>
        </contrib>
      </contrib-group>
      <abstract>
        <p>The accurate prediction of election outcomes plays a pivotal role in enhancing democratic processes by offering insights into voter behaviour and informing strategic decision-making for policymakers, political parties, and media organizations. This study introduces a novel framework leveraging the Robustly Optimized BERT Pretraining Approach (RoBERTa) to predict election results through sentiment analysis of public opinions expressed on X (formerly Twitter). By analyzing nuanced linguistic patterns in social media discourse, the research addresses the challenges of sentiment ambiguity and class imbalance. A case study on the 2023 Nigerian presidential election, focusing on Akwa Ibom State, demonstrates the effectiveness of this framework. The RoBERTa model achieved notable accuracy in predicting election outcomes, highlighting its potential for bridging the gap between online sentiment and real-world electoral results. The model achieved a higher precision, recall, and F1-score for the Negative class, with values of 0.95, 0.97, and 0.96, respectively, indicating exceptional performance in identifying and classifying negative sentiments. This framework underscores the transformative power of transformer-based architectures in electoral studies, offering avenues for more transparent and data-driven decision-making in political analysis.</p>
      </abstract>
      <kwd-group kwd-group-type="author">
        <kwd>Election</kwd>
        <kwd>Transformer</kwd>
        <kwd>Prediction</kwd>
        <kwd>RoBERTa</kwd>
        <kwd>Sentiment</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec>
      <title>INTRODUCTION</title>
      <p>The evolution of democratic participation has been significantly influenced by digital transformation, especially with the emergence of social media platforms such as X, Facebook, and Instagram. These platforms provide an expansive data source for analyzing public opinion, making traditional reliance on scheduled campaign events less significant. However, translating online sentiments into accurate election predictions remains challenging due to discrepancies between digital discourse and real-world outcomes. Traditionally, voters relied on scheduled campaign events to hear candidates' manifestos Nowadays, candidates and their supporters are turning more to social media to share their manifestos and aspirations, allowing for broader and more immediate communication [1-2]. This shift has turned social media into a robust data source for analyzing public opinion. However, there is often a discrepancy between online sentiment and actual election outcomes, as candidates with low online ratings can still win due to various influencing factors.</p>
      <p>To bridge this gap, it is crucial to understand voters' thoughts and emotions accurately. Computational Intelligence (CI) within Artificial Intelligence (AI) focuses on creating adaptive systems that learn from and adjust to complex, dynamic environments. Inspired by human cognitive processes, CI comprises methods like Neural Networks (NN), Fuzzy Logic (FL), Genetic Algorithms (GA), and Machine Learning (ML), deep learning (DL), and swarm intelligence (SI) [3]. These techniques empower systems to process and analyze data, recognize patterns, and make informed decisions amidst uncertainty or incomplete information. CI applications span optimization problems, data mining, expert systems, and autonomous decision-making, highlighting its capacity to evolve and learn from experience [4-5]. Machine Learning (ML) underpins CI by creating intelligent systems that can learn, reason, and solve problems. ML models are trained to generalize patterns from observed data Thomas, Eyoh, by improving performance with more examples and experiences [6-7].</p>
      <p>ML processes are classified into supervised learning (trained on labeled data), unsupervised learning (identifying patterns in unlabeled data), and reinforcement learning (learning through interaction and feedback). Hybrid systems integrating ML with other CI techniques, such as fuzzy logic or evolutionary algorithms, yield robust and adaptive intelligent systems. Deep Learning (DL), a subset of ML, utilizes artificial neural networks with multiple layers to learn hierarchical data representations. Key types of deep neural networks include Convolutional Neural Networks (CNNs) for image-related tasks and Recurrent Neural Networks (RNNs) for sequential data [8-9]. DL's scalability and the concept of transfer learning enhance its efficiency and effectiveness in various applications [10]. Despite challenges like the need for substantial labelled data, DL continues to advance, exemplified by transformer-based models [11].</p>
      <p>The conception of transformer models by Vaswani, revolutionized Natural Language Processing (NLP) and extended their influence on fields like computer vision and robotics [12-13]. Transformer models, utilizing self-attention mechanisms, excel in capturing contextual relationships within data intelligence [14]. Transformer models have various types tailored to a specific task. The Bidirectional Encoder Representations from Transformers (BERT) by Delvin, and its variant Robustly optimized Bidirectional Encoder Representations from Transformers (RoBERTa) by Liu, approaches have been pivotals in shaping the landscape of natural language processing (NLP) models [15-16]. Others include DistilBERT, a distilled version for faster deployment and the ALBERTa model which introduces parameter reduction techniques for improved efficiency. Variants like BERT and its robust version RoBERTa have set new benchmarks in NLP. The Vision Transformer (ViT) further demonstrated transformers' versatility by challenging CNNs in image-related tasks.</p>
      <p>Recent studies demonstrate the growing application of transformer-based models to sentiment analysis and political discourse mining. Talaat, showed that BERT-based and hybrid transformer architectures can achieve strong performance in social-media sentiment classification, highlighting their ability to capture contextual linguistic patterns [17]. In the electoral domain, Pandiangan and Wijayakusuma, applied BERT to sentiment analysis of social-media discourse surrounding the 2024 Indonesian presidential election, demonstrating the relevance of transformer models for analyzing voters’ online opinions [18].</p>
      <p>Khatavkar, her extended this line of research through a multilingual transformer-based approach to political tweets, addressing contextual variations and linguistic complexities in political discourse [19]. Similarly, Babu, investigated political sentiment in X (formerly Twitter) comments using transformer models, confirming the effectiveness of contextual language representations for political sentiment classification [20]. More recently, Nguyen and Văn employed XLM-RoBERTa with parameter-efficient fine-tuning for multiclass political sentiment analysis and addressed class imbalance through oversampling and hyperparameter optimization [21].</p>
      <p>Collectively, these studies establish the suitability of transformer-based architectures for political sentiment analysis while also revealing persistent challenges related to linguistic ambiguity, multilingual discourse, and imbalanced sentiment classes. RoBERTa, an optimized version of BERT, refines the pre-training process by eliminating the next sentence prediction objective and introducing dynamic masking. This approach enhances RoBERTa's ability to understand a wider range of linguistic patterns and improve generalization. RoBERTa's extensive pre-training on diverse datasets enables it to excel in various NLP tasks, making it a powerful tool for sentiment analysis and election prediction. However, limited attention has been given to integrating these capabilities with election-outcome prediction within the Nigerian context, particularly at the sub-national level.</p>
      <p>This study bridges the above-mentioned gap to build on existing transformer-based approaches by applying RoBERTa to X discourse associated with the 2023 Nigerian presidential election in Akwa Ibom State, with the aim of establishing a data-driven relationship between public sentiment and electoral outcomes. Transformer models have redefined Natural Language Processing (NLP) by efficiently capturing contextual relationships within textual data. While existing literature highlights their success in sentiment analysis and classification, this research explores their application in election outcome prediction, emphasizing the unique challenges of sentiment polarity and class imbalance.</p>
    </sec>
    <sec>
      <title>MATERIALS AND METHODS</title>
      <p>This study employs a transformer-based framework using RoBERTa for predicting election outcomes. The RoBERTa model was chosen for its robust pretraining and ability to handle diverse linguistic patterns. RoBERTa was selected because it provides several improvements over earlier transformer-based architectures such as BERT, DistilBERT, and ALBERT. Unlike the original BERT model, RoBERTa removes the next-sentence prediction objective, employs dynamic masking during training, utilizes substantially larger training corpora, and applies optimized pretraining strategies that improve contextual language understanding. These improvements enable RoBERTa to capture subtle semantic relationships, informal expressions, abbreviations, and contextual dependencies commonly found in social media texts. Since election-related tweets often contain sarcasm, slang, abbreviations, and rapidly evolving political narratives, RoBERTa provides a more robust representation of public opinion than conventional transformer models, making it particularly suitable for sentiment-driven election prediction. The proposed methodology workflow for transformer-based election outcome prediction using RoBERTa and electorate opinion is shown in Figure 1.</p>
      <sec>
        <title>Data Collection</title>
        <p>For this study, tweets related to the 2023 Nigerian presidential election were collected from November 2022 to January 2023 using Twitter’s REST API. The dataset focuses on Akwa Ibom State, with 45,600 tweets initially collected and reduced to 19,600 after preprocessing. Table 1 present sentiment classifications divided into positive, negative, and neutral categories, maintaining 36 features throughout the analysis. The format, structure, size and composition of the"election_tweet_data" are depicted in Table 2. Table 3 gives the attributes of "Election_Tweet_Data" Dataset. Table 4 presents the data description of the attributes present in the "Election_Tweet_Data" dataset, along with their corresponding data types. Understanding the nature of these attributes is pivotal for conducting meaningful analyses, such as sentiment analysis or user behavior examination, particularly within the context of social media platforms like X (Twitter).</p>
      </sec>
      <sec>
        <title>Data Preprocessing</title>
        <p>The initial dataset comprised 45,600 tweets collected through the Twitter REST API between November 2022 and January 2023. To ensure the quality and reliability of the dataset, a multi-stage preprocessing pipeline was implemented before model training.</p>
        <fig id="fig1">
          <label>Figure 1</label>
          <caption>
            <p>Proposed Methodology Workflow for Transformer-Based Election Outcome Prediction Using Roberta and Electorate Opinion.</p>
          </caption>
          <graphic xlink:href="https://s3.amazonaws.com/confmeets/art_full_text_img/JAID-26-2523_14_426_1789021254.png"/>
        </fig>
        <p>The preprocessing involved the following stages:</p>
        <list list-type="order">
          <list-item>
            <p>Removal of duplicate tweets and duplicate user posts.</p>
          </list-item>
          <list-item>
            <p>Elimination of retweets that contained no additional user-generated comments.</p>
          </list-item>
          <list-item>
            <p>Removal of spam messages, advertisements, promotional tweets, and bot-generated content.</p>
          </list-item>
          <list-item>
            <p>Exclusion of tweets unrelated to the Nigerian presidential election using keyword filtering.</p>
          </list-item>
          <list-item>
            <p>Removal of incomplete records and tweets containing missing textual information.</p>
          </list-item>
          <list-item>
            <p>Elimination of tweets originating outside the geographical scope of the study.</p>
          </list-item>
          <list-item>
            <p>Removal of non-English tweets to ensure linguistic consistency.</p>
          </list-item>
          <list-item>
            <p>Cleaning textual contents by removing URLs, hashtags, user mentions, HTML symbols, excessive punctuation, and unnecessary white spaces.</p>
          </list-item>
          <list-item>
            <p>Conversion of all text to lowercase.</p>
          </list-item>
          <list-item>
            <p>Tokenization using the Hugging Face RoBERTa tokenizer.</p>
          </list-item>
          <list-item>
            <p>Padding and truncation of token sequences to a fixed maximum sequence length suitable for model training.</p>
          </list-item>
        </list>
        <p>After applying these preprocessing procedures, the dataset was reduced from 45,600 to 19,663 high-quality tweets, which formed the final dataset used for sentiment classification. The resulting sentiment distribution consisted of 40.8% positive, 38.8% negative, and 20.4% neutral tweets. These preprocessing procedures substantially reduced noise and improved the quality of textual representations used during model training. The key concept and keywords are shown in Figure 2.</p>
        <fig id="fig2">
          <label>Figure 2</label>
          <caption>
            <p>Key Concepts for Election Data Collection</p>
          </caption>
          <graphic xlink:href="https://s3.amazonaws.com/confmeets/art_full_text_img/JAID-26-2523_14_426_1789019507.png"/>
        </fig>
        <table-wrap id="tbl1">
          <table>
            <tbody>
              <tr>
                <td>Dataset</td>
                <td>Size</td>
                <td>Features</td>
                <td>Positive Sentiments</td>
                <td>Negative Sentiments</td>
                <td>Neutral Sentiments</td>
              </tr>
              <tr>
                <td>Initial</td>
                <td>45,600</td>
                <td>36</td>
                <td>15,600</td>
                <td>14,800</td>
                <td>15,200</td>
              </tr>
              <tr>
                <td>Final</td>
                <td>19,600</td>
                <td>36</td>
                <td>8,000</td>
                <td>7,600</td>
                <td>4,000</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>&#13;
  <bold>Table 1:</bold> Dataset Sentiment Classifications&#13;
</p>
        <p>&#13;
  <bold>Source:</bold> Field Data (2024)&#13;
</p>
        <table-wrap id="tbl2">
          <table>
            <tbody>
              <tr>
                <td>Dataset Name</td>
                <td colspan="2">Dataset Size</td>
                <td>Features</td>
                <td> </td>
                <td> </td>
              </tr>
              <tr>
                <td> </td>
                <td>Rows</td>
                <td>Columns</td>
                <td>Categorical</td>
                <td>Numeric</td>
                <td>Meta(text)</td>
              </tr>
              <tr>
                <td>election_tweet_data</td>
                <td>19663</td>
                <td>36</td>
                <td>5</td>
                <td>18</td>
                <td>13</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>&#13;
  <bold>Table 2:</bold>  Description Statistics for Election_Tweet_Data Dataset&#13;
</p>
        <p>&#13;
  <bold>Source:</bold> Field Data (2024)&#13;
</p>
        <table-wrap id="tbl3">
          <table>
            <tbody>
              <tr>
                <td>Attribute Name</td>
                <td>Data Type</td>
                <td>Description</td>
              </tr>
              <tr>
                <td>username</td>
                <td>String</td>
                <td>Twitter handle of the user posting the tweet.</td>
              </tr>
              <tr>
                <td>Text</td>
                <td>String</td>
                <td>Content of the tweet.</td>
              </tr>
              <tr>
                <td>Location</td>
                <td>String</td>
                <td>Geographical location of the user.</td>
              </tr>
              <tr>
                <td>sentiment</td>
                <td>String</td>
                <td>Sentiment label (positive/negative/neutral).</td>
              </tr>
              <tr>
                <td>timestamp</td>
                <td>DateTime</td>
                <td>Date and time of the tweet.</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <table-wrap id="tbl4">
          <label>Table 3: Attributes of "Election_Tweet_Data" Dataset</label>
          <caption>
            <p>Attributes of "Election_Tweet_Data" Dataset</p>
          </caption>
          <table>
            <tbody>
              <tr>
                <td>S/N</td>
                <td>Attribute</td>
                <td>Data Type</td>
                <td>Description</td>
              </tr>
              <tr>
                <td>1</td>
                <td>username</td>
                <td>String</td>
                <td>The username of the Twitter user who posted the tweet.</td>
              </tr>
              <tr>
                <td>2</td>
                <td>name</td>
                <td>String</td>
                <td>The display name of the Twitter user.</td>
              </tr>
              <tr>
                <td>3</td>
                <td>place</td>
                <td>String</td>
                <td>The location from which the tweet was posted.</td>
              </tr>
              <tr>
                <td>“</td>
                <td>“</td>
                <td>“</td>
                <td>“</td>
              </tr>
              <tr>
                <td>34</td>
                <td>time</td>
                <td>Object</td>
                <td>The time when the tweet was posted.</td>
              </tr>
              <tr>
                <td>35</td>
                <td>time_zone</td>
                <td>String</td>
                <td>The timezone in which the tweet was posted.</td>
              </tr>
              <tr>
                <td>36</td>
                <td>User_id</td>
                <td>String</td>
                <td>The ID of the Twitter user who posted the tweet.</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <table-wrap id="tbl5">
          <table>
            <tbody>
              <tr>
                <td>S/N</td>
                <td>Attribute</td>
                <td>Data Type</td>
                <td>Description</td>
              </tr>
              <tr>
                <td>1</td>
                <td>username</td>
                <td>String</td>
                <td>The username of the Twitter user who posted the tweet.</td>
              </tr>
              <tr>
                <td>2</td>
                <td>name</td>
                <td>String</td>
                <td>The display name of the Twitter user.</td>
              </tr>
              <tr>
                <td>3</td>
                <td>place</td>
                <td>String</td>
                <td>The location from which the tweet was posted.</td>
              </tr>
              <tr>
                <td>“</td>
                <td>“</td>
                <td>“</td>
                <td>“</td>
              </tr>
              <tr>
                <td>34</td>
                <td>time</td>
                <td>Object</td>
                <td>The time when the tweet was posted.</td>
              </tr>
              <tr>
                <td>35</td>
                <td>time_zone</td>
                <td>String</td>
                <td>The timezone in which the tweet was posted.</td>
              </tr>
              <tr>
                <td>36</td>
                <td>User_id</td>
                <td>String</td>
                <td>The ID of the Twitter user who posted the tweet.</td>
              </tr>
            </tbody>
          </table>
        </table-wrap>
        <p>&#13;
  <bold>Table 4:</bold> Data Description for Election_Tweet_Data Dataset&#13;
</p>
        <p>&#13;
  <bold>Source:</bold> Researcher (2024)&#13;
</p>
      </sec>
      <sec>
        <title>Experimental Setup</title>
        <p>The methodology involves the following key steps: Data Preprocessing - collected tweets were cleaned to remove noise such as URLs, emojis, and stop words. Tokenization was performed using the Hugging Face’s RoBERTa tokenizer to convert text into input token sequences Sentiment Annotation: Each tweet was assigned one of three sentiment labels (Positive, Negative, or Neutral) according to the opinion expressed toward a presidential candidate, political party, or election-related issue. Initially, an automated sentiment annotation procedure was employed to generate preliminary labels using predefined sentiment lexicons and contextual language representations. Subsequently, the annotated tweets were independently reviewed by two researchers with expertise in Natural Language Processing and political discourse analysis. Cases where disagreements occurred were jointly examined until consensus was reached. Tweets expressing support, approval, confidence, or favourable opinions toward a candidate or party were labelled Positive, while tweets expressing criticism, dissatisfaction, rejection, or opposition were labelled Negative. Tweets presenting factual information, balanced opinions, or insufficient emotional polarity were classified as Neutral. This two-stage annotation process improved the reliability and consistency of the labelled dataset before model training.</p>
        <p>The Architecture of RoBERTa model is shown in Figure 3. The RoBERTa model pre-trained on diverse textual corpora, was fine-tuned for election sentiment analysis. The key components include input embedding layer; converts tokenized text into dense vectors. Transformer encoder- utilizes multi-head self-attention mechanisms and positional encodings to capture contextual dependencies. Output layer - A classification head applies a softmax activation function to predict sentiment classes. Fine-tuning process was performed. The pre-trained RoBERTa model was fine-tuned on the election dataset using supervised learning.</p>
        <fig id="fig3">
          <label>Figure 3</label>
          <caption>
            <p>The RoBERTa Architecture for Election Outcome Prediction using Electorate Opinion</p>
          </caption>
          <graphic xlink:href="https://s3.amazonaws.com/confmeets/art_full_text_img/JAID-26-2523_14_426_1789019617.png"/>
        </fig>
        <p>Cross-entropy loss was employed as the loss function, optimized using the Adam optimizer with a learning rate of 2e-5. The model was trained over 10 epochs with a batch size of 32. Dropout layers were included to mitigate overfitting. The final preprocessed dataset was randomly partitioned using stratified sampling into 70% training, 15% validation, and 15% testing datasets to preserve the class distribution across all subsets. The training dataset was used for model learning, the validation dataset for hyperparameter optimization and early stopping, while the testing dataset was reserved exclusively for final model evaluation.</p>
        <p>Hyperparameter optimization was conducted through systematic experimentation by varying several model parameters, including the learning rate (1×10⁻⁵, 2×10⁻⁵, and 5×10⁻⁵), batch size (16 and 32), dropout probability (0.1 and 0.3), maximum sequence length (128 and 256 tokens), and training epochs (5, 10, 20, and 30). Model performance on the validation dataset was evaluated using Accuracy, Precision, Recall, and F1-score. The optimal configuration consisted of a learning rate of 2×10⁻⁵, batch size 32, dropout rate 0.1, maximum sequence length of 128 tokens, and 10 training epochs, producing the best validation performance while minimizing overfitting. Early stopping based on validation loss was implemented to terminate training once no further performance improvement was observed.</p>
        <list list-type="order">
          <list-item>
            <p>Input Layer Unit: In the RoBERTa model, the input layer consists of token embeddings that encode the textual input into numerical representations suitable for processing by the model. The input layer typically accepts tokenized text sequences from the domain of election, where each token represents a word or subword in the input text which are then converted into dense vector embeddings using pre-trained embedding matrices. These input embeddings serve as the initial representation of the input text and are subsequently fed into the model's layers to denote the beginning or classification of a sentence for further processing and feature extraction.</p>
          </list-item>
          <list-item>
            <p>Transformer Encoder/Positional Encoding: The core building block of RoBERTa model is the transformer encoder. It consists of multiple layers, each containing a multi-head self-attention mechanism and a feedforward neural network. Transformer encoder- utilizes multi-head self-attention mechanisms along-with positional encodings to acquire contextual relationships. Sine as well as Cosine functions shown in Equations 1 and 2 were adopted to generate different frequencies for the positional encoding (PE), we use sine and cosine functions at varying wavelengths for each position and each dimension i of the word embedding vector dmodel=512</p>
          </list-item>
        </list>
        <p>Starting from the beginning of the word embedding vector with a fixed size of 512, the index begins at i=0i = 0 and ends at i=511i = 511. The sine function is used for even indices, while the cosine function is applied to odd indices.</p>
        <p>iii. Multi-Head Self-Attention: Within each transformer layer, the multi-head self-attention mechanism enables the model to weigh the importance of different words in the input sequence based on their context. The attention mechanism is crucial for capturing long-range dependencies. The vector dimension of each word xn in an input sequence is dmodel=512: pe(xn)=[d1=9.09297407e−01, d2=−4.16146845e−01,...,d512=1.00000000e+00]. Each word is mapped to all others to determine its contextual relevance within the sequence. Attention is formulated as "Scaled Dot-Product Attention," expressed in Equation 3 and plug Q, K, and V.</p>
        <p>All matrices share the same dimensions, allowing for a straightforward application of the scaled dot product to compute attention values for each head. The outputs from all 8 heads are then concatenated to form Z. To derive Q, K, and V, the model is trained using the weight matrices Qw, Kw, and Vw, where each has dk=64 columns and dmodel=512 rows. For instance, Q is obtained by performing a dot product between x and Qw, resulting in Q having a dimension of dk=64. We adjust various parameters, including the number of layers, attention heads, dmodel, dk, and other transformer variables, to optimize our model.</p>
        <list list-type="order">
          <list-item>
            <p>Feedforward Neural Network: we employ a feedforward neural network to process the election information, applying non-linear transformations to capture complex patterns and relationships in the dataset. The input of the feedforward network (FFN) is the dmodel = 512 output of the post-LN of the previous sublayer. The optimized and standardized FFN is given in Equation 4.</p>
          </list-item>
        </list>
        <p>Where, 𝑊1 and 𝑊2 denote weight matrices, while 𝑏1 and 𝑏2 refer to bias vectors. The input (sentiment values) to this system is represented by x, which undergoes these transformations to yield the final output.</p>
        <list list-type="order">
          <list-item>
            <p>Layer Normalization and Residual Connections: These components help with the stability and efficient training of the deep neural networks. Each attention sublayer and feedforward sublayer in the Transformer is followed by post-layer normalization (Post-LN). As shown in Equation 5, Post-LN includes an addition function and a layer normalization process, which is further detailed in Equation 6. The addition function handles the residual connections originating from the sublayer's input selection.</p>
          </list-item>
        </list>
        <p>where, Sublayer(x) refers to the sublayer itself, where xx represents the data available at the input stage of Sublayer(x).</p>
        <p>here, μ represents the mean of v with a dimension of d, given in Equation 7 as:</p>
        <p>σ represents the standard deviation of v with a dimension of d, illustrated in Equation 8.</p>
        <p>γ is a scaling parameter, and β is a bias vector.</p>
        <list list-type="order">
          <list-item>
            <p>Task-Specific Heads: Task-specific heads interpret the learned representations for the specific task at hand. The Linear layer transform the hidden representation of the model into a vector of logits, which are unnormalized scores representing the likelihood of each class. The Softmax layer then applies the softmax function to these logits, converting them into probabilities, ensuring that they sum up to 1. These output probabilities represent the model's confidence scores for each class and are used to make predictions or decisions based on the highest probability class.</p>
          </list-item>
        </list>
        <list list-type="order">
          <list-item>
            <p>Fine-tuning RoBERTa Model for Election Prediction: The parameters θ of the pre-trained RoBERTa model are fine-tuned by minimizing the task-specific loss function L(θ) on the dataset D as shown in Equation 9.</p>
          </list-item>
        </list>
        <p>where (xi , yi) are the input-output pairs in the dataset and θ* represents the optimized parameters. The diagram for Fine-tuning RoBERTa model is seen in Figure 4.</p>
        <fig id="fig4">
          <label>Figure 4</label>
          <caption>
            <p>Diagram for Fine-tuning RoBERTa for Election Outcome Prediction using Electorate Opinion</p>
          </caption>
          <graphic xlink:href="https://s3.amazonaws.com/confmeets/art_full_text_img/JAID-26-2523_14_420_1788868410.png"/>
        </fig>
        <p>The pre-trained RoBERTa model's parameters are fine-tuned by minimizing a twitter loss function that is optimized using the stochastic gradient descent (SGD) algorithm. Loss function L(θ, xi , yi) is measured the discrepancy between the predicted outputs and the ground truth labels in Equation 10.</p>
        <p>where (xi , θ) denotes the output for input xi with parameters θ, and yi represents the ground truth label. The function f computes the loss, which depends on the specific task (e.g cross entropy loss for classification tasks). The optimization algorithm updates the parameters θ iteratively to minimize the loss function using stochastic gradient descent parameters are updated as Equation 11.</p>
        <p>where η is the learning rate, and ∇L represents the gradient of the loss function with respect to the parameters. The actual value of η, used in this work is 2e-5, and ∇L was optimized during training using the Adam optimizer. The model was trained over 10 epochs with a batch size of 32. Dropout layers were included to mitigate overfitting.</p>
        <p>Following sentiment classification, the predicted sentiment labels were aggregated according to the presidential candidates referenced within each tweet. For every candidate, the total numbers of positive, negative, and neutral tweets were computed over the data collection period. A Net Sentiment Score (NSS) was then calculated using</p>
        <p>where Positive, Negative, and Neutral represent the respective numbers of classified tweets associated with each candidate.</p>
        <p>The Net Sentiment Score was computed periodically to monitor changes in public opinion throughout the election campaign. Candidates exhibiting consistently higher positive sentiment and larger Net Sentiment Scores were predicted to possess stronger electoral support. The candidate with the highest cumulative Net Sentiment Score at the end of the campaign period was identified as the predicted election winner. Finally, these predictions were compared with the officially declared election results to evaluate the effectiveness of the proposed transformer-based election prediction framework.</p>
        <p>Evaluation metrics were applied to assess the model performance using accuracy, precision, recall, and F1-score. Separate metrics for positive and negative sentiments provided insights into class-specific performance. Hyperparameters, such as the learning rate and number of attention heads, were tuned to optimize performance. Early stopping criteria were applied to prevent overfitting.</p>
      </sec>
    </sec>
    <sec>
      <title>RESULTS AND DISCUSSIONS</title>
      <p>In this work, a novel approach to predicting election outcomes using electorate opinions was presented to leverage the capabilities of the RoBERTa model for natural language processing. The model was trained on a comprehensive dataset of public sentiment, expressed through various channels such as social media and surveys, to classify opinions as positive or negative towards candidates and political parties. The implementation was carried out using Python, leveraging on PyTorch and Hugging Face Transformer libraries. Google Colab was used for computational efficiency and data visualization. The results of the study revealed key insights into the performance of the RoBERTa model in sentiment-based election prediction. Pie Chart of Election_Tweet_Data sentiment distribution is given in Figure 4. The pie chart in Figure 4 illustrates the sentiment distribution in the dataset, highlighting the proportions of positive (40.8%), negative (38.8%), and neutral (20.4%) sentiments among the processed tweets. Figure 5 illustrates the sentiment distribution, with a balanced representation of positive and negative classes critical for model fairness. Yet, the neutral class remains underexplored, which could provide additional insights into voter indecision or ambivalence.</p>
      <fig id="fig5">
        <label>Figure 5</label>
        <caption>
          <p>Pie Chart of Sentiment Distribution</p>
        </caption>
        <graphic xlink:href="https://s3.amazonaws.com/confmeets/art_full_text_img/JAID-26-2523_14_426_1789019803.png"/>
      </fig>
      <fig id="fig6">
        <label>Figure 6</label>
        <caption>
          <p>Pie Chart Representation of Continuous and Categorical Columns</p>
        </caption>
        <graphic xlink:href="https://s3.amazonaws.com/confmeets/art_full_text_img/JAID-26-2523_14_426_1789019803.png"/>
      </fig>
      <table-wrap id="tbl6">
        <table>
          <tbody>
            <tr>
              <td>Epoch</td>
              <td>Training Loss</td>
              <td>Validation Loss</td>
              <td>Accuracy (%)</td>
              <td>F1 Score</td>
              <td>Precision</td>
              <td>Recall</td>
            </tr>
            <tr>
              <td>3</td>
              <td>0.16</td>
              <td>0.235</td>
              <td>92.26</td>
              <td>0.55</td>
              <td>0.64</td>
              <td>0.49</td>
            </tr>
            <tr>
              <td>10</td>
              <td>0.342</td>
              <td>0.307</td>
              <td>90.41</td>
              <td>0.19</td>
              <td>0.56</td>
              <td>0.11</td>
            </tr>
            <tr>
              <td>35</td>
              <td>0.22</td>
              <td>0.246</td>
              <td>90</td>
              <td>0.54</td>
              <td>0.49</td>
              <td>0.59</td>
            </tr>
            <tr>
              <td>100</td>
              <td>0.334</td>
              <td>0.258</td>
              <td>88.82</td>
              <td>0.18</td>
              <td>0.32</td>
              <td>0.12</td>
            </tr>
          </tbody>
        </table>
      </table-wrap>
      <p>&#13;
  <bold>Table 5:</bold> Model Performance across Epochs&#13;
</p>
      <p>The accuracy and loss trends across epochs plot are presented in Figure 7. This illustrates the trends in accuracy, training loss, and validation loss across different epochs, showing stable accuracy with slight fluctuations and consistent low loss values throughout the training process. Table 6 gives RoBERTa model's election prediction analysis across different epochs interval (Observations). The Table summarize the prediction analysis of the RoBERTa model across different epochs. Figure 8 gives the plots of both the training and validation loss, as well as the accuracy, F1 score, precision, and recall across the epochs. The training and validation losses are shown on the left y-axis, while the accuracy, F1 score, precision, and recall are shown on the right y-axis. The sentiment classification metrics result is presented in Table 7 and graphically represented in Figure 9. The bar chart illustrates the sentiment classification metrics for the "Positive" and "Negative" classes. Precision, recall, and F1 score are represented for each class. This visualization highlights the performance differences across the metrics and classes.</p>
      <fig id="fig7">
        <label>Figure 7</label>
        <caption>
          <p>Accuracy and Loss Trends Across Epochs</p>
        </caption>
        <graphic xlink:href="https://s3.amazonaws.com/confmeets/art_full_text_img/JAID-26-2523_14_423_1788868858.png"/>
      </fig>
      <table-wrap id="tbl7">
        <table>
          <tbody>
            <tr>
              <td>Epoch</td>
              <td>Training Loss</td>
              <td>Validation Loss</td>
              <td>Accuracy (%)</td>
              <td>F1 Score</td>
              <td>Precision</td>
              <td>Recall</td>
            </tr>
            <tr>
              <td>Epoch 3</td>
              <td>0.16</td>
              <td>0.235632</td>
              <td>92.26</td>
              <td>0.551929</td>
              <td>0.639175</td>
              <td>0.48564</td>
            </tr>
            <tr>
              <td>Epoch 10</td>
              <td>0.3423</td>
              <td>0.307732</td>
              <td>90.41</td>
              <td>0.186957</td>
              <td>0.558442</td>
              <td>0.112272</td>
            </tr>
            <tr>
              <td>Epoch 35</td>
              <td>0.2203</td>
              <td>0.246416</td>
              <td>90</td>
              <td>0.535714</td>
              <td>0.492341</td>
              <td>0.587467</td>
            </tr>
            <tr>
              <td>Epoch 100</td>
              <td>0.3347</td>
              <td>0.258542</td>
              <td>88.82</td>
              <td>0.177358</td>
              <td>0.319728</td>
              <td>0.122715</td>
            </tr>
          </tbody>
        </table>
      </table-wrap>
      <table-wrap id="tbl8">
        <label>Table 6: RoBERTa model's prediction analysis across different epochs interval (Observations):</label>
        <caption>
          <p>RoBERTa model's prediction analysis across different epochs interval (Observations):</p>
        </caption>
        <table>
          <tbody>
            <tr>
              <td>Class</td>
              <td>Precision</td>
              <td>Recall</td>
              <td>F1 Score</td>
            </tr>
            <tr>
              <td>Positive</td>
              <td>0.64</td>
              <td>0.49</td>
              <td>0.55</td>
            </tr>
            <tr>
              <td>Negative</td>
              <td>0.95</td>
              <td>0.97</td>
              <td>0.96</td>
            </tr>
          </tbody>
        </table>
      </table-wrap>
      <table-wrap id="tbl9">
        <table>
          <tbody>
            <tr>
              <td>Class</td>
              <td>Precision</td>
              <td>Recall</td>
              <td>F1 Score</td>
            </tr>
            <tr>
              <td>Positive</td>
              <td>0.64</td>
              <td>0.49</td>
              <td>0.55</td>
            </tr>
            <tr>
              <td>Negative</td>
              <td>0.95</td>
              <td>0.97</td>
              <td>0.96</td>
            </tr>
          </tbody>
        </table>
      </table-wrap>
      <p>&#13;
  <bold>Table 7:</bold> Sentiment Classification Metrics&#13;
</p>
      <fig id="fig8">
        <label>Figure 8</label>
        <caption>
          <p>The plots of both the training and validation loss, as well as the accuracy, F1 score, precision, and recall across the epochs.</p>
        </caption>
        <graphic xlink:href="https://s3.amazonaws.com/confmeets/art_full_text_img/JAID-26-2523_14_425_1788869036.png"/>
      </fig>
      <fig id="fig9">
        <label>Figure 9</label>
        <caption>
          <p>The bar chart illustrates the sentiment classification metrics for the "Positive" and "Negative" classes</p>
        </caption>
        <graphic xlink:href="https://s3.amazonaws.com/confmeets/art_full_text_img/JAID-26-2523_14_425_1788869036.png"/>
      </fig>
      <p>Analysis of Epoch 3 on performance metrics indicate that the model exhibits an accuracy of 92.26%, with an F1 score of 0.5519. The precision and recall metrics for this epoch show a moderate balance, with precision at 0.6392 and recall at 0.4856. Classification report indicate that the overall accuracy is high at 92%. For the NEGATIVE class, the precision, recall, and F1-score are robust at 0.95, 0.97, and 0.96 respectively. However, the POSITIVE class struggles, with precision at 0.64, recall at 0.49, and an F1-score of 0.55. This indicates that while the model is proficient in predicting negative sentiments, it has difficulty accurately identifying positive sentiments. Analysis of Epoch 10 on performance metrics indicates that the accuracy slightly drops to 90.41%, and the F1 score for the POSITIVE class remains low at 0.1869. The precision and recall for this class are 0.5584 and 0.1123, respectively, which indicates a significant imbalance. Classification report shows that the NEGATIVE class continues to perform well with an F1-score of 0.95. However, the POSITIVE class still underperforms, with a significant drop in recall to 0.11, leading to an F1-score of 0.19. This highlights a challenge in the model’s ability to generalize well across both sentiment classes, particularly for the POSITIVE class.</p>
      <p>Analysis of Epoch 35 and Epoch 100 on the performance metrics shows that the analysis of later epochs (35 and 100) reflects a progressive deterioration in the model's capacity to predict POSITIVE class effectively, indicated by the low F1 scores and a gradual decrease in accuracy, reaching 88.82% by Epoch 100. It is observed that the training loss remains relatively low, but the validation loss fluctuates, suggesting potential overfitting. The model’s decreasing recall and precision for the POSITIVE class signal a need for additional tuning or possibly a different approach to class balancing or model architecture. Specifically, it is observed that the model consistently excelled in predicting negative sentiments, with an F1-score peaking at 0.96. This suggests strong feature extraction for this class, likely due to more distinguishable patterns in negative language. Performance for positive sentiments lagged behind, with an F1-score of 0.55, particularly in later epochs, reflecting the model's struggle to accurately predict positive sentiments. This discrepancy points to the need for targeted interventions such as data augmentation or weighted loss functions to address class imbalance.</p>
      <p>Generally, the accuracy decreases slightly over time, with precision and recall for the POSITIVE class showing notable declines as the epochs progress, suggesting potential overfitting or class imbalance issues. Training over multiple epochs revealed diminishing returns, with metrics like precision and recall showing instability beyond Epoch 10. This emphasizes the importance of early stopping and dynamic learning rate adjustments during training Analysis of sentiment classification revealed that the model excels in predicting negative sentiments (F1-score: 0.95), while performance for positive sentiments remains suboptimal. Table 7 and Figure 8 present the performance metrics for the sentiment classification model across two classes: Positive and Negative. The model achieved a higher precision, recall, and F1-score for the Negative class, with values of 0.95, 0.97, and 0.96, respectively, indicating exceptional performance in identifying and classifying negative sentiments. In contrast, the Positive class demonstrated lower metrics, with a precision of 0.64, a recall of 0.49, and an F1-score of 0.55, highlighting a need for improvement in the model's ability to accurately classify positive sentiments. This disparity suggests an imbalance in class performance and emphasizes the importance of addressing it to enhance the overall effectiveness of the model. The incorporation of dropout layers and adaptive learning rates helped mitigate overfitting to some extent but was insufficient to sustain performance across extended training epochs. Hyperparameter tuning and additional regularization techniques remain areas for further exploration. The framework’s ability to translate online sentiment into actionable election predictions underscores its utility for political strategists and analysts. However, the discrepancy between online discourse and actual voter behaviour requires additional contextual analysis, such as geographical or demographic segmentation.</p>
    </sec>
    <sec>
      <title>CONCLUSION AND FUTURE RESEARCH AREA</title>
      <p>This study highlights the potential of transformer-based architectures like RoBERTa for sentiment-driven election prediction, offering significant contributions to political analysis. The model demonstrated robust performance in predicting negative sentiments but faced challenges with positive sentiment classification, reflecting a need for targeted improvements. Key findings indicate that early learning stages yield high accuracy, but overfitting becomes a concern with extended training. The RoBERTa model demonstrates strong performance in detecting negative sentiments while struggles with positive sentiment prediction across the epochs in this study. Despite high overall accuracy, the disparity between the NEGATIVE and POSITIVE class performances highlights an area for improvement for future works, possibly through advanced techniques like data augmentation, re-sampling, or fine-tuning with more balanced datasets.</p>
      <p>The declining F1 scores and recall for the POSITIVE class as training progresses suggest that adjustments in the training process or model hyperparameters could enhance the model’s generalization capabilities, particularly in sentiment analysis tasks. By leveraging the RoBERTa model's capabilities in handling large-scale textual data and capturing nuanced sentiments, this framework aims to provide accurate and timely predictions of election outcomes based on real-time public opinion</p>
      <p>The proposed framework underscores the importance of leveraging social media data to bridge the gap between online discourse and real-world outcomes. By refining these methodologies, the research offers a path toward more transparent, accurate, and actionable electoral predictions that can serve as valuable tools for political strategists, media organizations, and policymakers. The performance highlights its potential for providing actionable insights to political stakeholders. However, challenges such as class imbalance and overfitting were noted, particularly in predicting positive sentiments. Future research will integrate text, images, and geospatial data for richer analyses. Oversampling can be used to enhance model generalization, and these will provide deeper insights into voter behaviour.</p>
    </sec>
    <sec>
      <title>ETHICAL CONSIDERATIONS AND SAFEGUARDS</title>
      <p>This study adhered to ethical standards by safeguarding data privacy and anonymity in line with the General Data Protection Regulation and Nigeria’s Data Protection Regulation, ensuring that no personally identifiable information from Twitter data was exposed. Also, data authenticity was ensured by filtering bots, spam, and disinformation, thereby preserving the integrity of the electoral discourse analyzed.</p>
    </sec>
    <sec>
      <title>ETHICS APPROVAL</title>
      <p>The study was conducted in compliance with institutional research ethics guidelines.</p>
    </sec>
    <sec>
      <title>PRIVACY SAFEGUARDS</title>
      <p>All data were collected from publicly available tweets in line with Twitter’s Developer Policy. No personally identifiable information (PII) was stored; only anonymized tweet IDs and metadata were retained. Data were securely stored on encrypted drives and used solely for academic purposes</p>
    </sec>
    <sec>
      <title>FUNDING</title>
      <p>This research is supported by TetFund through Institutional Based Research grant 2025 on the project, “High-Precision Sentiment-Based Election Prediction in Emerging Democracies: A Hybrid Intelligence Approach.</p>
    </sec>
    <sec>
      <title>CONFLICTS OF INTEREST</title>
      <p>The authors declare no conflict of interest. The funders had no role in the study’s design; in the collection, analyses, or interpretation of data; in the writing of the manuscript; or in the decision to publish the results.</p>
    </sec>
  </body>
  <back>
    <ref-list>
      <ref id="ref1">
        <label>1</label>
        <mixed-citation>Volkens A, Krause W, Lehmann P, Matthieß T, Merz N, Regel S and Weßels B (2017). The Manifesto Data Collection. Manifesto Project (MRG/CMP/MARPOR). Version 2019b. Berlin: Social Science Research Center Berlin (WZB). Bron, 1(1990), 15</mixed-citation>
      </ref>
      <ref id="ref2">
        <label>2</label>
        <mixed-citation>Kokab ST, Asghar S, Naz S. Transformer-based deep learning models for the sentiment analysis of social media data. Array. 2022;14:100157</mixed-citation>
      </ref>
      <ref id="ref3">
        <label>3</label>
        <mixed-citation>Ekong VE, Asuquo DE, Ejodamen PU. Towards an Analytic Framework for Twitter influencers in Boko Haram Discourse. InProc. of the International Conference on Innovative Systems for Digital Economy 2021 (pp. 204-212)</mixed-citation>
      </ref>
      <ref id="ref4">
        <label>4</label>
        <mixed-citation>Radford A, Narasimhan K, Salimans T, Sutskever I. Improving language understanding by generative pre-training</mixed-citation>
      </ref>
      <ref id="ref5">
        <label>5</label>
        <mixed-citation>Khetani V, Gandhi Y, Bhattacharya S, Ajani SN, Limkar S. Cross-domain analysis of ML and DL: evaluating their impact in diverse domains. International Journal of Intelligent Systems and Applications in Engineering. 2023;11(7s):253-62</mixed-citation>
      </ref>
      <ref id="ref6">
        <label>6</label>
        <mixed-citation>Thomas KK, Anil SP, Ebin Kuriakose NG. Sentiment analysis in product reviews using natural language processing and machine learning. Int J Inf Syst Comput Sci. 2019</mixed-citation>
      </ref>
      <ref id="ref7">
        <label>7</label>
        <mixed-citation>Eyoh IJ, Umoh UA, Inyang UG, Eyoh JE. Derivative-Based Learning of Interval Type-2 Intuitionistic Fuzzy Logic Systems for Noisy Regression Problems: IJ Eyoh et al. International journal of fuzzy systems. 2020;22(3):1007-19</mixed-citation>
      </ref>
      <ref id="ref8">
        <label>8</label>
        <mixed-citation>Adke A, Ghorpade S, Chaudhari R, Patil S. Navigating the confluence of machine learning with deep learning: Unveiling cnns, layer configurations, activation functions, and real-world utilizations</mixed-citation>
      </ref>
      <ref id="ref9">
        <label>9</label>
        <mixed-citation>Banerjee I, Ling Y, Chen MC, Hasan SA, Langlotz CP et al. Comparative effectiveness of convolutional neural network (CNN) and recurrent neural network (RNN) architectures for radiology text report classification. Artificial intelligence in medicine. 2019;97:79-88</mixed-citation>
      </ref>
      <ref id="ref10">
        <label>10</label>
        <mixed-citation>Goodfellow I, Bengio Y, Courville A, Bengio Y. Deep learning. Cambridge: MIT press; 2016 Nov 18</mixed-citation>
      </ref>
      <ref id="ref11">
        <label>11</label>
        <mixed-citation>Qian Q, Huang M, Lei J, Zhu X. Linguistically regularized LSTM for sentiment classification. InProceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) 2017 (pp. 1679-1689)</mixed-citation>
      </ref>
      <ref id="ref12">
        <label>12</label>
        <mixed-citation>Zhai X, Kolesnikov A, Houlsby N, Beyer L. Scaling vision transformers. In2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) 2022(pp. 1204-1213). IEEE</mixed-citation>
      </ref>
      <ref id="ref13">
        <label>13</label>
        <mixed-citation>Vaswani A, Shazeer N, Parmar N, Uszkoreit J, Jones L, Gomez AN, Kaiser Ł, Polosukhin I. Attention is all you need. Advances in neural information processing systems. 2017;30</mixed-citation>
      </ref>
      <ref id="ref14">
        <label>14</label>
        <mixed-citation>Liu M, Ren S, Ma S, Jiao J, Chen Y, Wang Z, Song W. Gated transformer networks for multivariate time series classification. arXiv preprint arXiv:2103.14438. 2021</mixed-citation>
      </ref>
      <ref id="ref15">
        <label>15</label>
        <mixed-citation>Devlin J, Chang MW, Lee K, Toutanova K. Bert: Pre-training of deep bidirectional transformers for language understanding. InProceedings of the 2019 conference of the North American chapter of the association for computational linguistics: human language technologies, volume 1 (long and short papers) 2019 (pp. 4171-4186)</mixed-citation>
      </ref>
      <ref id="ref16">
        <label>16</label>
        <mixed-citation>Liu Y, Ott M, Goyal N, Du J, Joshi M, Chen D et al. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692. 2019</mixed-citation>
      </ref>
      <ref id="ref17">
        <label>17</label>
        <mixed-citation>Talaat AS. Sentiment analysis classification system using hybrid BERT models. Journal of Big Data. 2023;10(1):110</mixed-citation>
      </ref>
      <ref id="ref18">
        <label>18</label>
        <mixed-citation>Pandiangan LR, Wijayakusuma IL. Analisis sentimen para kandidat Pilpres 2024 dengan model bahasa BERT. E-Jurnal Matematika. 2024;13(4):253</mixed-citation>
      </ref>
      <ref id="ref19">
        <label>19</label>
        <mixed-citation>Khatavkar V, Petkar S, Vaidya AS. Multilingual Transformer Contextual Embedding Model for Political Tweets Analysis. Cureus Journals. 2025;2(1)</mixed-citation>
      </ref>
      <ref id="ref20">
        <label>20</label>
        <mixed-citation>Babu TA, Ratul MM, Aftahee S, Hossain J, Hoque MM. CUET_NetworkSociety@ DravidianLangTech 2025: A Transformer-Driven Approach to Political Sentiment Analysis of Tamil X (Twitter) Comments. InProceedings of the Fifth Workshop on Speech, Vision, and Language Technologies for Dravidian Languages 2025 (pp. 536-542). Association for Computational Linguistics</mixed-citation>
      </ref>
      <ref id="ref21">
        <label>21</label>
        <mixed-citation>Nguyen DK, Văn TĐ. PhucNguyen@ DravidianLangTech 2026: Political Multiclass Sentiment Analysis with XLM-RoBERTa and Low-Rank Adaptation. InProceedings of the Sixth Workshop on Speech, Vision, and Language Technologies for Dravidian Languages 2026 (pp. 321-325)</mixed-citation>
      </ref>
    </ref-list>
  </back>
</article>
