Skip to main content
The Globe and Mail
Support Quality Journalism.
The Globe and Mail
First Access to Latest
Investment News
Collection of curated
e-books and guides
Inform your decisions via
Globe Investor Tools
per week
for first 24 weeks

Enjoy unlimited digital access
Enjoy Unlimited Digital Access
Get full access to
Just $1.99 per week for the first 24 weeks
Just $1.99 per week for the first 24 weeks
var select={root:".js-sub-pencil",control:".js-sub-pencil-control",open:"o-sub-pencil--open",closed:"o-sub-pencil--closed"},dom={},allowExpand=!0;function pencilInit(o){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];select.root=o,dom.root=document.querySelector(select.root),dom.root&&(dom.control=document.querySelector(select.control),dom.control.addEventListener("click",onToggleClicked),setPanelState(e),window.addEventListener("scroll",onWindowScroll),dom.root.removeAttribute("hidden"))}function isPanelOpen(){return dom.root.classList.contains(}function setPanelState(o){dom.root.classList[o?"add":"remove"](,dom.root.classList[o?"remove":"add"](select.closed),dom.control.setAttribute("aria-expanded",o)}function onToggleClicked(){var l=!isPanelOpen();setPanelState(l)}function onWindowScroll(){window.requestAnimationFrame(function() {var l=isPanelOpen(),n=0===(document.body.scrollTop||document.documentElement.scrollTop);n||l||!allowExpand?n&&l&&(allowExpand=!0,setPanelState(!1)):(allowExpand=!1,setPanelState(!0))});}pencilInit(".js-sub-pencil",!1); // via darwin-bg var slideIndex = 0; carousel(); function carousel() { var i; var x = document.getElementsByClassName("subs_valueprop"); for (i = 0; i < x.length; i++) { x[i].style.display = "none"; } slideIndex++; if (slideIndex> x.length) { slideIndex = 1; } x[slideIndex - 1].style.display = "block"; setTimeout(carousel, 2500); } //

Commuters wear face masks to protect against the spread of new coronavirus as they walk through a subway station in Beijing, on April 9, 2020.

Mark Schiefelbein/The Associated Press

With no explanation, an app told large numbers of foreign residents in Beijing that they could not leave their homes this weekend, a digital quarantine order that was rescinded just hours later after causing widespread confusion in the Chinese capital.

The Beijing Health Kit app has been used by millions of people, part of a nationwide strategy of deploying digital tools in the hope that computerized decision-making can succeed in containing the deadly new coronavirus where mere human oversight might fail.

China’s experience offers one example of how to manage large populations during a pandemic, as governments and tech companies around the world search for solutions.

Story continues below advertisement

But the brief home quarantine order in Beijing – whose appearance and disappearance have yet to be explained – offers a vivid example of the risk of entrusting software with decisions about human freedom.

The isolation notice appeared Sunday morning, when many foreign residents living in Beijing saw that their status on the app had changed from a green code – indicating a person is free to move about – to a yellow one, with the instruction “home observation.” In China, home observation is a strict form of isolation in which people are told to wear masks indoors and barred from going outside for 14 days. Officials in some areas have installed alarms and even security tape on front doors to ensure they are not opened.

The Health Kit app bases its determination on what city authorities have called “comprehensive multi-source data research and judgment,” which blends community information, disease control orders and data from highway, rail and air travel. It requires users to upload identification document images and pass a facial recognition screening before producing a green, yellow or red code: green is all clear, yellow signifies home isolation, while red mandates quarantine in a government-approved facility.

Other health check services have been created by mobile service providers, a military contractor and the country’s cabinetlike State Council.

But by March 30, nine million people in Beijing had used the Health Kit service, which is offered by both Tencent-owned WeChat, China’s near-universal messaging app, and Alipay, a widely used digital payment platform.

Anyone unable to show a green code can be barred from office buildings, residential compounds, public transit, restaurants and shopping centres. The code has become a central arbiter of daily life – but authorities have disclosed little about how it is generated. “It is impossible for humans to intervene or modify the results,” the Beijing central information hotline wrote on April 9 in response to questions posed by the Beijing Evening News.

Numerous problems have been reported with the health apps. In Hangzhou, code labelled “reportInfoAndLocationToPolice” in the Alipay app immediately sent the user’s location to a server, along with an identifying code number, according to an analysis by The New York Times.

Story continues below advertisement

In cities around China, people have reported erroneous codes that arbitrarily brought normal life to a halt. In Beijing, the app has taken days to release people from quarantine, even when they possess the necessary documents from local authorities. Others have been barred from going to work because they spent time in the mountains west of the city, the Beijing Evening News reported. Still others have been prevented from entering their own communities by such errors.

Experts have acknowledged but downplayed the problems.

Systems such as Health Kit “enable governments to make wiser and more scientific decisions in their work,” said Cui Xiaohui, a scholar at the School of Cyber Science and Engineering at Wuhan University. He called it “a social management system that’s backed by science.”

But the opacity of the system means no one knows, for example, what weight is given to each data point. In addition, “each city and province has different codes, and we have no idea what additions or omissions each has made in their version,” Prof. Cui said. As a result, “once a problem appears, people will feel confused and begin to complain. I think people would have fewer complaints if there was more transparency.”

It’s time for the companies involved to release their source code, he said.

But the digital quarantine apps are “emergency tools,” and as such some problems can be overlooked in the short term, said Wu Fei, the director of the artificial intelligence lab at Zhejiang University. In an urgent health situation, it comes down to “human rights or human lives,” he said. “When it’s a matter of survival, human rights should be ranked less important.”

Story continues below advertisement

Governments and corporations around the world have embraced AI systems for their ability to better allocate resources, manage traffic, plan future development, provide proper skills training and improve health care.

But China has begun to use computerized governance in more ambitious ways. It’s being used to assess individual credibility in social credit systems. In the northwestern Xinjiang region, state-run systems target people considered at risk of criminal conduct before police are dispatched to investigate.

“China is, in that sense, ahead of us technologically,” said Simon Joss, a University of Glasgow scholar and associate director of the Urban Big Data Centre in the U.K. But “I don’t think China’s approach to public monitoring and tracking would be acceptable to the public in many other countries, for obvious data protection and civil liberties reasons.”

Still, the pandemic has created a sense of urgency among authoritarian and democratic governments alike to find technological solutions to contain the virus.

”It’s seen as the potential way out of the current lockdown – so people are hoping that these various apps might allow us to get back to normal life,” Prof. Joss said. The challenge for Western governments will be to conduct “responsible innovation.”

It’s a matter of creating something driven not only by government or corporate appetites for data but in a way that prioritizes “civic interest,” he said.

Story continues below advertisement

With reporting by Alexandra Li

Author and journalist Malcolm Gladwell discusses the far-reaching impact of the coronavirus pandemic on refugees, conflict and the economy. Gladwell was in conversation with Rudyard Griffiths from the Munk Debates. The Globe and Mail

Sign up for the Coronavirus Update newsletter to read the day’s essential coronavirus news, features and explainers written by Globe.

In the interests of public health and safety, our coronavirus news articles are free for anyone to access. However, The Globe depends on subscription revenue to support our journalism. If you are able, please subscribe to If you are already a subscriber, thank you for your support.

Your subscription helps The Globe and Mail provide readers with critical news at a critical time. Thank you for your continued support. We also hope you will share important coronavirus news articles with your friends and family. In the interest of public health and safety, all our coronavirus news articles are free for anyone to access.

Your Globe

Build your personal news feed

  1. Follow topics and authors relevant to your reading interests.
  2. Check your Following feed daily, and never miss an article. Access your Following feed from your account menu at the top right corner of every page.

Follow the author of this article:

Follow topics related to this article:

View more suggestions in Following Read more about following topics and authors
Report an error Editorial code of conduct
Due to technical reasons, we have temporarily removed commenting from our articles. We hope to have this fixed soon. Thank you for your patience. If you are looking to give feedback on our new site, please send it along to If you want to write a letter to the editor, please forward to

Welcome to The Globe and Mail’s comment community. This is a space where subscribers can engage with each other and Globe staff. Non-subscribers can read and sort comments but will not be able to engage with them in any way. Click here to subscribe.

If you would like to write a letter to the editor, please forward it to Readers can also interact with The Globe on Facebook and Twitter .

Welcome to The Globe and Mail’s comment community. This is a space where subscribers can engage with each other and Globe staff. Non-subscribers can read and sort comments but will not be able to engage with them in any way. Click here to subscribe.

If you would like to write a letter to the editor, please forward it to Readers can also interact with The Globe on Facebook and Twitter .

Welcome to The Globe and Mail’s comment community. This is a space where subscribers can engage with each other and Globe staff.

We aim to create a safe and valuable space for discussion and debate. That means:

  • Treat others as you wish to be treated
  • Criticize ideas, not people
  • Stay on topic
  • Avoid the use of toxic and offensive language
  • Flag bad behaviour

If you do not see your comment posted immediately, it is being reviewed by the moderation team and may appear shortly, generally within an hour.

We aim to have all comments reviewed in a timely manner.

Comments that violate our community guidelines will not be posted.

UPDATED: Read our community guidelines here

Discussion loading ...

To view this site properly, enable cookies in your browser. Read our privacy policy to learn more.
How to enable cookies