Google and Facebook are considering efforts to analyze the collective movements of millions of users to determine how the deadly novel coronavirus is spreading across the US, and to gauge the effectiveness of calls for social distancing.

The results could be shared with government agencies working to head off what could become an unprecedented public health emergency over the next few weeks. Those with knowledge of the plans say every effort is being made to protect user privacy by anonymizing the data. They say a rough picture of how people are gathering and moving around could prove vital to combating the virus, which threatens to overwhelm US hospitals if the current rate of transmission does not change.

Still, the plan may test people’s attitudes toward privacy and government surveillance, amid growing concerns about the ways in which big tech companies track their users. Some companies already share some aggregate data, but it would be new for Google and Facebook to openly mine user movements on this scale for the government. The data collected would show patterns of user movements. It would need to be cross-referenced with data on testing and diagnoses to show how behavior is affecting the spread of the virus.

“As a researcher, I would be interested in analyzing aggregated and anonymized location data related to human behavior during the Covid-19 pandemic crises,” says Marguerite Madden, director of the Center for Geospatial Research at the University of Georgia. “As a private citizen, I would not be comfortable with private companies turning over my location data to governmental agencies unless I was made fully aware of the use of the data and trusted the data would be used as specified in the data agreement.”

Caroline Buckee, an associate professor at the Harvard TH Chan School of Public Health who has used mobile data to model the spread of contagious diseases overseas, has been involved with the discussions. She says the data may not be especially useful for predicting the spread of the novel coronavirus because it’s not clear how the virus spreads or how many are infected, and because the situation is evolving rapidly. But she says it may be invaluable for determining whether people are following guidelines for staying away from crowds and large gatherings. And she says the data may be very important if the virus dies down but then spikes again. For instance, if social distancing has a big impact on the rate of spread, then it could be used to reduce infections. This is a key long-term concern for epidemiologists.

Read all of our coronavirus coverage here.

The idea for Facebook and Google to analyze users’ movements came up during brainstorming sessions between the White House and representatives of big tech companies on Sunday, and it has moved along quickly since. “These efforts are happening,” Buckee says. She says the effort will not collect any identifying information about users, is not designed to track people over long periods, and will only gather aggregate trends. “It is actually quite constrained in terms of what you can do with it, but for questions around social distancing it will still be incredibly helpful for policymakers,” she says.

Buckee notes that aggregate, anonymized location data is already made available to researchers by Google, Facebook, Uber, and cell phone companies. Buckee and colleagues used data from cell phones pinging nearby towers to predict the spread of malaria in Kenya. That data was accurate within a few hundred meters. The data collected by phone operating systems and apps, which is often available to Google and Facebook, is typically more accurate.

Buckee says it is important to ensure that the data collected cannot be reversed engineered to track people. “People are concerned, and rightly so,” Buckee says. “But this isn’t in any sense following people around.”