---
title: "An evolutionary approach to comparative analysis of detecting"
description: "A comparison of Bangla abusive comment classifiers shows how accuracy changes when the training data are balanced or the words are stemmed."
canonical: "https://research.elamur.ai/free/en/papers/islam-2021-evolutionary-approach-comparative-analysis-detecting/"
---
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/islam-2021-evolutionary-approach-comparative-analysis-detecting/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2021](https://md.research.elamur.ai/free/en/papers/2021/) / An evolutionary approach to comparative analysis of detecting Bangla abusive text

# An evolutionary approach to comparative analysis of detecting Bangla abusive text

Paper · 2021 · Tanvirul Islam, Nadim Ahmed and Subhenur Latif

**Authors:** Tanvirul Islam, Nadim Ahmed and Subhenur Latif · **Year:** 2021 · **Venue:** Bulletin of Electrical Engineering and Informatics · **Licence:** [CC BY-SA (OpenAlex best open-access location)](https://creativecommons.org/licenses/by-sa/4.0/)

Bulletin of Electrical Engineering and Informatics · [licence](https://creativecommons.org/licenses/by-sa/4.0/)

- [PDF](https://beei.org/index.php/EEI/article/download/3107/2299)
- [DOI 10.11591/eei.v10i4.3107](https://doi.org/10.11591/eei.v10i4.3107)

## Summary

An abusive comment can be easy for a reader to recognize and hard for a computer to classify. The words that make it abusive can appear in different forms, and a system that learns from examples can be influenced by which kinds of comments it sees most often. The authors study these problems in Bangla, a language for which they describe relatively little research on abusive text detection. They frame detection as [text classification](https://md.research.elamur.ai/free/en/concepts/text-classification/). Given the text of a comment, the system must choose between abusive and non-abusive. The authors collect public comments from selected Facebook pages and YouTube channels, filter out material outside the task, and label the remaining comments by hand. The resulting dataset contains 12,028 comments, of which 4880 are labeled abusive and 7148 non-abusive.

The study compares three ways of preparing those comments. The first keeps the full dataset and its original class distribution. The second randomly removes non-abusive comments until the classes are equally represented. The third returns to the full dataset and applies [stemming](https://md.research.elamur.ai/free/en/concepts/stemming/), which reduces inflected words to shorter forms so related spellings can contribute to the same feature. In all three experiments, the classifiers use [TF-IDF](https://md.research.elamur.ai/free/en/concepts/tf-idf/), which gives a term weight based on its frequency in a comment and its distribution across comments. The authors use the same set of supervised classification algorithms in each experiment and describe an 80:20 train–test split for each dataset.

A support vector machine, or SVM, gives the highest reported accuracy on the full dataset, at 0.88, with an F1 score of 0.88. The classifier trained using stochastic gradient descent follows at 0.87 on both measures. On the balanced dataset, SVM and multinomial Naïve Bayes share the highest reported accuracy, 0.85. Random forest accuracy rises from 0.60 on the full dataset to 0.72 on the balanced dataset. The classifiers that gain from balancing therefore include methods that rank quite differently in the full-data comparison.

With the stemmed data, SVM again leads, at 0.85 accuracy. The clearest improvement from stemming belongs to k-nearest neighbors, whose accuracy rises from 0.55 to 0.62. The authors report that their stemmer sometimes cut ordinary Bangla words down to invalid forms, which they offer as an explanation for some of the weaker results. Taken together, the experiments identify a strong classifier for this collection and show how a change in data preparation can help one algorithm while weakening another. The scores concern held-out comments from the authors’ selected sources and labeling procedure.

## Deep dive: An evolutionary approach to comparative analysis of detecting Bangla abusive text

A comparison of Bangla abusive comment classifiers shows how accuracy changes when the training data are balanced or the words are stemmed. · about 31 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

#### What a comment classifier has to decide

A discussion thread can contain abuse alongside ordinary replies, jokes, criticism, and comments that contribute little to the conversation. The paper addresses a specific decision within that setting. Its classifier receives the text of an individual comment and assigns an abusive or non-abusive label. For the purposes of the experiment, the human label is the answer against which the classifier is assessed. The method therefore has to learn evidence that is useful for reproducing those decisions across comments it has yet to see.

The motivation is broader than the prediction task. The authors discuss the growth of social media use and the use of public platforms to spread abusive messages and harass people. They cite reports about bullying and cybercrime in Bangladesh and research on the effects of bullying on young people. These concerns explain why they pursue automatic detection. They also identify a difficulty for anyone studying it. Language varies, and the way people use social platforms changes. A collection that supplies examples of abuse under one set of conditions gives a classifier an immediate learning task, while the changing character of the language raises a separate question about how long and how widely that experience will apply.

The unit of analysis matters here. Harassment can describe a course of conduct, whereas the label in the experiment belongs to a comment. A classifier can learn which visible expressions tend to accompany an abusive label without measuring what happened to the recipient or establishing the intent of the commenter. The authors’ choice of task makes statistical comparison possible. It also gives a definite meaning to success in the experiment. A successful prediction agrees with the label attached to that text.

The Bangla focus makes the study a question about resources as well as algorithms. The authors describe extensive work on abusive text in English and a smaller body of work on Bangla abuse and hate speech, frequently using small datasets. They also point to research on Bangla sentiment and document classification. Those studies establish a context in which researchers already had ways to prepare and classify Bangla text. Detecting abuse still required examples collected and labeled for that particular decision.

#### Earlier attempts to represent abusive language

Among the closest precedents, the paper describes work that used comments from Facebook and YouTube to train Naïve Bayes classifiers for abusive or malicious Bangla text. The comparison matters because comment collection and supervised classification were already part of the research practice the authors were extending. The new study keeps those broad ingredients and varies the learning algorithm and the preparation of the corpus within a common experimental design.

The paper also discusses earlier Bangla cyberbullying detection that compared several classifiers using cross-validation. In that study, SVM performed best. Cross-validation evaluates a method by changing which examples are held back across training runs. Its appearance in the earlier work helps explain why SVM was a natural candidate, while the current authors use a stated train–test partition for each version of their corpus. Their comparison puts SVM alongside methods that handle the same numerical inputs in different ways.

Another predecessor examined strings of adjacent items as text features. A [unigram](https://md.research.elamur.ai/free/en/concepts/n-gram/) is a single item, a bigram is a pair, and a trigram is a sequence of three. The point of these alternatives is to change what evidence remains visible after a comment is turned into numbers. Individual terms supply evidence wherever they occur. Sequences can preserve recurring local expressions that a collection of independent words would separate. The paper describes an earlier comparison of several classifiers and kernel choices in which a linear SVM with trigram TF-IDF features performed best. That result belongs to the earlier experimental setup. It explains the authors’ interest in TF-IDF and SVM without specifying the feature range or kernel they themselves used.

A separate Bangla study approached the problem through root forms and used unigram features. This speaks to a different choice about representation. A learner can treat the surface forms of a word separately, or a text preparation procedure can group some of them before learning begins. The first preserves whatever differences exist in the observed forms. Grouping gives the learner a chance to pool evidence when related forms occur in different comments. The current study makes stemming an explicit condition so its effect can be considered alongside results for the original forms.

The paper also reviews a method that enlarged lists of abusive and non-abusive words. That work used word2vec’s skip-gram procedure and cosine similarity to identify related terms. In this approach, words receive numerical representations derived from patterns of use, and similarity helps connect a word to nearby candidates. The authors describe evaluations of that method on malicious words, online community comments, and tweets. Its inclusion brings out a difference in the target of learning. A word-list procedure develops lexical evidence that can then be used in detection. The Bangla experiments train directly on labels attached to complete comments.

#### Related tasks in Bangla and other settings

Research on [sentiment analysis](https://md.research.elamur.ai/free/en/topics/sentiment-emotion/) supplies neighboring examples of learning from Bangla text. The paper describes a study that assigned sentiment labels such as neutral, positive, and negative, with a more detailed label set that distinguished stronger positive and negative sentiment. Those are judgments about the direction and strength of expressed feeling. The abuse study uses a different distinction. Disapproval can appear in legitimate criticism, so a negative sentiment label alone would leave the question of abuse open. The related work matters because it shows that the choice of label defines what a classifier is being taught to recognize.

The authors also point to studies on Bangla articles, blog posts, and document categories. A topic or document category can be indicated by vocabulary that recurs throughout an article. A short social media comment may offer much less text for a classifier to work with. The Bangla document studies establish prior experience comparing supervised algorithms, including Naïve Bayes, SVM, and stochastic gradient descent. They leave open how those algorithms will compare when the examples are individual comments and the labels concern abuse.

In abusive-language research outside the immediate Bangla setting, the authors mention an Indonesian study whose labels distinguished abusive content, non-abusive content, and abuse judged to be non-offensive. The example shows that the boundary a dataset draws can be more detailed than the one adopted in the present paper. They also discuss Twitter research that used a bidirectional recurrent neural network and compared it with recurrent and convolutional alternatives. Another study combined linguistic and syntactic features with short character sequences, using Yahoo finance and news material and testing on Amazon data. These examples vary in their label definitions, how much linguistic structure their features retain, and where they get their comments.

The present study concentrates the comparison on a common source collection. The authors first want to know which supervised classifier fits their cleaned and labeled comments best. They also want to know whether two changes before training improve the comparison. Random undersampling alters which comments contribute evidence, and stemming alters which word forms count as the same feature. Both choices can affect the learned decision even when every classifier receives the same kind of representation within an experiment.

### The method, step by step

#### Collecting and labeling comments

The authors start with public discussion attached to selected Facebook pages and YouTube channels. They choose active sources associated with Bangladeshi public figures and video creators whose content they describe as controversial or viral. Their reason for concentrating on such sources is practical. A collection for supervised learning needs examples carrying each label, and these discussion streams offer a place to look for abusive comments alongside other responses. The selection process yields a corpus built for the experiment, with a source composition tied to that purpose.

Facebook comments are collected through the platform’s graph application programming interface. For YouTube, the authors name a comment scraper. They say that they collect public comments without commenter information. The description of the pipeline thus starts from comment text and makes the comment the item passed into later stages. User details play no stated role in the classification.

The authors remove irrelevant entries such as comments consisting of stickers or emoticons, as well as comments in languages other than Bangla. This is filtering at the comment level. It determines which items belong in the labeled corpus. The subsequent cleanup works within the comments that remain and can remove individual elements while retaining the rest of their text. A comment consisting solely of a sticker, for example, is a different input from a Bangla comment containing an emoji alongside words.

The [annotation](https://md.research.elamur.ai/free/en/concepts/annotation/) step gives each retained comment one of the two labels. These are manually assigned labels for supervised [machine learning](https://md.research.elamur.ai/free/en/concepts/machine-learning/). During training, an algorithm receives numerical representations of comments together with the corresponding labels. During testing, it predicts the labels from the representations, and the researchers compare those predictions with the manual judgments. The annotation is the link between the social notion of abuse and the particular statistical task posed by the authors.

From public Bangla comments to classifier evaluation The steps in order.

#### Cleaning the text and identifying word forms

Before learning, the paper applies [tokenization](https://md.research.elamur.ai/free/en/concepts/tokenization/), the process of dividing text into pieces that can be counted and represented. Here the pieces of interest are Bangla word forms. Spaces and line breaks help identify their boundaries. The procedure also uses punctuation, emojis, and special characters as delimiters. Those separators can split a string into pieces even when the separator itself contributes no feature.

The authors eliminate punctuation, special characters, excess whitespace, and both Bangla and English numerals. Tokens in other languages and single-character words are removed as well. The combined effect is to build the representation around the Bangla terms that survive cleanup. If a symbol separates two words, tokenization can preserve the distinction between those words while cleanup discards the symbol. If a word is removed for being outside the retained language, its presence in the original comment has no direct term weight in the classifier’s input.

For the learner, the important consequence is that the text used for classification has fewer kinds of visible evidence than the original social media message. Removing a numeral or an emoji can suppress variation that the experiment treats as noise. The same procedure also makes any useful signal carried by those items unavailable. Both consequences follow from using the cleaned representation. The paper uses that common cleaning procedure as the starting point for the classifier comparisons.

This stage leaves surface word forms intact in the experiments without stemming. A surface form is the form that actually occurs in the text after the specified cleanup. A word can appear with different endings, and those distinct forms can remain distinct features. In a short comment, the difference matters because a feature learned from one form will have no direct term count when only a separate form occurs. Changing the preparation of Bangla word forms is therefore a way to change which comments the learner can recognize as sharing lexical evidence.

#### Constructing the balanced and stemmed variants

The full dataset supplies the reference condition. It contains 4880 abusive comments and 7148 non-abusive comments, for a reported total of 12,028. The authors call it imbalanced because the non-abusive category is more frequent. A classifier that learns from observed examples encounters that category more often, and simple accuracy also gives every comment equal weight. If a test portion follows the corpus distribution, performance on the more frequent class has more influence on the overall accuracy. The paper raises this concern especially for Naïve Bayes and random forest.

To prepare the balanced variant, the authors use random undersampling. In this context, undersampling means keeping a random subset of the more common category and retaining the examples from the less common category. The abusive class stays at 4880 comments, and the non-abusive class is brought to 4880, producing the reported total of 9760. The comments that remain still carry the same labels. The intervention changes how often the categories occur and which non-abusive examples are available.

Balancing at the dataset level differs from changing how errors count after training. The description places the train–test partition after the construction of each dataset. Accordingly, the balanced results are obtained under a different corpus condition for evaluation as well as for learning. The paper reports equal counts for the balanced corpus as a whole. It gives the train–test ratio, while the class counts for the individual test portions are unspecified.

The authors name oversampling, synthetic data generation, and cost-sensitive learning as other ways to address unequal class frequencies. Their own study uses undersampling, so the balanced condition has less source material than the full condition. That reduction is part of the intervention. In particular, the balance experiment removes examples of ordinary comments that might have shown the classifier additional ways in which potentially suspicious terms can be used. The method makes no selection based on the linguistic value of an individual non-abusive comment because the reduction is random.

The stemming experiment starts again from the full dataset. The paper describes Bangla as highly inflected and uses a lightweight rule-based Bengali stemmer from earlier research. With rule-based stemming, a procedure identifies parts of a word that can be removed and produces a shorter form. Several input forms can then contribute to the same feature. The paper illustrates this behavior with forms associated with office, staying, and service. The examples make the intervention concrete. Where the original text supplies an inflected word, the feature procedure receives the stemmer’s shortened output.

Stemming operates before the feature weights are computed. A merger therefore affects both the set of feature names and the counts behind those features. A shortened form can occur in more individual comments than any of the surface forms mapped to it. It can also occur more frequently within a particular comment if that comment contains several of those surface forms. Whether this change is helpful depends partly on what the stemmer groups together. When the grouping preserves a meaningful connection, the classifier can draw on shared evidence. An inappropriate truncation can strip away part of the word that carried the distinction.

The stemmed variant and the balanced variant alter different parts of the pipeline. Undersampling changes which labeled comments survive, while stemming changes the surviving word forms within comments. The paper applies these changes separately. Using the full dataset for the stemming run gives the authors a direct comparison with the full-data condition without the additional intervention of dropping non-abusive comments.

#### Turning each comment into weighted features

All the classifiers need a numerical input. TF-IDF provides it by assigning weights to terms and representing each comment through those weights. In this setting, the document referred to in the name of the method is a comment. The same piece of text therefore has two roles. It supplies one labeled example for training or testing, and it supplies the term occurrences from which its numerical representation is built.

The first part of TF-IDF is term frequency, abbreviated TF. It concerns how frequently a term occurs in the particular comment being represented. The second part is inverse document frequency, abbreviated IDF. It gives less influence to a term that occurs across many comments. A term can recur within one comment and still receive a modest weight if it is common throughout the collection. A term that is comparatively concentrated can retain more influence. The paper gives this verbal account of the weighting and leaves the exact equation and normalization unspecified.

An inverse document frequency is concerned with distribution across comments, rather than with whether a term is abusive. TF-IDF weights are computed from term occurrence. The labels enter through the subsequent supervised learning stage. A term with considerable weight can mark a topic or a discussion source and still have little direct connection to abuse. Conversely, a frequent term whose individual weight is moderated can remain informative alongside other terms. The feature representation supplies the evidence on which the classifiers operate. Learning establishes how the evidence is used to choose a label.

Changes to the corpus can also affect the weighting. Removing non-abusive comments changes the collection in which term prevalence is assessed. Stemming can put occurrences that previously belonged to different features under the same name. In each case, the meaning of a component of a comment’s numerical input can shift before the classifier is fit. The paper specifies TF-IDF as the common representation and gives neither a vocabulary list nor the precise choices used to build and normalize it.

The representation explains why several very different algorithms can be compared in one study. Each comment is presented through a shared set of term-based features for the experiment at hand. A linear decision procedure can combine their weights, a tree can test values of individual features, and a neighbor-based method can compare comments through their feature values. The comparison is about how these algorithms use the input the authors prepared.

#### Training competing classifiers

The paper includes probabilistic, linear, neural, tree-based, and neighbor-based methods. Multinomial Naïve Bayes, abbreviated MNB, uses the relative evidence for terms under each class and the prevalence of the classes to make a prediction. Its simplifying assumption treats features as conditionally independent given the class. This makes it possible to accumulate lexical evidence across a comment even when many particular combinations of terms are rare. A change in class frequency or in the available term evidence can affect that calculation.

A support vector machine, abbreviated SVM, learns a decision boundary between labeled examples in a feature representation. Its defining idea is a margin, a separation based on the examples near the boundary between classes. The paper also includes a classifier it calls SGD, for stochastic gradient descent. That name identifies an optimization procedure that updates learned parameters from portions of the training data. The paper does not give the SGD loss, and the specification of the SVM is also limited. An earlier paper’s use of a linear kernel supplies historical context, while the present paper leaves its own kernel unspecified.

The ridge classifier uses regularization to restrain the magnitude of its fitted coefficients. This matters for text features because a learner can encounter terms that occur in relatively few training examples. A perceptron also learns a decision from feature weights, with adjustments driven by classification errors during learning. The multilayer perceptron, abbreviated MLP, uses layers of learned transformations so that features can contribute through intermediate combinations. The paper treats the perceptron and the MLP as distinct entries and reports their results separately.

The decision tree classifies an example through a sequence of feature tests. Random forest combines predictions from a collection of trees, giving the study an opportunity to compare a single tree-based classifier with an ensemble of trees. K-nearest neighbors, or k-NN, predicts using the labels of nearby training examples in the feature representation. In that case, stemming or a shift in term weights can matter because the intervention can change which comments count as neighbors. The authors name k-NN as a candidate and leave the value of k and the distance measure unspecified.

The training subsection says that each dataset is divided into training and test portions in an 80:20 ratio and that the selected classifiers are applied to each dataset. The training portion supplies labeled examples for fitting, and the test portion supplies the examples for the reported scores. The authors identify Anaconda as the software platform and Python 3 as the implementation language. Their description supports following the main steps of the comparison. Exact settings for the vectorizer, learning algorithms, and data partitions are left open.

### Experiments and results

#### What the test scores measure

The comparisons are organized around the full dataset, its randomly undersampled version, and the stemmed version of the full dataset. Each results table reports accuracy, precision, recall, and F1 for the classifiers in that condition. The baselines for the comparison are the other algorithms evaluated on the same dataset, and the ordinary full-data run serves as the reference for the changes in preparation. The paper therefore supports both a comparison among algorithms within a condition and a comparison of the same algorithm across conditions.

Accuracy is the share of test labels predicted correctly. Precision and recall describe different directions of error. For a given class, precision looks at the comments assigned to that class and asks how many belong there. Recall starts with the comments that belong to the class and asks how many the classifier recovered. If abusive is the class under consideration, wrongly flagging ordinary comments harms precision, while leaving abusive comments unflagged harms recall. F1 combines precision and recall so that a weak value on either side affects the resulting score.

The tables give a single precision, recall, and F1 value per classifier and condition. The authors leave the averaging convention and class orientation unspecified. The article’s numerical comparisons can consequently follow the reported columns, but the values by themselves give no direct rate of missed abusive comments. There are also no separate error counts by class. Accuracy is the easiest score to interpret as an overall test outcome, with the qualification that the evaluated corpus differs between the full and balanced settings.

#### The full dataset without stemming

The first experiment uses the comments in their original class proportions. This is the condition in which the highest scores in the paper occur. SVM reports 0.88 for test accuracy, precision, recall, and F1. The abstract states the accuracy as 88%. SGD follows with 0.87 on all four reported measures. The ridge classifier has 0.86 throughout, and the MLP has 0.85 throughout. These entries place several alternatives near the top of the same comparison. The separation at the head of the accuracy ranking is visible at the precision with which the paper reports scores.

Test accuracy of the leading classifiers on the full Bangla dataset SVM leads the full-data comparison, with SGD the closest of the other classifiers.

**The numbers**

| System or setting | accuracy |
| --- | --- |
| SVM (this paper) | 0.88 |
| SGD | 0.87 |
| Ridge classifier | 0.86 |
| Multilayer perceptron | 0.85 |

MNB reaches 0.83 accuracy, with 0.85 precision, 0.79 recall, and 0.80 F1. Its precision matches the MLP’s reported precision while its recall and F1 are lower. That is a reason to read the columns together. Selecting a classifier on the precision column alone would conceal the separation between those two entries on the other reported measures. The perceptron reaches 0.80 accuracy and 0.79 F1. The decision tree reports 0.73 accuracy and 0.72 F1.

At the lower end, random forest gives 0.60 accuracy and 0.45 F1. K-NN gives 0.55 accuracy and 0.51 F1. The two classifiers switch order when the comparison shifts from accuracy to F1. Their precision values also differ, with 0.36 for random forest and 0.71 for k-NN. This spread shows how the paper’s overall characterization of these entries as weak depends on looking at more than one outcome. The forest fares better on accuracy in this condition, and k-NN fares better on the reported F1. SVM leads on both.

The full-data ranking establishes the reference for the rest of the study. It associates the leading scores with a particular combination of corpus, feature preparation, and classifier. It also gives two different comparison points for later changes. An algorithm can improve against its own reference score without approaching the strongest classifier, and a leading classifier can remain near the top after its score falls. Those are separate observations about improvement and rank.

#### Random undersampling of non-abusive comments

On the balanced corpus, SVM and MNB both report 0.85 for accuracy, precision, recall, and F1. For MNB, the accuracy and F1 exceed its full-data scores of 0.83 and 0.80. For SVM, both are below its original 0.88. A change in the data condition thus turns a separation between these algorithms into a tie at the reported precision.

Ridge follows at 0.84 accuracy and 0.83 F1. SGD reports 0.83 for both measures. The perceptron has 0.80 accuracy and 0.80 F1, and the decision tree has 0.73 accuracy and 0.72 F1. Their accuracy matches their own full-data entries. The perceptron’s F1 is listed as 0.79 on the full corpus and 0.80 on the balanced one, so the appearance of stability is exact for accuracy and approximate across the wider set of outcomes.

Random forest reaches 0.72 accuracy and 0.71 F1 on the balanced corpus. Its reported precision rises to 0.74 and its recall to 0.72. This is a broad improvement across its reported columns. However, the improved score leaves random forest below several classifiers trained and evaluated in the same balanced condition. In practical terms, the change helps random forest relative to its earlier performance, while MNB is the method that both improves and joins the leader.

The MLP falls to 0.68 accuracy and 0.64 F1. Its reported precision, 0.78, is higher than its reported recall, 0.68. K-NN scores 0.53 accuracy and 0.46 F1, and its reported recall is 0.55. These entries show two different responses to the same data preparation. The MLP begins among the stronger classifiers and drops below random forest in the balanced comparison. K-NN, already low in the full-data ranking, remains near the bottom.

Test F1 for tied leaders and contrasting classifiers on the balanced Bangla dataset MNB shares the lead with SVM, while random forest ranks above the multilayer perceptron.

**The numbers**

| System or setting | F1 |
| --- | --- |
| SVM (this paper) | 0.85 |
| MNB | 0.85 |
| Random forest | 0.71 |
| Multilayer perceptron | 0.64 |

The balanced experiment answers what the algorithms achieved under the authors’ undersampling procedure. Its accuracy values concern a test portion of the balanced dataset, and the full-data accuracy values concern a test portion of the original dataset. The change in each algorithm’s score therefore combines the behavior of the learner and the changed evaluation condition. The tie at the top can be read directly within the balanced experiment, where the algorithms are compared under the same data preparation.

#### Stemming the full dataset

The final experiment applies the Bengali stemmer to the full corpus. SVM again gives the highest reported accuracy and F1, with 0.85 on both measures. It also has precision and recall of 0.85. The MLP and SGD each report 0.84 for accuracy, precision, recall, and F1. Ridge reports 0.84 accuracy and 0.83 for the other measures. The leading entries are close in this condition, as they are on the full dataset without stemming.

MNB records 0.81 accuracy and 0.79 F1. The decision tree reaches 0.72 on both measures. The perceptron has 0.80 accuracy and 0.79 F1. Random forest gives 0.60 accuracy and 0.45 F1, which match its values on those measures before stemming. The forest’s reported precision changes substantially, from 0.36 on the full dataset without stemming to 0.76 in the stemmed condition, while its reported recall stays at 0.60. Without the class-specific results or averaging details, that precision change is best read as a difference in the listed column. The accuracy and F1 columns show no corresponding improvement.

The strongest gain from stemming occurs for k-NN. Its test accuracy improves from 0.55 on the unstemmed full data to 0.62 after stemming. Its F1 improves from 0.51 to 0.61, and its reported recall rises from 0.55 to 0.62. Precision is 0.71 in both conditions. Though k-NN benefits from the altered representation on several measures, its accuracy is still below the leading group in the stemmed experiment.

Test accuracy of selected classifiers on the stemmed Bangla dataset SVM leads after stemming, while k-NN still trails the leading classifiers.

**The numbers**

| System or setting | accuracy |
| --- | --- |
| SVM (this paper) | 0.85 |
| Multilayer perceptron | 0.84 |
| Ridge classifier | 0.84 |
| k-NN | 0.62 |

Stemming and balancing both yield an SVM accuracy of 0.85, but that shared value has different experimental meanings. The stemmed score comes from the full corpus with altered word forms. The balanced score comes from a smaller corpus with equal class totals and without the stemming intervention. The matching scores show that SVM remains competitive under both interventions. The comparison cannot assign the same cause to the scores or establish that SVM makes the same errors in the two conditions.

For the authors’ goal of selecting the highest-performing setup, the decisive result is the full-data SVM score of 0.88 for both accuracy and F1. Their experiment also shows why a reader might care about a lower-ranked result. The outcome for MNB depends on how class frequency is handled, and k-NN changes when the vocabulary is altered. These movements explain more about the effect of changing the pipeline than the winning score alone can establish.

### What the ablations show

#### What the comparisons isolate

The paper gives no component-by-component ablation of the full pipeline, but its balanced and stemmed experiments compare two changes to data preparation with the full-data condition. The remaining analysis comes from the performance tables, the cross-condition comparisons of accuracy and F1, and the authors’ inspection of some erroneous stemmer outputs.

Changing the classifier answers the question of which learning procedure gives the strongest aggregate result from the chosen input. It leaves tokenization and TF-IDF in place. This is a useful control when the goal is to compare learning algorithms on features prepared in the same way. It cannot establish how much accuracy came from removing punctuation, retaining discrete word forms, or applying inverse document frequency. Each of those choices would require a corresponding comparison in which the rest of the preparation and evaluation were held steady.

The balanced and stemmed conditions are closer to tests of specific decisions. They ask whether to retain the original class distribution and whether to reduce words to stems. These are alternatives to the reference setup, each run with the same named classifiers. The intervening changes, however, differ in what they hold constant. Stemming starts with the full set of labeled comments, so it changes the forms that contribute evidence while retaining the stated source corpus. Random undersampling removes comments and produces a different corpus for both fitting and evaluation.

#### Why the balance comparison is informative

The largest upward movements emphasized by the authors in the balanced experiment are for MNB and random forest. The MNB result combines an improved accuracy of 0.85 with a rise in F1 to 0.85, enough to place the method alongside SVM. The random forest result moves from 0.60 accuracy to 0.72, with F1 moving from 0.45 to 0.71. These patterns give evidence that the reported outcomes are sensitive to the corpus distribution. They also show that two algorithms can be sensitive to the same intervention without ending up equally competitive.

The response of the MLP points in the other direction. A learner might benefit from a more even distribution of labels, or it might benefit from keeping the wider collection of non-abusive examples available in the full corpus. The undersampling comparison changes both properties at once. It cannot show whether the MLP’s lower score comes chiefly from less training material, a change in which lexical examples remain, a different composition of the evaluated comments, or some combination. The paper establishes the observed direction of change and leaves its cause open.

The accuracy of the decision tree and perceptron is stable across the full and balanced settings at the displayed precision. Equal scores can arise from different predicted labels or different instances of error. The comparison gives a statement about the reported aggregate performance in each setting. It does not match predictions comment by comment. In that respect, apparent stability is an aggregate finding just as an improvement is.

A shared test set would answer a narrower question about training. If the same comments were scored under the same labels with each classifier trained on a different class mixture, readers could attribute changes more directly to the learning examples available. An evaluation under a balanced distribution instead addresses how an algorithm performs when both the training corpus and the evaluation corpus come from the balanced condition. The study describes the latter design, and the reported improvements have that scope.

#### What the damaged stems explain

The authors report 83% accuracy for the Bengali stemmer they use and identify incorrect outputs in the remaining 17% of cases. These figures concern the stemmer and have a different meaning from the comment classifiers’ test accuracy. The paper’s examples include the Bangla form তার, glossed as his or her, being reduced to ত, and ভাই, glossed as brother, being reduced to ভা. The shortened forms illustrate the kind of truncation the authors consider invalid. The transformation can remove part of an ordinary word even where a recognizable shortened form would be preferable for classification.

The proposed explanation links those errors to the representation. If a useful surface word is damaged, the classifier receives a different feature from the one associated with that word in the unstemmed condition. If multiple forms are reduced to an uninformative shared fragment, those occurrences can be counted together. Both effects are possible because the stemmer decides which strings pass into TF-IDF. The authors use this mechanism to explain why a language-processing step intended to help can reduce measured performance.

The paper does not trace individual changes in classification back to individual stemming errors. It also leaves open how the reported stemmer accuracy was measured relative to the words in the comment corpus. The examples establish that the procedure can produce poor forms, while the aggregate results establish how each classifier fared after the procedure was used. The degree to which the particular damaged forms account for the change in SVM or MNB remains unmeasured.

K-NN gives a reason to keep both sides of the representation change in view. Its accuracy and F1 increase after stemming even though the stemmer produces invalid outputs. A plausible reading of the algorithm is that merging sometimes makes comments with related vocabulary closer in the feature representation. That mechanism could improve neighborhood decisions even if some words are mishandled. The paper reports the gain and does not inspect the nearest comments to verify this explanation. The experiment therefore shows that the stemming intervention can help k-NN without revealing which mergers were responsible.

Across the conditions, the full-data ranking is most consistent at the top. SVM leads outright on the full and stemmed datasets and shares the highest reported accuracy on the balanced dataset. The more variable rankings below it show that a choice of preprocessing can matter even when the leading algorithm remains competitive. The evidence supports a preference for the full-data SVM among the configurations tested, with the detailed comparisons showing where that preference depends on the corpus and the metric.

### Limitations

#### Limits the authors identify

The authors frame the work against a shortage of resources for Bangla abusive text detection. Their own corpus addresses part of that problem by supplying a sizeable labeled collection for comparison. Their discussion also stresses that the variety of language and the changing character of social media make detection difficult. A classifier trained from this collection has learned from a finite set of contemporary discussions. The authors present broader improvement of the approach as future work.

A more immediate limitation is the quality of the stemmer. The authors consider its reported 83% accuracy inadequate for their purpose and show erroneous reductions of Bangla words. Their assessment is specific to the lightweight rule-based stemmer used in the experiment. The study demonstrates how that procedure performs within their pipeline, while the paper’s account of earlier research describes other stemming approaches that were outside the comparison. The result supports caution about treating this particular transformation as a general performance benefit.

The paper proposes deep neural networks, convolutional neural networks, and long short-term memory networks as possible directions for future experiments. The multilayer perceptron gives the study a neural classifier within its comparison. The broader architectural comparisons named at the end remain prospective. The reported results describe the selected classifiers operating on TF-IDF features.

#### What the source collection represents

The authors select controversial and active sources in part because they expect them to yield abusive material. This makes the corpus effective for finding labeled examples, and it shapes what those examples represent. The abuse frequency in the corpus depends on the selection of pages, channels, and retained comments. The class counts describe that collection and give no direct estimate of how often Bangla comments elsewhere are abusive.

A comment classifier can also draw on language that is characteristic of where the comments were collected. A public figure’s name, a recurring phrase, or the vocabulary of a discussion topic may be associated with one label in particular threads. Such evidence can help on a held-out portion containing related discussions. It might contribute less to a comment about a different person or drawn from a different setting. The paper draws data from both Facebook and YouTube and reports combined results. Separate platform scores or a test that holds out entire sources would be needed to establish how well the learned patterns transfer across those boundaries.

The cleaned Bangla input defines another boundary. Comments outside Bangla were excluded, and words in other languages are removed during preprocessing. The evaluation concerns comments that fall within these choices. Mixed-language abuse, abuse conveyed through emojis, and related cases where the removed material carries the signal have no separate results. The method is best understood as a test of evidence in the retained Bangla terms.

The paper’s focus on comment text also limits what kinds of judgment it can study. A reply may depend on a previous message to establish whom it targets, or a surface expression may be interpreted differently in a different exchange. The reported features are built from the individual comment. The experiment offers an aggregate measure of agreement with manual labels and no separate measure of comments whose interpretation depends on a surrounding thread.

#### What the manual labels establish

The label names are clear, but the paper gives little detail about how annotators handle borderline cases. It leaves the operational definition of abuse, the number of annotators, their agreement, and any procedure for resolving disagreement unspecified. Those details are important because the headline score measures correspondence with the labels the authors assigned. A reader can assess the classification result as reported while remaining uncertain about whether another group of annotators would draw the same boundary.

The binary decision also combines potentially different cases. A classifier may find plainly abusive vocabulary easier than a personal attack formulated without recognizable insults. An aggregate score can conceal this difference if the dataset gives no separate labels for such forms of abuse. The paper’s reported metrics cannot show which cases are well covered, how errors are distributed across discussion topics, or whether a particular kind of comment accounts for much of the remaining error.

Precision and recall could help characterize the practical consequences if the abuse category and averaging convention were explicit. For a moderation task, false flags and missed abuse have different implications. From the published columns, a reader cannot derive how many ordinary comments would be flagged or how many abusive comments would be missed. The accuracy result answers the study’s overall discrimination question more directly than it answers questions about a particular moderation policy.

#### How precisely the experiments can be reproduced

The paper names the principal preparation stages, the classifier families, and the train–test ratio. Several details that could change the numerical comparison are absent. The description gives no test sizes or class counts for the individual partitions and no random seeds for sampling and splitting. It leaves open whether the stemmed condition uses the same comment identities in the test portion as the unstemmed full-data condition. That matters when comparing scores close to one another because changing the test comments can change their difficulty.

The paper also leaves unspecified when the TF-IDF vocabulary and document frequencies were fitted relative to the split. Since inverse document frequency depends on occurrence across comments, fitting on the training portion and then applying the learned weighting to test comments gives a different evaluation procedure from using occurrence information from the full corpus. The paper establishes the use of TF-IDF and a held-out test portion, but it gives insufficient detail to determine which fitting procedure produced the scores. The same issue of precision applies to classifier settings such as the SVM kernel and the choice of neighbors for k-NN.

There are no reported intervals or repeated runs that show how strongly the classifier ranking depends on the particular partitions. This matters for a comparison such as accuracy of 0.88 for SVM and 0.87 for SGD on the full corpus. Those are the published scores and they establish their order in that comparison. The precision of the displayed values alone gives no measure of the stability of that ordering under a new split. The paper also does not report a further independent evaluation after selecting the best-performing setup from the comparison.

Finally, the experiment measures correct classification against manually assigned labels. The motivation concerns harassment and abusive speech on social platforms, while the observed outcome is predictive performance on held-out comments. A study of effects on moderation or on users’ experience would require observations beyond this test. The strongest claim supported here is that the SVM and full-data representation obtain the best reported aggregate results among the combinations the authors evaluate.

### What came after

There is no documented follow-up study to trace from this comparison. The paper leaves open whether the ranking transfers to independently collected Bangla comments, whether different stemming rules preserve more useful evidence, and whether a different classifier changes the outcome when the data and evaluation are held fixed. Its proposed neural approaches are directions for further experiments. The evidence it establishes is the comparison on its own corpus, where the full-data SVM leads and the effects of balancing and stemming depend on the classifier.

## Cite

Cite as Tanvirul Islam, Nadim Ahmed and Subhenur Latif. 2021. An evolutionary approach to comparative analysis of detecting Bangla abusive text. Bulletin of Electrical Engineering and Informatics.

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.11591/eei.v10i4.3107](https://doi.org/10.11591/eei.v10i4.3107)

```bibtex
@article{islam2021evolutionary,
  title = {{An evolutionary approach to comparative analysis of detecting Bangla abusive text}},
  author = {Tanvirul Islam, Nadim Ahmed and Subhenur Latif},
  journal = {Bulletin of Electrical Engineering and Informatics},
  year = {2021},
  doi = {10.11591/eei.v10i4.3107},
  url = {https://doi.org/10.11591/eei.v10i4.3107}
}
```

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