Elamur Research

An evolutionary approach to comparative analysis of detecting Bangla abusive text

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

Summary

People use Bangla on social media to talk about public figures, respond to videos, and take part in discussions where abusive remarks can appear alongside ordinary replies. The authors ask how well a computer can recognize abusive comments in these settings. They frame the task as text classification, with a human judgment of abusive or non-abusive attached to each example. From public discussions on selected Facebook pages and YouTube channels, they assemble a collection of 12,028 Bangla comments. Manual labeling assigns 4880 to the abusive category and 7148 to the non-abusive category. The paper compares learning algorithms on these examples in a language for which the authors describe relatively little prior work on abuse detection.

The comparison changes the input in two ways. Random undersampling creates a smaller, balanced collection by discarding some non-abusive comments. In a separate experiment, stemming shortens words in the original collection so that related forms can share a feature. The authors also run the classifiers on the full collection with its original word forms. For each condition they describe an 80:20 division for training and testing, and they use TF-IDF to represent comments. This weighting method takes account of how often a term occurs within a comment and gives less weight to terms that appear in many comments.

The support vector machine, or SVM, produces the highest scores in the study using the full collection without stemming. Its test accuracy and F1 are both 0.88. F1 combines precision and recall, which capture different ways a classifier can make mistakes. The entry trained using stochastic gradient descent follows at 0.87 on each measure. Equalizing the class totals brings SVM and multinomial Naïve Bayes together at 0.85 accuracy on the balanced test portion. Random forest also benefits in that experiment, moving from 0.60 accuracy on the full data to 0.72 on the balanced data.

SVM leads again on the stemmed test portion, with 0.85 accuracy. The clearest gain from stemming is for k-nearest neighbors, whose test accuracy goes from 0.55 on the original forms to 0.62 on the shortened forms. The authors show examples where the stemmer produces invalid fragments and suggest that such errors contribute to the declines seen elsewhere. The comparisons establish a leading setup for this collection and show that the same preparation choice can have different consequences for different classifiers. The scores measure agreement with the manual labels on test portions of the selected comments.

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

A study of Bangla abuse detection compares classifiers on social media comments and tests how class balance and stemming affect accuracy. · about 35 minutes to read

The problem and its context

Turning a concern about online abuse into a test

Public discussion gives people a way to respond to what others post, and it gives an abusive remark an audience. The paper links the spread of social media in Bangladesh to concern about harassment, bullying, and the circulation of hostile messages. Its introduction draws on reports of bullying and cybercrime and on research into the harm associated with bullying among young people. That concern motivates a much more specific question. Given the text of a Bangla comment, can a classifier assign the same label that a human assigned to it?

The scale of that question matters. A comment is a piece of evidence that the researchers can collect and label. An episode of harassment may encompass a series of interactions. To study the latter, a researcher could need to know who is being addressed, what came before, and how a pattern developed. In this experiment the observation is the comment, and the answer is the category written beside it in the dataset. This makes the decision measurable across many examples. It also explains why the paper's results are expressed as scores for predictions about text.

The experiment needs a collection in which abusive examples occur frequently enough to study alongside other comments. The authors turn to discussions around popular and controversial pages and channels because they expect to encounter such material there. This is a choice about where the training evidence comes from. The comments can exhibit language associated with particular public figures, topics, and audiences, so the choice of source matters even before a classifier sees an example. The authors' research question concerns how well their procedure can learn from the collection that this choice produces.

The linguistic question is distinct from the choice of source. People can express an abusive intent in different words, and a Bangla word can occur with different endings. The paper describes variation in language and changing practices on social platforms as challenges for detection. A procedure based on terms has to decide which written forms should contribute separate evidence and which can be treated together. That decision is especially consequential when comments are short. Each retained form may account for a substantial part of the evidence available for an individual prediction.

The authors place the work in a field where they see a difference between research on English and research on Bangla. They describe many approaches to abuse detection for English and relatively few studies devoted to abuse or hate speech in Bangla. They also describe some Bangla studies as using small collections. Their concern is therefore about resources as well as classification procedures. An algorithm gives researchers a way to learn from examples. A sizable collection with labels gives them a way to see how the algorithms compare when asked to learn the same distinction.

What earlier Bangla studies supplied

Some of the closest predecessors likewise treated abuse detection as supervised learning from comments. The paper discusses work using Naïve Bayes to classify abusive or malicious Bangla text, with examples drawn from Facebook and YouTube. Those studies gave the authors a precedent for making the comment the unit of learning. They also gave them a candidate classifier to include in a broader comparison. Another Bangla study, concerned with cyberbullying, evaluated multiple learning approaches through cross-validation and found SVM to be the strongest of those tested. In cross-validation, evaluation rotates through different held-back portions of the data. The earlier result gave the authors another reason to include SVM in their own comparison.

The review also describes experiments with n-grams, strings of adjacent items used as features. At the word level, for instance, a unigram can record a word on its own, a bigram a pair of neighboring words, and a trigram a short sequence. A representation that records only individual items can register the presence of a term wherever it appears. A sequence feature can register a recurring expression as a unit. The earlier abusive-text study reviewed in the paper compared such choices as well as classifier and kernel choices. It found its best performance with a linear SVM and trigram TF-IDF features. In the present paper, that finding belongs to the background for the choice of methods. The SVM kernel and n-gram range of the new experiment remain unspecified.

