---
title: "Multi-label Hate Speech and Abusive Language Detection in"
description: "How a study of Indonesian tweets distinguishes hate speech from abuse, identifies its targets and severity, and tests where detection falls short."
canonical: "https://research.elamur.ai/free/en/papers/ibrohim-2019-multi-label-hate-speech-abusive/"
---
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/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/ibrohim-2019-multi-label-hate-speech-abusive/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2019](https://md.research.elamur.ai/free/en/papers/2019/) / Multi-label Hate Speech and Abusive Language Detection in Indonesian Twitter

# Multi-label Hate Speech and Abusive Language Detection in Indonesian Twitter

Paper · 2019 · Muhammad Okky Ibrohim and Indra Budi

**Authors:** Muhammad Okky Ibrohim and Indra Budi · **Year:** 2019 · **Venue:** Proceedings of the Third Workshop on Abusive Language Online · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

[**239** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W2973089652) · [Cited by **39** papers in our library of the 163,136 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/ibrohim-2019-multi-label-hate-speech-abusive/cited-by/) · [Proceedings of the Third Workshop on Abusive Language Online](https://aclanthology.org/volumes/W19-35/) · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/W19-3506/)
- [PDF](https://aclanthology.org/W19-3506.pdf)
- [DOI 10.18653/v1/w19-3506](https://doi.org/10.18653/v1/w19-3506)
- [OpenAlex](https://openalex.org/W2973089652)

Citations: OpenAlex, 2026-10-14.

## Summary

An Indonesian tweet can contain an insult without expressing hatred, and it can express hatred without using abusive words. Ibrohim and Budi treat those judgments as separate decisions. They also ask what can be learned once a tweet is identified as hate speech. Does it attack an individual or a group? Is the attack based on religion, ethnicity, or another characteristic? Does it contain language intended to provoke open conflict? The paper turns those questions into a [text classification](https://md.research.elamur.ai/free/en/concepts/text-classification/) task in which a tweet can receive several labels.

The authors combine material from earlier Indonesian Twitter studies with tweets collected through keyword searches. They consult Indonesian cybercrime investigators about the distinctions the labels should capture and work with a linguist to make the guidelines usable by annotators. The resulting dataset contains 13,169 tweets, including 5,561 labeled as hate speech. The authors make the dataset, guidelines, and gold-standard annotations public. The labels distinguish the recipient of an attack from its basis and allow several bases to apply to the same tweet. The severity rules also consider who is attacked and whether the tweet contains incitement.

In 10-fold cross-validation, the best result for the detailed task was 66.12% accuracy, using a random forest, Label Power-set, and individual word frequencies. Label Power-set makes each observed combination of labels into a class the classifier can learn to predict. The best result for the narrower task, which asked only whether hate speech and abuse were present, was 77.36%. Its strongest configuration used the same classifier and label transformation, with individual words, character sequences, and lexicon features together. Here, accuracy measures how much the predicted and annotated label sets overlap on each tweet, so a prediction can earn partial credit.

The authors judged the detailed result insufficient and found that missed labels were the most common kind of error in their confusion-matrix analysis. They suggest that uneven label frequencies may help explain those misses. Their results show what the tested classifiers can recover from a corpus assembled and annotated in a particular way. They also show why detecting the presence of hate speech is a different achievement from describing whom it targets, what motivates the attack, and how severe it is under the study’s rules.

## Deep dive: Multi-label Hate Speech and Abusive Language Detection in Indonesian Twitter

How a study of Indonesian tweets distinguishes hate speech from abuse, identifies its targets and severity, and tests where detection falls short. · about 34 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

#### Why the wording of an attack is only part of the evidence

The paper starts from an overlap that can cause trouble for an automatic detector. An insult can be a vehicle for hatred, and the same vocabulary can be used in a joke or a personal quarrel. The paper also allows that a hateful message can be phrased indirectly. A detector that responds mainly to a list of offensive words will therefore face difficulty in both directions. It can treat an abusive expression as enough evidence of hatred, or pass over a hateful message whose wording avoids the expressions on the list.

For the authors, abuse concerns the presence of offensive expressions addressed to a person or a group. Their starting definition of hate speech concerns hatred directed at people on a basis associated with them, such as religion or ethnicity. This makes abuse and hate speech related judgments about the same utterance. One concerns the language used, while the other also concerns the directed attack and its basis. The distinction is particularly important in a collection assembled in part through searches for expressions associated with hate and abuse. A search term can bring a relevant-looking tweet into the collection, while the annotation decides what kind of evidence the tweet actually contains.

The authors point to several harms in motivating the work. They describe hate speech as contributing to discrimination and conflict, and discuss the risk that abusive wording can aggravate a dispute by provoking an emotional response. They also cite concerns about children encountering inappropriate language on social media. These concerns explain why the paper takes abuse seriously even when annotators assign no hate-speech label. The two judgments serve different purposes, and recording each preserves information that would be lost if all objectionable language went into one class.

Twitter is the setting because the authors cite earlier Indonesian studies that had already documented hate speech or abuse there. The site also gives the authors a way to extend an existing body of annotated material. They can begin with tweets previously studied for one or both kinds of language, then collect more to broaden the range of writing. Their unit of analysis remains the tweet. Even when their motivation involves wider consequences, the experimental question concerns what a classifier can infer about an individual message.

#### What earlier studies left open

In the paper’s account, much of the earlier work treated hate speech detection as a decision about presence. This includes work on identifying hateful tweets from their predictive features and Indonesian studies that the authors use both as background and as sources of data. Separate lines of work asked whether text contained abuse. Such systems address a useful first question, but a positive result can cover quite different messages. An attack on one person, a degrading stereotype about a group, and an appeal to provoke a confrontation all fit within the scope the authors want to study. [Hateful Symbols or Hateful People?](https://md.research.elamur.ai/free/en/papers/waseem-2016-hateful-symbols-or-hateful-people/) and [Automated Hate Speech Detection and the Problem of Offensive Language](https://md.research.elamur.ai/free/en/papers/davidson-2017-automated-hate-speech-detection-problem/)

One precedent the paper discusses is research on the severity of hate speech in Italian Facebook posts and comments. That study distinguished messages with no hate speech from weak and strong hate speech. Its design showed how a detection task could include a judgment about severity. The Indonesian Twitter study adds questions that the Italian study, as described in the paper, left open. Someone reading the output should also be able to tell whether the tweet attacks a person or a group and on what basis that attack proceeds.

An earlier Indonesian study by the same authors came closer to the new design by considering abuse and hate speech together. The classes described in the paper covered messages without hate speech, abuse without hate speech, and the combination of abuse and hate speech. The later design gives hate speech without abuse an explicit place. It does so by turning what had been distinctions among combined classes into separate decisions that can be recorded for the same tweet. It also assigns further labels where hate speech is present.

The resulting task addresses a practical question the authors heard in discussions with Indonesian investigators. If an authority receives several reports, the fact that each report involves hate speech leaves a great deal unresolved. In the study’s scheme, an individual attack without incitement calls for a different description from a message that seeks to provoke open conflict. The authors aim to capture information that could help with prioritization. Their experimental target is agreement with the annotated description of the message. Whether a particular prioritization decision is warranted requires an assessment beyond the classifier’s output.

This motivation also explains why there is a target label alongside a category label. The categories record the basis for hatred. The target records who receives the attack. A tweet can use a religion-based insult against an individual and still have an individual target. A message addressed to a group can belong to the same category. Keeping those judgments apart lets the research ask about different features of the same attack without forcing the annotators to pick which feature matters more.

### The method, step by step

#### Turning the research question into labels

The authors build the label scheme before training classifiers. They draw on a handbook from Indonesia’s national human rights commission and hold a focus group with staff of the national police directorate responsible for cybercrime investigations. They use the discussions to specify the target, category, and severity of a hateful message. A linguist helps develop guidance and examples that people without specialist training can apply. That work turns the study’s broad definitions into decisions for [linguistic annotation](https://md.research.elamur.ai/free/en/concepts/annotation/).

The first decision is whether a tweet expresses hate speech. The other basic decision is whether it uses abusive language. Both labels can apply. Either can apply on its own. A tweet can also receive neither. This part of the annotation can therefore record a hateful message phrased without abusive language, as well as a tweet that contains abusive language but meets none of the study’s criteria for hate speech.

For tweets labeled as hate speech, the target is either an individual or a group. A group can be a religious community, a political association, a fan community, or another collective covered by the guidelines. The distinction concerns the entity attacked in the tweet. The example of a religion-based insult addressed to an individual shows why an identity mentioned in an attack does not settle the target by itself. The annotator has to establish how the tweet directs the attack.

Categories record the grounds on which the tweet attacks its target. The named categories cover religion or creed, race or ethnicity, physical traits or disability, and gender or sexual orientation. The scheme also has a residual category, other invective or slander, for qualifying attacks outside the named grounds. Several named categories can apply to the same tweet. A tweet assigned to the residual class cannot also be assigned to one of the named categories. That exclusion gives the residual label a specific function and helps explain why a classifier that predicts each category separately could produce an invalid combination.

Some boundaries depend on how an expression is used. Under the study’s physical or disability category, an attack can draw on a disability-related expression even if the target does not have the disability invoked. The basis label captures what the attack makes use of. Conversely, a tweet that contains a word associated with religion or ethnicity still needs to satisfy the hate-speech criteria before it receives a category. The collection queries include words of that kind, so annotation cannot be reduced to promoting a search keyword into a category label.

Severity is assigned using the target and whether the message contains incitement or provocation towards open conflict. Under the guidelines, an attack on an individual without that element can be weak. Swearing, stereotyping, or related attacks aimed at a group without incitement can be moderate. Strong hate speech includes incitement and can be directed towards an individual or a group. This definition accounts for the connection between target and severity. It also means that the strength of a swear word, by itself, cannot determine the severity label.

The weak and moderate labels reflect the authors’ account of how these cases might be prioritized. They describe a weak individual attack as a matter whose handling may depend on whether the target reports it, and a moderate group attack as one they expect to remain mostly a conflict on social media. The strong category is meant to capture language whose incitement raises concern about a wider confrontation. Annotators judge the message against these criteria. They do not observe its subsequent effects as part of assigning the label.

From collected tweets to cross-validated predictions The steps in order.

#### Collecting and annotating tweets

The study combines older annotated tweets with fresh material retrieved through Twitter’s Search API using Tweepy. The search ran from March to September 2018, over what the authors describe as about 7 months. They wanted to capture forms of writing that earlier collections might have missed. The queries included abusive expressions, alternate spellings, terms associated with religion or ethnicity, and expressions tied to political issues. The queries defined how to find candidates for annotation. The guidelines defined how to label them.

The collected tweets and the older material enter the workflow at different points. Newly retrieved tweets need judgments about both abuse and hate speech. Tweets from the studies by Alfina and colleagues and by Putri already carry hate-speech labels, so the first phase only adds an abuse judgment to those items. The earlier dataset by Ibrohim and Budi already has both basic judgments. Its hate-speech examples can proceed to detailed annotation, while its examples without hate speech can enter the final corpus with their existing labels. Thus the study extends the earlier annotations where the proposed task needs more information.

The authors use paid crowdsourcing and split the annotation work into phases because they want people without linguistic training to handle a manageable set of decisions at a time. They build a web interface for the work and prepare written instructions with examples. Gold-standard annotations serve as a check on whether prospective annotators understand the task. The examples for that check come from earlier studies and the human rights commission’s handbook. This use of a gold standard is part of preparing annotators. The cross-validation experiment later uses annotation decisions for the collected tweets as its reference.

The study recruits 30 annotators. It looks for native speakers of Indonesian who have experience on Twitter, and seeks variation in religion, ethnicity, and place of residence. The authors also exclude members of political parties or organizations in an effort to reduce bias in judgments about political material. The paper gives 20-30 years as its intended age range and separately reports that the older age group in the recruited panel spanned 25-32 years. The recruitment criteria describe the intended panel, while the demographics describe who took part.

In the first phase, 3 annotators are assigned to each of the 16,500 tweets being processed. The paper retains the items for which the required first-phase judgments meet its 100% agreement rule. That leaves 11,292 tweets, or 68.44% of the items annotated at that stage. Of those retained, 6,187 have no hate-speech label and 5,105 have a hate-speech label. The stricter rule means that agreement determines which newly judged items can move forward. Disagreement at this stage removes the tweet from that route into the final dataset.

The second phase begins with 5,700 tweets already labeled as hate speech. This includes 5,105 from the first phase and 595 from the authors’ earlier study. The authors assign the detailed work to the best-performing annotators from the first phase. They now use majority voting. With 3 annotators, a decision needs support from at least two of them, and tweets with unresolved category or severity judgments are removed. The paper reports 139 removals and 5,561 retained hate-speech tweets, representing 97.56% of the material considered in this phase.

The percentages for the two phases describe retention under different rules and on different sets of tweets. In the first phase, the gate is unanimity for the required basic judgments. In the second, the set is already restricted to tweets treated as hate speech and the annotators have been selected on their earlier performance. The voting rule also changes. This distinction matters when reading the authors’ interpretation of the agreement levels. The retention percentages tell the reader how the final dataset came together, but they cannot by themselves rank the difficulty of the basic and detailed judgments.

#### From the text to features

The classification pipeline first prepares the tweets for counting. As the paper describes it, case folding converts characters to lower-case. Cleaning removes material such as the retweet marker, usernames, URLs, punctuation, and emoticons. Normalization then replaces informal forms with formal equivalents using a dictionary assembled from earlier work and entries the authors built from their dataset. The next operation uses the Nazief–Adriani algorithm through Sastrawi to reduce words to stems. A published list is used to remove stop words, the words set aside before feature extraction. [Stemming](https://md.research.elamur.ai/free/en/concepts/stemming/)

The motivation for these operations is easiest to see by following a word into the feature vector. If informal and formal spellings reach the count stage in their original forms, each spelling can occupy a separate position. Dictionary normalization can bring those occurrences together. Case folding and stemming likewise give the classifier opportunities to see recurring evidence under a shared form. Removing markers and other material reduces the vocabulary that the classifier has to consider. These choices determine what textual distinctions survive into the word and character features.

The features fall into three families. The first uses term frequencies for contiguous sequences of words or characters, called [n-grams](https://md.research.elamur.ai/free/en/concepts/n-gram/). A word unigram is an individual word. Bigrams capture adjacent pairs, and trigrams capture sequences of three words. The authors evaluate these word representations and a representation that brings the orders together. On the character side, they test trigrams, quadgrams, and a combination of those orders. A character quadgram is a sequence of four characters, so a word can share a feature with other words that use the same fragment.

These representations make different distinctions available to a classifier. A unigram can flag the presence of a word wherever it appears in a tweet. A longer word sequence can distinguish one recurring expression from another that contains some of the same words. Its evidence depends more heavily on the same wording recurring in the data. Character sequences give the classifier another way to find recurrence, through parts of words. The experiment tests these as feature choices and measures the accuracy obtained when the classifiers use them.

The second family is orthography, represented by counts of exclamation marks, question marks, upper-case characters, and lower-case characters. These features describe aspects of how a tweet is written. They give no direct identity to the person or group addressed. The paper lists them alongside a preprocessing description that includes lowercasing and punctuation removal. It gives no separate account of which version of the tweet supplies each orthographic count. The reported results show that the features were evaluated, while the order needed to reproduce those counts remains unclear.

The third family uses lexicons. For positive and negative sentiment, the authors use previously published Indonesian word lists. For abusive language, they compile a list from abusive expressions used in their Twitter searches. A lexicon feature lets words contribute to a shared signal by virtue of belonging to a list, whereas an ordinary unigram keeps each word as its own feature. This provides evidence on a different scale. A classifier can learn about abusive vocabulary as a group even when individual entries have different frequencies.

The overlap between the abusive lexicon and the search vocabulary is worth keeping in mind. An expression can help a tweet enter the corpus and later supply evidence in the classification experiment. The annotation still determines whether the tweet is abusive or hateful, and the corpus also includes material from earlier studies. The feature comparison therefore asks how useful this lexicon is within the assembled dataset. It does not independently test its coverage of abusive expressions that the authors’ collection process was less likely to find.

#### Making several labels predictable

The authors compare Naive Bayes, Support Vector Machines, and Random Forest Decision Trees, abbreviated NB, SVM, and RFDT. Their choices come from classifiers used in earlier Indonesian detection work. In broad terms, Naive Bayes uses probabilities estimated from the features, an SVM learns a boundary between classes, and a random forest combines predictions from a collection of decision trees. The authors use these learners through methods that turn a multi-label problem into a form suitable for [machine learning](https://md.research.elamur.ai/free/en/concepts/machine-learning/).

Binary Relevance makes an independent classification problem out of each label. A learner can be trained to detect abuse, another to detect hate speech, and others to predict the detailed labels in the broader experiment. At prediction time, the positive decisions supply the label set. This approach lets the training examples for one label include tweets with many different sets of accompanying labels. It can also produce a joint prediction whose pieces conflict, because the learner for one label makes its decision separately from the learners for the others.

Classifier Chains also uses a classifier for each label. It arranges the classifiers in an order and lets later decisions use earlier label decisions along with the tweet features. This gives the method a means of using dependencies. A decision about whether a tweet expresses hate can, in principle, supply information to a subsequent category decision. The arrangement also creates a route for mistakes to affect later decisions. If an early output is wrong, the evidence available further along the chain includes that wrong decision. The paper describes the transformation as one of the alternatives in its comparison, without a separate analysis of ordering effects.

Label Power-set instead treats each observed set of labels as a class. If a tweet is annotated for hate speech and abuse, with a specific target, category, and severity, that complete set is the training class. A tweet with a different category or level belongs to another class even if many of its labels are the same. The ordinary classifier chooses among these classes. Its output can then be translated back into the labels that define the selected class.

That representation can capture dependencies without asking the classifier to infer the annotation rules anew from independent decisions. If the training data obey the exclusion rule for the residual category, for instance, the resulting set of classes obeys it as well. At the same time, evidence for a rare combination has to come from examples of that combination. Sharing a category with a more frequent combination does not give the rare combination the same training support. For a detailed task with uneven labels, this is a reason to distinguish the appeal of coherent output from the separate problem of getting enough examples.

All three transformations are applied in both scenarios. In the broader scenario, the representation includes hate speech and abuse as well as the applicable target, categories, and severity. In the narrower scenario, the representation retains only the two basic judgments. The same tweets can thus support both questions, with different information counted as part of the answer. The classification experiments first look at feature choices by family. The authors then combine features selected from those comparisons and check how the combinations perform.

#### Scoring a set of predictions

The paper calls its main metric accuracy. It uses the proportion of labels shared between a prediction and the annotation, relative to the labels present in either set. The paper writes intersection and union with logical symbols. Expressing the same calculation with set notation makes it clear that the numerator and denominator count labels.

```
Accuracy = (1/D) × ∑ᵢ₌₁ᴰ (|L̂(i) ∩ L(i)| / |L̂(i) ∪ L(i)|) × 100%
```

`Accuracy` is the average overlap score expressed as a percentage. `D` is the number of documents being scored, each a tweet, and `i` identifies a document. `L̂(i)` is the predicted label set for tweet `i`, and `L(i)` is its annotated label set. The hat marks a prediction. `∩` gives the labels present in both sets, `∪` gives the labels present in either, and the vertical bars count the members of a set. The slash denotes division. The summation runs from `i = 1` through `D`, and `1/D` averages those document scores. The final multiplication by `100%` expresses the result on the reported percentage scale.

Suppose the annotation calls a tweet abusive and hateful, and the classifier predicts only hate speech. The shared hate label contributes to the numerator. The missed abuse label appears in the union and reduces the score. Predicting an extra label also increases the union without adding a shared label. Thus a tweet can earn partial credit, and both omissions and unsupported additions can lower the score. A full match of nonempty sets earns the maximum under the formula.

The score is calculated for each tweet before averaging, so an individual label does not get an independent share of the overall result. Correctly recovering some labels in a detailed annotation can compensate in the document score for missing others. The paper’s expression also leaves a convention unspecified for tweets where both sets are empty, if the absence of all labels is encoded as an empty set. In that case the written union has no members. How such cases are represented or scored matters to reproducing the evaluation.

The study uses 10-fold cross-validation. In this procedure each held-out fold is scored by a classifier trained with the other folds. Repeating the process lets the study evaluate the corpus through a series of held-out partitions. This is the evaluation shared by the two scenarios. The authors report point results for feature and classifier choices, with a different label space in each scenario. A score in the broader scenario describes overlap with richer annotations than a score in the narrower one.

### Experiments and results

#### What the corpus contains

The final experimental corpus contains 13,169 tweets. The 7,608 tweets without hate speech include 6,187 retained from the first annotation phase and 1,421 from the authors’ earlier work. The remaining 5,561 are the retained hate-speech tweets from detailed annotation. The paper’s figure showing the distribution of abuse across those two groups establishes that both kinds of disagreement between the basic labels occur. Some hateful tweets lack an abuse label, and some abusive tweets lack a hate-speech label. That is the empirical reason the narrower scenario is still a multi-label problem.

Targets among the hate-speech tweets are unequally represented. The paper reports 3,575 attacks directed at individuals and 1,986 at groups. The severity labels are also uneven, with 3,383 weak, 1,705 moderate, and 473 strong examples. These counts describe the annotated hate-speech subset. They indicate that a classifier has far more examples of the weak label than the strong label in this collection. They also put the later error analysis in context, since a measure averaged across the corpus can give little visibility to mistakes on infrequent labels.

The annotated category counts range from 3,740 tweets in other invective or slander to 306 related to gender or sexual orientation. The other named categories have 793 for religion or creed, 566 for race or ethnicity, and 323 for physical traits or disability. These are counts of tweets carrying each label. The named categories overlap, so a tweet can contribute to several of these counts. The residual category applies by itself. Category frequency therefore describes how often a label occurs, while the exact combinations relevant to Label Power-set have their own distribution.

Both scenarios use this corpus with the same general experimental procedure. The broader one asks for the applicable detailed annotations as well as the basic decisions. The narrower one drops those detailed labels from the prediction task. The comparisons are among the selected classifier families, the label transformations, and the tested feature choices. The paper gives no standalone majority-class or keyword-rule baseline. Its clearest reference points are the other configurations tested under the same scenario and the unigram runs used to judge whether combining feature types helps.

#### Predicting the detailed labels

The first results table answers a question about features across the classifier and transformation choices. Among the word representations, combining unigrams, bigrams, and trigrams achieved the best mean accuracy, 59.44%. The best character representation was quadgrams, at 52.55% mean accuracy. The question-mark feature led the orthographic options at 44.44%, while the negative-sentiment lexicon led the lexicon options at 44.45%. Each of those numbers is an average for the corresponding top feature within its family in the broader scenario.

The best individual run came from a different way of reading the comparison. With the classifier and transformation set to RFDT and LP, word unigrams achieved 66.12% on their own. That result is a specific configuration’s cross-validation accuracy. It can coexist with the broader mean favoring the combination of word orders. A feature can perform well across a variety of learners and label transformations while another feature reaches a higher score in the strongest particular pairing.

When the authors combine promising feature types, their strongest detailed-task combination uses character quadgrams, question marks, and negative sentiment. RFDT with LP reaches 65.73% with that input. The unigram configuration remains the strongest reported detailed result. The chart compares the two leading settings while holding the classifier and label transformation fixed.

Leading RFDT and LP settings on Indonesian Twitter, detailed-task accuracy Word unigrams score higher than the strongest reported feature combination.

**The numbers**

| System or setting | Accuracy % |
| --- | --- |
| Character quadgrams, question marks, and negative sentiment | 65.73 |
| Word unigrams (this paper) | 66.12 |

The 66.12% score refers to average label overlap across tweets in the broader task. It gives no separate performance figure for identifying the target, assigning categories, or choosing severity. A tweet on which the classifier predicts the basic judgments and the target correctly but omits a category can still contribute partial credit. The aggregate score establishes what the full configuration achieved under the chosen metric. Reading it as a rate of fully correct descriptions would give it a meaning the evaluation does not support.

#### Detecting abuse and hate speech alone

For the narrower scenario, the best average among word features comes from unigrams, at 73.53%. Character quadgrams again lead their family, with 72.44%. Exclamation marks give the best orthographic average at 45.27%. The strongest lexicon option, combining positive sentiment and the abusive lexicon, has an average accuracy of 52.10%. As with the results for the broader scenario, these averages describe performance across the tested classifiers and label transformations for a given feature setting.

The strongest individual-feature run in the narrower experiment uses RFDT and LP with word unigrams and scores 76.16%. The feature-combination results report 77.36% for RFDT and LP using word unigrams, character quadgrams, positive sentiment, and the abusive lexicon. Thus the best combined input improves on the unigram result for the same classifier and transformation in this scenario.

Leading RFDT and LP settings on Indonesian Twitter, hate-speech and abuse accuracy The combined feature setting scores higher than word unigrams alone.

**The numbers**

| System or setting | Accuracy % |
| --- | --- |
| Word unigrams | 76.16 |
| Word unigrams, character quadgrams, positive sentiment, and abusive lexicon (this paper) | 77.36 |

The paper’s discussion also associates 77.36% with RFDT, LP, and word unigrams. The detailed results identify two separate runs and give 76.16% to the unigram-only setting. The combined setting is the one for which the paper lists all the inputs alongside 77.36%. That distinction matters to a reader trying to reproduce the score or decide what the reported feature comparison establishes. Word unigrams are part of the winning input, and the more specific account credits the combined representation.

The two scenarios produce different headline results, 66.12% and 77.36%, even though the basic judgments in the task are about the same tweets. The broader scenario can penalize a prediction for a missed category or incorrect level, while those details play no role in the narrower score. With Label Power-set, dropping the detailed labels also changes the classes the classifier has to learn. The results therefore give separate performance estimates for separate questions about the tweets. They do not isolate an accuracy penalty for adding any one kind of label.

The abstract characterizes the random forest with Label Power-set as giving good accuracy with fast computation. The main numerical results concern accuracy. The paper gives no timing comparison or runtime measurements alongside these settings, so the accuracy results can be compared precisely while the computational claim remains qualitative.

### What the ablations show

#### Feature comparisons answer different questions

The paper offers comparisons among feature families, individual configurations, and selected feature combinations, along with a confusion-matrix analysis. It does not report a systematic ablation that removes each component from a winning configuration and measures the effect under otherwise identical conditions. The comparison it does report between a unigram-only input and a combined input is informative at the level of the full change. It leaves the separate contributions of the added features unresolved.

The first feature analysis compares average accuracy across classifiers and transformations. For the detailed task, a representation joining word unigrams, bigrams, and trigrams leads the word features by that criterion. For the narrower task, unigrams alone lead. A longer word sequence could preserve a phrase that helps distinguish a category of attack. Its usefulness depends on how frequently the phrase or a similar sequence appears in the training examples. The observed result supports a claim about which representation works better on average in each scenario. It gives no direct test of which phrases were responsible.

Word unigrams produce the best individual-feature run in both scenarios with RFDT and LP. The authors propose that certain words are characteristic of the labels. They illustrate the point with expressions that demean a target, words associated with Indonesian political hostility, and terms that can appear in threats or provocation. A classifier can exploit a recurring association with any such term across many tweets. The paper does not show that the words on their own determine a label. A term connected with political hostility can occur in other uses, and part of the corpus was collected through searches for terms of this kind.

The detailed experiment’s strongest feature combination changes the representation from word unigrams to character quadgrams with question marks and a negative-sentiment feature. Its score sits below that of the unigram run. This shows that this particular combined representation, evaluated with the same classifier and transformation, does not improve on the leading single representation. Because it replaces the word features as well as introducing other features, it cannot tell whether adding question marks or sentiment to the winning unigram input would help. The comparison is about two complete inputs.

The narrower experiment gives a more direct comparison of adding features to a unigram input. The leading combined setting retains word unigrams and adds character quadgrams, positive sentiment, and an abusive lexicon. It achieves the higher score on the reported metric. The authors tested those changes together in the winning configuration. To estimate how much any individual addition contributed, one would need a comparison where that feature alone was removed or added. The reported result cannot distinguish a gain driven mainly by character sequences from one that depends on their interaction with the lexicons.

Several of the weaker feature families are also informative. Orthographic cues may correlate with how a user writes a message, but even the leading punctuation feature in each scenario has much lower average accuracy than the leading word representation. This matters because an emphatic punctuation mark can occur in many tweets, with or without hatred or abuse. The experiment finds the better of the tested punctuation options for each scenario. It offers no evidence that punctuation can supply the semantic distinctions needed for strong performance by itself.

The change from negative sentiment leading the lexicon comparison in the detailed scenario to positive sentiment with the abusive lexicon leading in the narrower scenario shows that the same lexicon setting need not lead under a different output definition. The result is an ordering of tested representations. In particular, it gives no reason to interpret positive words as a reliable sign of abuse or to infer a specific pragmatic effect from them. The lexicon features enter the classifier alongside other information in the best narrow run, where their combined contribution is the measured quantity.

#### Classifier and label structure

The authors observe that the random forest generally performs well relative to Naive Bayes and SVM. They suggest that combining decision trees helps account for the result. The best individual settings in both scenarios support the empirical part of that observation. The paper supplies no separate comparison showing what would happen if the ensemble were replaced by a single tree while the rest of the winning setup stayed fixed. As a result, the contribution of combining trees remains an explanation for the ranking, instead of a measured effect in isolation.

The authors likewise connect the success of Label Power-set to relationships among labels. Their own annotation design makes several of those relationships visible. The target, category, and severity apply to hateful tweets. Some categories can co-occur, while the residual category excludes them. The distinction between weak and moderate draws on whether the target is a person or a group. Label Power-set can preserve patterns of this kind by selecting a class that corresponds to an observed label set.

The result gives reason to take those dependencies seriously in a classification design, but it leaves their individual effects open. The comparison does not isolate the contribution of enforcing the residual category’s exclusion, or show whether a classifier gained mainly by selecting common pairs of basic judgments. Similarly, the broader task gives no separate result for an approach that predicts a target conditional on a known hate-speech label. The observed advantage belongs to the transformation as tested with the other experimental choices.

#### What the missed labels reveal

The paper examines errors using confusion matrices for individual labels. Such a matrix counts outcomes from pairing decisions with annotations. A false negative is an annotated label the classifier leaves out. A false positive is a predicted label the annotation does not contain. The authors report that false negatives were the most common error. That observation adds something the aggregate accuracy alone cannot show. It indicates that omission was the more common kind of failure in their label-wise inspection.

The authors suspect uneven class frequencies. For example, the corpus contains 473 strong hate-speech tweets, compared with 3,383 weak hate-speech tweets. A learner can see many more positive examples of one level than the other. In Label Power-set, a level can also be distributed among complete label combinations, further limiting the examples of a particular class. The distribution provides a reason to investigate underrepresentation as an explanation for missed labels. The paper does not use a balancing intervention to separate it from other possibilities.

Those possibilities include uncertainty in the text and limitations of the representation. Character fragments and word frequencies may register an insult or a topical term while leaving the direction of hostility unclear. A threat-related expression may give some evidence of severity while still requiring a distinction between mentioning a confrontation and provoking one. These are implications of the task definition and feature choices. The reported confusion-matrix discussion does not assign errors to such mechanisms or give separate recall for the difficult labels.

The authors discuss adding examples of underrepresented labels, resampling the available examples, and augmenting the data. In a multi-label corpus, repeating or changing an example can affect several labels together. An example selected for its rare category can also carry a common target or severity. That dependence explains why a change intended to balance one label may change several distributions at once. The paper identifies these options as potential next experiments. [SMOTE](https://md.research.elamur.ai/free/en/papers/chawla-2002-smote-synthetic-minority-over-sampling/), [That’s So Annoying!!!](https://md.research.elamur.ai/free/en/papers/wang-2015-that-s-so-annoying-lexical/), and [Contextual Augmentation](https://md.research.elamur.ai/free/en/papers/kobayashi-2018-contextual-augmentation-data-augmentation-words/)

### Limitations

#### Limits the authors state

The authors regard their best detailed-task accuracy, 66.12%, as inadequate for the broader goal. They are more positive about the narrower task’s 77.36%, but they keep the prediction goals distinct. The ability to distinguish hate speech from abuse with the narrower label set leaves open the reliability of identifying the recipient, grounds, and severity of hateful speech. Their conclusion treats these experiments as an initial assessment of the task.

They also identify the uneven dataset as a probable contributor to the prevalence of missed labels. Collecting and annotating new tweets for rare labels is one possible response, with the cost of additional annotation. Their proposed hierarchical strategy would make the initial hate-speech and abuse decisions first, then classify the positively identified hateful tweets by target, category, and severity. The purpose would be to train and balance the downstream decisions by label type. The paper does not evaluate that proposal. An implementation would also need to account for initially missed hate-speech tweets, since those would never reach the downstream classification.

The authors suggest adding semantic features through [word embeddings](https://md.research.elamur.ai/free/en/concepts/word-embeddings/), which represent words so that relationships between them can be reflected in their numerical representations. They cite Indonesian classification work that found benefits from adding embeddings to basic features, and refer to a method for learning distributed word representations. Their own reported accuracy figures come from frequency, orthographic, and lexicon features. How much semantic features would improve hate-speech detection, or which labels would benefit, remains a question for a different experiment. [Distributed Representations of Words and Phrases and their Compositionality](https://md.research.elamur.ai/free/en/papers/mikolov-2013-distributed-representations-words-phrases-their/)

The authors further explain that classifying individual tweets covers only part of what investigators might need. Their discussions raised tasks involving accounts that amplify messages, people who start threads, and fake accounts involved in spreading hate speech. The dataset labels concern what is expressed in a tweet. No results evaluate identification of thread starters, detection of coordinated spreading, or links between an individual tweet and later conflict. The classifications can be studied as inputs to a possible prioritization process. The paper supplies no test of an operational process that uses them.

#### Limits visible in the design

The source material shapes the population to which the results directly apply. The corpus combines previously studied tweets with fresh tweets found through specified queries. This supports collection of varied relevant examples, including material that might be rare in a general stream. It also means that the prevalence of a label in the corpus is a property of the sources, searches, and retention criteria together. The counts do not estimate the prevalence of that label on Indonesian Twitter as a whole. Detection performance on messages unlikely to match the queries is likewise undetermined.

The lexicon drawn from abusive queries and the strong unigram result make the collection design particularly relevant to interpreting the performance. Words associated with abuse or hatred helped define one route into the corpus. A word-frequency feature or an abusive lexicon can then use some of the same kinds of evidence. This does not determine the annotation, and it does not make the held-out scores meaningless. It limits the inference about how the same representation would perform on material collected through a source with different vocabulary or without a keyword filter.

The annotation policy introduces another selection effect. The first phase admits only tweets meeting the unanimity rule. Disagreement can arise because a message is genuinely hard to interpret, because context is missing, or because annotators read the guidelines differently. The paper gives the count that survives the rule. It does not characterize the discarded tweets sufficiently to establish which kind of ambiguity is most affected. In the second phase, majority voting can retain a judgment despite disagreement, while unresolved decisions remove some tweets. Accordingly, the experimental corpus privileges messages on which the particular process can produce an accepted label.

Existing annotations also matter. Some tweets bring a hate-speech label from a previous study. Others arrive with both basic judgments already available. The authors explain which material receives new labels in each phase. The experiments pool the resulting tweets, leaving open how much the classification and agreement results vary between previously annotated material and newly crawled tweets. Likewise, the effort to recruit a demographically varied panel gives the labels input from annotators with different backgrounds, while the reported experiment does not measure which judgments vary across those backgrounds.

Cross-validation measures performance within partitions of the assembled corpus. The paper reports no independent test on a later collection or a different platform. It also gives little detail about whether folds were separated by author, source collection, or time. Consequently, the score cannot answer questions that require one of those holdouts, such as whether a classifier trained on earlier material would transfer to later writing or whether it would work equally well on a source unlike the earlier datasets. Such questions remain meaningful even when the within-corpus comparison is useful.

There are uncertainties about preprocessing that affect reproducibility. Some normalization entries were built from the dataset, and the paper does not describe whether such entries were constructed separately inside each training fold. The account of punctuation and case counts also leaves the extraction order open. Those details affect what signals a learner receives and how independently a held-out fold is processed. The reported results give the reader the main preprocessing choices and feature families, while leaving these implementation choices unresolved.

Finally, the aggregate accuracy is an especially incomplete description of performance for a prioritization task. An accepted partial prediction can still omit the one label that would determine priority. A classifier can also score well on common labels without much success on the strong severity label or a rare category. The paper’s discussion identifies missed labels as a problem, but does not give enough per-label measurements to quantify that risk. It also reports no variability for the headline settings that would establish how stable their ordering is across partitions. The experiment thus supports a comparison under its own metric and annotation rules. Separate evidence would be needed to judge the reliability of particular decisions or the effect of deploying them.

### What came after

The later papers that cite Ibrohim and Budi address several parts of the problem opened up by the Indonesian Twitter study. Some focus on the distinction between abusive and offensive language. Others take up the challenge in a different language or put Southeast Asian language evaluation in a wider setting. The citations establish connections in research topic. The documented relationship for these papers does not establish direct use of the Indonesian tweets, guideline, or classifier.

*I Feel Offended, Don’t Be Abusive!* examines implicit and explicit messages in offensive and abusive language. Its emphasis on how explicitly a message conveys its offense or abuse is distinct from the 2019 paper’s distinctions among target, basis, and severity. Consider what each task would ask about a message that communicates hostility indirectly. The Indonesian study asks whether that message meets its hate-speech criteria and how to characterize its attack. The later paper’s stated subject puts the mode of expression itself under examination. Both make room for distinctions that a single offensive-language decision would leave unrecorded. [I Feel Offended, Don’t Be Abusive!](https://md.research.elamur.ai/free/en/papers/caselli-2020-i-feel-offended-don-t/)

*HateBERT* takes up abusive language detection in English by retraining BERT. This is a different place to intervene in a detection pipeline. Ibrohim and Budi compare explicitly chosen input features, such as word counts or an abusive lexicon, and label transformations that determine which outputs their classifiers can produce. *HateBERT* addresses the representation of the input through retraining for abusive language detection. Its relevance lies in how the system obtains evidence about the text. The Indonesian study’s annotation questions remain separate from that choice of representation. [HateBERT](https://md.research.elamur.ai/free/en/papers/caselli-2021-hatebert-retraining-bert-abusive-language/)

*Hate-Speech and Offensive Language Detection in Roman Urdu* takes the paired subject of hate and offensive-language detection into Roman Urdu. That change in language matters to the connection with the Indonesian work. The original paper’s normalization dictionary, search expressions, and lexicons were selected for Indonesian tweets. The research question about distinguishing kinds of harmful language can recur across languages, while those concrete inputs reflect the language and corpus for which they were devised. The later study’s stated scope establishes that it takes up hate speech and offensive-language detection in Roman Urdu. It gives no basis here for assuming that it adopts the Indonesian study’s categories or severity scheme. [Hate-Speech and Offensive Language Detection in Roman Urdu](https://md.research.elamur.ai/free/en/papers/rizwan-2020-hate-speech-offensive-language-detection/)

*BHASA* places Southeast Asian languages in the context of a broader linguistic and cultural evaluation suite. The relationship to Ibrohim and Budi’s paper is one of scope. The Indonesian Twitter study specifies detailed annotation decisions for a task in one language, with a guideline shaped by local linguistic and institutional input. The later suite frames evaluation across a regional linguistic and cultural setting. The original study illustrates what such attention to setting can mean for a single task. Concrete decisions about the use of insults, the basis of attacks, and the meaning of severity become part of what is evaluated. The citation alone leaves open which parts of that design, if any, enter the suite. [BHASA](https://md.research.elamur.ai/free/en/papers/leong-2023-bhasa-holistic-southeast-asian-linguistic/)

## Cite

Cite as Muhammad Okky Ibrohim and Indra Budi. 2019. Multi-label Hate Speech and Abusive Language Detection in Indonesian Twitter. Proceedings of the Third Workshop on Abusive Language Online.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.18653/v1/w19-3506](https://doi.org/10.18653/v1/w19-3506)

```bibtex
@inproceedings{ibrohim2019multi,
  title = {{Multi-label Hate Speech and Abusive Language Detection in Indonesian Twitter}},
  author = {Muhammad Okky Ibrohim and Indra Budi},
  booktitle = {Proceedings of the Third Workshop on Abusive Language Online},
  year = {2019},
  doi = {10.18653/v1/w19-3506},
  url = {https://doi.org/10.18653/v1/w19-3506}
}
```

> 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)
