Back

Linking physical food outlets to online platforms: A cross-sectional machine learning approach to analysing socioeconomic variations in Great Britain

Hoenink, J. C.; Huang, Y.; Adams, J.

2025-03-07 epidemiology
10.1101/2025.03.06.25323505 medRxiv
Show abstract

ObjectivesPhysical food outlets are increasingly offering delivery through Online Food Delivery Service (OFDS) platforms, but the scale of this expansion remains unclear due to the labour-intensive process of manually matching outlets to online platforms. Understanding the share of outlets offering delivery is important, as it impacts food availability and thus potentially influences dietary behaviours. This paper demonstrates how a machine learning model can efficiently match physical to online outlets. We also analysed how the proportion of physical outlets listed online and online-only outlets varies by area-level deprivation. MethodsThe physical locations of outlets selling food in Great Britain was obtained from a centrally held register for food hygiene data, while online outlet data was collected through web scraping an OFDS platform. We calculated string distances based on outlet names and postcodes, which were then used to train a Random Forest model to match outlets from the two lists. Area-level deprivation was assessed using the Index of Multiple Deprivation. ResultsThe Random Forest classifier model achieved an F1 score of 90%, a recall of 98%, and a precision of 83%. Overall, the median percentage of physical outlets also listed online was 14% (IQR 0 - 23), and the median percentage of online-only outlets was also 14% (IQR 0 - 27). The proportion of physical outlets listed online and online-only outlets was highest in more deprived areas. For example, compared to the least deprived areas, the most deprived areas were associated with a 6% greater proportion of physical food outlets listed online (95%CI 5%-6%) and a 3% greater proportion of online-only outlets (95%CI 1%-4%). ConclusionThis study demonstrates the potential of machine learning techniques to efficiently match physical and online food outlets. This automated approach can provide insights into the relationship between physical and online food availability. Researchers and policymakers can use this method to better understand inequalities in food outlet availability and monitor the expansion of online delivery services.

Matching journals

The top 7 journals account for 50% of the predicted probability mass.

50% of probability mass above

"Similar papers" are the closest papers from that journal in the model's embedding space. They show what the match is built on, but the ranking comes mostly from a classifier over the whole training set, not from these examples alone.