Another Bangla predecessor used a root-based procedure with unigram features. That approach raises a question about which distinctions the input representation needs to preserve. A term extracted from the text can represent the form someone actually wrote. It can also represent a shortened form shared by several possible inputs. Shortening can pool examples that would otherwise supply evidence under separate names. Whether the resulting evidence is better depends on what the procedure merges and what it cuts away. The authors make that choice visible by running a separate stemming experiment.

The paper also draws on work in Bangla sentiment analysis. It describes a study that classified expressions as neutral, positive, or negative, and used a finer scheme that distinguished stronger sentiments as well. The choice of categories shows what the comments teach the classifier to recognize. A remark can express strong disapproval while still being ordinary criticism. The abuse label calls for its own judgments from the people preparing the data. A corpus labeled for sentiment would teach a different decision even if some of its words overlapped with the abuse corpus.

Research on classifying Bangla documents offered further experience with supervised learning. The authors refer to work on articles and blog posts and to comparisons of Naïve Bayes, SVM, and stochastic gradient descent for Bangla document categories. A document classification procedure can use the recurrence of vocabulary as evidence for a category. Here the text may consist of a brief response, and the category describes what a person said in it. The Bangla precedents helped establish the set of candidate algorithms, while the comments and abuse labels supplied the task on which the authors would compare them.

Other ways of defining and finding abuse

The paper reviews a method for extending lists of abusive and non-abusive words using word2vec's skip-gram procedure and cosine similarity. That approach represents words through patterns in their usage and uses similarity to identify candidates related to words already known. The study described in the review evaluated malicious words as well as online community comments and Twitter posts. The distinction between these evaluations is important. A method can identify a word as potentially abusive, while a comment-level decision can depend on the other words used with it. The authors of the Bangla paper learn from labels attached to the comment as a whole.

The Indonesian work discussed in the paper provides a different example of how the decision can be defined. Its categories make room for language judged abusive yet non-offensive. The Bangla study gives each comment a single choice between abusive and non-abusive. These categorization schemes specify different prediction tasks even if a reader would recognize similar phenomena in both collections. A distinction measured by a separate label in one study may be absorbed into a broader category in another. The examples in the review help explain why the classification target has to be read alongside the scores.

The authors also mention a study of abusive language on Twitter that compared a bidirectional recurrent neural network with recurrent and convolutional approaches. Another study in their review used short character sequences along with syntactic and linguistic features, drawing on Yahoo finance and news material and testing on Amazon data. These are examples of different choices about what information to keep and where to evaluate. A sequence procedure can give ordering a role. Character features can represent pieces of a written form. Testing on another source asks how well learned evidence transfers. Each choice belongs to the problem that the particular study set out to measure.

For their own comparison, the authors hold the broad representation method common within each condition and try several ways of learning from it. They also ask whether a common preparation step helps across classifiers. Equalizing category totals changes the examples from which the algorithms learn. Stemming changes what forms the algorithms see within those examples. The study treats each as its own experiment so that a favorable result for one classifier can be distinguished from a favorable outcome across the comparison.

The method, step by step

From public discussions to manually labeled examples

The authors collect from Facebook and YouTube. They select pages and channels involving Bangladeshi public figures and creators, looking for active discussions about material they regard as controversial or viral. This choice supplies examples of the language they want to investigate and includes ordinary replies from the same discussions. The paper describes using Facebook's graph application programming interface and a YouTube comment scraper. It says that they collected public comments without recording the commenters' information. The item carried forward into the experiment is the comment text.

Collection produces material that extends beyond the study's target. A response may consist of a sticker or an emoticon, or be written in another language. The authors filter out irrelevant responses of these kinds before forming the labeled Bangla collection. This works at the level of an entire comment. Later processing also works within retained comments, where a word or symbol can be discarded while other parts of the comment remain. Those decisions determine which inputs will be represented and which parts of the input can supply features.

The authors assign the labels by hand. This annotation step supplies a target for supervised machine learning. In training, the algorithms receive features representing each practice example together with its label. In testing, the algorithms predict categories from the features, and those answers are checked against the annotations. The human judgment serves as the reference at both stages. Training learns a rule for producing the category, and testing measures how well that rule applies to examples set aside for evaluation.

The reported counts for the corpus are 4880 abusive and 7148 non-abusive comments, with 12,028 in all. The counts refer to comments after selection and labeling. Each comment contributes one example to its assigned category, however many terms survive within it. Keeping this distinction between comments and terms makes the rest of the design easier to follow. Balancing changes the supply of labeled examples. Stemming changes the written forms inside the examples.

Preparing and evaluating Bangla comment classifiers

The steps in order.

Preparing and evaluating Bangla comment classifiersStep 1: Gather public comments from selected discussions1. Gather public comments from selected discussionsStep 2: Filter and label comments for abuse2. Filter and label comments for abuseStep 3: Split text into tokens and clean them3. Split text into tokens and clean themStep 4: Prepare the three versions of the collection4. Prepare the three versions of the collectionStep 5: Partition each version for training and testing5. Partition each version for training and testingStep 6: Represent the comments through TF-IDF weights6. Represent the comments through TF-IDF weightsStep 7: Train classifiers and evaluate held-out predictions7. Train classifiers and evaluate held-out predictions

