Street images classification according to COVID-19 risk in Lima, Peru: a convolutional neural networks feasibility analysis

BMJ Open. 2022 Sep 19;12(9):e063411. doi: 10.1136/bmjopen-2022-063411.

Abstract

Objectives: During the COVID-19 pandemic, convolutional neural networks (CNNs) have been used in clinical medicine (eg, X-rays classification). Whether CNNs could inform the epidemiology of COVID-19 classifying street images according to COVID-19 risk is unknown, yet it could pinpoint high-risk places and relevant features of the built environment. In a feasibility study, we trained CNNs to classify the area surrounding bus stops (Lima, Peru) into moderate or extreme COVID-19 risk.

Design: CNN analysis based on images from bus stops and the surrounding area. We used transfer learning and updated the output layer of five CNNs: NASNetLarge, InceptionResNetV2, Xception, ResNet152V2 and ResNet101V2. We chose the best performing CNN, which was further tuned. We used GradCam to understand the classification process.

Setting: Bus stops from Lima, Peru. We used five images per bus stop.

Primary and secondary outcome measures: Bus stop images were classified according to COVID-19 risk into two labels: moderate or extreme.

Results: NASNetLarge outperformed the other CNNs except in the recall metric for the moderate label and in the precision metric for the extreme label; the ResNet152V2 performed better in these two metrics (85% vs 76% and 63% vs 60%, respectively). The NASNetLarge was further tuned. The best recall (75%) and F1 score (65%) for the extreme label were reached with data augmentation techniques. Areas close to buildings or with people were often classified as extreme risk.

Conclusions: This feasibility study showed that CNNs have the potential to classify street images according to levels of COVID-19 risk. In addition to applications in clinical medicine, CNNs and street images could advance the epidemiology of COVID-19 at the population level.

Keywords: COVID-19; EPIDEMIOLOGY; PUBLIC HEALTH.

Publication types

  • Research Support, Non-U.S. Gov't

MeSH terms

  • COVID-19* / epidemiology
  • Feasibility Studies
  • Humans
  • Neural Networks, Computer
  • Pandemics
  • Peru / epidemiology