\documentclass[11pt,twoside]{article}\makeatletter

\IfFileExists{xcolor.sty}%
  {\RequirePackage{xcolor}}%
  {\RequirePackage{color}}
\usepackage{colortbl}
\usepackage{wrapfig}
\usepackage{ifxetex}
\ifxetex
  \usepackage{fontspec}
  \usepackage{xunicode}
  \catcode`⃥=\active \def⃥{\textbackslash}
  \catcode`❴=\active \def❴{\{}
  \catcode`❵=\active \def❵{\}}
  \def\textJapanese{\fontspec{Noto Sans CJK JP}}
  \def\textChinese{\fontspec{Noto Sans CJK SC}}
  \def\textKorean{\fontspec{Noto Sans CJK KR}}
  \setmonofont{DejaVu Sans Mono}
  
\else
  \IfFileExists{utf8x.def}%
   {\usepackage[utf8x]{inputenc}
      \PrerenderUnicode{–}
    }%
   {\usepackage[utf8]{inputenc}}
  \usepackage[english]{babel}
  \usepackage[T1]{fontenc}
  \usepackage{float}
  \usepackage[]{ucs}
  \uc@dclc{8421}{default}{\textbackslash }
  \uc@dclc{10100}{default}{\{}
  \uc@dclc{10101}{default}{\}}
  \uc@dclc{8491}{default}{\AA{}}
  \uc@dclc{8239}{default}{\,}
  \uc@dclc{20154}{default}{ }
  \uc@dclc{10148}{default}{>}
  \def\textschwa{\rotatebox{-90}{e}}
  \def\textJapanese{}
  \def\textChinese{}
  \IfFileExists{tipa.sty}{\usepackage{tipa}}{}
\fi
\def\exampleFont{\ttfamily\small}
\DeclareTextSymbol{\textpi}{OML}{25}
\usepackage{relsize}
\RequirePackage{array}
\def\@testpach{\@chclass
 \ifnum \@lastchclass=6 \@ne \@chnum \@ne \else
  \ifnum \@lastchclass=7 5 \else
   \ifnum \@lastchclass=8 \tw@ \else
    \ifnum \@lastchclass=9 \thr@@
   \else \z@
   \ifnum \@lastchclass = 10 \else
   \edef\@nextchar{\expandafter\string\@nextchar}%
   \@chnum
   \if \@nextchar c\z@ \else
    \if \@nextchar l\@ne \else
     \if \@nextchar r\tw@ \else
   \z@ \@chclass
   \if\@nextchar |\@ne \else
    \if \@nextchar !6 \else
     \if \@nextchar @7 \else
      \if \@nextchar (8 \else
       \if \@nextchar )9 \else
  10
  \@chnum
  \if \@nextchar m\thr@@\else
   \if \@nextchar p4 \else
    \if \@nextchar b5 \else
   \z@ \@chclass \z@ \@preamerr \z@ \fi \fi \fi \fi
   \fi \fi  \fi  \fi  \fi  \fi  \fi \fi \fi \fi \fi \fi}
\gdef\arraybackslash{\let\\=\@arraycr}
\def\@textsubscript#1{{\m@th\ensuremath{_{\mbox{\fontsize\sf@size\z@#1}}}}}
\def\Panel#1#2#3#4{\multicolumn{#3}{){\columncolor{#2}}#4}{#1}}
\def\abbr{}
\def\corr{}
\def\expan{}
\def\gap{}
\def\orig{}
\def\reg{}
\def\ref{}
\def\sic{}
\def\persName{}\def\name{}
\def\placeName{}
\def\orgName{}
\def\textcal#1{{\fontspec{Lucida Calligraphy}#1}}
\def\textgothic#1{{\fontspec{Lucida Blackletter}#1}}
\def\textlarge#1{{\large #1}}
\def\textoverbar#1{\ensuremath{\overline{#1}}}
\def\textquoted#1{‘#1’}
\def\textsmall#1{{\small #1}}
\def\textsubscript#1{\@textsubscript{\selectfont#1}}
\def\textxi{\ensuremath{\xi}}
\def\titlem{\itshape}
\newenvironment{biblfree}{}{\ifvmode\par\fi }
\newenvironment{bibl}{}{}
\newenvironment{byline}{\vskip6pt\itshape\fontsize{16pt}{18pt}\selectfont}{\par }
\newenvironment{citbibl}{}{\ifvmode\par\fi }
\newenvironment{docAuthor}{\ifvmode\vskip4pt\fontsize{16pt}{18pt}\selectfont\fi\itshape}{\ifvmode\par\fi }
\newenvironment{docDate}{}{\ifvmode\par\fi }
\newenvironment{docImprint}{\vskip 6pt}{\ifvmode\par\fi }
\newenvironment{docTitle}{\vskip6pt\bfseries\fontsize{22pt}{25pt}\selectfont}{\par }
\newenvironment{msHead}{\vskip 6pt}{\par}
\newenvironment{msItem}{\vskip 6pt}{\par}
\newenvironment{rubric}{}{}
\newenvironment{titlePart}{}{\par }

\newcolumntype{L}[1]{){\raggedright\arraybackslash}p{#1}}
\newcolumntype{C}[1]{){\centering\arraybackslash}p{#1}}
\newcolumntype{R}[1]{){\raggedleft\arraybackslash}p{#1}}
\newcolumntype{P}[1]{){\arraybackslash}p{#1}}
\newcolumntype{B}[1]{){\arraybackslash}b{#1}}
\newcolumntype{M}[1]{){\arraybackslash}m{#1}}
\definecolor{label}{gray}{0.75}
\def\unusedattribute#1{\sout{\textcolor{label}{#1}}}
\DeclareRobustCommand*{\xref}{\hyper@normalise\xref@}
\def\xref@#1#2{\hyper@linkurl{#2}{#1}}
\begingroup
\catcode`\_=\active
\gdef_#1{\ensuremath{\sb{\mathrm{#1}}}}
\endgroup
\mathcode`\_=\string"8000
\catcode`\_=12\relax

\usepackage[a4paper,twoside,lmargin=1in,rmargin=1in,tmargin=1in,bmargin=1in,marginparwidth=0.75in]{geometry}
\usepackage{framed}

\definecolor{shadecolor}{gray}{0.95}
\usepackage{longtable}
\usepackage[normalem]{ulem}
\usepackage{fancyvrb}
\usepackage{fancyhdr}
\usepackage{graphicx}
\usepackage{marginnote}

\renewcommand{\@cite}[1]{#1}


\renewcommand*{\marginfont}{\itshape\footnotesize}

\def\Gin@extensions{.pdf,.png,.jpg,.mps,.tif}

  \pagestyle{fancy}

\usepackage[pdftitle={Emotion Detection in Arabic Text using Machine Learning Methods},
 pdfauthor={}]{hyperref}
\hyperbaseurl{}

	 \paperwidth210mm
	 \paperheight297mm
              
\def\@pnumwidth{1.55em}
\def\@tocrmarg {2.55em}
\def\@dotsep{4.5}
\setcounter{tocdepth}{3}
\clubpenalty=8000
\emergencystretch 3em
\hbadness=4000
\hyphenpenalty=400
\pretolerance=750
\tolerance=2000
\vbadness=4000
\widowpenalty=10000

\renewcommand\section{\@startsection {section}{1}{\z@}%
     {-1.75ex \@plus -0.5ex \@minus -.2ex}%
     {0.5ex \@plus .2ex}%
     {\reset@font\Large\bfseries}}
\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
     {-1.75ex\@plus -0.5ex \@minus- .2ex}%
     {0.5ex \@plus .2ex}%
     {\reset@font\Large}}
\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
     {-1.5ex\@plus -0.35ex \@minus -.2ex}%
     {0.5ex \@plus .2ex}%
     {\reset@font\large}}