What remains of a comment after cleanup

Tokenization means dividing text into the units used for the next step. The authors use spaces, newlines, punctuation, emojis, and special characters as possible boundaries. A punctuation mark between adjacent stretches of text can help the procedure separate them, for example. The mark can then be discarded while the neighboring terms remain distinct. The paper illustrates its tokenization procedure with pseudocode and describes which kinds of material are removed.

The cleanup discards punctuation and special characters, removes excess spaces, and eliminates English and Bangla numerals. The authors also remove words from languages other than Bangla and words consisting of a single character. These rules give the representation a specific focus. If a Bangla term survives inside a comment that also contains a numeral, the term can become part of the feature representation. The numeral itself contributes no term weight under the stated preparation. A response that was screened out at collection, by comparison, has no example at all in the labeled collection.

The difference matters when reading the paper's description of the raw material as noisy. Some variations can make term counts harder to pool across comments even if they have little to do with abuse. Cleanup can reduce that variation. A punctuation mark or foreign word may also matter to how a person reads an individual remark. The experimental classifier receives the remaining material, so the results describe what can be learned within that representation. The authors use the same basic cleanup for the comparisons and introduce stemming as a separate change.

In the full reference condition, the retained forms go forward without the stemmer. If related Bangla forms have different endings, those forms can remain distinguishable in the features. This has consequences in short texts. When a particular form is absent, the feature for that form supplies no direct occurrence evidence even if a related form is present. The stemming condition makes some of that evidence share a feature. In both conditions the example remains a manually labeled comment.

How the authors vary the collection

The reference run uses the original distribution, with more non-abusive comments than abusive ones. The authors note that some classifiers may be sensitive to how frequently each category appears. Different proportions can influence the evidence a classifier accumulates for each label. The proportions also matter when interpreting overall accuracy. Each correctly classified test item counts toward that measure, so a more numerous category can have more influence if the imbalance carries into the test portion.

Random undersampling addresses the unequal corpus counts by keeping a randomly chosen subset of the larger class. The abusive category retains its 4880 examples. The non-abusive category is reduced to 4880, and the paper reports a balanced total of 9760. The retained labels stand as assigned. The change comes from which examples are available, including which ordinary uses of different terms the classifier will encounter. The removal procedure is random. Its stated criterion concerns the category of a comment, with no selection for the content of that individual comment.

The authors mention other ways of dealing with uneven categories, including drawing more examples from the smaller class, generating examples, and assigning different costs to errors. Their own design changes the collection before partitioning it. This choice is consequential. The proportion of labels is being altered at the same time as the collection becomes smaller. There are also fewer distinct non-abusive examples available for either partition. A test score under this design describes a classifier in the resulting corpus condition, including the effect of changing the material on which it is assessed.

The stemmed run comes from the full collection. The authors use a lightweight rule-based Bengali stemmer from the work they review. Inflection can change the ending of a word as its grammatical role changes. A rule-based stemmer tries to remove such material and return a common written form. In the paper's examples, inflected inputs associated with staying and service are shortened. The relevant event for the experiment is the substitution. Whatever string the rules return becomes the string from which the next stage builds its term features.

A successful grouping can make term evidence available across comments that use related forms. Consider the situation where a useful term occurs with different endings in the training examples and the test example. A shared stem allows those occurrences to contribute under the same feature name. The procedure can also change the evidence in an unintended way. If it cuts into a part of the word that carries meaning, the resulting fragment may have a different significance or very little recognizable meaning. This is the risk illustrated by the erroneous reductions that the authors discuss after presenting their scores.

Stemming changes more than how a feature is spelled. When forms are grouped, their occurrences within a comment contribute to the count for the same term. The set of comments containing that term can change as well. Since TF-IDF uses information at both levels, the new string and its new distribution together determine what the learner receives. The full and stemmed conditions start with the same collection of labeled texts. The paper gives a separate split description for each dataset and leaves the exact correspondence between the held-out comment identities unspecified.

From a term to a numerical feature

The common feature representation is TF-IDF, short for term frequency and inverse document frequency. The document in this experiment is an individual comment. Term frequency concerns how frequently a term appears in that comment. Inverse document frequency adjusts the term's influence based on how widely it occurs in the collection. The paper gives the principle in words. Frequent appearance across documents reduces a term's weight, so mere ubiquity across the collection confers less influence on the representation.

The point of using both parts is to distinguish importance within a text from commonness across texts. A form may recur in one comment and also be present across many discussions. The local count and the wider distribution then supply different information about the form. A form that is concentrated in a smaller set of comments can receive more influence as a feature, depending on the weighting convention. The classifier then learns how that feature relates to the manually assigned categories.

This distinction keeps a term weight separate from the significance of the term for detecting abuse. TF-IDF depends on occurrences. The class labels come into play when the supervised procedure learns which patterns of features support which decision. A topic word may have substantial weight even if its connection to abuse is incidental. Conversely, a term common enough to be downweighted can still carry evidence in the company of other terms. The representation determines the available inputs, and the learner determines how those inputs contribute to prediction.

