London Daily

Focus on the big picture.
Saturday, Mar 14, 2026

How A.I. Helped Improve Crowd Counting in Hong Kong Protests

How A.I. Helped Improve Crowd Counting in Hong Kong Protests

Crowd estimates for Hong Kong’s large pro-democracy protests have been a point of contention for years. The organizers and the police often release vastly divergent estimates. This year’s annual pro-democracy protest on Monday, July 1, was no different. Organizers announced 550,000 people attended; the police said 190,000 people were there at the peak.

But for the first time in the march’s history, a group of researchers combined artificial intelligence and manual counting techniques to estimate the size of the crowd, concluding that 265,000 people marched.

The high density of the crowd and the moving nature of these protests make estimating the turnout very challenging. For more than a decade, groups have stationed teams along the route and manually counted the rate of people passing through to derive the total number of participants. Though the use of A.I. does not make the calculation definitive, the technology helps produce a more precise estimate because it uses computers to try to count every person.

Since 2003, Paul Yip, a social sciences professor at Hong Kong University, has been producing a count of the size of protests held annually on July 1, the anniversary of Hong Kong’s 1997 handover from Britain to China. With the hopes of creating a more robust estimate this year, Mr. Yip teamed up with Edwin Chow from Texas State University and Raymond Wong from C&R Wise AI, a local technology company, to use artificial intelligence to count the crowd at the march.


How A.I. Can Be Used to Count Crowds


Using open source software, The New York Times developed a computer model to illustrate how artificial intelligence could be used to recognize people and objects moving within a video.

Analyzing a short video clip recorded on Monday, The Times’s model tried to detect people based on color and shape, and then tracked the figures as they moved across the screen. This method helps avoid double counting because the crowd generally flowed in one direction.

Accurately detecting and tracking a moving object in such a high-density condition is very difficult. Overlapping of people in the crowd and obstructions like umbrellas, protest signs and large backpacks can often confuse the A.I. system.

On the day of the protest, Mr. Yip and the A.I. team used technology that is much more advanced. They spent weeks training their program to improve its accuracy in analyzing crowd imagery.

How A.I. Was Used to Count the July 1 Protest

On Monday, the A.I. team attached seven iPads to two major footbridges along the march route. Volunteers doing manual counts were also stationed next to the cameras, to help verify the computer count.

The team’s software ran multiple models with different parameters to track people in the crowd. People could be counted when they crossed a so-called counting line within the frame of the video. Throughout the day, the team monitored the results and adapted to changing variables like the density of people, the speed of flow and different lighting conditions.

“It’s all based on visual cues, such as the brightness value, color, shape, geometry of the pixels, all tied together,” said Mr. Wong, explaining how their system distinguished human figures from objects like umbrellas.

The team began exploring the possibility of doing a count with artificial intelligence in June, when protests in Hong Kong were gaining momentum. The newspaper Ming Pao and Cable News, both based in Hong Kong, provided additional support to the team.

“What we deserve is a more accurate, more precise, and more verifiable number,” said Mr. Yip.

Ahead of the demonstration on July 1, Mr. Yip and the A.I. team tested their software at other marches and crowded places to train and fine-tune the A.I. model developed by Mr. Wong, and to test out the best angles to shoot from. They did a trial run on June 16, another day of big protest in Hong Kong, when hundreds of thousands of people marched along the same route from Victoria Park to the government headquarters.

These trials helped them prepare for issues like obstruction and overlapping bodies in the crowd and gave them ideas on how to do a comprehensive count on July 1. For example, the team decided to train their system to detect umbrellas because they are common in Hong Kong protests.

Mr. Wong also rewrote the program to run on iPads rather than industrial computers, in order to scale up the operation. The team was then able to set up the devices at more locations. They also had several spares ready to be used in case there were significant numbers of people spilling over onto nearby streets, as happened on June 16.

Newsletter

Related Articles

