---
title: "Hate Speech Detection of Arabic Shorttext — Aref 2020"
description: "Hate Speech Detection of Arabic Shorttext builds a corpus of Sunni–Shia tweets and tests how well classifiers recognize sectarian hate speech."
canonical: "https://research.elamur.ai/free/en/papers/aref-2020-hate-speech-detection-arabic-shorttext/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Constitution](https://md.constitution.elamur.ai/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/aref-2020-hate-speech-detection-arabic-shorttext/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2020](https://md.research.elamur.ai/free/en/papers/2020/) / Hate Speech Detection of Arabic Shorttext

# Hate Speech Detection of Arabic Shorttext

Paper · 2020 · Abdullah Aref, Rana Husni Al Mahmoud, Khaled Taha et al.

**Authors:** [Abdullah Aref](https://md.research.elamur.ai/free/en/authors/abdullah-aref/), Rana Husni Al Mahmoud, Khaled Taha and Mahmoud Al-Sharif · **Year:** 2020 · **Licence:** [CC BY (OpenAlex best open-access location)](https://creativecommons.org/licenses/by/4.0/)

[**22** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W3033837724) · [Cited by **4** papers in our library of more than 163,000 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/aref-2020-hate-speech-detection-arabic-shorttext/cited-by/) · [licence](https://creativecommons.org/licenses/by/4.0/)

- [PDF](https://doi.org/10.5121/csit.2020.100507)
- [OpenAlex](https://openalex.org/W3033837724)

Citations: OpenAlex, 2026-10-14.

## Summary

A tweet can name a religious community and use harsh language without attacking people for belonging to that community. It might quote someone else’s attack, criticize a government, or discuss a disputed historical event. The authors of *Hate Speech Detection of Arabic Shorttext* study how to recognize attacks involving Sunni and Shia communities in Arabic tweets. The authors present SSTD, short for Sunnah Shia Twitter Dataset, as the first Twitter dataset made available to the public specifically for this setting. They use it to compare ways of assigning a hate-speech label to a short text, a task in [text classification](https://md.research.elamur.ai/free/en/concepts/text-classification/).

The authors searched Twitter for combinations of group-related terms and words associated with hostility. They sampled the results and asked two annotators to judge each tweet using rules about who was being targeted, what was being expressed, and how context changed the meaning. A tweet received the final Hate label if either annotator chose it. This made the labels more than a record of which tweets matched the searches. It also meant that a tweet could count as Hate in the evaluation even when the annotators disagreed about it.

The experiments compare conventional classifiers using weighted word counts with convolutional and recurrent neural networks. The authors test the neural networks with and without initialization from learned word vectors, known as [word embeddings](https://md.research.elamur.ai/free/en/concepts/word-embeddings/). They say they used stratified random sampling to assign 66% of SSTD to the training set and 34% to the test set. The convolutional network initialized with FastText had the highest reported F-measure for the Hate class, at 52.0%. The convolutional network initialized with Word2Vec followed at 49.0%. F-measure balances how many predicted Hate tweets have that label and how many of the tweets labeled Hate the system finds.

The strongest setting for finding Hate tweets had lower overall accuracy than several alternatives. Its advantage came from recovering more examples of the minority class while accepting more incorrect Hate predictions. The same FastText initialization did not produce a corresponding gain for the recurrent network. The result concerns a particular combination of representation, classifier, and labeled sample. The paper also leaves open how well that combination would work on tweets collected with different search terms, on other religious targets, or under a different rule for resolving annotator disagreement.

## Deep dive: Hate Speech Detection of Arabic Shorttext

Hate Speech Detection of Arabic Shorttext builds a corpus of Sunni–Shia tweets and tests how well classifiers recognize sectarian hate speech. · about 33 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### Deciding what counts as an attack

The authors motivate the task by pointing to the speed, reach, and low cost of posting on social media. They also discuss the role of anonymity in making it easier to circulate hostility towards individuals or communities. Their concern includes the possibility that online messages can encourage physical hate crimes. The experiment tackles a narrower question that can be checked against human judgments. Given the text of a tweet, can a classifier assign the same hate-speech label as the dataset?

The paper begins that task by choosing a working definition. It treats hate speech as disparagement or threat aimed at a group identified by a protected characteristic. Its account of disparagement includes expressions of contempt, encouragement to insult, and demeaning false generalizations. Its account of threats covers expressions or encouragement of violence, exclusion, or hatred. These categories describe different things an utterance can do, even when the surface wording gives few clues about the difference. A statement can demean a group without explicitly proposing any action against it. A call to exclude a group can carry hostility without using a conspicuous insult.

The target matters as much as the expression. Strong criticism of a state or political regime falls outside the study’s definition on its own. An insult aimed at an individual requires attention to context, since the attack might concern the person’s group membership. Even severe criticism involving a protected group can receive a non-hate label when its substance stays within a generalized political discussion. The distinction requires a reader to infer what makes someone the object of the criticism. The authors draw their working definition from common elements in several institutional definitions and adapt it to the practical demands of labeling tweets. Their discussion of those definitions refers to [A Survey on Automatic Detection of Hate Speech in Text](https://md.research.elamur.ai/free/en/papers/fortuna-2018-survey-automatic-detection-hate-speech/).

This makes hate speech a different target from negative opinion. The paper introduces its subject in the context of [sentiment analysis](https://md.research.elamur.ai/free/en/topics/sentiment-emotion/), where the broad aim is to identify opinions and their polarity. Negativity can help draw attention to an utterance worth examining. The labeling rules still require a judgment about the direction and nature of the hostility. The paper’s rules on quotation make the difference particularly clear. The words inside a quotation may be hostile towards a group while the person posting them is reproducing someone else’s speech. A classification based only on the presence of those words can therefore disagree with the authors’ policy even when it correctly recognizes their negative tone.

#### Why the authors focused on Arabic sectarian speech

The paper describes Arabic as under-resourced relative to English for this kind of research. It also points to the richness of Arabic [morphology](https://md.research.elamur.ai/free/en/concepts/morphology/) and the presence of different dialects. Morphology concerns how words are formed and how their forms vary. For a system that learns from examples, related written forms can occupy separate entries in a vocabulary unless the representation brings them together. Dialect differences raise another issue. The words that identify a dispute, and the associations that make some expressions hostile, may vary with the communities and places involved.

The labeling guidelines give a concrete illustration of this variation. In discussing regional context, the authors mention Islamic–secular tensions in the Arab West and Sunni–Shia tensions in the Arab East. They use the distinction to explain why a reader may need to know more than a dictionary sense to interpret a tweet. An expression that seems ordinary elsewhere may be pejorative in a particular dispute. Words with unmistakably negative meanings pose the reverse problem because speakers can use them to curse, complain, or criticize without necessarily attacking a protected group.

The scope of SSTD comes from that specificity. The authors sought a labeled collection for the Sunni–Shia setting, which they present as one part of religious hate speech. Their account of earlier research includes studies on racism, sexism, prejudice toward refugees, homophobia, and broadly defined hate speech. They also mention research on abusive language, offensive language, and cyberbullying. These subjects can share words and classification techniques, but the label attached to a particular post depends on the question each study asks. A corpus designed for general abuse may treat a personal insult as relevant even when a corpus concerned with protected groups needs further evidence.

#### What earlier work gave them to compare

One strand of earlier work, as the paper describes it, uses marked words or linguistic features to help distinguish hateful texts. Word lists can identify expressions worth checking. A bag of words represents a document through its vocabulary without preserving the order in which the words appear. An [n-gram](https://md.research.elamur.ai/free/en/concepts/n-gram/) represents a sequence of neighboring elements and can retain local combinations that an unordered vocabulary loses. The paper also mentions features drawn from grammatical categories, syntactic relationships, topics, and sentiment. These are different ways to decide what information about a text a classifier will receive.

The authors describe earlier work using supervised, semisupervised, and unsupervised approaches. Their own comparison is supervised [machine learning](https://md.research.elamur.ai/free/en/concepts/machine-learning/). The training tweets have known labels, and each classifier uses those examples to learn a rule for assigning labels to other tweets. Providing the same labeled task to several classifiers lets the authors compare performance within SSTD, even though the classifiers organize or use textual evidence differently.

The paper also discusses earlier neural approaches to hate speech and related tasks. It describes work on racism and sexism that used convolutional or sequential networks alongside representations such as word counts and weighted vocabularies. It cites an abuse-detection study in which a Long Short-Term Memory network, or LSTM, with randomly initialized word representations performed well relative to the alternatives in that study. That earlier result gave the authors a reason to examine neural networks as a separate part of their comparison. [A Unified Deep Learning Architecture for Abuse Detection](https://md.research.elamur.ai/free/en/papers/founta-2019-unified-deep-learning-architecture-abuse/)

The nearest precedents in the paper are studies on Arabic tweets. The authors describe a Levantine collection labeled for hate speech and abuse and report that multinomial Naive Bayes performed better there than a support vector machine. They also discuss earlier research on religious hatred in Arabic Twitter, including comparisons of recurrent architectures. Their account points to a gated recurrent unit as a promising option with smaller datasets. SSTD adds a collection focused on Sunni–Shia speech and a comparison that includes both weighted word counts and different initial word-vector representations. The earlier results explain the choice to test several approaches. The SSTD experiment supplies the evidence about their performance on the new collection.

### The method, step by step

#### Finding tweets that people could judge

The authors had to find candidate tweets before they could ask anyone to label them. They started with documents about hate speech and gathered around 365 candidate words. A member of the team judged whether those words carried hostility and scored how strongly they did so. The higher-scoring terms supplied one part of the search vocabulary. Another list contained words and expressions associated with Sunni and Shia identities. That list included group names as well as terms associated with how the groups are referred to in contentious speech.

The search paired vocabulary from the two lists. One element was intended to find a possible expression of hostility, and the other helped locate a possible sectarian context. In practical terms, the design asked Twitter for tweets in which the two kinds of clue occurred together. The search therefore created a pool likely to contain relevant material for annotation. A match could still describe rather than endorse an attack, apply the group term in a different sense, or use the hostile expression against a different target. Those distinctions were left to the annotators.

From Twitter searches to a test of classification The steps in order.

The paper distinguishes between Twitter’s REST search interface and its streaming interface. Search retrieves records from the platform’s index for a recent period, with the paper describing a 7 days window before a search date. Streaming, in the authors’ account, begins collecting results from the time the query is submitted. They used search and ran queries on 30/9/2019 and 5/10/2019. They report retrieving around 8220 tweets and give 23/9/2019 to 5/10/2019 as the date range of the collected material.

For the classification study, the methods section describes drawing a sample of 3235 tweets from the larger pool. This sample was stratified by the combinations of topic and group terms. Stratification here means the selected tweets were intended to retain the proportions of those combinations in the retrieved pool. It preserves a property of the material the queries found. The pool itself still reflects which terms were selected, what was in the search index, and when the searches ran. The paper later reports a different corpus total, an inconsistency relevant to reconstructing the experiment.

#### Turning judgments into labels

The authors asked two annotators to read each sampled tweet and assign either Hate or Not Hate. This is [linguistic annotation](https://md.research.elamur.ai/free/en/concepts/annotation/), in the sense that a reader applies an explicit scheme to particular pieces of language and records a judgment. The resulting dataset pairs tweet text with its adjudicated label. The classifiers then learn from those final labels. The distinction between an annotator’s initial judgment and the adjudicated label matters because the study deliberately kept examples that could be assigned different labels by different readers.

The guidelines address common sources of disagreement. Criticism directed at a government or state is excluded even when the tone is severe. An insult aimed at a person can require a closer reading to determine whether the attack also concerns a protected group. A reference to a contentious historical subject needs some additional indication of hostility or incitement to count. Reproducing someone else’s hate speech as a quotation is excluded by the guidelines. Each of these rules asks annotators to distinguish the function of an expression from its appearance in the text.

The paper also asks annotators to consider irony, metaphor, and culturally specific uses of cursing. Figurative phrasing can communicate an attack indirectly. Cursing can occur as a familiar way of expressing anger and still fall outside the operational definition. Religious forms of speech deserve particular care because expressions of supplication or exclamation can have ordinary uses and can also be used to frame hostility. The decision may depend on the object of the expression and on the association a community hears in it. A short tweet can leave those facts implicit.

Other rules give particular expressions more decisive weight. The authors describe some stigmatizing labels as hostile whenever they appear. They also describe extending a list when apparently neutral terms have acquired a strongly pejorative use against a group. The instructions make exceptions for quotations and some forms of political criticism. Their interaction is a practical source of difficulty. A tweet can satisfy a strong lexical cue and also fall within an exemption that depends on context. The paper gives the component rules without setting out a complete order for applying them when they point in different directions.

The final adjudication rule is unambiguous. Any Hate judgment was sufficient to make the tweet Hate in the dataset. A final Not Hate label required both annotators to choose that class. The authors connect this choice to their view that disagreements can arise from difficult examples and from the interaction of many rules. Discarding disputed cases would produce a different dataset, with fewer of the instances that prompted uncertainty. Keeping them with the authors’ rule gives disputed cases a definite place in the experiment, and the choice of place favors inclusion in the Hate class.

The paper prints annotator agreement as 0.85%. It gives no agreement statistic by name or breakdown of the underlying judgments that would establish how to interpret that figure. The adjudication rule can be understood without resolving the number. Each final Hate label records that at least one annotator judged the tweet to meet the study’s criteria. The reported scores compare classifier decisions with that outcome.

#### Preparing Arabic text for the classifiers

The preprocessing stage begins by normalizing the written text. Normalization makes chosen forms look the same to subsequent processing. The authors describe removing nonletters, special characters, and letters outside the Arabic script. They also give substitutions for Arabic letterforms. Initial آ, إ, and أ are mapped to ا. Final ة is replaced with ه, and final ي with ى. An additional operation removes a sequence at the beginning of a word. The paper lists these transformations as part of the preprocessing pipeline. It gives no separate score for retaining or removing any particular form.

The underlying reason for such normalization can be understood from what happens to a vocabulary. If every spelling variation is stored under a different entry, evidence about a frequently occurring form does little to increase the observed count of a rarer one. Mapping selected variants to a single form lets their occurrences contribute to the same entry. The mapping also removes spelling distinctions. Whether the distinction was useful for classification depends on what those forms signaled in the tweets. That is an empirical question separate from whether the procedure successfully applied the substitutions.

The next step divides the written string into units that can be counted or looked up, a process called [tokenization](https://md.research.elamur.ai/free/en/concepts/tokenization/). The paper describes the units at word level. It also removes stop words, common items such as prepositions that the preprocessing treats as having limited value for this task. This use of a stop-word list belongs to the general text-preparation pipeline. The guidelines’ discussion of adding newly recognized pejorative expressions to a hate-speech list concerns how annotators identify or interpret those expressions. The paper gives no implementation detail showing how that terminology relates to the list of words removed before classification.

Finally, the authors apply light [stemming](https://md.research.elamur.ai/free/en/concepts/stemming/). Stemming reduces some forms of a word to a shared stem so they can contribute evidence together. The paper distinguishes its light approach from a root-based approach that attempts to recover a deeper lexical root. A light stemmer is intended to bring together forms that differ in portions such as affixes. For the classifiers, the relevant effect is that forms which would otherwise occupy separate vocabulary entries can be represented together. The article identifies the general procedure but gives no per-operation comparison of its effect on the test scores.

#### Representing tweets as weighted vocabulary

The conventional classifiers receive numerical features from a bag-of-words representation. A vocabulary entry can contribute to a tweet’s row of features when that word occurs. The classifier can learn from the resulting pattern of word values without being told where each word appeared. For a short tweet, this can preserve evidence that an expression occurred while losing evidence about how the expression was directed. That distinction follows from the representation, independent of how accurately a particular classifier predicts the final label.

The authors weight these entries using [TF-IDF](https://md.research.elamur.ai/free/en/concepts/tf-idf/). They describe the term frequency component as TF(t,d), with t standing for a word or term and d for the tweet treated as a document. It records how often that term occurs in the particular document. They denote inverse document frequency by IDF(t). That component reflects how widely the word is distributed in the collection and gives greater emphasis to a term when it occurs in fewer documents. The paper explains the two components and their role in feature weighting. It leaves the precise conventions for calculating the weights, including the implementation’s normalization choices, unspecified.

In this representation, an expression associated with the label can carry substantial weight even in a short post. An expression can also carry weight for reasons tied to how the data were gathered. For example, a group-related form may be common in one query’s results and absent from other queries. Its role in a classifier depends on the labeled examples in which it appears. The weights themselves say how a term is distributed, and the supervised classifier uses the weighted features to learn how that distribution relates to Hate and Not Hate.

The paper uses four classifiers with this vocabulary-based input. A Decision Tree applies successive decisions based on the numerical features. Random Forest combines decisions from multiple trees. Complement Naive Bayes, reported as Complement NB, is a probabilistic classifier based on word evidence, with the complement of a class informing the weights used for classification. A support vector machine, or SVM, learns a separating boundary in the feature space. These descriptions distinguish what each classifier does with the numerical input. The paper’s experiment compares the resulting systems and gives no detailed settings for their individual decision rules.

#### Representing words with learned vectors

The neural comparisons ask a different question about input representation. A word embedding assigns a word a vector, a list of numerical coordinates used as its initial representation. Training on uses of words in context can give related items similar representations. A classifier can then receive an ordered sequence of these vectors for the words in a tweet. It has access to a different kind of evidence from an unordered set of TF-IDF weights.

The authors use Word2Vec and FastText to initialize the embeddings. Both sets of vectors are described as trained on SSTD using skip-gram. In that procedure, training uses nearby words as the prediction signal for a selected word. The paper gives a context window size of 10 and a vector size of 100 for this embedding training. The first setting controls how much surrounding text can supply examples of context. The second specifies how many coordinates each word vector has. The paper also reports a FastText setting named wordNgrams with the value 6. It gives that setting separately from its explanation of the sub-word representation.

In the paper’s explanation, FastText can combine representations for parts of a word. Related forms can then share information through overlapping strings, even when they have different entries as complete words. The authors also point out that learned parts can be used to build a vector for a word that was unseen during training. They offer these properties as reasons FastText may help with words that share a stem and forms that are new at test time. The comparison uses word vectors learned on the study corpus, and the paper does not describe an experiment varying the vector size, context window, or wordNgrams setting.

The paper says it used Word2Vec and FastText in preference to [GloVe](https://md.research.elamur.ai/free/en/concepts/glove/) because they gave better results. The reported benchmark supplies no GloVe row or numerical comparison. It does supply rows for CNN and RNN alone, in addition to versions initialized from Word2Vec or FastText. The names of those plain rows establish the comparison the authors present. Details such as how the plain embeddings were initialized and whether embedding weights changed during classifier training are left open.

#### Learning from word order and testing on labeled tweets

The convolutional neural network, or CNN, extracts patterns from local spans of the input sequence. The same pattern detector can be useful in different positions. For a tweet, the representation can therefore carry evidence about neighboring words, including combinations that an unordered vocabulary would treat as separate occurrences. The paper cites earlier work on neural networks for text in connection with this classifier. It does not specify the widths of the local spans used in its own CNN. [Natural Language Processing (almost) from Scratch](https://md.research.elamur.ai/free/en/papers/collobert-2011-natural-language-processing-almost-scratch/)

The recurrent neural network, or RNN, processes a sequence by carrying forward a representation of what it has read. A word can therefore be interpreted in conjunction with information carried from preceding words. This describes the distinction between the classifier families. The paper does not give enough architectural detail to establish the particular recurrent cell, how sequence information was pooled for the decision, or which part of the short text carried the most weight in an individual prediction.

For classifier training, the authors report a stratified random division of SSTD into 66% training and 34% testing. This is separate from the stratification used to sample tweets from the retrieval pool. The earlier operation chooses examples for the corpus while keeping the proportions of query combinations. The later operation creates the partitions for learning and scoring. Its purpose is to compare classifiers on unseen labeled tweets from the same collection without making the partitions depend entirely on an unrestricted random draw from imbalanced data.

The paper describes the test partition as unseen during classifier training. It also states that the embeddings were trained on SSTD. It does not say whether the embedding training used only the training partition. Supervised classifier training and learning word representations from text are distinct operations. If vectors were learned from all SSTD text, the test labels could still be unseen while the test wording had contributed to the input representation. The description preserves that distinction without resolving which embedding-training protocol was used.

#### How a prediction becomes a score

The paper’s scoring definitions start with a confusion matrix. It tracks correct and incorrect decisions relative to the adjudicated labels. A tweet labeled Not Hate can be correctly left in that class or incorrectly flagged. A tweet labeled Hate can be missed or correctly flagged. Those outcomes let the authors ask different questions about the predictions using the same set of tweets.

```
Accuracy = (A + D) / (A + B + C + D)
```

Accuracy is the share of all test predictions whose label agrees with the dataset. A counts correctly predicted Not Hate tweets. B counts Not Hate tweets predicted as Hate, and C counts Hate tweets predicted as Not Hate. D counts correctly predicted Hate tweets. The paper’s verbal definitions and accuracy equation use D for that last count, although the corresponding cell in the confusion matrix is marked E. The plus signs add outcome counts, the parentheses group them, the slash divides the correct count by the total, and the equals sign identifies the resulting metric.

```
Precision = TP / (TP + FP)
```

Precision is the share of predictions for a chosen class that agree with the dataset. TP means true positives for that class, the predictions that correctly assign it. FP means false positives, tweets assigned to the class whose reference label is the other class. For Hate precision, the question is how frequently a Hate flag agrees with the dataset. For Not Hate precision, the same calculation treats Not Hate as the class of interest. The parentheses group the total predictions for that class, the plus sign adds its correct and incorrect predictions, and the slash divides the correct predictions by that total. The equals sign names the quotient.

```
Recall = TP / (TP + FN)
```

Recall is the share of tweets belonging to a chosen class that the classifier finds. TP again counts correctly predicted examples of that class. FN means false negatives, which belong to the class according to the dataset but were assigned the other label. The plus sign adds the found and missed examples, the parentheses group them into the class total, and the slash divides the found examples by that total. The equals sign identifies that quotient as recall. The change in denominator from precision matters. A detector can return a short list of plausible Hate tweets and have good precision while leaving many of the labeled Hate tweets outside the list.

```
F-measure = 2 × (Precision × Recall) / (Precision + Recall)
```

F-measure combines the precision and recall of the same chosen class. Precision and Recall are the values defined above. The multiplication signs form their product and scale it by the factor 2. The plus sign adds the two scores, the parentheses group the product and sum, and the slash divides the scaled product by the sum. The equals sign gives the resulting F-measure. This is a harmonic mean, so the result is limited when either component is low. In SSTD, the authors emphasize the class-specific scores because overall accuracy gives the more common class greater influence over the aggregate result.

### Experiments and results

#### What was held out and what was compared

The reported comparisons use the SSTD test partition, described as 34% of the data in the stratified random split. The other 66% is the training partition for the classifiers. The reference answers are the final Hate and Not Hate labels. The authors identify Hate as the minority class and emphasize its precision, recall, and F-measure. The experiments use Python, with scikit-learn for conventional classification and measurement and Keras for the neural classifiers.

The conventional baselines are Random Forest, Complement NB, Decision Tree, and SVM. Each uses the TF-IDF bag-of-words representation. The neural comparison includes a plain CNN and a plain RNN, plus versions of each initialized with FastText or Word2Vec. This setup supports comparisons among conventional classifiers using the same representation. It also supports comparisons among the reported neural input settings within each network family. A comparison from the conventional group to the neural group changes the representation as well as the classifier.

The results table gives overall accuracy and class-specific metrics. The distinction between overall and per-class scores is essential when reading a row. The paper’s headline F-measure describes the Hate class, not an average of the Hate and Not Hate scores. It answers how well the classifier balances its success at finding Hate tweets against its reliability when predicting that label.

#### The ranking for the Hate class

SSTD test partition, Hate class F-measure by classifier The CNN initialized with FastText has the highest Hate F-measure.

**The numbers**

| System or setting | F-measure |
| --- | --- |
| Random Forest | 0.15 |
| Complement NB | 0.46 |
| Decision Tree | 0.46 |
| SVM | 0.4 |
| CNN | 0.48 |
| RNN | 0.47 |
| CNN with FastText (this paper) | 0.52 |
| RNN with FastText | 0.44 |
| CNN with Word2Vec | 0.49 |
| RNN with Word2Vec | 0.43 |

The CNN with FastText leads on Hate F-measure at 0.52 on the SSTD test partition, reported as 52.0% in the abstract. The CNN with Word2Vec follows at 0.49, reported as 49.0%. The plain CNN scores 0.48 and the plain RNN scores 0.47. Among the conventional classifiers, Complement NB and Decision Tree both score 0.46. The SVM scores 0.4 and Random Forest scores 0.15. The ordering therefore depends on which neural configuration is being compared. The leading CNN settings outperform the conventional baselines on this metric, while the recurrent variants with either learned initialization fall below Complement NB and Decision Tree.

Precision and recall show how that ranking arose. For the Hate class, the CNN with FastText has precision of 0.42 and recall of 0.69. The CNN with Word2Vec has Hate precision of 0.59 and recall of 0.42. The plain CNN has Hate precision of 0.62 and recall of 0.39. FastText paired with the CNN gives the weakest precision among these CNN settings and the strongest recall. Its F-measure leads because it recovers more of the labeled Hate tweets while retaining enough precision to improve the combined score.

The conventional baselines show other operating patterns. SVM reports Hate precision of 0.64 and recall of 0.29. Complement NB reports Hate precision of 0.39 and recall of 0.579. The Decision Tree has 0.46 for both measures. Random Forest has Hate precision of 0.78 and recall of 0.086. A system with that Random Forest pattern can be right on many of the occasions when it predicts Hate while finding few of the tweets in the Hate class. Precision alone would make it look strong on Hate detection. The recall and F-measure reveal why the authors reached a different conclusion.

#### What changes when the score covers all tweets

SSTD test partition, overall accuracy for selected classifiers Several alternatives have higher overall accuracy than the CNN with FastText.

**The numbers**

| System or setting | Accuracy |
| --- | --- |
| Complement NB | 0.68 |
| CNN with FastText (this paper) | 0.71 |
| RNN with FastText | 0.76 |
| Random Forest | 0.78 |
| CNN with Word2Vec | 0.79 |
| SVM | 0.8 |
| CNN | 0.8 |
| RNN | 0.8 |

The reported overall accuracy of the CNN with FastText is 0.71 on the SSTD test partition. SVM, the plain CNN, and the plain RNN each report 0.8. The CNN with Word2Vec follows those classifiers at 0.79. Random Forest reaches 0.78 even though its Hate recall is the lowest reported. The remaining overall accuracies are 0.76 for the RNN with FastText, 0.74 for both Decision Tree and the RNN with Word2Vec, and 0.68 for Complement NB.

These values express different priorities in the evaluation. Overall accuracy credits every correctly classified tweet. Class-specific Hate F-measure applies only to predictions and reference labels that involve Hate. In a collection where Not Hate occurs more often, a classifier can produce many correct decisions by doing well on that class. Its overall accuracy can then be high while its Hate recall is low. The results let the reader see that pattern directly in Random Forest and, to a lesser extent, in SVM.

The corresponding Not Hate scores help explain the CNN with FastText. Its Not Hate precision is 0.88 and its Not Hate recall is 0.71, giving a reported Not Hate F-measure of 0.79. The plain CNN has Not Hate precision of 0.83, recall of 0.93, and F-measure of 0.88. The FastText version finds fewer of the tweets whose reference label is Not Hate. The complementary class metrics show where those errors go in a binary task. Any reference Not Hate tweet that escapes the Not Hate prediction is assigned Hate. This allows the decline in Not Hate recall to be read alongside the decline in Hate precision.

#### The majority class has a different ordering

SSTD test partition, Not Hate class F-measure by classifier SVM and the plain neural classifiers share the highest reported Not Hate F-measure.

**The numbers**

| System or setting | F-measure |
| --- | --- |
| Random Forest | 0.87 |
| Complement NB | 0.78 |
| Decision Tree | 0.83 |
| SVM (this paper) | 0.88 |
| CNN | 0.88 |
| RNN | 0.88 |
| CNN with FastText | 0.79 |
| RNN with FastText | 0.85 |
| CNN with Word2Vec | 0.87 |
| RNN with Word2Vec | 0.83 |

The paper notes that Not Hate precision is relatively similar across the classifiers. Their differences in Not Hate recall are more visible. Random Forest has the highest reported Not Hate recall, at 0.99 on the test partition, and Not Hate precision of 0.78. The SVM pairs Not Hate recall of 0.95 with precision of 0.81. Both plain neural classifiers report Not Hate recall of 0.93 and precision of 0.83. Their Not Hate F-measure ties with SVM at 0.88, while Random Forest scores 0.87. The higher Random Forest recall is accompanied by lower precision for the same class.

The result gives the authors a reason to report separate figures for the two labels. For the majority class, some configurations differ mainly in how many tweets they assign to Not Hate and how selective that assignment is. For the minority class, those choices can substantially change how many annotated cases they recover. The reported CNN with FastText result is the best of the tested configurations when the comparison is Hate F-measure. A reader selecting for overall accuracy or Not Hate F-measure would favor other rows under the same evaluation.

### What the ablations show

#### The effect of changing the word representation

The paper reports no component-by-component ablation of the pipeline. Its closest comparisons hold the network family fixed and vary the initial word representation, then inspect precision, recall, and F-measure separately. Those comparisons are the evidence for the authors’ claims about embeddings. The paper gives one setting for each named system and no experiment removing individual parts of the word representation.

Within the CNN comparisons on the SSTD test partition, the Hate F-measure goes from 0.48 for the plain CNN to 0.49 with Word2Vec and 0.52 with FastText. Examining the metrics separately narrows what can be said about the result. Word2Vec is accompanied by Hate recall of 0.42, compared with the plain CNN’s 0.39, and precision of 0.59, compared with 0.62. FastText is accompanied by a higher Hate recall of 0.69 and a lower Hate precision of 0.42. The outcome in favor of FastText is an improvement on the combined score for Hate with a change in both kinds of error.

The CNN comparison also shows why the authors’ embedding experiment is easier to interpret if the label is named each time. For Not Hate on the same partition, the plain CNN scores 0.88 in F-measure, the CNN with Word2Vec scores 0.87, and the CNN with FastText scores 0.79. The observed improvement for Hate does not extend to the other class. If the reported F-measures are read without their labels, it is easy to turn a targeted minority-class gain into a general claim about classification performance.

#### The recurrent comparison qualifies the FastText claim

The same change in initialization gives a different ordering for RNN. On the SSTD test partition, the plain RNN has Hate F-measure of 0.47. The RNN with FastText records 0.44, and the RNN with Word2Vec records 0.43. FastText is ahead of Word2Vec within the two initialized recurrent settings by their reported F-measures. Both initialized settings are below the plain RNN. The results table therefore narrows the paper’s broader statement that FastText improves both network families over their plain counterparts.

The mechanics are visible in the RNN metrics. The plain RNN has Hate precision of 0.63 and recall of 0.37. The RNN with FastText has precision of 0.49 and recall of 0.4. The RNN with Word2Vec has precision of 0.44 and recall of 0.42. The initialized settings recover more reference Hate examples while returning less reliable Hate predictions. In their case the increase in recall does not produce a higher Hate F-measure. The CNN result consequently supports a finding about the FastText and CNN pairing, with the recurrent comparison providing a concrete boundary on its interpretation.

The plain CNN and plain RNN also offer a limited architectural comparison. They share reported overall accuracy of 0.8 and Not Hate F-measure of 0.88. Their Hate F-measures are 0.48 and 0.47, respectively. This puts their plain settings close in the reported evaluation. The larger separation among some initialized variants is consistent with the representation and the architecture mattering in combination. The paper reports neither repeated fits nor variation estimates that would separate stable differences from sensitivity to the split or training run.

#### The evidence for a subword explanation

The authors suggest that FastText helps because it learns from parts of words. If related forms share parts, the representation can give a classifier access to common evidence in spite of differences in the full forms. A vector assembled from known parts can also be available for a form that did not occur in embedding training. These properties make the explanation plausible in a study that already identifies Arabic morphology as a challenge and uses light stemming to bring some related forms together.

The comparisons do not track those properties through individual test errors. The paper gives no score for unfamiliar words alone, no count of recovered Hate tweets containing variants that share a stem, and no FastText setting with its sub-word information removed. It also gives no comparison of light stemming with retaining the original forms. Each CNN row reports aggregate precision and recall over the test partition. This evidence identifies which configuration got the highest Hate F-measure and how its class errors shifted. It leaves open whether the improvement came from handling unfamiliar forms, from some other property of the learned vectors, or from the way the CNN used those vectors.

A similar boundary applies to the claim that neural classifiers outperform conventional ones. The best Hate F-measure comes from a neural classifier. Several conventional systems exceed the initialized recurrent settings on the same metric, and SVM shares the highest reported overall accuracy and Not Hate F-measure. The comparison is informative precisely because it exposes these different rankings. Each metric describes a decision behavior, and the class-level scores reveal patterns that a single system-family ranking would conceal.

### Limitations

#### Limits the authors identify

The authors treat agreement between annotators as an unresolved issue. The rules call on readers to use background knowledge, experience, and assumptions about the intended meaning of a tweet. Irony and figurative language can hide an attack from a literal reading. Religious language can be ordinary in one setting and help communicate hostility in another. Cursing can be severe without taking a protected group as its target. The rule assigning Hate whenever either reader chose it resolves the final label in a consistent direction. The paper recognizes that the underlying differences in judgment remain.

The authors also describe limitations of Twitter search. The corpus comes from recent indexed material available to the chosen queries, with the requested results subject to the platform’s search limits. They chose combinations of group words and potential hostility words to make collection practicable. Their stated aim was to obtain comprehensive or representative material for the topic. The collection procedure establishes a defined retrieval scope within that topic. It gives no survey of what comparable tweets were outside the index, outside the search interval, or expressed without the selected vocabulary.

The paper frames a broadening of coverage as future work. The authors mention possible datasets for speech aimed at other Muslim groups, including Sufis and the Muslim Brotherhood, and for other religious communities, including Copts and Orthodox Christians. Those are proposed extensions of the data-building effort. The reported experiments supply results for SSTD and its focus on Sunni–Shia speech.

#### Limits visible in the collection and labels

The search terms determine which uses of language can enter the dataset in the first place. A tweet that attacks a group through an indirect reference may be absent because it never uses a selected group expression. A tweet that uses a selected word in a quotation or political argument can enter the pool and receive Not Hate. In that sense, the collection is suited to studying how classifiers distinguish labels among tweets surfaced by the search procedure. The experiment gives no estimate of how often the same distinctions arise in Arabic Twitter in general or how much hate speech occurs outside the retrieved material.

Preserving the proportions of query combinations during sampling helps retain the composition of the pool. It cannot establish that the pool reflects the prevalence of Hate and Not Hate across the platform. The random train–test split has a related scope. Both partitions come from the same collection, assembled using the same search strategy during the same period. This makes the reported results relevant to held-out examples drawn under similar conditions. There is no separate test using different search terms, a different time period, another platform, or a different target community. Transfer to those settings remains unmeasured.

The adjudication rule also shapes what a correct prediction means. If annotators disagree and one chooses Hate, a classifier predicting Not Hate is counted as making an error on that tweet. Under a different adjudication policy, the same tweet might prompt further review, enter the test set with an uncertainty label, or be left out. The experiment uses a definite binary outcome. It gives no performance breakdown for tweets with initial agreement and tweets whose final labels depended on the disagreement rule. Consequently, the reported metrics do not establish how much of the difficulty came from disputed cases.

The paper prints agreement as 0.85% without clarifying the calculation or providing the underlying counts. That figure should be read as reported, with no conversion to a different percentage or agreement statistic. The size of the corpus is also internally inconsistent. The methods section gives 3235 tweets for the selected sample, while the conclusion gives 3232 tweets for the labeled dataset. The paper does not explain the difference or state which total underlies the reported partition in exact counts. It describes the two classes and their imbalance, but the class distribution has no numerical entries alongside the label names. The reported scores can be compared as printed. The exact counts of correct, incorrect, and disputed judgments cannot be reconstructed from those scores alone.

#### Limits visible in the training and reporting

The paper supplies the split proportions and the general families of classifiers and features. Several choices that would matter in reproducing the experiment remain unspecified, including the random seed, the classifier settings, the neural architectures in detail, and the policy used to select a trained network for testing. It gives no separate validation partition or repeated-split results. That leaves uncertainty about how a different split or training run would affect close values such as the test Hate F-measures for the plain CNN and the CNN with Word2Vec.

The description of embedding training leaves another question about what the classifiers had access to. The paper says the test data were unseen during classifier training and that the embeddings were learned on SSTD. It does not explicitly restrict embedding learning to the training partition. The scope of fitting the term-weighting representation is likewise unspecified. A corpus-derived representation can use unlabeled text without learning its test labels. Still, access to held-out wording is a meaningful feature of an evaluation protocol, particularly when an explanation invokes the ability to represent words unseen during training. The paper’s description does not let a reader determine precisely which words were unseen by which stage.

The main scores come from one reported random split. There are no uncertainty intervals or tests establishing whether close scores would recur under repeated sampling. The paper also does not sweep a decision threshold to show the range of precision and recall available to each classifier. Its table describes the operating result for each reported setting. It cannot establish whether the CNN with FastText would remain preferable if systems were compared at the same Hate precision, or if a different balance between false flags and missed cases were chosen.

Finally, the test measures agreement with a dataset label on individual tweets. It provides no separate label for the specific group targeted, the kind of harm expressed, whether an utterance was a threat or disparagement, or which span supplied the decisive evidence. The operational guidelines make such distinctions relevant when a human assigns the binary label. The evaluation pools them into the same decision. The paper can therefore establish the strengths and weaknesses of classifiers at reproducing those binary judgments on SSTD. It leaves their ability to explain a judgment, identify a target, or distinguish forms of hostility unmeasured.

### What came after

#### Corpus construction remained part of the research question

A later study on Arabic hate-speech detection cites Aref and colleagues and places corpus design, construction, and evaluation at the center of its title. That emphasis connects with a decision that shapes the whole SSTD study. Evaluation depends on which texts enter a corpus, which distinctions annotators are asked to make, and how their decisions become the answers used for scoring. The later work’s stated scope is Arabic hate speech broadly. SSTD defines a narrower Sunni–Shia collection and a binary decision. The citation and title establish a shared concern with the corpus as part of the research method. They leave the later study’s data sources, labeling rules, and relationship to the SSTD tweets unspecified. [Hate Speech Detection in the Arabic Language](https://md.research.elamur.ai/free/en/papers/ahmad-2024-hate-speech-detection-arabic-language/)

#### The target became an outcome to annotate

AraTar cites the paper and presents a corpus designed to support fine-grained detection of hate-speech targets in Arabic. In SSTD, the identity of a potential target matters when collecting tweets and applying the annotation rules. The test outcome records whether the tweet has the Hate label. Identifying the target as an outcome is a different annotation objective. It can distinguish a prediction that recognizes hostility from one that also identifies whom it is directed against. That difference is easy to see in the original search design, where the presence of a group word helps retrieve a tweet but does not establish that the named group is being attacked.

AraTar’s stated purpose makes the target distinction explicit at the corpus level. Its citation links it to earlier work on Arabic hate speech, including the sectarian setting studied by Aref and colleagues. The title does not establish that AraTar reused those tweets, adopted the same definitions, or tested the classifiers reported for SSTD. The documented connection is the increased specificity of the question the corpus is designed to support. [AraTar](https://md.research.elamur.ai/free/en/papers/alghamdi-2024-aratar-corpus-support-fine-grained/)

#### Offensive language was examined through finer distinctions

Another citing study presents fine-grained Arabic offensive-language classification in conjunction with a taxonomy, sentiment, and emotions. A taxonomy organizes the phenomenon into categories. The mention of sentiment and emotions points to dimensions of expression beyond the binary decision in SSTD. The relationship is visible in the original labeling problem. A reader has to distinguish anger or contempt from an attack on a protected group, and the SSTD evaluation records the eventual Hate or Not Hate judgment. The later study’s title brings aspects of affect and categorization into the stated classification task. It describes offensive language, a broader framing than the particular sectarian hate-speech problem tested in SSTD. [Fine-Grained Arabic Offensive Language Classification](https://md.research.elamur.ai/free/en/papers/vanetik-2025-fine-grained-arabic-offensive-language/)

Across these citing studies, the documented continuities concern how Arabic corpora define the object of classification. One foregrounds the corpus-building process, another the targets of hate speech, and another categories of offensive language alongside sentiment and emotion. Their stated aims help locate SSTD’s contribution. It sets out how the authors gathered and labeled tweets for a defined sectarian setting, then measures how alternative classifiers behave when asked to reproduce the resulting binary decisions.

## Cite

Cite as Abdullah Aref, Rana Husni Al Mahmoud, Khaled Taha and Mahmoud Al-Sharif. 2020. Hate Speech Detection of Arabic Shorttext.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.5121/csit.2020.100507](https://doi.org/10.5121/csit.2020.100507)

```bibtex
@misc{aref2020hate,
  title = {{Hate Speech Detection of Arabic Shorttext}},
  author = {Abdullah Aref, Rana Husni {Al Mahmoud}, Khaled Taha and Mahmoud Al-Sharif},
  year = {2020},
  doi = {10.5121/csit.2020.100507},
  url = {https://doi.org/10.5121/csit.2020.100507}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