Both changes to preparation reach this stage of the procedure. Undersampling changes the collection in which term occurrences are observed, so it can change how common a retained term appears. Stemming can join terms and change their distributions before weighting. As a consequence, using TF-IDF throughout the study keeps the general method of representation the same while leaving room for the representation itself to change with the data. A classifier compared across settings may be learning with a different vocabulary or a different distribution of feature values.

The paper specifies TF-IDF at this verbal level. The exact weighting equation, the treatment of term counts beyond the description of frequency, and any normalization of the resulting comment vectors remain unspecified. The paper also leaves open which n-gram range it used and at what point it fitted the vocabulary and document frequencies. These details govern how a particular comment becomes a numerical input. The method reported here identifies the representation family and the intended effect of the weights.

What the classifiers do with those features

The authors choose a range of algorithms that can take the weighted features as input. Multinomial Naïve Bayes, abbreviated MNB, gathers evidence for a label from the terms in the comment and from the relative prevalence of labels in its training examples. Its simplifying assumption lets it combine individual features as conditionally independent given a category. This is one way to make predictions when the complete wording of a comment is unlikely to recur. A change in which comments are retained can change the observed evidence for each class, including which terms appear under each label.

A support vector machine learns a boundary in the space of the features. The margin describes the separation around that boundary, with the nearby training examples helping to determine it. For a comment being classified, the weighted features place the example somewhere relative to the learned separation. The study reports scores for SVM as a classifier family. Details such as its kernel and settings for the tradeoff between fitting examples and controlling the boundary are left open.

Stochastic gradient descent, abbreviated SGD, is the name of an optimization procedure. It updates learned parameters using information from portions of the training examples as it tries to reduce a loss. In the tables, SGD names the classifier entry trained by this procedure. The name alone gives incomplete information about the resulting decision function, since that depends in part on the loss. The article's comparison uses the SGD entry as defined by the experiment and leaves the precise loss unspecified.

The ridge classifier restrains the size of fitted feature weights through regularization. That is one way to limit how much influence the learning procedure assigns to individual features when it fits the training data. The perceptron also learns feature weights and adjusts them in response to classification errors during training. The multilayer perceptron, abbreviated MLP, combines learned transformations in successive layers. It has its own row in the comparison. These methods use the same kind of evidence about terms while differing in how they fit and combine that evidence.

A decision tree works by dividing examples through successive tests on features until it arrives at a prediction. Random forest uses a collection of trees and combines their decisions. Comparing the two entries shows how those procedures performed with the paper's prepared comments. The outcome depends on how a tree or collection of trees can pick out useful patterns among the available weighted terms. The paper gives the classifier names and leaves the detailed configurations unspecified.

K-nearest neighbors, abbreviated k-NN, bases a decision on the labels of training examples close to the new comment in the feature representation. The letter k refers to how many neighbors are taken into account. The distance measure determines what makes a training comment close. The paper leaves both settings unspecified. This entry illustrates a different way a preprocessing change can reach the decision. If stemming changes the similarities between comments, the examples available to vote on a prediction can change even though the human labels stand.

Fitting the classifiers and testing their predictions

In the training description, the authors specify an 80:20 training-to-test division for each dataset. The larger portion supplies the examples used to fit the classifiers. The test portion supplies the predictions scored in the results. The authors apply the same set of named classifiers in every condition. They identify Anaconda as the software platform and Python 3 as the implementation language.

The design has both a within-condition and an across-condition comparison. Within a condition, the classifier changes while the stated data preparation remains common. Across conditions, the same named classifier appears with the original full collection, the undersampled collection, or the stemmed collection. Each reported result belongs to a particular pairing of preparation and learning procedure. The tables give aggregate scores for those pairings, which are the basis for the conclusions about rank and about changes in performance.

Experiments and results

Reading the four measures

The authors report accuracy, precision, recall, and F1 for the test portion in each condition. Accuracy asks what share of the test comments the classifier labeled correctly. The other measures can be understood by first considering a particular category. Precision starts from comments predicted to be in that category and asks how frequently the prediction is right. Recall starts from the comments labeled as belonging to the category and asks how many the classifier found. F1 combines precision and recall, with the lower measure constraining the combined score.

For the abusive category, the distinction has a practical interpretation. Incorrectly assigning the abuse label to an ordinary reply affects precision for that category. Assigning the non-abusive label to an abusive reply affects recall for it. A system can make either kind of error more often while obtaining the same overall accuracy as another system. The measures also depend on how class-specific outcomes are summarized. The paper publishes a single value per measure for each classifier and leaves the class orientation and averaging procedure unspecified. The precision, recall, and F1 figures below refer to the published columns.

There is no external benchmark in the comparison. The competing classifiers serve as reference points for one another within the same corpus condition. The full collection without stemming is also the reference for examining undersampling and stemming. A statement that an algorithm improves concerns its own reported scores under two preparations. A statement that it leads concerns its position relative to the other algorithms in a given condition. The two comparisons answer different questions, and both matter in interpreting the results.

The full collection establishes the highest scores