\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
     {-1ex \@plus-0.35ex \@minus -0.2ex}%
     {0.5ex \@plus .2ex}%
     {\reset@font\normalsize}}
\renewcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
     {1.5ex \@plus1ex \@minus .2ex}%
     {-1em}%
     {\reset@font\normalsize\bfseries}}


\def\l@section#1#2{\addpenalty{\@secpenalty} \addvspace{1.0em plus 1pt}
 \@tempdima 1.5em \begingroup
 \parindent \z@ \rightskip \@pnumwidth 
 \parfillskip -\@pnumwidth 
 \bfseries \leavevmode #1\hfil \hbox to\@pnumwidth{\hss #2}\par
 \endgroup}
\def\l@subsection{\@dottedtocline{2}{1.5em}{2.3em}}
\def\l@subsubsection{\@dottedtocline{3}{3.8em}{3.2em}}
\def\l@paragraph{\@dottedtocline{4}{7.0em}{4.1em}}
\def\l@subparagraph{\@dottedtocline{5}{10em}{5em}}
\@ifundefined{c@section}{\newcounter{section}}{}
\@ifundefined{c@chapter}{\newcounter{chapter}}{}
\newif\if@mainmatter 
\@mainmattertrue
\def\chaptername{Chapter}
\def\frontmatter{%
  \pagenumbering{roman}
  \def\thechapter{\@roman\c@chapter}
  \def\theHchapter{\roman{chapter}}
  \def\thesection{\@roman\c@section}
  \def\theHsection{\roman{section}}
  \def\@chapapp{}%
}
\def\mainmatter{%
  \cleardoublepage
  \def\thechapter{\@arabic\c@chapter}
  \setcounter{chapter}{0}
  \setcounter{section}{0}
  \pagenumbering{arabic}
  \setcounter{secnumdepth}{6}
  \def\@chapapp{\chaptername}%
  \def\theHchapter{\arabic{chapter}}
  \def\thesection{\@arabic\c@section}
  \def\theHsection{\arabic{section}}
}
\def\backmatter{%
  \cleardoublepage
  \setcounter{chapter}{0}
  \setcounter{section}{0}
  \setcounter{secnumdepth}{2}
  \def\@chapapp{\appendixname}%
  \def\thechapter{\@Alph\c@chapter}
  \def\theHchapter{\Alph{chapter}}
  \appendix
}
\newenvironment{bibitemlist}[1]{%
   \list{\@biblabel{\@arabic\c@enumiv}}%
       {\settowidth\labelwidth{\@biblabel{#1}}%
        \leftmargin\labelwidth
        \advance\leftmargin\labelsep
        \@openbib@code
        \usecounter{enumiv}%
        \let\p@enumiv\@empty
        \renewcommand\theenumiv{\@arabic\c@enumiv}%
	}%
  \sloppy
  \clubpenalty4000
  \@clubpenalty \clubpenalty
  \widowpenalty4000%
  \sfcode`\.\@m}%
  {\def\@noitemerr
    {\@latex@warning{Empty `bibitemlist' environment}}%
    \endlist}

\def\tableofcontents{\section*{\contentsname}\@starttoc{toc}}
\parskip0pt
\parindent1em
\def\Panel#1#2#3#4{\multicolumn{#3}{){\columncolor{#2}}#4}{#1}}
\newenvironment{reflist}{%
  \begin{raggedright}\begin{list}{}
  {%
   \setlength{\topsep}{0pt}%
   \setlength{\rightmargin}{0.25in}%
   \setlength{\itemsep}{0pt}%
   \setlength{\itemindent}{0pt}%
   \setlength{\parskip}{0pt}%
   \setlength{\parsep}{2pt}%
   \def\makelabel##1{\itshape ##1}}%
  }
  {\end{list}\end{raggedright}}
\newenvironment{sansreflist}{%
  \begin{raggedright}\begin{list}{}
  {%
   \setlength{\topsep}{0pt}%
   \setlength{\rightmargin}{0.25in}%
   \setlength{\itemindent}{0pt}%
   \setlength{\parskip}{0pt}%
   \setlength{\itemsep}{0pt}%
   \setlength{\parsep}{2pt}%
   \def\makelabel##1{\upshape ##1}}%
  }
  {\end{list}\end{raggedright}}
\newenvironment{specHead}[2]%
 {\vspace{20pt}\hrule\vspace{10pt}%
  \phantomsection\label{#1}\markright{#2}%

  \pdfbookmark[2]{#2}{#1}%
  \hspace{-0.75in}{\bfseries\fontsize{16pt}{18pt}\selectfont#2}%
  }{}
      \def\TheFullDate{1970-01-01 (revised: 01 January 1970)}
\def\TheID{\makeatother }
\def\TheDate{1970-01-01}
\title{Emotion Detection in Arabic Text using Machine Learning Methods}
\author{}\makeatletter 
\makeatletter
\newcommand*{\cleartoleftpage}{%
  \clearpage
    \if@twoside
    \ifodd\c@page
      \hbox{}\newpage
      \if@twocolumn
        \hbox{}\newpage
      \fi
    \fi
  \fi
}
\makeatother
\makeatletter
\thispagestyle{empty}
\markright{\@title}\markboth{\@title}{\@author}
\renewcommand\small{\@setfontsize\small{9pt}{11pt}\abovedisplayskip 8.5\p@ plus3\p@ minus4\p@
\belowdisplayskip \abovedisplayskip
\abovedisplayshortskip \z@ plus2\p@
\belowdisplayshortskip 4\p@ plus2\p@ minus2\p@
\def\@listi{\leftmargin\leftmargini
               \topsep 2\p@ plus1\p@ minus1\p@
               \parsep 2\p@ plus\p@ minus\p@
               \itemsep 1pt}
}
\makeatother
\fvset{frame=single,numberblanklines=false,xleftmargin=5mm,xrightmargin=5mm}
\fancyhf{} 
\setlength{\headheight}{14pt}
\fancyhead[LE]{\bfseries\leftmark} 
\fancyhead[RO]{\bfseries\rightmark} 
\fancyfoot[RO]{}
\fancyfoot[CO]{\thepage}
\fancyfoot[LO]{\TheID}
\fancyfoot[LE]{}
\fancyfoot[CE]{\thepage}
\fancyfoot[RE]{\TheID}
\hypersetup{citebordercolor=0.75 0.75 0.75,linkbordercolor=0.75 0.75 0.75,urlbordercolor=0.75 0.75 0.75,bookmarksnumbered=true}
\fancypagestyle{plain}{\fancyhead{}\renewcommand{\headrulewidth}{0pt}}

\date{}
\usepackage{authblk}

\providecommand{\keywords}[1]
{
\footnotesize
  \textbf{\textit{Index terms---}} #1
}

\usepackage{graphicx,xcolor}
\definecolor{GJBlue}{HTML}{273B81}
\definecolor{GJLightBlue}{HTML}{0A9DD9}
\definecolor{GJMediumGrey}{HTML}{6D6E70}
\definecolor{GJLightGrey}{HTML}{929497} 

\renewenvironment{abstract}{%
   \setlength{\parindent}{0pt}\raggedright
   \textcolor{GJMediumGrey}{\rule{\textwidth}{2pt}}
   \vskip16pt
   \textcolor{GJBlue}{\large\bfseries\abstractname\space}
}{%   
   \vskip8pt
   \textcolor{GJMediumGrey}{\rule{\textwidth}{2pt}}
   \vskip16pt
}

\usepackage[absolute,overlay]{textpos}

\makeatother 
      \usepackage{lineno}
      \linenumbers
      
\begin{document}

             \author[1]{Fatimah Khalil  Aljwari}

             \affil[1]{  UNIVERSITY OF JEDDAH}

\renewcommand\Authands{ and }

\date{\small \em Received: 1 January 1970 Accepted: 1 January 1970 Published: 1 January 1970}

\maketitle


\begin{abstract}
        


Abstractâ??"Emotions are essential to any or all languages and are notoriously challenging to grasp. While numerous studies discussing the recognition of emotion in English, Arabic emotion recognition research remains in its early stages. The textual data with embedded emotions has increased considerably with the Internet and social networking platforms. This study aims to tackle the challenging problem of emotion detection in Arabic text. Recent studies found that dialect diversity and morpho- logical complexity in the Arabic language, with the limited access of annotated training datasets for Arabic emotions, pose the foremost significant challenges to Arabic emotion detection. Social media is becoming a more popular kind of communication where users can share their thoughts and express emotions like joy, sadness, anger, surprise, hate, fear, so on some range of subjects in ways they?d not typically neutralize person. Social media also present different challenges which include spelling mistakes, new slang, and incorrect use of grammar. The previous few years have seen a giant increase in interest in text emotion detection.

\end{abstract}


\keywords{emotion detection, machine learning, arabic text, KNN, DT, SVM, naive bayes.}

\begin{textblock*}{18cm}(1cm,1cm) % {block width} (coords) 
\textcolor{GJBlue}{\LARGE Global Journals \LaTeX\ JournalKaleidoscope\texttrademark}
\end{textblock*}

\begin{textblock*}{18cm}(1.4cm,1.5cm) % {block width} (coords) 
\textcolor{GJBlue}{\footnotesize \\ Artificial Intelligence formulated this projection for compatibility purposes from the original article published at Global Journals. However, this technology is currently in beta. \emph{Therefore, kindly ignore odd layouts, missed formulae, text, tables, or figures.}}
\end{textblock*}


\begin{textblock*}{10cm}(1.05cm,3cm)
{{\textit{CrossRef DOI of original article:}} \underline{}}
\end{textblock*}\let\tabcellsep& 	 	 		 \par
Emotions are essential to any or all languages and are notoriously challenging to grasp. While numerous studies discussing the recognition of emotion in English, Arabic emotion reco remains in its early stages. The textual data with embedded emotions has increased considerably with the Internet and social networking platforms. This study aims to tackle the challenging problem of emotion t studies found that dialect diversity and morpho-logical complexity in the Arabic language, with the limited access of annotated training datasets for Arabic emotions, pose the foremost significant challenges to Arabic emotion detection. Social media is becoming a more popular kind of communication where users can share their thoughts and express emotions like joy, sadness, anger, surprise, hate, fear, so on some range of subjects in ways they'd not typically neutralize person.\par
ifferent challenges which include spelling mistakes, new slang, and incorrect use of grammar. The previous few years have seen a giant increase in interest in text emotion detection The study of Arabic emotions might be a results of the Arab world's considerable influence on global politics and thus the economy. There are numerous uses for the automated recognition of emotions within the textual content on Facebook and Twitter, including company development, program design, content response. in line with recent studies, it's possible to identify emotions in emotion detection, machine learning, arabic text, KNN, DT, SVM, naive bayes 170203 
\section[{LearningMethods}]{LearningMethods}\par
Strictly as per the compliance and regulations of:\par
Attribution-NonCommercial-ND 4.0). You must give appropriate credit to authors and reference this article if parts of the article are reproduced in any manner. Applicable licensing terms are at https://creativecommons.org/licenses/by-nc-Global Journal of Computer Science and Technology: G Emotions are essential to any or all languages and are notoriously challenging to grasp. While numerous studies discussing the recognition of emotion in English, Arabic emotion recognition research remains in its early stages. The textual data with embedded emotions has increased considerably with the Internet and social networking platforms. This study aims to tackle the challenging problem of emotion logical complexity in the Arabic language, with the limited access of annotated training datasets for Arabic emotions, pose the becoming a more popular kind of communication where users can share their thoughts and express emotions like joy, sadness, anger, surprise, hate, fear, so on some range of subjects in ways they'd not typically neutralize person.\par
ifferent challenges which include spelling mistakes, new slang, and incorrect use of grammar. The previous few years have seen a giant increase in interest in text emotion detection.\par
rable influence on global politics and thus the economy. There are numerous uses for the automated recognition of emotions within the textual content on Facebook and Twitter, including company development, program design, content response. in line with recent studies, it's possible to identify emotions in emotion detection, machine learning, arabic text, KNN, DT, SVM, naive bayes. 
\section[{Strictly as per the compliance and regulations of:}]{Strictly as per the compliance and regulations of:}\par
Emotion Detection in Arabic Text using Machine Learning Methods 
\section[{By Fatimah Khalil Aljwari}]{By Fatimah Khalil Aljwari}\par
University of Jeddah Introduction urrently, social media plays a necessary role in way of life and practice. immeasurable individuals use social media for various purposes. Every second, a major amount of knowledge flow via online networks, containing valuable information that may be extracted if the information are correctly processed and analyzed \hyperref[b7]{[8]}. Social networking media became essential for expressing emotions to the planet due to the fast growth of the web. Several individuals use textual content, audio, video, and images to express their emotions or perceptions \hyperref[b8]{[9]}. The Affective Computing research field has been an energetic research domain and recently gained great popularity. It aims at providing machines with a human-like ability to grasp and answer human emotions, with more natural interaction between humans and machines \hyperref[b9]{[10]}. Emotions are a vital component of human life. Emotions affect human decision-making and can enable us to speak with the planet in a very better way. Emotion detection, also called emotion recognition, identifies an individual's feelings or emotions, for instance, joy, sadness, or fury \hyperref[b8]{[9]}. "Emotion detection," "emotion analysis," and "emotion identification" are all expressions that are periodically used interchangeably. The sentiment analysis could be a means of evaluating if data is negative, positive, or neutral. In contrast, emotion recognition specifies different human emotion types, like joy, love, sadness, happiness, anger, and surprise \hyperref[b8]{[9]}. quite 400 million people speak Arabic, the official language of twenty-two countries. It is the Internet's fourth most generally used language \hyperref[b9]{[10]}. Languages utilized in social media, such as Twitter, differ wildly from that utilized on other platforms, like Wikipedia. The English language has been highly determined within the emotion detection field, including datasets and dictionary availability, in contrast to the Arabic, which has minimal resources \hyperref[b10]{[11]}. Emotion analysis has different applications in every aspect of our existence, including making efficient e-learning frameworks in step with the emotion of scholars, enhancing humancomputer interactions, observing the mental state of people, enhancing business strategies supported customer emotions, analyzing public feelings on any national, international, or the political event, identifying potential criminals by analyzing the emotions of individuals after an attack or crime, and improving the performance of chatbots and other automatic feedback frameworks \hyperref[b3]{[4]}. In Additionally, text emotion analysis has been a promising research topic. Analyzing the texts and identifying emotion from the words and semantics could be a difficult challenge. The paper aims to automatic recognition of emotions in texts written in the Arabic language by employing a model for Emotion Classification (EC) into emotion classes: Sadness, joy, fear, and anger with the algorithms of machine learning. This approach utilized the SemEval-2018 Task1 reference dataset and focused on four emotion classes (Joy, Sad, Angry, and fear). Five forms of algorithms are used supported the machine learning approach, namely K-Nearest Neighbor (KNN), Decision Tree (DT), Support Vector Machine (SVM), Naive Bayes (NB), and Multinomial (NB). KNN, DT, SVM, NB, and Multinomial NB classifiers are utilized in the classification process since they offer the foremost satisfactory and better accuracy results among all other classifiers. The findings showed that the choice Tree and K-Nearest Neighbor classifiers have the best accomplishment regarding accuracy, 0.74, While the NB and Multinomial NB classifiers acquired 0.69, and also the SVM obtained 0.63. The structure of this study continues to section II, which presents Problem Definition and Algorithm while section III offers the recent related work on Arabic emotion recognition. Section IV describes the Methodology and results of emotion analysis from Arabic texts and discusses the results. Section V provides the conclusion and future work. 
\section[{II.}]{II.} 
\section[{Problem Definition and Algorithm}]{Problem Definition and Algorithm}\par
This section briefly presents the Problem Definition and Algorithm for the detection of emotion in texts written in the Arabic language. 
\section[{a) Problem Definition}]{a) Problem Definition}\par
Most research papers in this field focus on negative or positive emotion analysis and do not go deeply into emotion analysis, especially in Arabic. Research in emotion analysis for Arabic has been minimal compared to other languages like English. This paper addresses the emotion detection problem in Arabic tweets and presents a model to categorize emotions into sadness, joy, anger, and fear. Furthermore, the current work can provide many benefits for governments, health authorities, and decision-makers to monitor people's emotions on social media content. Additionally, it can improve business strategies according to customers' emotions and recognize potential criminals when analyzing people's emotions after an attack or crime. 
\section[{b) Algorithm Definition}]{b) Algorithm Definition}\par
The Machine Learning approach learns from the info and tries to hunt out the relation between a given input text and also the corresponding output emotion by building a prediction model. This approach is split into two categories: 
\section[{i. Supervised learning approach}]{i. Supervised learning approach}\par
Based on a labeled or annotated dataset, the supervised approach takes a component of this data for the training process using an emotion classifier. This trained data is then examined, and a model is made. The remaining data within the dataset is classed supported this previously trained classifier into the emotion category. 
\section[{ii. Unsupervised learning approach}]{ii. Unsupervised learning approach}\par
The unsupervised approach relies on a nonlabeled dataset. The approach inherent the drawbacks of the ML algorithm. It requires an oversized dataset for the training process to be accurate. The Machine Learning approach solves the emotion detection issue by categorizing texts into various emotion classifications using the mentioned algorithms. This process is usually done employing a supervised or unsupervised ML technique. To categorize the tweet into each categorization (anger, joy, sadness, and fear), we applied five different supervised machine-learning approaches: KNN, DT, SVM, NB, and NB. Following could even be an inventory of the classifiers discussed during this work:a. K-Nearest Neighbor (KNN)\par
KNN is addition-ally a fairly AI supported machine learning algorithms in classification, processing, statistical pattern recognition, and much of more. This method in our experiment can classify an emotion correctly  {\ref [15]}. KNN classifies a replacement instance within the test set supported the shortest distance between it and numeric neighbors (k) stored within the training set using the Euclidian Distance equation \hyperref[b12]{[13]}. 
\section[{b. Decision Tree (DT)}]{b. Decision Tree (DT)}\par
A Decision Tree could even be a mode of a tree structure utilized in classification and regression models. It breaks down the datasets into smaller subsets and incrementally develops them into nodes and leaves. The branches of the selection tree represent the category of the datasets. the selection tree is split into four emotion classes: joy, sadness, anger, and fear. The selection tree's goal is to substantiate it achieves maximum separation among classes at each level. 
\section[{c. Support Vector Machine (SVM)}]{c. Support Vector Machine (SVM)}\par
SVM could even be a supervised ML algorithm. The model is straightforward, and far of individuals value more highly to use this model thanks to its less computational power and it gives significant accuracy. SVM conducts linear classification and performs nonlinear classification alright \hyperref[b5]{[6]}. This model's idea is straightforward: The algorithm plots each data item as some extent in n-dimensional space representing the number of features. Then, it'll use hyper-plane to differentiate between features and classes of emotion. 
\section[{d. NB}]{d. NB}\par
NB includes several algorithms of classification based on the Bayes Theorem. The NB classifier presents significant results when it is used for text analyzing data. Such an algorithm offers a prospect examining the study's dataset \hyperref[b11]{[12]}. 
\section[{e. Multinomial (NB)}]{e. Multinomial (NB)}\par
Multinomial NB classifier works on the concept of term frequency, which suggests what percentage times the word occurs during an extremely document. MNB is specially designed for text data and a particular version of Naive Bayes \hyperref[b5]{[6]}. MNB tells two facts about whether the word appears during a very document and its frequency there in document. 
\section[{III.}]{III.} 
\section[{Literature Review}]{Literature Review}\par
Although there are many studies during this domain, one amongst the tough challenges for all researchers during this domain is to use emotion analysis and classification for Arabic tweets, which remains limited, most Arabic studies specialise in sentiment analysis to classify tweets into positive/negative classes, underestimating the utilization of emotion detection and analysis to draw down different emotions. The literature review presents the foremost recent works on emotion detection in languages.\par
Mansy, A et al. \hyperref[b0]{[1]} researchers proposed an ensemble deep learning approach to research Emotion from user text in Arabic Tweets. They evaluated using the SemEval-2018-Task1-dataset published in a very multilabel classification task. The proposed model was supported three deep learning models. Two models are particular styles of Recurrent Neural Networks (RNNs), the Bidirectional Gated Recurrent Unit (Bi-GRU) and Bidirectional Long Short Term Memory Model (Bi-LSTM). The third may be a pretrained model (PLM) supported Bidirectional Encoder Representations from Transformers (BERT) NAMED MARBERT. The results of the proposed ensemble model showed outperformance over the individual models (Bi-LSTM, Bi-GRU, and MARBERT). They showed an accuracy of 0.54, precision of 0.63, 0.55 in an exceedingly recall, 0.70 in Macro F1 Score, and 0.52 in micro F1 Score.\par
In addition, Khalil et al. \hyperref[b1]{[2]} proposed a Bi-LSTM deep learning model for EC in tweets written in Arabic that were employed in the SemEval-2018 dataset. The Aravec with CBOW for the word embedding phase has been employed in feature extraction. Their results have shown an Accuracy of 0.498, and a Micro F1 score of 0.615.\par
Another study on Arabic emotion analysis was proposed in \hyperref[b2]{[3]}. The authors addressed the emotion detection problem in Arabic tweets. A tweet may have multiple emotional states (for example, joy, love, and optimism). during this case, the emotional classification of tweets is framed as a multilabel classification problem. The proposed approach combined the transformer-based Arabic (AraBERT) model and an attention-based LSTM-BiLSTM deep model. The approach used a publicly available benchmark dataset of SemEval-2018 Task 1, where the dataset is formed for multilabel detection of emotion in these tweets. The findings show that such an approach presents accuracy of nearly 54.\par
A multilabel classification was employed to detect emotions in Arabic tweets by \hyperref[b3]{[4]}  For instance, AlZoubi et al. \hyperref[b4]{[5]} have implemented an ensemble approach that contains Conventional Neural Networks (CNN), Bidirectional GRU-CNN (BiGRU-CNN), and XGBoost regressor (XGB) to be utilized in solving the EC of the SemEval-2018 dataset written within the Semitic. The ensemble approach used TF-IDF, wordlevel embedding, and lexicon features. Results show that their model achieved a precision of 69. In addition, Hussein, et al. \hyperref[b5]{[6]} followed the machine learning method to detect emotion in Text Mining Data supported Arabic Text. They collected text mining data from the internet while focusing on four emotion classes (sad, happy, afraid, and angry). Three sorts of techniques are used supported machine learning approaches include KNN, NB, and SVM algorithm. The findings also showed that NB had the best accomplishment regarding accuracy. NB classifiers achieved 70, comparing to SVM that obtained 68.33, while KNN yielded 51.67. Saad et al. \hyperref[b6]{[7]} proposed a similar model to categorize emotions from the Malay language. The dataset used consists of Malay children's short stories. over 200 short stories were collected, each story varying from 20-50 words. The TF-IDF is extracted from the text and classified using SVM and DT. Four common emotions, happy, angry, fearful, and sad, are classified using the 2 classifiers. Results showed that the choice Tree outperformed the SVM by a 22.2 accuracy rate.   
\section[{Experimental Evaluation}]{Experimental Evaluation}\par
This section discusses the used dataset and the method-ologies to identify emotions of tweets written in Arabic by utilizing (5) algorithms of machine learning: KNN, DT, SVM, NB, and Multinomial NB. The final section highlights the outcomes of this process.\par
The main phases of the methodology are shown in Fig.  {\ref 2}. The methodology consisted of the dataset, preprocessing, features engineering, supervised machine learning, and classified emotions based on four emotions (anger, joy, sadness, and fear). 
\section[{a) Dataset}]{a) Dataset}\par
This section discusses the used dataset in which the experiments are performed using the reference emotion detection SemEval-2018 (Affect in Tweets) dataset. The dataset is the public benchmark dataset created for the detection of emotions in tweets written in Arabic. Each tweet is labeled as one of the emotions ( joy, anger, sadness, and fear. ). All these tweets are in Arabic text. We used only the EIoc for our experiment with four basic emotion categories. The training dataset trains the classifier and the test dataset examines the structured model to show identify the value of trained model.  
\section[{b) Preprocessing}]{b) Preprocessing}\par
Data preprocessing is taken into account one among the essential phases in machine learning to avoid misleading results and obtain better insights. during this section, the preprocessing steps are discussed as follow: The tweet from the SemEval2018 dataset has been preprocessed using the foremost common preprocessing techniques, like removing stop words, repeating chars, English characters, mentions, punctuation marks, and Arabic diacritics. Also, text normalization has been added.\par
? English Characters Removal: during this step, all English characters in both lower and upper cases (A-Z, a-z) are removed. ? TF-IDF TF-IDF is one in every of the foremost used text feature extraction techniques because it provides helpful insight into the essential features of text documents. during this paper, TF IDF is chosen because the feature extraction technique. It computes the merchandise of the 2 statistics: TF-IDF describes how the word is important to a tweet in an exceedingly collection of tweets. the worth of TF-IDF increases correspondingly to the quantity of times a word appears within the tweets. The more a term occurs in tweets belonging to some category, the more it's relative there to category. TF-IDF's function is more developed and offers ideal outcomes as it can identify an emotional Arabic term. Figure \hyperref[b4]{(5)} highlights the characters' number in tweets. 
\section[{d) Experiment}]{d) Experiment}\par
The experiment describes the approach to predicting users' emotions from their tweets. To categorize the tweet into (anger, joy, sadness, and fear), we apply different machine-learning approaches: K-Nearest Neighbor, Decision Tree, Support Vec-tor Machine, Naive Bayes, and Multinomial Naive Bayes. This work has been implemented on a cloud-based environment, "Google Colab," owned by Google. The experiment's first and most essential phase is preprocessing the tweets for training and test sets. mostly, Arabic text needs more preprocessing because of its nature and structure. Therefore, the preprocessing techniques for every tweet are performed for the training and testing phases. We used the dataset of the Arabic tweets presented by Semi-Eval 2018. Then classified, each tweet was placed into one in all four categorizations, given an emotion and a tweet. This dataset includes (934) tweets for the provided emotions: Fear, anger, sadness, and joy. The TF-IDF is extracted from the text and classified using KNN, SVM, DT, NB, and Multinomial NB. We randomly split our dataset into testing and training with 20-80 ratios. the proportion of every class within the dataset is shown in Fig.  {\ref 6}. We used the training datasets to point the classifiers. In contrast, (unseen to the model), the test dataset was reserved for examining the structured model to identify the suitability of the trained model. After splitting our dataset into the testing and training process, 747 samples are within the training dataset and 187 within the testing dataset. The results of 5 machine learning models are compared within the result section.   
\section[{Evaluation Metrics}]{Evaluation Metrics}\par
We use precision, accuracy recall, and F-score accuracy, in this study, to measure the EC's performance. Precision, also named positive predictive value, is the documents' number labeled correctly as belonging to the positive class. Sensitivity, or recall, is the documents' number that is not labeled as belonging to the positive class. Another measurement that combines recall and precision is F-score. The F-score indicates how accurate the classifier is (how many instances are correctly classified) and its robustness (it does not miss many instances). The last measure is accuracy, which indicates the suitability of a given classifier \hyperref[b12]{[13]}. Calculations of the measurements are given in Fig.  {\ref 7}. 
\section[{VI.}]{VI.} 
\section[{Results and Discussion}]{Results and Discussion}\par
This section reports the performance results and discusses the model. We trained the model on the training dataset for the SemEval-2018 dataset, and reported on the model performance on the test dataset. The Decision Tree and K-Nearest Neighbor classifier's accuracy was 0.74, the NB and Multinomial NB classifiers obtained 0.69, and the SVM 0.63. The results could be more encouraging regarding accuracy. Fig.  {\ref 8} displays the accuracy comparison of various machine learning models.  
\section[{Conclusion}]{Conclusion}\par
EC is a text categorization approach that aims to identify human feelings conveyed through texts. In recent years, Arab users have expressed their emotions on many of the issues raised through the Twitter platform. Therefore, this paper focused on the common classification algorithms such as DT, KNN, SVM, NB, and Multinomial (NB) and applied them to a tweet's dataset as short text content. This study presented the approach for categorizing the emotions of tweets written in Arabic while utilizing the machine learning model. We used the dataset of Arabic tweets presented by SemEval-2018 for EI-oc task. This process used (4) emotion categories: Anger, joy, fear, and sadness. The approach achieved acceptable results with 0.74 for each of the KNN and DT, while the NB and Multinomial NB acquired 0.69; finally, the SVM achieved 0.63. Therefore, future research, including deep learning, is promising, primarily if provided with a large, good, annotated dataset. Also, future research on constructing and finding an Arabic dataset that is labeled correctly will aid and increase the advancements in textual emotion detection, because it will offer a dataset that can be utilized to compare various suggested investigations. 
\section[{VIII.}]{VIII.} 
\section[{Future Work}]{Future Work}\par
The authors intend to examine this model on bigger datasets, assess the outcomes, and employ a hybrid approach that depends on deep learning and machine learning to classify emotions in texts written in Arabic and compare multiple methodologies.\begin{figure}[htbp]
\noindent\textbf{}\includegraphics[]{image-2.png}
\caption{\label{fig_0}}\end{figure}
 \begin{figure}[htbp]
