The environment shapes health behaviors and outcomes. Studies exploring this influence have been limited to research groups with the geographic information systems expertise required to develop built and social environment measures (eg, groups that include a researcher with geographic information system expertise). The goal of this study was to develop an open-source, user-friendly, and privacy-preserving tool for conveniently linking built, social, and natural environmental variables to study participant addresses. We built the automatic context measurement tool (ACMT). The ACMT comprises two components: (1) a geocoder, which identifies a latitude and longitude given an address (currently limited to the United States), and (2) a context measure assembler, which computes measures from publicly available data sources linked to a latitude and longitude. ACMT users access both of these components using an RStudio/RShiny-based web interface that is hosted within a Docker container, which runs on a local computer and keeps user data stored in local to protect sensitive data. We illustrate ACMT with 2 use cases: one comparing population density patterns within several major US cities, and one identifying correlates of cannabis licensure status in Washington State. In the population density analysis, we created a line plot showing the population density (x-axis) in relation to distance from the center of the city (y-axis, using city hall location as a proxy) for Seattle, Los Angeles, Chicago, New York City, Nashville, Houston, and Boston with the distances being 1000, 2000, 3000, 4000, and 5000 m. We found the population density tended to decrease as distance from city hall increased except for Nashville and Houston, 2 cities that are notably more sprawling than the others. New York City had a significantly higher population density than the others. We also observed that Los Angeles and Seattle had similarly low population densities within up to 2500 m of City Hall. In the cannabis licensure status analysis, we gathered neighborhood measures such as age, sex, commute time, and education. We found the strongest predictive characteristic of cannabis license approval to be the count of female children aged 5 to 9 years and the proportion of females aged 62 to 64 years who were not in the labor force. However, after accounting for Bonferroni error correction, none of the measures were significantly associated with cannabis retail license approval status. The ACMT can be used to compile environmental measures to study the influence of environmental context on population health. The portable and flexible nature of ACMT makes it optimal for neighborhood study research seeking to attribute environmental data to specific locations within the United States.
Read full abstract