The leading full-data entry is SVM. It has a test accuracy of 0.88 and the same reported value for precision, recall, and F1. The abstract expresses its accuracy as 88%. SGD is the closest entry by accuracy and F1, with 0.87 for each, and 0.87 in the precision and recall columns as well. The ridge classifier scores 0.86 on all the reported measures. The MLP follows, with the corresponding values at 0.85. In this part of the comparison, the leading accuracy scores have the same ordering as the leading F1 scores.

Test accuracy of the leading classifiers on the full Bangla comment collection

The support vector machine leads, with the stochastic gradient descent entry closest to it.

Test accuracy of the leading classifiers on the full Bangla comment collectionSupport vector machine (this paper): 0.88Support vector machine (this paper)0.88Stochastic gradient descent: 0.87Stochastic gradient descent0.87Ridge classifier: 0.86Ridge classifier0.86Multilayer perceptron: 0.85Multilayer perceptron0.85
The numbers
System or settingaccuracy
Support vector machine (this paper)0.88
Stochastic gradient descent0.87
Ridge classifier0.86
Multilayer perceptron0.85

MNB reaches 0.83 test accuracy on the same collection. Its 0.85 precision matches the MLP's entry in that column, while MNB has 0.79 recall and 0.80 F1. The equal precision scores therefore occur beside different figures for the other measures. Reading across the row helps describe the performance of a classifier whose accuracy and F1 differ. In this condition, the generally strong MLP entry has the same value across its columns. MNB's row is more uneven.

The perceptron reports 0.80 test accuracy and 0.79 F1, with 0.79 precision and 0.80 recall. The decision tree has 0.73 accuracy, 0.76 precision, 0.72 recall, and 0.72 F1. These are reference results for the preparation changes. The perceptron's overall accuracy is higher than the tree's in this condition, and its F1 is also higher. The tree's precision exceeds its recall by the ordering of the displayed values, while the perceptron's precision is below its recall.

The lower-ranked random forest and k-NN entries change places depending on the measure. Random forest has 0.60 accuracy, compared with 0.55 for k-NN. The forest's F1 is 0.45, while k-NN reaches 0.51. Their reported precision values are 0.36 for the forest and 0.71 for k-NN, and their recall values are 0.60 and 0.55, respectively. These rows help explain why the paper presents several measures. A ranking by accuracy among the weaker classifiers can differ from a ranking by F1, even with the same collection and the same broad preparation.

The full-data scores also give a benchmark for judging the practical size of later changes without requiring a single ranking across all conditions. A classifier can gain under a new preparation and still be well below the best available entry under that preparation. Similarly, a high-scoring classifier can decline relative to its own baseline and still remain near the top. The balanced and stemmed results provide instances of both patterns.

A balanced collection changes the ranking below and at the top

With random undersampling, the authors report tied leaders. SVM and MNB reach 0.85 test accuracy, and each has 0.85 for precision, recall, and F1. Here the tie extends across the reported measures. It also represents different trajectories from the reference run. MNB improves upon its full-data accuracy of 0.83 and its full-data F1 of 0.80. SVM's balanced accuracy and F1 are below the 0.88 it obtained on each measure with the original collection.

The ridge classifier follows the tied leaders with 0.84 balanced test accuracy and 0.83 for precision, recall, and F1. The SGD entry has 0.83 on all the reported measures in the balanced condition. Both showed higher accuracy on the full collection. The perceptron has 0.80 across the balanced columns, preserving its full-data accuracy while showing a different F1 value, from 0.79 in the reference experiment to 0.80 here. The decision tree has 0.73 accuracy again, with 0.74 precision, 0.73 recall, and 0.72 F1. The tree's stable accuracy accompanies small changes in some of the other published columns.

Random forest provides the prominent gain among the lower-ranked entries. Its balanced accuracy is 0.72, following 0.60 on the full collection. Its precision reaches 0.74, recall reaches 0.72, and F1 reaches 0.71. Every one of those balanced entries is higher than the corresponding figure for the forest in the original condition. The change also moves the forest ahead of the MLP on balanced accuracy and F1. Its F1 nevertheless remains below those of the tied leaders and those of the higher-ranked ridge and SGD entries.

The MLP's balanced test accuracy is 0.68 and its F1 is 0.64, following a full-data run where both were 0.85. On the balanced test portion its precision is 0.78, with 0.68 recall. K-NN has 0.53 test accuracy and 0.46 F1. Its balanced precision is 0.63 and its recall is 0.55. The k-NN row has an unchanged recall value relative to the full-data comparison alongside lower accuracy, precision, and F1. The response to undersampling therefore varies both with the algorithm and with which score is examined.

Test F1 for selected classifiers on the balanced Bangla comment collection

Multinomial Naïve Bayes shares the lead with SVM, and random forest ranks ahead of the multilayer perceptron.

Test F1 for selected classifiers on the balanced Bangla comment collectionSupport vector machine (this paper): 0.85Support vector machine (this paper)0.85Multinomial Naïve Bayes: 0.85Multinomial Naïve Bayes0.85Random forest: 0.71Random forest0.71Multilayer perceptron: 0.64Multilayer perceptron0.64
The numbers
System or settingF1
Support vector machine (this paper)0.85
Multinomial Naïve Bayes0.85
Random forest0.71
Multilayer perceptron0.64

