Chinese search engine giant Baidu has developed a machine-learning algorithm that predicts whether the crowds are likely to form at certain locations in two hours, which could be used to prevent stampedes.
The algorithm uses data from Baidu's map app, said a research report published by Baidu's Big Data Lab on Tuesday, studying the number of map queries and the number of users in an area.
Its map app accounts for over 70 per cent of China's mapping services market, the company's user statistics show. Many Chinese users often search for an ideal travel route using Baidu Maps.
The lab began to concentrate on how to predict crowds in certain areas following the Shanghai stampede on New Year's Eve in Dec 2014, where 36 people were killed during celebrations on the Bund riverfront, according to Wu Haishan, co-author of the report.
Using the map data, they found a way to determine the numbers in real time and trigger warnings 30 minutes to two hours ahead of time if unusually large crowds are expected to gather. This occurs when the number of queries for a specific location crosses a set threshold. Machine learning is applied so that the algorithm can learn from search queries and better predict future crowds.
Wu said that the algorithm could be used by local governments, authorities and even venue operators to monitor crowds. It may eventually provide the function as a public service feature on Baidu Maps, according to Wu.
If implemented, the feature would allow users to see what the crowds are like in various locations using the app.