0:00
0:00
Close
Middle East War Highlights Strategic Importance of Strong UK–Ireland Cooperation
Weak Growth Signals UK Economy Was Faltering Even Before Middle East Energy Shock
Marks & Spencer Tops UK Fashion Retail Rankings as Most Considered Brand
United States Launches Trade Investigation Into Allies Over Forced Labour Practices
United States Launches Trade Investigation Into Allies Over Forced Labour Practices
Russia Accuses Britain Over Storm Shadow Strike as London Reaffirms Ukraine’s Right to Self-Defence
Russia Accuses Britain Over Storm Shadow Strike as London Reaffirms Ukraine’s Right to Self-Defence
Royal Navy to Acquire Twenty Uncrewed Surface Vessels for Autonomous Warfare Testing
Russia Summons British and French Envoys After Ukrainian Storm Shadow Strike on Strategic Facility
Starmer Confirms Britain Will Maintain Sanctions on Russia Despite U.S. Policy Shift
UK Moves to Refine AI Definition in Investment Security Reform
UK Economy Stalls in January as Growth Unexpectedly Falls to Zero
Asian Energy Security Tested as Strait of Hormuz Disruption Threatens Oil Supplies
Iran Sets Three Conditions for Ending Regional War as Diplomatic Efforts Intensify
Tesla Secures Approval to Supply Electricity Directly to Homes Across Britain
Prince William Delivers Tribute to Australia’s Naval Alliance Amid Renewed Royal Spotlight on the Country
UK Foreign Secretary Travels to Saudi Arabia to Reinforce Support for Regional Allies
Putin’s ‘Hidden Hand’ May Be Assisting Iran in Conflict With Trump, UK Defence Secretary Warns
UK Sets April Deadline for Tech Platforms to Strengthen Online Protections for Children
Elon Musk Moves Into Britain’s Energy Market as Tesla Wins Licence to Supply Power
UK Watchdog Warns Fuel Retailers Against Profiteering Amid Iran War Price Surge
Report Claims Iran Used UK Charity Network to Expand Influence
United States and United Kingdom Establish Joint Standards for Counter-Drone Technology
Iran May Be Laying Naval Mines in Strait of Hormuz, UK Warns Amid Escalating Gulf Tensions
US Deploys Bunker-Buster Bombs to UK Airbase as Iran Conflict Intensifies
British Troops in Iraq Intercept Iranian Drones Targeting Coalition Base
Release of Mandelson Files Raises Tensions as UK Seeks Stable Relations With Donald Trump
UK Documents Reveal Starmer Was Warned About Mandelson’s Epstein Links Before Ambassador Appointment
Nearly Five Hundred UK Mortgage Deals Withdrawn in Two Days as Market Volatility Forces Lenders to Reprice
Three Cargo Ships Hit Near Iran as Attacks Spread to Strategic Strait of Hormuz
Why British Police Repeatedly Declined to Investigate Jeffrey Epstein’s UK Links
UK Parliament Ends Hereditary Seats in House of Lords, Closing Chapter on Centuries of Aristocratic Lawmaking
EU and UK Urge Israel to Act Against Rising West Bank Settler Violence Amid Regional Tensions
US Senator John Kennedy Says Keir Starmer Should Not Be Trusted for Military Advice Amid Iran War Debate
UK High Court Rejects Attempt to Revive Terrorism Charge Against Kneecap Rapper
Revolut Secures Full UK Banking Licence After Multi-Year Regulatory Wait
Kentucky’s Bench Boost Powers Wildcats Past LSU in SEC Tournament Opener
British Couple Die After Being Pulled From Water at Australian Beach During Family Visit
Global Energy Agency Announces Record Release of 400 Million Barrels to Stabilize Oil Markets Amid Hormuz Disruption
British Airways Suspends UK Repatriation Flights as Middle East Travel Disruption Deepens
US Forces Prepare Ordnance at RAF Fairford as Strategic Bombers Deploy for Middle East Operations
Nigel Farage Faces Criticism After Saying Britain Should Stay Out of Iran War
Landmark UK Trial Begins Over Sony’s PlayStation Store Pricing
UK High Court Rejects Bid to Challenge Britain’s Chagos Islands Agreement With Mauritius
Finnish Duo Triumphs in England’s Annual Wife-Carrying Race, Winning a Barrel of Ale
How U.S. and UK National Security Strategies Are Reshaping the Global Business Landscape
Green Party Gains Momentum as Labour Shifts Toward the Political Centre
Royal Navy Destroyer HMS Dragon Sets Sail for Eastern Mediterranean as Regional Tensions Rise
UK Homebuilder Persimmon Warns Iran Conflict Could Dent Property Buyer Confidence
Roman Abramovich Signals Legal Fight if UK Seeks to Seize Chelsea Sale Funds
×