This experiment gives the most direct reading of relative performance when the classifiers are evaluated under the balanced preparation. Reading it against the reference scores requires care about what changed. The test portion comes from the undersampled collection, and that collection has different examples and category totals. Thus the improvement for MNB is an outcome of the entire balanced run. How much of that change would remain if MNB were tested on the same original comments after undersampled training is a separate question.

Stemming helps the neighbor-based classifier most clearly

The stemmed experiment returns to the full collection and changes how words are represented. SVM is the outright leader again, with 0.85 test accuracy and the same figure for its precision, recall, and F1. MLP and SGD reach 0.84 on every reported measure. Ridge has 0.84 accuracy, with 0.83 precision, recall, and F1. The cluster near the top shows that several alternatives produce close scores within this condition, even though the leading SVM score is below its value in the full-data reference run.

MNB has 0.81 test accuracy after stemming. Its precision is 0.82, recall is 0.80, and F1 is 0.79. Its recall entry is higher than its full-data recall of 0.79, while its accuracy and F1 are lower than in that run. The decision tree has 0.72 accuracy and 0.72 F1, with 0.75 precision and 0.72 recall. The perceptron again has 0.80 accuracy and 0.79 F1. Its precision of 0.79 and recall of 0.79 place the row close to the full-data row across the reported measures.

The random forest records 0.60 test accuracy after stemming and 0.45 F1, both matching its unstemmed results. Recall also stays at 0.60. Precision is listed at 0.76, compared with 0.36 in the full-data reference condition. That is a change in the paper's reported precision. As the calculation of the aggregate measure is unspecified, the row alone gives too little information to translate the change into an account of which comments were incorrectly flagged. The forest's accuracy and F1 show no corresponding movement.

K-NN reaches 0.62 accuracy after stemming, compared with 0.55 using the original word forms. Its F1 goes from 0.51 in the reference condition to 0.61 in the stemmed comparison. Recall reaches 0.62 from 0.55, while precision remains at 0.71. This is the clearest case where stemming gives a classifier an improvement on both accuracy and F1. It also changes the ordering at the bottom of the stemmed experiment. K-NN's 0.62 accuracy is above random forest's 0.60, though both have lower accuracy than the decision tree.

Test accuracy of selected classifiers on the stemmed Bangla comment collection

The support vector machine leads, while k-nearest neighbors remains below the leading group after stemming.

Test accuracy of selected classifiers on the stemmed Bangla comment collectionSupport vector machine (this paper): 0.85Support vector machine (this paper)0.85Stochastic gradient descent: 0.84Stochastic gradient descent0.84Multilayer perceptron: 0.84Multilayer perceptron0.84K-nearest neighbors: 0.62K-nearest neighbors0.62
The numbers
System or settingaccuracy
Support vector machine (this paper)0.85
Stochastic gradient descent0.84
Multilayer perceptron0.84
K-nearest neighbors0.62

The complete comparison singles out the original full-data SVM for its scores on the reported tests. Across preparations, SVM retains a leading position even when its accuracy decreases. MNB's strongest result occurs with undersampling, and k-NN's with stemming. These details matter to the authors' question about preparation. A choice that improves a particular entry can coexist with a higher maximum score under the original conditions. The observed leaderboard and the observed responses to preparation are both properties of the comparisons the authors ran.

What the ablations show

The scope of the preparation comparisons

The paper offers no component-by-component ablation of tokenization or feature weighting. Its closest controlled comparisons take the full collection as a reference and alter the category distribution or apply the stemmer. The same named classifiers and the same general feature method recur in the three experiments. This lets a reader see whether a change is associated with a similar response across several algorithms, even though multiple properties of the input can change when a preparation is applied.

One shared decision is the removal of punctuation and other material during tokenization. Every reported condition uses the general cleanup, so there is no score from which to estimate what those removals contribute. TF-IDF is similarly common. Its presence throughout the comparison allows scores for the classifiers to be compared under the chosen feature method. The design supplies no parallel run with term counts alone. The comparisons therefore say more about data preparation and the choice of learner than about which part of the common representation accounts for the final performance.

The preparation changes also address different questions. Undersampling selects which comments are available and alters the class totals. The stemming run takes the original collection and replaces written forms before weighting. There is no experiment with stemming on the balanced collection. Whether the effects of the two choices would reinforce each other or pull in different directions remains open. The paper's use of a common reference permits each change to be examined on its own terms.

What the responses to undersampling establish

MNB and random forest give the clearest evidence in favor of balancing within the study's procedure. MNB's improvement brings it into a tie for the highest balanced scores. Random forest improves across its reported measures and moves ahead of the MLP. These outcomes are compatible with the authors' concern that different class frequencies can affect those algorithms. They also establish two different senses in which the intervention helps. The forest's improvement is clear against its own baseline. MNB both improves on its baseline and attains a leading position in the new condition.

