How do we scrape and use terabytes of exposure data to predict health? At XY, we have developed a suite of data science tools and application programming interfaces to integrate large datasets that enable disease prediction in large scale, instrumental for precision public health.
For example, our exposome — the collection of elements we are exposed to, such as air pollution, climate, and even where we live — plays a large role in our health. We have compiled and scraped terabytes of diverse geographical environmental exposure data, spanning back from 1901 to the current day, including but not exclusive to:
These data vary over space and time. Specifically these data vary in the type of measure (e.g., air pollution versus climate), the frequency of measure (e.g., daily, monthly, yearly), and what spatial resolution (e.g., zipcode versus county versus tract). Integrating over space and time and populations are Exposome Data Warehouse’s strongest features and a prerequisite for precision health and medicine.
Here, we will describe how we built these data resources for research and clinical use-cases.
The Exposome Data Warehouse is stored on the fully managed Google Cloud SQL platform, allowing us to easily scale our analytical queries. We store all of our raw data and shapefiles in a PostGIS database. We utilize many of the novel features of PostGIS such as spatial indexing and JSON data types to store and quickly query many complicated datasets using a single data model. In a particular dataset, a single observation may have multiple key-value pairs (e.g. temperature, dew point, and rain totals for a particular NOAA sensor on a particular day), we store all of this data as a JSON object in our ‘data’ column.
This model structure provides us the flexibility to handle disparate datasets by combining the relative advantages of both relational and No-SQL style databases. By linking the raw data to shapefiles, we are able to perform complex geospatial joins which can aggregate multiple datasets on the basis of location. We utilize the PostGIS spatial indexing capabilities along with temporal indexing in order to quickly ascertain the relevant data within our 5 TB database.
The Exposome Data Warehouse also contains the entire Census Tiger Database which allows for geocoding of any US address directly from our database rather than having to send private information to a third party provider such as the Google Maps API, which is particularly important when dealing with sensitive patient data.
The spatial indexing capabilities allow us to easily find the k nearest EPA or NOAA sensors to a particular zipcode or address. The following query demonstrates the ability of Exposome Data Warehouse to return the ozone levels (data_id = '4977') on June 7, 2015 for the 5 closest EPA sensors to the zipcode 10027 (shape_id = 2580363).
The Exposome Data Warehouse contains an extensive database of US Shapefiles primarily sourced from the Census Bureau. This database provides us with the ability to link data at various geographic resolutions including the state, county, zipcode, and census tract.
An outstanding question in precision medicine and precision public health is how much does genetics and the exposome play in disease risk? In a novel analysis reported in Nature Genetics we linked Exposome Data Warehouse to participants in a large insurance claims dataset in order conduct one of the largest twin and sibling studies in the United States. We aimed to systematically quantify the relative contribution of genetics and the environmental exposures in 560 diseases. With the Exposome Data Warehouse, we mapped each insurance claimant to their geographical socioeconomic status, pollution, and climate exposure (based on their home zipcode). We then developed methods to quantify the contribution of these factors along with genetics. We found that most diseases have contribution of both genetics and environment; however, the role of each varied based on the disease. For example, diseases such as intellectual disability had a large contribution from genetics; others, such as obesity, were influenced by both environment and genetics. We also found that the influence of socioeconomic status to morbid obesity and climate had a modest contribution to lead poisoning and influenza.