Skip to main content
Passa alla visualizzazione normale.


Contextual factors predicting compliance behavior during the COVID-19 pandemic: A machine learning analysis on survey data from 16 countries

  • Authors: N. Hajdu; K. Schmidt; G. Acs; J.P. Röer; Alberto Mirisola; Isabella Giammusso; P. Arriaga; R. Ribeiro; D. Dubrov; D. Grigoryev; N. C. Arinze; M. Voracek; S. Stieger; M. Adamkovic; M. Elsherif; B. M. J. Kern; K. Barzykowski; E. Ilczuk; M. Martončik; I. Ropovik; S. Ruiz-Fernandez; G. Baník; J. L. Ulloa; B. Aczel; B. Szaszi
  • Publication year: 2022
  • Type: Articolo in rivista
  • OA Link:


Voluntary isolation is one of the most effective methods for individuals to help prevent the transmission of diseases such as COVID-19. Understanding why people leave their homes when advised not to do so and identifying what contextual factors predict this non-compliant behavior is essential for policymakers and public health officials. To provide insight on these factors, we collected data from 42,283 individuals across 16 countries. Participants responded to items inquiring about their socio-cultural environment, such as the adherence of fellow citizens, as well as their mental states, such as their level of loneliness and boredom. We trained random forest models to predict whether someone had left their home during a one week period during which they were asked to voluntarily isolate themselves. The analyses indicated that overall, an increase in the feeling of being caged leads to an increased probability of leaving home. In addition, an increased feeling of responsibility and an increased fear of getting infected decreased the probability of leaving home. The models predicted compliance behavior with between 62% and 87% accuracy within each country’s sample. In addition, we modelled factors leading to risky behaviour in the pandemic context. We observed an increased probability of visiting risky places as both the anticipated number of people and the importance of the activity increased. Conversely, the probability of visiting risky places increased as the perceived putative effectiveness of social distancing decreased. The variance explained in our models predicting risk ranged from < .01 to .54 by county. Together, our findings can inform behavioural interventions to increase adherence to lockdown recommendations in pandemic conditions.