\noindent\textbf{1}\includegraphics[]{image-3.png}
\caption{\label{fig_1}Fig. 1 :}\end{figure}
 \begin{figure}[htbp]
\noindent\textbf{12}\includegraphics[]{image-4.png}
\caption{\label{fig_2}Fig 1 Fig. 2 :}\end{figure}
 \begin{figure}[htbp]
\noindent\textbf{34}\includegraphics[]{image-5.png}
\caption{\label{fig_3}Fig. 3 :Fig. 4 :}\end{figure}
 \begin{figure}[htbp]
\noindent\textbf{3}\includegraphics[]{image-6.png}
\caption{\label{fig_4}Figure ( 3 )}\end{figure}
 \begin{figure}[htbp]
\noindent\textbf{5}\includegraphics[]{image-7.png}
\caption{\label{fig_5}Fig. 5 :}\end{figure}
 \begin{figure}[htbp]
\noindent\textbf{67}\includegraphics[]{image-8.png}
\caption{\label{fig_6}Fig. 6 :Fig. 7 :}\end{figure}
 \begin{figure}[htbp]
\noindent\textbf{8912}\includegraphics[]{image-9.png}
\caption{\label{fig_7}Fig. 8 :Fig. 9 :Fig. 12 :}\end{figure}
 \begin{figure}[htbp]
