A network of online hate speech can now be mapped from the way one post echoes, inspires or sparks another. Researchers at the Norwegian University of Science and Technology (NTNU) in Gjøvik built a tool to help show how such messages move through digital spaces—and where prevention efforts may matter most.

The work comes as reported hate crimes in Norway have increased more than fivefold since 2012. About 40% of reported cases consist of hate speech. Skin color or ethnicity is the most common motive, followed by sexual orientation. Norway’s Police Security Service has also reported growing threats and harassment against politicians and public commentators.

The researchers say social media has changed the scale and speed of the problem. “The scale and speed of contemporary digital communication mean that hate speech can spread faster and reach more people than ever before,” said Ehtesham Hashmi, a doctoral candidate at NTNU in Gjøvik. He worked with NTNU professor Sule Yildirim Yayilgan, Western Norway Research Institute, police and Norwegian municipalities to develop the tool.

Rather than simply flagging individual users for punishment, the system is intended to help authorities see which online environments may need attention. Under Section 185 of Norway’s Penal Code, hate speech can be a crime. But Yayilgan said police and municipalities could also use the tool to direct prevention and awareness work toward places where it is likely to have the greatest effect.

The system links separate examples of hate speech into a visual network. That map can show where a statement began, how others picked it up and how related conversations changed over time. The researchers say spotting patterns early is important. Their latest paper, published in Machine Learning and Knowledge Extraction, cites Adama Dieng, the U.N. special adviser on the prevention of genocide, who warned that “big massacres always begin with small actions and language.”

Building a tool that can identify hateful language took years of research and refinement. Definitions differ between countries, and people may disagree about what is hateful. To find shared ground, the researchers focused on four areas: ethnicity, gender identity, religion and sexual orientation. These categories are central both in Norway and in the U.N.’s International Covenant on Civil and Political Rights, the researchers say.

When the tool finds a comment linked to one or more of those areas, it rates it on three levels of “toxicity,” meaning how potentially offensive, hateful or aggressive it is. A comment can meet several measures at once; one that meets none is marked neutral. The machine-learning system was trained on 14,000 sentences in Norwegian and English, gathered from platforms including Facebook, Reddit and Twitter. Social scientists at Western Norway Research Institute helped collect and label the material.

The researchers say the approach could be useful beyond Norway because it draws on categories recognized internationally. Its purpose is not to replace human judgment, but to give police and local governments a clearer picture of how harmful speech spreads—and a better chance to respond before it grows.