The MLP's decline and the smaller declines for some higher-ranked entries show that the observed benefit is selective. The larger non-abusive category can carry a wider variety of examples of everyday language. Removing comments may leave the learner with less evidence about how terms associated with abuse are also used without abuse. Equalizing the classes changes the relative frequency of the labels at the same time. The experiment combines these effects with whatever changes arise from testing on the resulting collection. The scores give the net outcome of that procedure for each classifier. They leave the contribution of each channel unresolved.

Stable accuracy is also informative within that scope. The decision tree and perceptron each show the same reported accuracy in the original and balanced conditions. That establishes stability of the displayed aggregate for those entries. It leaves open which particular comments were correctly classified. Different errors can still yield the same score, and some of the companion metrics vary. An explanation based on the details of where the classifiers changed their predictions would need predictions for the same comments under both conditions.

A comparison with a fixed test collection would answer a narrower question about learning from different label mixtures. It would hold the evaluated comments and their labels constant while changing what the classifier saw during fitting. The authors' design answers what happens when the whole collection is prepared in a different way before partitioning. The distinction matters most for broad claims about class balance. The observed trajectories belong to random removal of comments and testing under the resulting condition.

What the stemming errors explain

The authors report 83% accuracy for the Bengali stemmer and describe errors in the remaining 17% of cases. These figures are about the word transformation. The classifier scores are about labels for comments. The paper illustrates the difference with concrete outputs. It shows ভাই, meaning brother, shortened to ভা, and তার, glossed as his or her, shortened to ত. The authors regard such outputs as invalid forms. They are examples of a rule cutting material that the procedure ought to have preserved.

The risk for classification follows from when the stemmer is used. A truncated form reaches the term representation in place of the written word. Its weight is then determined by how often the resulting fragment appears locally and across the collection. If the shortened form is shared among inputs that should have stayed distinct, their frequencies contribute to the same feature. If a useful form yields a fragment that occurs only sporadically, evidence that would have been learned under the original word can become harder to use. The authors point to such damage to explain why stemming reduced the scores of several classifiers.

The examples establish the existence of visibly problematic outputs. The paper leaves their effect on individual decisions unresolved. It gives no mapping from a particular damaged term to a newly misclassified comment. It also leaves unclear how the quoted stemmer accuracy was assessed in relation to this corpus. A term may be counted as stemming correctly and still supply little information about abuse. Conversely, an imperfect shortening could merge forms in a way that helps a classifier on some examples. Accuracy of the transformation and accuracy of the downstream decision measure different things.

K-NN's gain gives a reason to consider where useful merging might have occurred. A classifier built around neighbors can respond directly to a shift in shared vocabulary. If related comments now share a weighted feature, some of them might end up closer in the representation. That is a plausible explanation for an improvement under stemming. The paper's evidence is the increase in k-NN's reported accuracy, recall, and F1. It does not trace the neighborhoods before and after the transformation, so the mechanism behind that gain remains an interpretation.

The results are therefore most precise when stated for the actual stemmer and classifiers. There is evidence of truncation errors and a tendency for the higher-scoring classifiers to give lower test accuracy after the procedure. There is also a clear gain for the neighbor-based entry. The comparison establishes that the same set of transformations can change the evidence in ways that benefit some decisions and impair others. It gives no direct measure of the performance attainable with a stemmer that preserves the words damaged by these rules.

Limitations

Limits the authors identify

The authors view the limited resources available for Bangla abuse detection as part of the reason for undertaking the study. They supply a corpus on which to compare algorithms, while describing the broader field as having less research and fewer resources than comparable work on English. They also identify variation in language and changes in the use of social platforms as obstacles to reliable detection. Their experiment addresses the comments they collected and prepared. They leave improvement of the approach as future work.

The most concrete technical limitation they discuss is the performance of the Bengali stemmer. They judge the rule-based procedure insufficiently accurate and illustrate the resulting word fragments. Their causal explanation is that such outputs harm feature quality, and through it classifier performance. The study supports that account with examples of faulty forms and with lower scores for several learners in the stemmed condition. It does not establish how much of any classifier's change comes from those bad outputs. Nor does the comparison cover the other rule-based, statistical, and corpus-based stemming approaches mentioned in the paper.

The authors suggest deep neural networks, convolutional neural networks, and long short-term memory networks as further directions. They do evaluate an MLP as one of the classifiers on their weighted term features. The architectures mentioned as future work have no results in the experiment. Their proposed study is open both to changing the learning procedure and to investigating whether other ways of processing Bangla text supply more useful evidence.

Limits visible in how the comments were chosen

The selected pages and channels were chosen in part because the authors expected to find abusive material in their discussions. The resulting class counts describe that collection. Estimating the prevalence of abusive Bangla comments across either platform would require a sampling procedure designed to represent that platform. Popular and controversial sources can supply abundant examples while concentrating the text around particular subjects and audiences. That concentration is part of what the training and test data have in common when they come from the same collection.

In such a corpus, some of the most informative terms might be associated with a subject of discussion. A topical term can be predictive if comments around a particular subject receive the abuse label more frequently. Such evidence can contribute to a correct decision in a test portion containing similar discussions. How well it would transfer to comments on another subject remains open. The authors report results for the collection as a whole and give no performance breakdown by platform, page, or channel. They also report no separate evaluation that holds entire sources out of training.