\noindent\textbf{}\includegraphics[]{image-10.png}
\caption{\label{figure10}}\end{figure}
 \begin{figure}[htbp]
\noindent\textbf{}\includegraphics[]{image-11.png}
\caption{\label{figure11}}\end{figure}
 \begin{figure}[htbp]
\noindent\textbf{}\includegraphics[]{image-12.png}
\caption{\label{figure12}}\end{figure}
 \begin{figure}[htbp]
\noindent\textbf{}\includegraphics[]{image-13.png}
\caption{\label{figure13}}\end{figure}
 \begin{figure}[htbp]
\noindent\textbf{}\includegraphics[]{image-14.png}
\caption{\label{figure14}}\end{figure}
 \begin{figure}[htbp]
\noindent\textbf{} \par 
\begin{longtable}{P{0.85\textwidth}}
? Arabic Normalization: Returning chars to their\\
original.\\
? Arabic Diacritics Removal: Removing all diacritics\\
like [Fatha,Tanwin Fath, Damma, Tanwin Damm,\\
Kasra,Tanwin Kasr,Sukun] .\\
? Mentions Removal: Removing any mentions like @\\
from the tweet.\\
? Repeated Chars Removal: Any repeating characters\\
are removed during this step.\\
? Punctuations Removal: Removing all punctuation\\
marks like/:".', +¦!-. . . ""-\\
c) Features Extraction\\
Feature extraction techniques aim to represent\\
the text's emotional value which is able to help classify\\
the emotions into the right category. Feature extraction\\
is essential before EC from the documents, which can\\
be found in method such as Term Frequency-Inverse\\
Document Frequency (TF-IDF). The next section\\
describes the feature extraction method utilized in our\\
proposed approach:\end{longtable} \par
 
