Using AI to Detect Social Distancing Violations

Priya Dwivedi
The Startup
Published in
6 min readMay 7, 2020

--

Doing cool things with data!

Introduction

Many cities in the US and Europe are reopening cautiously now. People have been instructed to follow social distancing rules as they venture out. But do people follow them? It can be important for cities to assess this and take action accordingly. If most people follow them, then more places can be opened safely. However, if there are many violations then it may be safer to close. This is exactly what happened at Miami Beach park. The park opened at the end of April but was closed within the week since too many people were flouting rules related to wearing masks and socially distancing themselves. The city detected this by using officers to monitor the park and issue warnings. But human monitoring may not be a practical solution.

How can we use AI and machine learning to detect if people are following social distancing rules? Most cities already have cameras installed at public places which can be used for this. In this blog, I show how we can use people tracking algorithms to monitor violations. I have also open sourced the code on my Github. See this model in action below.

Social Distancing Violations Detection and Counting

At Deep Learning Analytics, we are very passionate about using data science and machine learning to solve problems. Please reach out to us if you are looking for…

--

--

Priya Dwivedi
The Startup

CEO of Deep Learning Analytics, a AI/ML consultancy. We builds custom models for different use cases. Check us at: https://deeplearninganalytics.org