Deep Learning Based Misogynistic Bangla Text Identification from Social Media
Paper · 2023 · Sonam Jahan, Raqeebir Rab, Peom Dutta et al.
Summary
A comment can belittle women without using an obvious insult. It might present a restrictive social role as common sense, excuse harassment, or treat a woman’s appearance as the measure of her ability. The authors study how to detect such language in Bangla social media comments. They ask both whether a comment is misogynistic and which kind of misogyny it expresses. Earlier work discussed in the paper concentrated on other languages, and the authors had no Bangla dataset designed for these questions. They built one from comments on public posts on Facebook, Instagram, TikTok, and YouTube.
The authors collected approximately 4,000 raw examples, manually corrected spelling and mixed-language text, and assigned labels. They revised the labels after a survey and report an additional expert check. They adapted an earlier taxonomy into groups for stereotyping and objectification, dominance and derailment, and sexual harassment, threats, and disparagement. A separate label covered comments judged non-misogynistic. To increase the amount of data, they generated additional text using pretrained Bangla BERT systems, bringing the collection to 15 k examples. The resulting dataset supported a binary task and a more detailed multiclass task.
For text classification, the authors turned each comment into a numerical representation and trained recurrent neural networks to predict its label. They compared a basic recurrent neural network, or RNN, with a long short-term memory network, or LSTM, which has a dedicated mechanism for carrying information forward. With BanglaBertBase representations and the Adam optimizer, the LSTM achieved the strongest results in the experiment tables. Its test accuracy was 82.59 % on the binary task and 67.27 % on the multiclass task. The corresponding F1 scores were 81.17 % for the binary task and 66.91 % under macro averaging for the multiclass task, which gives each class equal weight.
The strongest LSTM configuration led on every tabulated measure, although the comparison changed with the text representation and optimizer. With BanglaBERT representations on the multiclass task, the listed RNN performed better than its LSTM counterpart. The conclusion also gives higher accuracy figures whose relationship to the tabulated results is unexplained. The tables provide the clearest account of what was measured on the named test splits. They establish performance for the authors’ curated and augmented corpus, with questions about performance on fresh, unedited social media comments still open.
Deep dive: Deep Learning Based Misogynistic Bangla Text Identification from Social Media
How a study of Bangla social media comments defined and detected misogyny, and how its recurrent classifiers performed on each task. · about 33 minutes to read
The problem and its context
Recognizing misogyny in a comment
The paper treats misogyny as hostility or prejudice directed at women that can take several forms in language. A comment may explicitly threaten someone or may express an assumption about how women ought to behave. Remarks that exclude women from an activity, reduce them to their appearance, or deflect responsibility for mistreatment can all be relevant to the task. These forms matter for detection because they offer different clues. An explicit insult contains words that may recur in other insults. A statement about a woman’s proper place may use everyday vocabulary whose significance depends on the claim the sentence makes.
The authors situate the work in the growth of social media use and in concern about hostility towards women online. Their introduction describes possible effects on the people targeted and on others who encounter hateful speech. The experiments address a narrower question within that setting. A comment is a piece of text to which a reader has assigned a category. The task is to predict that category. The paper motivates the work through the prospect of identifying harmful material on social platforms, while its evidence comes from evaluating predictions against labels.
The distinction between misogyny and general offensiveness determines what counts as a correct prediction. A comment can be rude without attacking women as a group or demeaning someone because she is a woman. Conversely, a comment can use restrained language while assigning women an inferior social role. A classifier that responds to general hostility could therefore succeed at some cases and miss the very distinctions that motivated the corpus. The authors’ decision to seek non-misogynistic comments that were also connected to women makes this boundary part of the task.
A second distinction arises after identifying a comment as misogynistic. The authors want to classify its form. A label for the kind of misogyny asks for more information than a label for its presence. A comment expressing a conventional stereotype and a comment defending abusive conduct can receive the same answer to the binary question while requiring different answers in the detailed task. The authors therefore needed both a source of Bangla examples and a set of categories that could be applied to them.
What earlier approaches supplied
In the paper’s account, much of the earlier research used Twitter data, with substantial attention given to English, Italian, and other European languages. Common methods combined document representations based on the words present with supervised classification. The paper discusses logistic regression, support vector machines, and naive Bayes among the approaches used. In these systems, training on labeled texts lets a classifier learn which features tend to occur with each predicted category.
The representations differed in what they counted or retained. A bag of words records the presence or frequency of terms while discarding their order. TF-IDF adjusts a term’s contribution using both its frequency in a text and how broadly it occurs in the collection. Character n-grams record short runs of neighboring characters, which let a classifier respond to recurring pieces of words. Lexicons supply a different source of information by identifying expressions considered relevant to the task. The paper cites English tweet classification by the ITT team as part of this line of work. Misogyny Detection and Classification in English Tweets
Earlier studies also distinguished the overall detection decision from questions about behavior and targets. The paper describes work by Frenda and colleagues that considered both identification and more detailed labeling in English and Italian. That work expanded a lexicon and applied a support vector classifier for each language. The distinction between deciding whether misogyny is present and identifying a particular form carries into the Bangla study. How to define the detailed categories for Bangla remained an open design choice for the authors.
The paper also discusses Ahluwalia and colleagues’ work on English tweets. That study used word-count features after tokenization, the process of dividing text into units for analysis, and examined conventional classifiers, deep learning, and combinations of predictors. In the Bangla paper’s review, this is an example of how earlier work varied the learning procedure while keeping the basic detection question fixed. Detecting Hate Speech Against Women in English Tweets
Other examples in the review help locate the problem within adjacent tasks. Alawneh and colleagues examined labels involving ogling, comments, and groping in records from a different source. That study involved harassment categories but asked a different classification question from the one defined for Bangla social media comments. Ou and Li combined a pretrained multilingual representation with a recurrent component for hate speech detection. The review also describes a comparison by Fersini and colleagues that included fine-tuning a pretrained BERT system, meaning that pretrained parameters were adapted to the target task. These studies explain the authors’ interest in learned text representations and recurrent classifiers. Their measurements come from other tasks and datasets.
The gap in Bangla
The authors describe a gap in task-specific Bangla resources while acknowledging existing research on related Bangla classification problems. Datta and colleagues studied aggression in English, Hindi, and Bangla. Their labels distinguished overt aggression, covert aggression, and its absence. Chakraborty and Seddiqui studied threatening and abusive language on Bengali social media. These efforts make it possible to ask how different forms of harmful language are expressed in Bangla. Their categories serve different purposes from those of a dataset specifically organized around hostility towards women.
The distinction has practical consequences for the labels. A system trained to flag threats and abuse might find language covered by the paper’s harassment and threat category. It might have less reason to recognize a polite-sounding assertion that women belong in a particular role. Conversely, an overtly aggressive comment about a topic unrelated to women could serve as an example of aggression without meeting the misogyny definition. Task-specific labels are needed to tell how the classifier behaves at these boundaries.
The paper responds by pairing a corpus construction effort with an experiment on learned representations and classifiers. The corpus defines what the automatic system is supposed to recognize. The architecture determines how a cleaned comment is mapped to a predicted label. Results on the corpus therefore reflect both the construction of the task and the behavior of the prediction pipeline. This connection matters when interpreting the gap between the binary and multiclass results, since the two tasks use different label inventories and different sets of examples.
The method, step by step
From public comments to labeled examples
The authors began with comments on public posts across Facebook, Instagram, TikTok, and YouTube. They describe 55 k comments as the pool from which their material primarily came and roughly 4,000 as the raw examples they collected. These figures refer to different stages. The larger figure concerns the source material, while the smaller figure describes the data selected for the study before synthetic expansion. The collection was directed toward comments that could illuminate attitudes about women. The authors sought material connected to women for the non-misogynistic class too, so that the presence of the topic would be less useful as a shortcut to the label.
The source comments included misspellings and mixtures of Bangla, English, and Banglish. Banglish in the paper’s examples includes Bangla written with Latin letters. The authors manually corrected the text. Their cleaning examples illustrate several operations at once. A mixed-script comment about rape is rendered with Bangla wording, alongside spelling corrections elsewhere in the line. Another example places a Romanized statement about women being for pleasure beside a Bangla-script rendering. The substantive views expressed in the comments are retained because they are what the labels are meant to describe.
The distinction between a raw and a cleaned comment matters to the rest of the pipeline. Alternative spellings or scripts can make expressions that a reader would recognize as similar appear quite different to a text processor. Bringing those renderings closer can help the later stages share information across examples. The reported pipeline consequently makes use of human decisions about what a comment means even before the classifier receives it. The classification experiment concerns text prepared through that cleaning process.
The team assigned labels manually and revisited them through several checks. The first was a recheck against definitions taken from Anzovino and colleagues. The authors also surveyed men and women of varying ages and revised the dataset in response to the survey. They describe a final check by a member of the research team at the Brain, Attention and Reality Lab. These activities belong to linguistic annotation, the process of attaching judgments or analyses to language examples. Here, the checks were used to revise the target judgments themselves before the automatic classifier was assessed against them.
From public comments to predicted misogyny labels
The steps in order.
How the categories divide the task
The starting taxonomy had seven categories, as described in the paper’s discussion of Anzovino and colleagues. The authors say that the forms are found in Bangla, although some definitions fit the material imperfectly. They combined categories after reviewing the comments. The detailed annotation section specifies three groups for misogynistic text and an additional class for non-misogynistic text. This grouping also explains the reported output sizes for the binary and multiclass classifiers.
Stereotyping and objectification cover comments that reduce women to rigid social roles, to judgments about appearance, or to preconceived limits on competence. The example about women belonging at home rather than on a bus illustrates how a restriction on women’s place in public life can be conveyed as a familiar judgment. A detector looking only for profanity could miss the relevant claim. In the annotation scheme, the stereotype concerns the role ascribed to women and the assumption that the role should constrain where they are seen.
Dominance and derailment cover expressions of male superiority, attempts to impose behavior on women, and language that shifts responsibility away from men. The paper associates dominance with efforts to recast what women say in terms that men would find acceptable or to defend abusive behavior toward women. Derailment concerns the deflection of accountability. The example for this group invokes women going out in connection with rape. Within the authors’ taxonomy, the example draws attention to the way a remark assigns responsibility, a feature that a detector based merely on the presence of a word for violence would miss.
The remaining group brings together sexual harassment, threats of violence, and discredit. The authors assign sexually insulting language, requests for sexual favors, and sexually explicit harassment to the first part of this group. Intimidation directed at controlling women physically falls under threats. Discredit includes abuse aimed at women without a wider purpose of the kinds described in the other groups. The example given uses appearance as the starting point for sexualized derogation. Its assigned category illustrates how the nature of the insult can be decisive even when the comment also invokes a generalization about women.
These definitions give readers a basis for understanding what the detailed classifier is being asked to distinguish. They also show why the group names alone are insufficient as decision rules. Appearance can be relevant to objectification and to sexualized insults. A reference to violence can be part of intimidation or can be used to shift responsibility. The context and function of the words matter to the distinction. The published categories make such distinctions at the level of the merged groups, so a correct prediction of the harassment group does not identify which of its constituent behaviors is present.
For the binary version, the output is the presence or absence of misogyny. For the multiclass version, the architecture lists 4 output classes, corresponding to the three detailed groups and the non-misogynistic class. The paper sometimes strings the component behaviors together when describing the multiclass task. Reading those strings alongside the annotation definitions and output dimensions resolves the intended grouping. The separate corpus counts show that the reported experiments use different collections for the two versions. The paper does not fully specify how membership in the multiclass collection was decided.
Expanding the corpus
After selection and annotation, the authors considered the amount of naturally collected text too small for the deep learning experiments they wanted to run. They used data augmentation, the generation of additional examples from existing text, and report a resulting collection of 15 k examples. The nominal total concerns the expanded corpus. The roughly 4,000 raw examples refer to collected material. The expansion supplies more text to process and more rows for the experiments, while the collected comments remain the source of observed social media language.
The augmentation procedure used BanglaBERT, Bangla BERT Base, and SahajBERT through Python libraries. The paper identifies an accompanying notebook for this step. Those same systems appear again when the authors describe how they represented the comments for the recurrent classifier. These are separate uses of pretrained systems. In augmentation, the output being sought is additional text. In the representation stage, an existing comment is the input and a vector of numerical features is the output. An expanded corpus could be kept fixed while its numerical representation changes, or the same representation could be used on corpora made with different augmentation procedures.
The paper gives the purpose, the resulting scale, and the names of the systems used to augment the text. It leaves important particulars unspecified in its prose. These include how proposed variants were accepted, whether generated comments received the same review as the source material, and how any relationship between a source and its variants was handled when the dataset was split. Those details affect the evaluation because a synthetic variant is useful as a labeled example only to the extent that it preserves the property assigned to it. In this task, a change that alters whom a remark targets or who is held responsible could change the correct label.
Preparing comments for the classifier
The architecture section describes preprocessing in addition to the earlier manual corrections. Part-of-speech tagging assigns grammatical categories to pieces of text. The paper gives Bangla examples of nouns, pronouns, interjections, prepositions, and conjunctions and explains that the tagger helps identify the lexical material available for analysis. It specifies the tagging step more clearly than it specifies what happens to each kind of tagged token. In particular, the description does not establish that all words in any of the example categories were deleted.
The authors also removed numerals, punctuation, and emoji. They treat those items as noise for their task and say that their removal improves performance. The rule makes the inputs more uniform, with the classifier relying on the text left after removal. Its consequences depend on how the discarded material was used in the source comments. A punctuation mark or emoji could affect how a reader interprets a remark, while irrelevant symbols could make similar comments look artificially different. The paper does not provide a separate numerical test of these possibilities.
These preprocessing choices specify what the encoder is allowed to see. The manual stage can change script and repair spelling. The automated stage can identify grammatical features and discard selected characters. By the time the comment reaches the encoder, the input is a prepared version of the original, and its representation is a representation of that version. This sequence is important when reading the reported figures. They measure the performance of the pipeline with those operations in place.
Representing a comment with BERT
A neural classifier needs numerical inputs. Word embeddings represent linguistic material as vectors, whose components can be used as features by a downstream classifier. The authors motivate their choice by contrasting counts with contextual representations. A frequency-based representation can register which words occur while losing information about how they are combined. Contextual encoding allows the representation to depend on surrounding words. This is relevant to the paper’s label definitions, where a claim about who causes or excuses an action can determine its category.
The paper refers to BERT as the foundation for generating contextualized representations and says that it transformed each text using the Sentence-BERT tooling. A sentence embedding is a single vector for a span of text, in this case a comment. Its components are learned features, so they need not correspond to explicit grammatical tags or to counts of individual words. The paper describes the resulting outputs in terms of the number of components for each sentence. BERT and Sentence-BERT
BanglaBERT produces 768 components per sentence, and the paper reports 27.5 GB of Bangla pretraining material collected from websites. Bangla BERT Base also gives 768 components per sentence. The authors describe its training sources as a Wikipedia dump and the Bengali part of OSCAR. The names appear under several spellings in the paper, with BanglaBert and BanglaBertBase distinguishing these two encoders in the results. They should be read as separate alternatives even when their output dimensions coincide. BanglaBERT
SahajBERT gives 1024 components per sentence. The paper describes it as collaboratively pretrained on Bengali using Wikipedia and OSCAR. Its objectives include masked language prediction, in which training calls for recovering hidden text, and sentence order prediction, which concerns the order of sentences. This description establishes differences among the encoders in both their reported training information and their output sizes. A comparison of their downstream results varies the complete representation, so the experiment cannot assign a score change to the dimension or to a particular pretraining source on its own.
Turning the representation into a prediction
The two recurrent architectures share the goal of choosing a class from the text representation. A basic recurrent neural network updates an internal state as it moves through a sequence. Each update can depend on the current input and on information carried by the preceding state. The authors choose recurrence because they regard order as important. They motivate the LSTM as a way to retain relevant information when an ordinary recurrent network has difficulty learning from material separated by several updates.
The difficulty they emphasize is the vanishing gradient. A gradient tells the training procedure how a change to a parameter would affect the loss. In a recurrent computation, the training signal can diminish as it travels backward through successive updates. An LSTM introduces a cell state and gates that regulate how information is retained, updated, and exposed. This gives it a dedicated mechanism for preserving information across updates. The paper offers that mechanism as the reason to try an LSTM. Its experiments measure prediction quality, without measuring gradient size or the amount of information carried by the cell.
After the recurrent stage, the architecture uses fully connected layers, also called linear layers. Each transforms a vector into another vector and may change its width. ReLU is an activation that passes positive inputs through and sets negative inputs to zero. Softmax converts a set of class scores into values that can be read as probabilities across the classes. The architecture description names both activations. It gives less detail about where softmax is applied relative to training and prediction, an issue that matters when reproducing the loss computation.
In the RNN parameter table, the recurrent output feeds a sequence of fully connected layers with widths 512, 256, 128, and 64 before the class output. The last mapping takes the width of 64 to the number of classes. The LSTM parameter table instead lists widths of 512 and 128 before its class output. Its recurrent weight dimensions include a factor of 4, consistent with the grouped computations in an LSTM cell. The architecture narrative describes five (5) linear layers more broadly. The separate tables make the reported configurations more concrete, and their difference means the comparison may vary the classifier head as well as the recurrent cell.
A common parameter table gives a vocabulary size of 15,000, an input size of 768, a hidden size of 768, and a recurrent layer count of 2. It lists 2 output classes for the binary task and 4 for the multiclass task. The embedding entries in the architecture tables are expressed in terms of vocabulary size and input width, while the representation discussion refers to one vector per sentence. The paper also mentions unidirectional and bidirectional recurrence, which refer to reading a sequence in one direction or in both. The result tables identify the recurrent family but do not specify a direction per row.
The networks were implemented in PyTorch. Training used cross-entropy loss, which penalizes assigning a low score to the labeled class, and class labels represented as indices. The reported learning rate was 0.001, the batch size was 10, and training lasted 10 epochs. The learning rate controls the scale of parameter updates, the batch size gives the number of examples used together for an update, and an epoch is a pass through the training material. The authors list Adam, RAdam, and NAdam as the optimizers they tried. An optimizer uses the gradient to determine how the parameters change.
How agreement is expressed
The paper’s displayed equation is for Cohen’s kappa, a measure used in the experiments to compare predicted labels with the reference labels while accounting for agreement expected by chance. The equation is printed as follows.
κ = (pₒ − pₑ) / (1 − pₒ)
Here κ denotes the reported agreement measure. The symbol pₒ is the observed proportion of matching labels, and pₑ is the expected proportion of matches under independent assignment given the labeling sides’ class frequencies. The subscripts distinguish observed and expected agreement. The minus sign in the numerator subtracts expected agreement from observed agreement. The slash indicates division, and the 1 in the denominator represents full agreement on the probability scale.
As printed, the denominator subtracts observed agreement from full agreement. If observed agreement reached full agreement, that denominator would be zero. The paper gives the kappa values calculated for its experiments without showing intermediate values of pₒ and pₑ or the evaluation implementation. The equation therefore raises an unresolved question about whether the printed denominator matches the computation behind the reported scores. The agreement scores can be reported as the authors give them, with that uncertainty attached to their exact calculation.
Experiments and results
What was held out for testing
The authors describe an 80 % training allocation and a 20 % testing allocation. The binary experiment used 11,894 training examples and 2,974 test examples. The multiclass experiment used 7,638 training examples and 1,910 test examples. These are the split counts for the tasks, whereas 15 k describes the approximate scale of the expanded collection. The different counts matter for interpretation. Moving from binary to multiclass prediction changes the question asked of the classifier and changes the pool used to evaluate it.
The result tables compare recurrent classifiers fed by different pretrained encoders and trained with different optimizers. For each encoder, the paper reports an RNN configuration and an LSTM configuration. The authors describe reforming the dataset and tuning parameters as part of their experimentation, and present the tables as their best results. The RNN is the direct comparator within the experiment. The support vector classifiers and frequency-based representations discussed in the related work were evaluated on other questions or corpora and do not supply a baseline score on these test splits.
Reading a row requires keeping together the encoder, recurrent network, and optimizer. For example, the leading binary row uses BanglaBertBase, LSTM, and Adam. Its RNN counterpart with the same encoder uses RAdam. They share the stated text representation, but differ in how the network is built and how its parameters are updated. The reported experiment therefore compares complete configurations, with closer comparisons possible in rows that share more of their components.
What the scores measure
Accuracy is the proportion of test examples whose predicted label matches the reference label. For binary classification, a correct assignment to either class contributes equally to that count. Accuracy gives a direct view of overall success, though its interpretation depends on which labels appear most often. A often occurring class can account for much of the score.
F1 reflects both precision and recall. For a particular class, precision asks how many of the predictions of that class were correct. Recall asks how many examples belonging to that class were found. A classifier that predicts a label readily may find more of its examples while also making more false assignments. A classifier that rarely predicts it may make few false assignments while missing many examples. F1 rewards a balance between the two. The binary table labels its column F1-Score without stating an averaging convention there.
For the multiclass task, the paper reports macro and weighted F1 separately. Macro F1 gives each class equal influence, regardless of its frequency. Weighted F1 gives more influence to classes with more reference examples. The distinction matters in the Bangla task because the value of finding a less common kind of misogyny can be obscured by a larger group. An average still pools several kinds of errors. Equal weighting brings each class into the score, while class-specific behavior requires looking at the individual outcomes.
The authors report Cohen’s kappa as another perspective on agreement. Its role is to consider how much matching may be expected from the label distributions themselves. They also examine confusion matrices, which place correct assignments on a diagonal and show the movement between labels in other cells. Accuracy summarizes the volume of correct outcomes. A confusion matrix can show whether errors concentrate in a particular direction, such as misogynistic material being assigned to the non-misogynistic class.
Binary detection
Recurrent configurations on the binary Bangla test split by accuracy
The LSTM with BanglaBertBase and Adam leads the reported binary configurations.
The numbers
| System or setting | accuracy % |
|---|---|
| BanglaBert RNN with RAdam | 77.17 |
| BanglaBert LSTM with NAdam | 77.37 |
| BanglaBertBase RNN with RAdam | 77.27 |
| BanglaBertBase LSTM with Adam (this paper) | 82.59 |
| SahajBert RNN with Adam | 78.21 |
| SahajBert LSTM with NAdam | 79.62 |
The BanglaBertBase LSTM with Adam led the binary table for accuracy, F1, and kappa. On the test split its F1 was 81.17 % and its kappa was 64.98 %. The strongest binary RNN by accuracy used SahajBert and Adam, with F1 of 76.15 % and kappa of 56.11 %. The binary confusion-matrix figure shows these two configurations. Results for that figure therefore compare different encoders as well as different recurrent networks, with Adam common to both.
Across the other rows, BanglaBert with RNN and RAdam had test F1 of 73.11 % and kappa of 53.59 %. The BanglaBert LSTM with NAdam had F1 of 74.88 % and kappa of 54.34 %. The RNN using BanglaBertBase with RAdam yielded F1 of 74.06 % and kappa of 53.97 %. For the SahajBert LSTM with NAdam, the corresponding scores were 76.77 % and 58.75 %. These figures put the strongest configuration in context. BanglaBertBase produces the leading scores with LSTM and Adam, while the RNN row using that same encoder trails the RNN row using SahajBert and Adam.
The paper reads the binary confusion matrices as having more weight on the correct diagonal than in the error cells. This agrees with the aggregate results and makes clear that both predictors still make mistakes. The authors’ description focuses on diagonal strength and the relative success of the configurations. It gives less information about how the binary errors are divided between comments that are wrongly flagged and comments that are wrongly allowed through.
Detailed classification
Recurrent configurations on the multiclass Bangla test split by accuracy
BanglaBertBase with LSTM and Adam leads, and the LSTM ordering varies by encoder.
The numbers
| System or setting | accuracy % |
|---|---|
| BanglaBert RNN with NAdam | 55.28 |
| BanglaBert LSTM with Adam | 54.71 |
| BanglaBertBase RNN with RAdam | 55.23 |
| BanglaBertBase LSTM with Adam (this paper) | 67.27 |
| SahajBert RNN with Adam | 54.97 |
| SahajBert LSTM with NAdam | 56.38 |
The same combination of BanglaBertBase, LSTM, and Adam led the multiclass test table. It achieved macro F1 of 66.91 %, weighted F1 of 67.11 %, and kappa of 56.26 %. The RNN using the same encoder with RAdam achieved macro F1 of 54.97 %, weighted F1 of 55.76 %, and kappa of 40.28 %. The multiclass confusion-matrix figure compares those two BanglaBertBase configurations. In this figure, the encoder is held fixed and the recurrent network and optimizer change.
For BanglaBert, the RNN with NAdam recorded test macro F1 of 54.34 %, weighted F1 of 54.82 %, and kappa of 40.27 %. The corresponding LSTM with Adam recorded macro F1 of 53.90 %, weighted F1 of 54.22 %, and kappa of 38.78 %. The ordering for accuracy in the chart also appears in these three measures. This is the encoder for which the listed multiclass RNN consistently leads the listed LSTM.
For SahajBert, the multiclass RNN with Adam had test macro F1 of 54.26 %, weighted F1 of 54.80 %, and kappa of 39.78 %. The LSTM with NAdam reached macro F1 of 55.82 %, weighted F1 of 55.74 %, and kappa of 41.76 %. In this comparison, the listed LSTM leads on the measures in the table. The strength of the best BanglaBertBase LSTM is consequently a result about that complete configuration. Across the other encoders, the reported LSTM advantage is smaller or reverses.
The authors describe the multiclass matrices as having stronger values on the correct diagonal than in other cells. Their use of a common encoder in this figure is helpful because the representations being passed to the recurrent systems come from the same named source. The figure and aggregate scores establish the ordering of the displayed configurations on this test split. They give limited detail in the accompanying discussion about which pairs of labels account for the errors, or whether the gain is concentrated in a particular kind of misogyny.
How to read the accuracy claims
The introductory discussion characterizes the recurrent comparison using 55 % for RNN accuracy and 67 % for LSTM accuracy. These are broadly in line with the scale of the multiclass experiment. The abstract phrases 67 % as an amount by which the LSTM outperforms the RNN. The multiclass table gives 67.27 % as the accuracy of the strongest LSTM configuration itself. The row-level results identify the relevant metric, classifier, encoder, and optimizer, so they supply a more precise basis for comparing the reported runs.
The conclusion states that the highest binary accuracy was 90 % and that the multiclass task achieved 94 % accuracy, both with LSTM. It gives neither a different split nor a different experimental condition that explains those figures. They also differ from the largest entries in the named test result tables, which are 82.59 % for binary prediction and 67.27 % for multiclass prediction. The paper leaves their relationship unresolved. The configurations and outcomes in the charts above come from the tables that accompany the stated training and test setup.
What the ablations show
What varies in the comparisons
The paper offers no formal component-removal ablation. Its analyses compare recurrent architectures, encoders, and optimizers across the authors’ corpus, and use confusion matrices to inspect the predictions. These comparisons answer a configuration-level question. They show which combinations worked best in the runs the authors chose to report. A single component’s contribution would require otherwise matched runs, which the tables seldom supply.
The basic comparison is between RNN and LSTM. The best LSTM configuration leads the best RNN configuration on the reported binary and multiclass measures. The paired rows let the reader hold the named encoder fixed. In the binary table, the listed LSTM leads its RNN counterpart for each encoder. In the multiclass table, the ordering depends on the encoder. The RNN leads with BanglaBert, and the LSTM leads with either of the other representations. This makes the LSTM a feature of the strongest runs without establishing that it is superior with every setting.
Even within a matched encoder, the optimizers generally differ between the listed RNN and LSTM. The paper’s architecture tables show a further possible difference in the fully connected layers. A gain in those paired rows may involve the recurrent cell, the dense layers, the training updates, or interactions among them. The paper’s motivation for LSTM invokes the ability to carry information across a sequence. The measurements are consistent with an advantage for the strongest LSTM pipeline, while the experiment does not isolate retention of information as the cause.
The multiclass confusion matrices tighten the comparison in one respect because they use BanglaBertBase on both sides. In the binary figure, the comparison moves from an RNN with SahajBert to an LSTM with BanglaBertBase. Its stronger diagonal can reflect the combined effect of changing the representation and the classifier. For multiclass prediction, encoder choice is fixed, but Adam and RAdam remain part of the respective configurations. The figures visualize where predictions fall for the selected runs, with the experimental controls determining how much can be inferred about the cause.
Text representation and optimization
BanglaBertBase supplies the leading LSTM representation for both tasks. A more qualified pattern appears among the basic recurrent networks. In binary prediction the strongest RNN by accuracy uses SahajBert. In multiclass prediction the strongest RNN by accuracy uses BanglaBert, while the strongest RNN macro F1 uses BanglaBertBase. The relative performance of encoders therefore depends on which downstream system and which measure are used. The result is most specific when phrased as a finding about BanglaBertBase with LSTM and Adam on this corpus.
The differences in pretraining and vector width provide possible sources of variation among the encoders. Two encoders provide the same reported number of components per sentence, yet their LSTM rows differ. SahajBERT provides a larger vector, yet its listed configurations do not win either table. These observations show why a downstream ranking cannot be inferred from width alone. Changes in the encoding also accompany changes in optimizer for many comparisons. Without a matched comparison at each optimizer, the contribution of the representation cannot be disentangled from how the classifier was trained.
The authors highlight Adam. It is used in the best LSTM row for each task and the strongest binary RNN row. It is also used in the multiclass BanglaBert LSTM row, which trails the BanglaBert RNN row trained with NAdam. The published evidence supports Adam as part of the best configurations found by this study. The results tables do not show the same complete setup trained with Adam, RAdam, and NAdam in parallel, which leaves the independent effect of changing the optimizer unmeasured.
This point also applies to choices made while tuning parameters and reforming the corpus. The authors say that these activities prompted changes to their classifier and data. The tables report selected outcomes instead of the sequence of comparisons that led to them. A reader can identify the settings associated with those outcomes, but cannot trace how much performance came from a particular corpus change, a particular parameter setting, or the order in which those choices were made.
What the aggregate measures reveal
The top multiclass configuration leads on both macro and weighted F1. Since macro F1 gives each class equal weight, the ordering persists when class frequency is prevented from setting the weights of the average. This supports the comparison at the level of the reported aggregate measures. A lead on macro F1 can still coexist with uneven class-specific results. The average does not identify whether the system is strong at recognizing stereotypes, detecting derailment, or separating harassment from other abuse.
The multiclass RNN rows demonstrate another reason to keep the metrics distinct. The BanglaBert RNN has the highest tabulated multiclass accuracy among RNNs, while the BanglaBertBase RNN has the highest macro F1 among them. A ranking by the proportion of correct predictions is therefore different from a ranking that balances precision and recall for each class and then weights the classes equally. The identity of the overall winning LSTM row is stable across these measures, but the choice of measure matters for the closer comparisons.
The experiments offer no paired scores for including and excluding augmentation, for processing the raw text directly versus manually normalizing it, or for retaining versus dropping punctuation and emoji. The authors say that character removal helps, but its magnitude is unknown from the results shown. The performance also does not establish how much of the useful information comes from BERT-derived features as opposed to sequence processing. All the listed recurrent configurations receive one of the pretrained representations, so the experiment compares which representation to use within that approach rather than the value of using one at all.
Limitations
Limits the authors identify
The authors say that the collection is too small for their deep learning approach to reach its best performance. This concern motivates their use of synthetic expansion and their intention to gather more data. The expanded corpus is larger than the manually collected material because it includes generated text. The number of independently observed comments is therefore a separate constraint from the number of examples available to run through training. As the authors describe it, the difficulty of locating Bangla misogyny examples was part of the reason for augmenting the data in the first place.
The paper also acknowledges that some category definitions from earlier work fit Bangla material imperfectly. Its response is to merge categories, which resolves some distinctions at the class-design stage. A consequence is that the predictions have the resolution of the grouped labels. A classifier output associated with the harassment group does not specify whether the text contains a violent threat, sexual harassment, or another form of discredit. The merged categories make the task more tractable as defined while limiting what their outputs can say about each original behavior.
The conclusion describes a browser add-on and deployment as future work. The reported experiments establish how predictions matched annotated examples on offline splits. The paper reports no field trial of the add-on, no measurements from use in a browser, and no user study showing how people responded to the predictions. Those outcomes therefore remain outside the empirical scope of the study, even though moderation and user protection motivate it.
Limits visible in the data setup
The source material is drawn from selected public posts and comments, with a deliberate interest in material about women. That makes it suited to studying distinctions within the authors’ task. The paper gives no sampling basis for estimating the prevalence of misogyny across the named platforms or Bangla social media as a whole. Its non-misogynistic examples were also deliberately chosen to be related to women where possible. Both choices affect which distinctions a classifier encounters and how frequently the different labels appear.
Aggregate results over the corpus also leave generalization across platforms open. The authors sourced comments from several platforms, but the named test results are for the binary and multiclass corpora as a whole. There is no reported comparison for training on some platforms and testing on a separate one. The paper also does not specify whether posts or conversation threads were kept together when assigning comments to splits. These details matter if part of the apparent predictive signal comes from expressions, topics, or discussions that recur within a source.
Manual normalization is another part of the evaluation boundary. The paper shows that humans corrected spellings and handled mixed-language examples. The results cannot establish the performance that would be obtained when comments are passed directly from a feed without the same preparation. They also give limited information about difficult language whose interpretation depends on a preceding comment or on the public post it responds to. The classifier’s documented input is the comment representation, while some of the judgments needed to assign a label may depend on information a reader would infer from a wider exchange.
Survey-based revision and the final review add scrutiny to the labels. The procedure is described at the level of its stages. The paper gives less detail about which items individual respondents saw, how disagreements were resolved, or how consistently people applied the merged definitions. The kappa results in the experiments compare the classifiers’ outputs with the reference labels. They do not supply an estimate of independent human agreement on the categories. That distinction matters for comments whose role can be read as stereotyping, discredit, or an attempt to deflect responsibility.
The synthetic portion of the corpus introduces a separate question about the split. The paper does not say whether augmentation occurred after holding out the test comments or whether variants of an original were assigned together. If closely related examples appeared on both sides, the test could reward recognizing a familiar wording pattern more than identifying new comments. The paper does not establish that such overlap occurred. It leaves the independence of source comments and their generated variants across the splits unverified.
The binary and multiclass collections also differ in size, and the paper does not fully explain the relationship between their rows. One might expect finer classification to pose a harder prediction problem, especially when behaviors overlap. The observed accuracy differences compare both the label inventories and the associated collections. The setup therefore leaves open how much of the change would remain if the same source comments were used for both tasks and only the labels changed.
Limits visible in the architecture and evaluation
The paper leaves several details open that would matter in reproducing the recurrent classifiers. It describes vectors for whole sentences, while the architecture tables also use vocabulary and sequence-oriented dimensions. It does not clearly say what constitutes a recurrent timestep when a comment is represented by a single sentence vector. It also reports 1024 components for SahajBERT alongside a common input width of 768, without specifying how that difference is handled. The available shapes do not determine whether the architecture was resized, the representation transformed, or another arrangement used.
The account of the fully connected layers, recurrent direction, and softmax placement likewise leaves choices unresolved. The RNN and LSTM tables show different layer sequences, whereas the general description treats the architectures as similar and refers to five (5) linear layers. Unidirectional and bidirectional versions are named without an assignment to the experiment rows. The use of cross-entropy and softmax is described without enough detail to locate softmax relative to the loss. These points concern the precise computations that would be needed to reproduce the scores and the degree to which the architecture comparison isolates a recurrent cell.
The paper reports its strongest settings from the experiments. It does not give variability across repeated training runs, uncertainty intervals, or a separate validation split in the experimental description. The scores can be read as the observed performance of the stated configurations on the named splits. Especially for close rankings, the report leaves open whether the same ordering would recur under another training run or test sample. Likewise, the absence of a majority-label or a conventional word-feature baseline on these splits limits conclusions about the value of the recurrent systems relative to a simpler predictor.
The inconsistent headline accuracy figures and the printed kappa equation add uncertainty about how some reported measures should be interpreted. The result tables connect their scores to specific task splits and settings. The conclusion’s higher figures have no corresponding conditions, and the paper provides no way to reconcile them. Kappa is tabulated for every row, but the denominator shown in the equation and the absence of intermediate agreement quantities leave the exact implementation uncertain. The tabulated accuracy and F1 results still describe how the selected configurations compared in the reported experiment.
What came after
The later citing work, BanHADEX, addresses explainable hate speech detection in Bangla using human-annotated explanations. It continues work on labeled Bangla data for harmful-language detection and brings a further question into view. A class label records a judgment about the text. An explanation supplies a human account of what supports that judgment. In the misogyny study, human review helps establish which group a comment belongs to. In BanHADEX, human-annotated explanations are part of the stated approach to detection.
This is a connection at the level of the research problem and the use of human judgments. The citation establishes that BanHADEX engages with the earlier work. Its title identifies the focus on explanations and the broader task of detecting hate speech in Bangla. The documented connection leaves corpus reuse, transfer of the misogyny taxonomy, and adoption of the recurrent classifier unspecified.
The distinction between labels and explanations is especially relevant to the kinds of comments discussed in the earlier paper. A label can indicate that a remark fits the dominance and derailment group. An explanation could identify the feature of the remark that makes deflection of responsibility relevant to that judgment. The earlier paper’s annotation examples show why readers might want such evidence. BanHADEX places human annotation of explanations at the center of its stated task, extending the question from which label to assign to what supports a detection decision.
Cite
Cite as Sonam Jahan, Raqeebir Rab, Peom Dutta, Hossain Muhammad Mahdi Hassan Khan, Muhammad Shahariar Karim Badhon, Sumaiya Binte Hassan and Ashikur Rahman. 2023. Deep Learning Based Misogynistic Bangla Text Identification from Social Media. Computing and Informatics.
@inproceedings{jahan2023deep,
title = {{Deep Learning Based Misogynistic Bangla Text Identification from Social Media}},
author = {Sonam Jahan, Raqeebir Rab, Peom Dutta, Hossain Muhammad Mahdi Hassan Khan, Muhammad Shahariar Karim Badhon, Sumaiya Binte Hassan and Ashikur Rahman},
booktitle = {Computing and Informatics},
year = {2023},
doi = {10.31577/cai\_2023\_4\_993},
url = {https://doi.org/10.31577/cai_2023_4_993}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/jahan-2023-deep-learning-based-misogynistic-bangla/