Objective

Online courses depend heavily on written materials such as textbooks, lesson plans and course excerpts. Some of that text can contain ethnic bias, meaning wording that favors one group or presents others unfairly. The authors explain that this kind of bias can harm students, for example by raising anxiety and lowering motivation and performance. It is also hard to find: bias is partly subjective, shaped by culture, and checking by hand takes a lot of time.

The authors work in learning analytics (LA), the field that uses data to understand and improve learning. They note that LA has mostly looked at fairness in prediction models, not at bias inside the learning materials themselves. Their idea is to use machine learning (ML), where computers learn patterns from labeled examples, to help human reviewers find passages that may be biased, while people keep the final say.

The study asked two questions:

  1. Which features of a text might help identify ethnic bias in online learning materials?
  2. Which classification approaches (ML models that sort text into groups) might suit the job of spotting ethnic bias?

"Perceived bias" matters here: the labels come from how students from different ethnic backgrounds rated the sentences, not from an official measure of bias.

Methods

This was a data-analysis study that built and tested ML models. It reused a dataset from an earlier mixed-methods study, so no new participants were recruited for this paper.

The data. The dataset has 345 sentences taken from open educational resources (openly available online materials such as lessons, activities and courses). The sentences were rated by 193 higher education students from the UK and US who described themselves as Asian, Black, mixed or white. Each student saw a sentence in its wider context and judged whether it was biased toward a named ethnic group. Ratings were counted as biased, not biased or undecided. The authors turned them into a bias score and then a yes/no label: a sentence counted as biased if at least one of two groups (underrepresented or majority) leaned toward calling it biased. That left 75 biased and 270 not biased sentences, an uneven split.

Features. The team measured five kinds of text clues: psycholinguistic markers (such as aggressiveness and self-reference), linguistic abstraction (such as ratios of adjectives and verbs and sentence length), language valence (positive or negative tone, using a tool called VADER), mentions of ethnic groups (from a list of over 1,000 terms), and context (school subject and type of material). They computed these for each sentence and its surrounding text, then kept only features significantly related to the bias score (p below 0.05, with a correction for multiple tests).

Models. They tried logistic regression, decision tree, naive Bayes, support vector machine (SVM), K-nearest neighbors, random forest (RF) and extreme gradient boosting (XGB), plus stacks that combine two to seven models (120 combinations).

Testing. They kept 80 percent of the data for training and 20 percent as an unseen test set, balanced the classes by creating synthetic examples of the smaller class (SMOTE), used five-fold cross-validation, and tuned settings by random search. The main score was F1, which blends precision and recall. They also ran 10,000 bootstrap resamples to compare models.

Key Findings

Overall, a few text features were weakly to modestly related to perceived bias, and several models could tell biased from not biased sentences at a moderate level.

Features linked to perceived bias

  • The links were small. For example, mentions of the target group being in the ethnic majority were negatively related to the bias score (r = −0.173, p = 0.001) and arts-and-humanities content was negatively related (r = −0.159, p = 0.003). The verb ratio and aggressiveness were positively related (r = 0.193).
  • Features from the surrounding text mattered too, such as self-reference in the excerpt (r = −0.158, p = 0.003).
  • The paper says social sciences content was linked to perceived bias, and explains this as likely due to subjects that discuss ethnicity directly, not as proof that social sciences produce bias.
  • A second correlation method gave mostly the same picture, with four of 17 features not overlapping.

How the models did

  • During tuning, the best of 120 stacks (logistic regression, SVM, naive Bayes, K-nearest neighbors and XGB) reached an F1-score of 0.88, with SVM second at 0.86.
  • On the unseen test set, SVM and the stack both reached 0.75 accuracy. F1 was 0.71 for SVM and 0.69 for the stack. RF scored 0.70 and XGB 0.69.
  • Logistic regression did worse, with 0.58 accuracy.
  • Naive Bayes had the best precision on the test set (0.75), meaning that when it flagged a sentence it was more often right, but it missed many biased sentences (recall 0.49, accuracy 0.49).