\caption{\label{tab_0}}\end{figure}
 			\footnote{© 2023 Global Journals} 			\footnote{( )Year 2023} 		 		\backmatter  			  				\begin{bibitemlist}{1}
\bibitem[Nandwani and Verma ()]{b8}\label{b8} 	 		\textit{A review on sentiment analysis and emotion detection from text. Social Network Analysis and Mining},  		 			P Nandwani 		,  		 			R Verma 		.  		2021. 11 p. .  	 
\bibitem[Alzoubi et al. ()]{b4}\label{b4} 	 		\textit{Affect detection from arabic tweets using ensemble and deep learning techniques},  		 			O Alzoubi 		,  		 			S K Tawalbeh 		,  		 			A S Mohammad 		.  		2020.  		 			Journal of King Saud University-Computer and Information Sciences 		 	 
\bibitem[Mansy et al. ()]{b0}\label{b0} 	 		‘An Ensemble Deep Learning Approach for Emotion Detection in Arabic Tweets’.  		 			A Mansy 		,  		 			S Rady 		,  		 			T Gharib 		.  	 	 		\textit{International Journal of Advanced Computer Science and Applications}  		2022. 13  (4) .  	 
\bibitem[Elfaik ()]{b2}\label{b2} 	 		‘Combining Context-Aware Embeddings and an Attentional Deep Learning Model for Arabic Affect Analysis on Twitter’.  		 			H Elfaik 		.  	 	 		\textit{IEEE Access}  		2021. 9 p. .  	 
\bibitem[Singh et al. (2019)]{b10}\label{b10} 	 		‘Comparison between multinomial and Bernoulli na¨?ve Bayes for text classification’.  		 			G Singh 		,  		 			B Kumar 		,  		 			L Gaur 		,  		 			A Tyagi 		.  	 	 		\textit{2019 International Conference on Automation, Computational and Technology Management (ICACTM)},  				2019. April. IEEE. p. .  	 
\bibitem[Rahat et al. (2019)]{b11}\label{b11} 	 		‘Comparison of Naive Bayes and SVM Algorithm based on sentiment analysis using review dataset’.  		 			A M Rahat 		,  		 			A Kahir 		,  		 			K M Masum 		.  	 	 		\textit{8th International Conference System Modeling and Advancement in Research Trends},  				2019. November. 2019. IEEE. p. .  	 
\bibitem[Khalil et al. ()]{b1}\label{b1} 	 		‘Deep learning for emotion analysis in Arabic tweets’.  		 			E A H Khalil 		,  		 			E M El Houby 		,  		 			H K Mohamed 		.  	 	 		\textit{Journal of Big Data}  		2021. 8  (1)  p. .  	 
\bibitem[Saad et al. ()]{b6}\label{b6} 	 		‘Evaluation of support vector machine and decision tree for emotion recognition of malay folklores’.  		 			M M Saad 		,  		 			N Jamil 		,  		 			R Hamzah 		.  	 	 		\textit{Bulletin of Electrical Engineering and Informatics}  		2018. 7  (3)  p. .  	 
\bibitem[Saad et al. ()]{b12}\label{b12} 	 		‘Evaluation of support vector machine and decision tree for emotion recognition of malay folklores’.  		 			M M Saad 		,  		 			N Jamil 		,  		 			R Hamzah 		.  	 	 		\textit{Bulletin of Electrical Engineering and Informatics}  		2018. 7  (3)  p. .  	 
\bibitem[Alswaidan and Menai ()]{b3}\label{b3} 	 		‘Hybrid feature model for emotion recognition in Arabic text’.  		 			N Alswaidan 		,  		 			M E B Menai 		.  	 	 		\textit{IEEE Access}  		2020. 8 p. .  	 
\bibitem[Hussein et al. ()]{b5}\label{b5} 	 		‘Mood Detection Based on Arabic Text Documents using’.  		 			A Hussein 		,  		 			M Al Kafri 		,  		 			A A Abonamah 		,  		 			M U Tariq 		.  	 	 		\textit{Machine Learning Methods. International Journal}  		2020. 9  (4) .  	 
\bibitem[Hegazi et al. ()]{b7}\label{b7} 	 		‘Preprocessing Arabic text on social media’.  		 			M O Hegazi 		,  		 			Y Al-Dossari 		,  		 			A Al-Yahy 		,  		 			A Al-Sumari 		,  		 			A Hilal 		.  	 	 		\textit{Heliyon}  		2021. 7  (2)  p. e06191.  	 
\bibitem[Boudad et al. ()]{b9}\label{b9} 	 		‘Sentiment analysis in Arabic: A review of the literature’.  		 			N Boudad 		,  		 			R Faizi 		,  		 			R O H Thami 		,  		 			R Chiheb 		.  	 	 		\textit{Ain Shams Engineering Journal}  		2018. 9  (4)  p. .  	 
\end{bibitemlist}
 			 		 	 
\end{document}
