Professional Documents
Culture Documents
Abstract: There is absolutely no obscurity in the fact that COVID-19 led pandemic has put the whole world into jeopardy and has apparently
brought the important activities to a halt. The major step that the authorities have come up with is Social Distancing. Our project puts light
on the process of detecting and examining whether social distancing is being followed and implemented properly in a particular area.
We propose a model which makes it easy for the authorities to substantially ramp up the social distancing detection systems. Our project
incorporates the usage of Deep Learning concepts which would alert the concerned authorities as soon as there are more people than the
allowed limit and less distance between two people than the allowed limit. An active surveillance system which is able to measure distances
between two individuals and produce a warning sign can be useful to slow down the speed of spreading this virus.
We are proposing an AI based social distancing detection system which will encompass the following:
1. System shouldn’t record the data for the long term.
2. There should be no human involvement in the detection loop.
3. The code ought to be available to the overall population.
automated system that can help examine and monitor social III. PRELIMINARIES
distancing measures and help the society comply with the
A. Deep learning based detection of object
COVID guidelines. This way we can prove to be advantageous
for society. Detection of objects in the image world is a very elemental
problem of computer vision. The primary aim is to identify
B. Human Detection occurrences of bodies that belong to some specific categories,
This research work basically focuses on the implementation of for example, humans, cars, establishments, etc. In recent times
pedestrian detection as a general object detection problem or object identification gauges have been dominated by deep
as a dedicated model or framework for the detection of CNN models.
pedestrians only. A well explained survey of 2D object
detectors including metrics, compiled datasets and The training of these models is done using supervised learning
fundamentals can be easily found [4]. Deep learning concept with methods such as data augmentation so that the variety of
has also been used in one of the surveys for the detection of data can be increased.
generalised objects as well as the detection of pedestrians [5]. .
B. Model Generalization
This model incorporates the usage of deep learning concepts
and can be further classified into 2 broad divisions. The very The generalisation capacity of avant-garde is satisfactory for
first being the Two-stage detectors which incorporates the stationing pre-trained models to new conditions. For 2-D
usage of R-CNN concepts [6, 7, 8, 9]. It initiates with region entity identification pre-trained models can bring out good
proposals followed by the stratification process and then a accuracy irrespective of the make of camera, angle of the view
bounding box regression. The next broad division is the One- or the lighting conditions.
stage detectors. Some of the well known models using one-
stage detectors are YOLOv1-v4 [9, 10, 11], SSD, RetinaNet Thus, a pre-trained neural network based human detection
and EfficientDet. system can be directly used for the analysis.
K=
A. Implementation Details:
Where R is the rotation matrix,
We need to find the perspective transformation matrix to get
accurate distance between two objects since CCTV’s give an
angled perspective. For datasets that don’t have information
R=
about the height of CCTV and the interval between few crucial
positions that can be used for making our frame of reference
transformation matrix we would have to estimate the size of
objects given in the video and then try to estimate the
perspective transformation matrix.
T is the translation matrix,
We estimated the distances between key points in our dataset.
After finding the perspective transformation matrix we run our
pedestrian detection code on our dataset. Then we need to find
the real-world coordinates from the 2D image coordinates.
T=
Now we need to find the number of social distancing
violations, the distance between two pedestrians and social
density 𝛒. Our model uses GoogleNet which is a pretrained
Deep Convolutional Neural Network and is a variant of the
Inception architecture.
International Electrical and Electronics Engineering Conference (IEEEC-2021)
The experimentation was done on a laptop with an Intel Core correspondence between these two was used to determine
i5-7300HQ CPU, 8 gb RAM, and NVIDIA GeForce GTX critical social density.
1050Ti CPU. From the plotted graph, it can be concluded that there is a
positive relation between the two parameters as when one is
increasing, the other is too.
A simple linear regression was applied on the values of the
above two parameters. The skewness value of the social
density of our data set was 0.193. These results are displayed
in fig 2. Here critical density will be the minimum value of the
predicted range.
Table 3 here tabulates the observed intercepts and critical
density of the regression model. These values also go along
with the pattern of values in the fig 2. This helped us uphold
the success of our technique.
Fig 1: Human detection using our model and the subsequent verification of
physical distancing.
VI. RESULTS
A. Human Detection
Figure 1 shows a random frame from our video dataset after
going through our model, we also have the 2D transformed
image.
Fig 3: Histogram heatmap between social density and mean closest distance.
Fig 2: Graph is the linear regression(red) between social density and frequency
of social distancing violations. Prediction range is signified by green lines and
the critical social density is the x-intercepts of the lines.
VII. CONCLUSION
This paper proposes an Artificial Intelligence based system for
figuring out regions where social distancing is not being
followed. We use social density as a factor for figuring out the
extent of social distancing violation.
REFERENCES