Other results

  • The naive Bayes model could therefore be useful when a false alarm is costly but is a poor choice when the goal is to catch every biased sentence.
  • Scores during tuning (0.88 and 0.86) were higher than on the unseen test set (0.69 to 0.71), which is a reminder that fresh data usually gives lower numbers.
  • The selected features came from several of the five categories, including features computed from the surrounding text and not only from the single sentence.

Comparing models more fairly

  • The bootstrap analysis showed RF and the stack as the most consistent. RF was clearly better in accuracy than logistic regression, K-nearest neighbors and decision tree.
  • The authors say many differences should be read as tendencies, not firm proof of one model being best.

Implications

The authors suggest these tools could help people review learning content, not replace them.

Educators and content reviewers

  • Models could produce bias scores, flagged sentences or ranked lists of materials, so reviewers can look first at the riskiest items and see which subjects or resource types get flagged often.
  • The authors say RF suits pre-screening where balanced performance matters, the stack suits cases that value both precision and recall, and naive Bayes suits cases where false alarms are costly, such as checking flagged content from new datasets.
  • They say educators should keep reviewing content in each subject for fair and inclusive representation.

Researchers and tool builders

  • The authors share their extended labeled dataset and code to support fairer AI tools and offer this work as a baseline for more inclusive learning analytics.
  • They note that analyzing the surrounding text, not only single sentences, matters, since context shapes how bias is seen.

Our reading (not the authors' recommendation): with F1 near 0.70 and a naive Bayes model that misses about half of biased sentences, a reviewer should treat any score as a prompt to look, never as a verdict on a text.

Our reading (not the authors' recommendation): since the labels came from US and UK students, anyone using this in another country would need to check how local readers see the same sentences before trusting the output.

Limitations

The authors name several limits. The data came mostly from text excerpts rated by higher education students in the US and UK, so results may not carry over to other cultures, languages or schools. The labels were simply biased or not biased, which hides degrees and types of bias. The models rely on features chosen in advance, and the authors suggest deep learning or large language models might capture hidden or context-based bias better, though they would need more data and careful checks. The study looked only at text, while bias can also sit in images, videos and other media.

The paper does not mention, but the dataset is small, with 345 sentences and only 75 labeled biased, so a test set drawn from it is very small and scores could change a lot with a different split.

The paper does not mention, but because the labels were based on what students perceived, the models learn to predict perception, which varies by person, and not an agreed measure of bias.

The paper does not mention, but the sentences were screened using a list of ethnic keywords, so the models have not been tested on materials that contain bias without those words.

The paper also says many bootstrap differences came with tiny p-values because of the huge number of resamples, so those results are indicative only.

Future Directions

The authors point to several next steps:

  • Collect a larger and more varied dataset, with ratings from more countries, cultures and kinds of learning materials, so models work in other settings.
  • Move beyond a yes/no label, for example by ranking how strong a bias is or by identifying different types of bias.
  • Test deep learning and large language models, with enough data and careful checks to avoid copying biases from their own training data.
  • Add explanation methods for ensemble models, such as feature importance and SHAP, so reviewers can see why a text was flagged.
  • Study bias in images, videos and other multimedia, not only text.

An open question the study leaves is how well any of these tools help real reviewers in daily work, since the paper tests models on labeled data and not in a review workflow.

The bottom line: This study shows that simple machine-learning models can pick up some signs of perceived ethnic bias in learning texts, with test scores around 0.70 on F1 and the most steady results from random forest and stacked models. Evidence is early: a small dataset of 345 sentences, ratings from students in the US and UK, and a yes/no label. The practical use the authors point to is triage, helping reviewers decide which materials to read first, while people make the judgment. Anyone considering such a tool should check it on their own materials and audience.