There is a temporal version of the same question. The authors identify the changing nature of social media as a challenge, while the tests use portions of the collected discussions. These results offer no estimate of how the classifiers would handle later terms or usages introduced after training. A term-based learner can exploit evidence where the relevant forms occur in the material it has seen. The test described in the paper gives no separate view of performance as the source vocabulary or style of interaction changes over time.

The filters narrow what counts as usable input. The classifiers operate on the retained Bangla terms, with other-language words and various nonword elements discarded. If an insult in a mixed-language reply depends on words removed by that policy, its most direct textual clue may disappear. Likewise, the procedure gives no independent feature to an emoji discarded in tokenization. The paper supplies no separate test of abuse conveyed through these elements. Its scores concern the comments that enter the experiment and the evidence that survives the cleanup.

The individual comment is also a narrower input than the discussion around it. Suppose a short reply refers to someone indirectly and its significance depends on the preceding message. The feature representation gives the classifier the terms from the reply. The paper does not describe adding the prior message, the addressee, or the sequence of replies as features. The test therefore cannot establish performance specifically on context-dependent remarks or on harassment whose evidence emerges across interactions.

Limits of the labels and measures

Manual labels are central to the result, but the paper gives little detail about how they were produced. The names of the two categories specify the output. The operational boundary between the categories remains unclear, as do the number of annotators, the extent of any independent labeling, and the way disagreements were handled. In a borderline case, understanding how the authors made the decision would help a reader understand what the learner was expected to reproduce. The test measures agreement with the labels in the collection, while consistency with another group of judgments remains untested.

The binary decision also compresses variation among abusive comments. An explicit insult can supply a readily identifiable term. A hostile reply phrased in otherwise ordinary vocabulary can present a different problem for term-based features. The paper has no separate reported score for such cases. Even within the source collection, the aggregate measures leave unanswered whether performance is broadly distributed across kinds of comment or concentrated on examples with recognizably abusive words.

The absence of a stated averaging convention for precision, recall, and F1 limits their operational interpretation. In practice, a reader may want to know how frequently the classifier misses labeled abuse and how frequently ordinary comments are assigned the abuse label. Those questions call for metrics tied explicitly to the abusive category, or counts of test predictions broken down by the human label. The published tables do not supply that breakdown. The displayed values support comparisons on the stated metrics, while the error rates of interest for a particular use remain unspecified.

Accuracy also depends on the mix of evaluated examples. If a classifier does better on one category, changing the share of that category can change the overall score even if its behavior within each category is similar. With undersampling, the change in the collection can affect both the learned decision and the mix of test examples. The balanced and full-data scores are measurements under their respective conditions. They leave open what would happen to the ordering if all fitted classifiers were evaluated on the same test comments with the same category prevalence.

Limits of the reported experimental setup

The training description states an 80:20 partition for each collection. The paper gives no partition identities, test class counts, or random seeds. It leaves unclear whether the same underlying comments were held back in the stemmed and original conditions. A matched partition would allow a more direct account of how replacing forms affected the predictions for those comments. With separate or unspecified partitions, differences in the ease of the test examples can contribute to the difference in aggregate scores.

There is a related question about the feature procedure. The vocabulary and inverse document frequencies depend on the comments used to estimate them. A procedure can fit these quantities on the training comments and carry them forward when representing the held-out comments. Computing them over the entire collection would let the held-out text affect those quantities. The paper identifies TF-IDF as the representation without specifying which fitting order produced the reported scores. That is a question for reproducibility, and the description gives insufficient evidence to resolve it.

Details of the classifiers are left at a similar level. Knowing that the entry is SVM does not identify its kernel or all of its fitting settings. The choice of distance and neighbor count would help explain the behavior of k-NN, particularly when stemming changes which comments share features. The loss would help specify the SGD classifier. These details matter for a reader trying to reproduce the numbers and for a reader trying to tell which aspect of the algorithm responds to a new preparation. The study gives the family names and reported behavior of the entries that the authors used.

The tables provide point scores without a distribution across repeated partitions or uncertainty intervals. On the full collection, SVM at 0.88 and SGD at 0.87 have a clear order in the reported accuracy column. The evidence does not quantify how frequently that order would recur on new partitions. Random undersampling adds a source of variation because another draw could retain a different set of non-abusive comments. The paper reports the result of the balanced preparation it evaluated and gives no run-to-run estimate for that procedure.

Finally, the best entry is selected from a comparison on the reported tests. The paper gives no further independent assessment of the selected configuration. It also gives no assessment of how using the classifier in moderation would affect harassment or the people exposed to it. The social concerns motivate the research. The observed outcome is performance against manually assigned labels, with the strongest reported accuracy and F1 belonging to SVM on the full collection without stemming.

What came after

No documented follow-up study is available to show how later researchers used this comparison. The paper itself proposes examining additional neural classifiers. Its experiments also leave open whether the leading setup transfers to entirely new discussion sources, and whether a different Bangla stemmer changes the relative results when the same comments are used for testing. These are prospective questions. The paper's contribution is the comparative evidence it reports for the original, undersampled, and stemmed versions of its collection.

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

@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}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/islam-2021-evolutionary-approach-comparative-analysis-detecting/