SlideShare a Scribd company logo
COVID-19 Safe Distancing
Measures in Public Spaces
with Edge AI
Ebi Jose, PhD
Senior Systems Engineer
Government Technology Agency of Singapore
Government Technology Agency of Singapore (GovTech)
• Is a statutory board of the Government of Singapore, under the Prime Minister's Office
• 5 Capability Centres, conducting 3 key activities
TECHNOLOGY
EXPERIMENTATION
PRODUCT
ENGINEERING &
DEVELOPMENT
TECHNOLOGY
ADVISORY &
CONSULTANCY
ENGINEERING EXPERTISE in:
• Sensors & IoT (SIoT)
• Cybersecurity
• Data Science & AI
• Infrastructure
• Applications Design, Development, Deployment
• Generate key technologies for Whole of
Government
• Establish key partnerships with industry
players and research institutions
• Develop core technologies, standards and
guidelines
• Provide technical consultation.
• Develop POCs and products
© 2022 Government Technology Agency of Singapore (GovTech) 2
• Whether it’s indoor environments (supermarkets, museums, etc.) or outdoors (parks),
crowd management is a priority.
• By combining edge AI solutions with cloud connectivity, government agencies are equipped with
information they need to manage the crowd effectively.
• Crowd counting deployments on the edge in indoor & outdoor environments are presented.
Introduction
3
© 2022 Government Technology Agency of Singapore (GovTech)
Camera 1
Camera 2 Camera 3
Indoors – Supermarkets, offices, museums Outdoors - Parks
• Current state-of-the-art methods treat crowd counting as:
• Detection-and-counting approach
• Density map estimation
• Where a deep neural network first produces a 2D crowd density map for a given input
image, and…
• …estimates total size of the crowd by summing the density values across all spatial
locations of the density map.
Key Approach in Indoor & Outdoor Visitor Counts
4
© 2022 Government Technology Agency of Singapore (GovTech)
• For large crowds, the density map estimation approach is
more robust than the detection-then-counting approach
• as it is less sensitive to occlusion and clutter.
• does not need to commit to binarized decisions at an early
stage.
People Counting in Indoor Environments - Hardware
5
© 2022 Government Technology Agency of Singapore (GovTech)
Nvidia Jetson Nano
Wi-Fi
Antenna
AC-DC Power supply
Camera Data Cable
Vent
Nvidia Jetson Nano Dev Kit Aaeon BOXER-8223AI NVIDIA Jetson Nano
One edge device can process up to 2 cameras.
People Counting in Indoor Environments - Software
6
© 2022 Government Technology Agency of Singapore (GovTech)
Version 1 Version 2
Model SSD-Mobilenet v2 PeopleNet
Pre-trained dataset MS-COCO Nvidia Proprietary
Initial Object Classes 80 3
Object class after transfer
learning
1 (i.e. person) 1 (i.e. person)
Model optimization TensorRT (FP16) TensorRT (FP16)
DeepStream No Yes
Tracking
Simple Online and Realtime Tracking (SORT)
https://github.com/abewley/sort
NvDCF tracker
Accuracy 86% 91%
Software
Version
Model TensorRT FPS
CPU
Usage
GPU
Usage
RAM Usage
(Gb)
Version 1
SSD Mobilenet v2 No 17 49% (avg.) 70% (avg.) 2.9 / 4.0
SSD Mobilenet v2 Yes 23 35% (avg.) 50% (avg.) 2.7 / 4.0
Version 2 Nvidia PeopleNet Yes 25 40% (avg.) 50% (avg.) 2.7 / 4.0
People Counting Indoors
7
© 2022 Government Technology Agency of Singapore (GovTech)
• Transfer learning with custom dataset can achieve detection accuracy > 91%.
• (Almost) a solved problem!
Crowd Counting in Outdoor Environments
• A challenging computer vision problem due to:
• Heavy occlusion
• Perspective distortion
• Scale variation
• Diverse crowd distribution
Crowd Counting in Outdoors
9
© 2022 Government Technology Agency of Singapore (GovTech)
• Crowd counting algorithms predict a density map from a crowd image. Summation of the
density map is the crowd count.
• Each training image contains multiple people, each person is annotated by a dot.
• MSFANet crowd counting method
• Combination of multi-scale-aware modules and dual path decoder
• Predicts density maps and attention maps for highlighting crowd regions in input image.
• Uses a Gaussian kernel to smooth each annotated dot.
• Is trained on L2 pixel-wise loss.
• Sensitive to the choice of variance in the Gaussian kernel.
• DM-Count crowd counting method
• Considers density maps and dot maps as probability distributions.
• Loss composed of optimal transport (OT) loss, total variation (TV) pixel-wise loss & counting loss (CL).
Crowd Density Methods – MSFANet & DM-Count
10
© 2022 Government Technology Agency of Singapore (GovTech)
Multi-Scale Feature Adaptive Network (M-SFANet) –
Data Preprocessing
11
© 2022 Government Technology Agency of Singapore (GovTech)
Convolve the head annotation with Gaussian kernel (G) which has fixed standard deviation (σ).
Assuming a head annotation at pixel 𝑥𝑖, represented as 𝛿 𝑥 − 𝑥𝑖 ,
density map, 𝐷 𝑥 = ෍
𝑖=1
𝑁
𝛿 𝑥 − 𝑥𝑖 ∗ 𝐺𝜎 𝑥
where N = total number of headcounts.
attention map, 𝐴(𝑖) = ቊ
0 = 0.001 > 𝐷(𝑖)
1 = 0.001 ≤ 𝐷(𝑖)
M-SFANet Architecture (1)
12
© 2022 Government Technology Agency of Singapore (GovTech)
Atrous spatial pyramid pooling (ASPP) with augmented image-level features
M-SFANet Architecture (2)
13
© 2022 Government Technology Agency of Singapore (GovTech)
Context-aware module (CAN)
Crowd Counting in Outdoors – DM Count Estimation
14
© 2022 Government Technology Agency of Singapore (GovTech)
Input Image
Predicted Density Map
Annotations (Ground Truth Count = 54)
VGG19 model
• Almost all previous work converts the sparse point
annotation into dense ground truth maps.
• Each point is replaced by a gaussian blob.
• DM-Count paper shows that imposing Gaussians to
annotations hurts generalization performance.
How to
measure
discrepancy
for training?
• Counting loss (𝑙𝐶): absolute loss between ground truth and predicted
counts
• The Optimal Transport loss (𝑙𝑂𝑇): The OT similarity measurements
provide valid gradients that can train a network if the source distribution
does not overlap with the target distribution.
• Total Variation loss (𝑙𝑇𝑉): Improve stability when optimising the OT loss
with the Sinkhorn algorithm.
DM-Count Loss
15
© 2022 Government Technology Agency of Singapore (GovTech)
Total loss, 𝑙 𝒀, ෡
𝒀 = 𝑙𝐶 𝒀, ෡
𝒀 + 𝜆1𝑙𝑂𝑇 𝒀, ෡
𝒀 + 𝜆2| 𝒀 |1𝑙𝑇𝑉(𝒀, ෡
𝒀)
• DM-Count considers density map as distributions.
• Use of Optimal Transport (OT) to compute the distance between density
maps.
Sparse annotations
Target distribution
Predicted density map
Source distribution
Distribution distance
People Counting Outdoors - Workflow
16
© 2022 Government Technology Agency of Singapore (GovTech)
Training
• Google cloud, used 1 K80 GPU
• Max epochs – 500
• Learning rate – 1e-05
• Batch size - 10
• Weight decay – 0.0001
People Counting Outdoors - Cloud Backend and UI
17
© 2022 Government Technology Agency of Singapore (GovTech)
User Interface
Cloud Backend
Crowd Counting Outdoors – Hardware & Software
18
© 2022 Government Technology Agency of Singapore (GovTech)
AAEON Boxer-8253AI
• Nvidia Jetson Xavier NX
• 8GB LPDDR4x
• Storage option: 16GB eMMC and 64GB MicroSD
• GbE PoE/PSE LAN x 2
• Quectel EP06: LTE-A Cat 6 module with Mini PCIe form factor
Pytorch Model on Nvidia Jetson Xavier NX TensorRT (FP-16) on Nvidia Jetson Xavier NX
Model Accuracy (%) Latency (sec)
DM-Count 92.10 3.467
M-SFANet 88.99 8.841
Model Accuracy (%) Latency (sec)
DM-Count 91.08 0.380
M-SFANet 86.46 0.637
Model DM-Count MSFANet
Dataset UCF QNRF, Custom UCF QNRF, Custom
Framework Pytorch 1.2 Pytorch 1.2
Model optimization TensorRT (FP16) TensorRT (FP16)
Crowd Counting Outdoors – Results
19
2022 Government Technology Agency of Singapore (GovTech)
Crowd Counting in Outdoors – DM-Count Results
20
© 2022 Government Technology Agency of Singapore (GovTech)
• Accurate people counting:
• For indoor environments, is almost a solved problem, when there are less/no
occlusions.
• For outdoor environments, is a challenging problem due to:
• Heavy occlusion
• Perspective distortion
• Scale variation
• Diverse crowd distribution
• DM-Count performed well even with occlusions, providing accurate counts.
Summary
21
© 2022 Government Technology Agency of Singapore (GovTech)
Resources
22
© 2022 Government Technology Agency of Singapore (GovTech)
Sensors & IoT Department
https://www.tech.gov.sg/capability-centre-siot
Government Technology Agency of Singapore (GovTech)
https://www.tech.gov.sg
M-SFANet for Count Counting (original paper and code)
https://arxiv.org/abs/2003.05586
https://github.com/Pongpisit-Thanasutives/Variations-of-SFANet-for-Crowd-Counting
Distribution Matching for Count Counting (original paper and code)
https://arxiv.org/abs/2009.13077
https://github.com/cvlab-stonybrook/DM-Count

More Related Content

Similar to “COVID-19 Safe Distancing Measures in Public Spaces with Edge AI,” a Presentation from the Government Technology Agency of Singapore

team12.project_ver_1_(1).pptx
team12.project_ver_1_(1).pptxteam12.project_ver_1_(1).pptx
team12.project_ver_1_(1).pptx
RitwikShrivastava1
 
Predictive Maintenance - Portland Machine Learning Meetup
Predictive Maintenance - Portland Machine Learning MeetupPredictive Maintenance - Portland Machine Learning Meetup
Predictive Maintenance - Portland Machine Learning Meetup
Ian Downard
 
Signal Classification and Identification for Cognitive Radio
Signal Classification and Identification for Cognitive RadioSignal Classification and Identification for Cognitive Radio
Signal Classification and Identification for Cognitive Radio
IRJET Journal
 
“Trends in Neural Network Topologies for Vision at the Edge,” a Presentation ...
“Trends in Neural Network Topologies for Vision at the Edge,” a Presentation ...“Trends in Neural Network Topologies for Vision at the Edge,” a Presentation ...
“Trends in Neural Network Topologies for Vision at the Edge,” a Presentation ...
Edge AI and Vision Alliance
 
Edge optimized architecture for fabric defect detection in real-time
Edge optimized architecture for fabric defect detection in real-timeEdge optimized architecture for fabric defect detection in real-time
Edge optimized architecture for fabric defect detection in real-time
Shuquan Huang
 
Introduction to Programmable Networks by Clarence Anslem, Intel
Introduction to Programmable Networks by Clarence Anslem, IntelIntroduction to Programmable Networks by Clarence Anslem, Intel
Introduction to Programmable Networks by Clarence Anslem, Intel
MyNOG
 
Computing for Datacenter Servers 2021 - Sample
Computing for Datacenter Servers 2021 - SampleComputing for Datacenter Servers 2021 - Sample
Computing for Datacenter Servers 2021 - Sample
Yole Developpement
 
WF-IOT-2014, Seoul, Korea, 06 March 2014
WF-IOT-2014, Seoul, Korea, 06 March 2014WF-IOT-2014, Seoul, Korea, 06 March 2014
WF-IOT-2014, Seoul, Korea, 06 March 2014
Charith Perera
 
NGIoT standardisation workshops_Jens Hagemeyer presentation
NGIoT standardisation workshops_Jens Hagemeyer presentationNGIoT standardisation workshops_Jens Hagemeyer presentation
NGIoT standardisation workshops_Jens Hagemeyer presentation
VEDLIoT Project
 
imagefiltervhdl.pptx
imagefiltervhdl.pptximagefiltervhdl.pptx
imagefiltervhdl.pptx
Akbarali206563
 
AJAY NANOCHIP RESUME
AJAY NANOCHIP RESUMEAJAY NANOCHIP RESUME
AJAY NANOCHIP RESUME
AJAY ABRAHAM
 
Dataset creation for Deep Learning-based Geometric Computer Vision problems
Dataset creation for Deep Learning-based Geometric Computer Vision problemsDataset creation for Deep Learning-based Geometric Computer Vision problems
Dataset creation for Deep Learning-based Geometric Computer Vision problems
PetteriTeikariPhD
 
CAR DAMAGE DETECTION USING DEEP LEARNING
CAR DAMAGE DETECTION USING DEEP LEARNINGCAR DAMAGE DETECTION USING DEEP LEARNING
CAR DAMAGE DETECTION USING DEEP LEARNING
IRJET Journal
 
Latest mca projects 2013
Latest mca projects 2013Latest mca projects 2013
Latest mca projects 2013
rathikamca
 
GaruaGeo: Global Scale Data Aggregation in Hybrid Edge and Cloud Computing En...
GaruaGeo: Global Scale Data Aggregation in Hybrid Edge and Cloud Computing En...GaruaGeo: Global Scale Data Aggregation in Hybrid Edge and Cloud Computing En...
GaruaGeo: Global Scale Data Aggregation in Hybrid Edge and Cloud Computing En...
Otávio Carvalho
 
IRJET - Display for Crew Station of Next Generation Main Battle Tank
IRJET - Display for Crew Station of Next Generation Main Battle TankIRJET - Display for Crew Station of Next Generation Main Battle Tank
IRJET - Display for Crew Station of Next Generation Main Battle Tank
IRJET Journal
 
FFM_–_Technical_Brief_–_Network_Solutions_for_Intelligence_Surveillance_and_R...
FFM_–_Technical_Brief_–_Network_Solutions_for_Intelligence_Surveillance_and_R...FFM_–_Technical_Brief_–_Network_Solutions_for_Intelligence_Surveillance_and_R...
FFM_–_Technical_Brief_–_Network_Solutions_for_Intelligence_Surveillance_and_R...
Vince Garr
 
FPGA-based soft-processors: 6G nodes and post-quantum security in space
 FPGA-based soft-processors: 6G nodes and post-quantum security in space FPGA-based soft-processors: 6G nodes and post-quantum security in space
FPGA-based soft-processors: 6G nodes and post-quantum security in space
Facultad de Informática UCM
 
Syncing the cloud - from T1 to TAP
 Syncing the cloud - from T1 to TAP Syncing the cloud - from T1 to TAP
Syncing the cloud - from T1 to TAP
ADVA
 
Transforming the Modern City with the Intel-based 5G Smart City Road Side Uni...
Transforming the Modern City with the Intel-based 5G Smart City Road Side Uni...Transforming the Modern City with the Intel-based 5G Smart City Road Side Uni...
Transforming the Modern City with the Intel-based 5G Smart City Road Side Uni...
DESMOND YUEN
 

Similar to “COVID-19 Safe Distancing Measures in Public Spaces with Edge AI,” a Presentation from the Government Technology Agency of Singapore (20)

team12.project_ver_1_(1).pptx
team12.project_ver_1_(1).pptxteam12.project_ver_1_(1).pptx
team12.project_ver_1_(1).pptx
 
Predictive Maintenance - Portland Machine Learning Meetup
Predictive Maintenance - Portland Machine Learning MeetupPredictive Maintenance - Portland Machine Learning Meetup
Predictive Maintenance - Portland Machine Learning Meetup
 
Signal Classification and Identification for Cognitive Radio
Signal Classification and Identification for Cognitive RadioSignal Classification and Identification for Cognitive Radio
Signal Classification and Identification for Cognitive Radio
 
“Trends in Neural Network Topologies for Vision at the Edge,” a Presentation ...
“Trends in Neural Network Topologies for Vision at the Edge,” a Presentation ...“Trends in Neural Network Topologies for Vision at the Edge,” a Presentation ...
“Trends in Neural Network Topologies for Vision at the Edge,” a Presentation ...
 
Edge optimized architecture for fabric defect detection in real-time
Edge optimized architecture for fabric defect detection in real-timeEdge optimized architecture for fabric defect detection in real-time
Edge optimized architecture for fabric defect detection in real-time
 
Introduction to Programmable Networks by Clarence Anslem, Intel
Introduction to Programmable Networks by Clarence Anslem, IntelIntroduction to Programmable Networks by Clarence Anslem, Intel
Introduction to Programmable Networks by Clarence Anslem, Intel
 
Computing for Datacenter Servers 2021 - Sample
Computing for Datacenter Servers 2021 - SampleComputing for Datacenter Servers 2021 - Sample
Computing for Datacenter Servers 2021 - Sample
 
WF-IOT-2014, Seoul, Korea, 06 March 2014
WF-IOT-2014, Seoul, Korea, 06 March 2014WF-IOT-2014, Seoul, Korea, 06 March 2014
WF-IOT-2014, Seoul, Korea, 06 March 2014
 
NGIoT standardisation workshops_Jens Hagemeyer presentation
NGIoT standardisation workshops_Jens Hagemeyer presentationNGIoT standardisation workshops_Jens Hagemeyer presentation
NGIoT standardisation workshops_Jens Hagemeyer presentation
 
imagefiltervhdl.pptx
imagefiltervhdl.pptximagefiltervhdl.pptx
imagefiltervhdl.pptx
 
AJAY NANOCHIP RESUME
AJAY NANOCHIP RESUMEAJAY NANOCHIP RESUME
AJAY NANOCHIP RESUME
 
Dataset creation for Deep Learning-based Geometric Computer Vision problems
Dataset creation for Deep Learning-based Geometric Computer Vision problemsDataset creation for Deep Learning-based Geometric Computer Vision problems
Dataset creation for Deep Learning-based Geometric Computer Vision problems
 
CAR DAMAGE DETECTION USING DEEP LEARNING
CAR DAMAGE DETECTION USING DEEP LEARNINGCAR DAMAGE DETECTION USING DEEP LEARNING
CAR DAMAGE DETECTION USING DEEP LEARNING
 
Latest mca projects 2013
Latest mca projects 2013Latest mca projects 2013
Latest mca projects 2013
 
GaruaGeo: Global Scale Data Aggregation in Hybrid Edge and Cloud Computing En...
GaruaGeo: Global Scale Data Aggregation in Hybrid Edge and Cloud Computing En...GaruaGeo: Global Scale Data Aggregation in Hybrid Edge and Cloud Computing En...
GaruaGeo: Global Scale Data Aggregation in Hybrid Edge and Cloud Computing En...
 
IRJET - Display for Crew Station of Next Generation Main Battle Tank
IRJET - Display for Crew Station of Next Generation Main Battle TankIRJET - Display for Crew Station of Next Generation Main Battle Tank
IRJET - Display for Crew Station of Next Generation Main Battle Tank
 
FFM_–_Technical_Brief_–_Network_Solutions_for_Intelligence_Surveillance_and_R...
FFM_–_Technical_Brief_–_Network_Solutions_for_Intelligence_Surveillance_and_R...FFM_–_Technical_Brief_–_Network_Solutions_for_Intelligence_Surveillance_and_R...
FFM_–_Technical_Brief_–_Network_Solutions_for_Intelligence_Surveillance_and_R...
 
FPGA-based soft-processors: 6G nodes and post-quantum security in space
 FPGA-based soft-processors: 6G nodes and post-quantum security in space FPGA-based soft-processors: 6G nodes and post-quantum security in space
FPGA-based soft-processors: 6G nodes and post-quantum security in space
 
Syncing the cloud - from T1 to TAP
 Syncing the cloud - from T1 to TAP Syncing the cloud - from T1 to TAP
Syncing the cloud - from T1 to TAP
 
Transforming the Modern City with the Intel-based 5G Smart City Road Side Uni...
Transforming the Modern City with the Intel-based 5G Smart City Road Side Uni...Transforming the Modern City with the Intel-based 5G Smart City Road Side Uni...
Transforming the Modern City with the Intel-based 5G Smart City Road Side Uni...
 

More from Edge AI and Vision Alliance

“Silicon Slip-Ups: The Ten Most Common Errors Processor Suppliers Make (Numbe...
“Silicon Slip-Ups: The Ten Most Common Errors Processor Suppliers Make (Numbe...“Silicon Slip-Ups: The Ten Most Common Errors Processor Suppliers Make (Numbe...
“Silicon Slip-Ups: The Ten Most Common Errors Processor Suppliers Make (Numbe...
Edge AI and Vision Alliance
 
“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...
“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...
“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...
Edge AI and Vision Alliance
 
“How Arm’s Machine Learning Solution Enables Vision Transformers at the Edge,...
“How Arm’s Machine Learning Solution Enables Vision Transformers at the Edge,...“How Arm’s Machine Learning Solution Enables Vision Transformers at the Edge,...
“How Arm’s Machine Learning Solution Enables Vision Transformers at the Edge,...
Edge AI and Vision Alliance
 
“Nx EVOS: A New Enterprise Operating System for Video and Visual AI,” a Prese...
“Nx EVOS: A New Enterprise Operating System for Video and Visual AI,” a Prese...“Nx EVOS: A New Enterprise Operating System for Video and Visual AI,” a Prese...
“Nx EVOS: A New Enterprise Operating System for Video and Visual AI,” a Prese...
Edge AI and Vision Alliance
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
Edge AI and Vision Alliance
 
"OpenCV for High-performance, Low-power Vision Applications on Snapdragon," a...
"OpenCV for High-performance, Low-power Vision Applications on Snapdragon," a..."OpenCV for High-performance, Low-power Vision Applications on Snapdragon," a...
"OpenCV for High-performance, Low-power Vision Applications on Snapdragon," a...
Edge AI and Vision Alliance
 
“Deploying Large Models on the Edge: Success Stories and Challenges,” a Prese...
“Deploying Large Models on the Edge: Success Stories and Challenges,” a Prese...“Deploying Large Models on the Edge: Success Stories and Challenges,” a Prese...
“Deploying Large Models on the Edge: Success Stories and Challenges,” a Prese...
Edge AI and Vision Alliance
 
“Scaling Vision-based Edge AI Solutions: From Prototype to Global Deployment,...
“Scaling Vision-based Edge AI Solutions: From Prototype to Global Deployment,...“Scaling Vision-based Edge AI Solutions: From Prototype to Global Deployment,...
“Scaling Vision-based Edge AI Solutions: From Prototype to Global Deployment,...
Edge AI and Vision Alliance
 
“What’s Next in On-device Generative AI,” a Presentation from Qualcomm
“What’s Next in On-device Generative AI,” a Presentation from Qualcomm“What’s Next in On-device Generative AI,” a Presentation from Qualcomm
“What’s Next in On-device Generative AI,” a Presentation from Qualcomm
Edge AI and Vision Alliance
 
“Learning Compact DNN Models for Embedded Vision,” a Presentation from the Un...
“Learning Compact DNN Models for Embedded Vision,” a Presentation from the Un...“Learning Compact DNN Models for Embedded Vision,” a Presentation from the Un...
“Learning Compact DNN Models for Embedded Vision,” a Presentation from the Un...
Edge AI and Vision Alliance
 
“Introduction to Computer Vision with CNNs,” a Presentation from Mohammad Hag...
“Introduction to Computer Vision with CNNs,” a Presentation from Mohammad Hag...“Introduction to Computer Vision with CNNs,” a Presentation from Mohammad Hag...
“Introduction to Computer Vision with CNNs,” a Presentation from Mohammad Hag...
Edge AI and Vision Alliance
 
“Selecting Tools for Developing, Monitoring and Maintaining ML Models,” a Pre...
“Selecting Tools for Developing, Monitoring and Maintaining ML Models,” a Pre...“Selecting Tools for Developing, Monitoring and Maintaining ML Models,” a Pre...
“Selecting Tools for Developing, Monitoring and Maintaining ML Models,” a Pre...
Edge AI and Vision Alliance
 
“Building Accelerated GStreamer Applications for Video and Audio AI,” a Prese...
“Building Accelerated GStreamer Applications for Video and Audio AI,” a Prese...“Building Accelerated GStreamer Applications for Video and Audio AI,” a Prese...
“Building Accelerated GStreamer Applications for Video and Audio AI,” a Prese...
Edge AI and Vision Alliance
 
“Understanding, Selecting and Optimizing Object Detectors for Edge Applicatio...
“Understanding, Selecting and Optimizing Object Detectors for Edge Applicatio...“Understanding, Selecting and Optimizing Object Detectors for Edge Applicatio...
“Understanding, Selecting and Optimizing Object Detectors for Edge Applicatio...
Edge AI and Vision Alliance
 
“Introduction to Modern LiDAR for Machine Perception,” a Presentation from th...
“Introduction to Modern LiDAR for Machine Perception,” a Presentation from th...“Introduction to Modern LiDAR for Machine Perception,” a Presentation from th...
“Introduction to Modern LiDAR for Machine Perception,” a Presentation from th...
Edge AI and Vision Alliance
 
“Vision-language Representations for Robotics,” a Presentation from the Unive...
“Vision-language Representations for Robotics,” a Presentation from the Unive...“Vision-language Representations for Robotics,” a Presentation from the Unive...
“Vision-language Representations for Robotics,” a Presentation from the Unive...
Edge AI and Vision Alliance
 
“ADAS and AV Sensors: What’s Winning and Why?,” a Presentation from TechInsights
“ADAS and AV Sensors: What’s Winning and Why?,” a Presentation from TechInsights“ADAS and AV Sensors: What’s Winning and Why?,” a Presentation from TechInsights
“ADAS and AV Sensors: What’s Winning and Why?,” a Presentation from TechInsights
Edge AI and Vision Alliance
 
“Computer Vision in Sports: Scalable Solutions for Downmarkets,” a Presentati...
“Computer Vision in Sports: Scalable Solutions for Downmarkets,” a Presentati...“Computer Vision in Sports: Scalable Solutions for Downmarkets,” a Presentati...
“Computer Vision in Sports: Scalable Solutions for Downmarkets,” a Presentati...
Edge AI and Vision Alliance
 
“Detecting Data Drift in Image Classification Neural Networks,” a Presentatio...
“Detecting Data Drift in Image Classification Neural Networks,” a Presentatio...“Detecting Data Drift in Image Classification Neural Networks,” a Presentatio...
“Detecting Data Drift in Image Classification Neural Networks,” a Presentatio...
Edge AI and Vision Alliance
 
“Deep Neural Network Training: Diagnosing Problems and Implementing Solutions...
“Deep Neural Network Training: Diagnosing Problems and Implementing Solutions...“Deep Neural Network Training: Diagnosing Problems and Implementing Solutions...
“Deep Neural Network Training: Diagnosing Problems and Implementing Solutions...
Edge AI and Vision Alliance
 

More from Edge AI and Vision Alliance (20)

“Silicon Slip-Ups: The Ten Most Common Errors Processor Suppliers Make (Numbe...
“Silicon Slip-Ups: The Ten Most Common Errors Processor Suppliers Make (Numbe...“Silicon Slip-Ups: The Ten Most Common Errors Processor Suppliers Make (Numbe...
“Silicon Slip-Ups: The Ten Most Common Errors Processor Suppliers Make (Numbe...
 
“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...
“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...
“How Axelera AI Uses Digital Compute-in-memory to Deliver Fast and Energy-eff...
 
“How Arm’s Machine Learning Solution Enables Vision Transformers at the Edge,...
“How Arm’s Machine Learning Solution Enables Vision Transformers at the Edge,...“How Arm’s Machine Learning Solution Enables Vision Transformers at the Edge,...
“How Arm’s Machine Learning Solution Enables Vision Transformers at the Edge,...
 
“Nx EVOS: A New Enterprise Operating System for Video and Visual AI,” a Prese...
“Nx EVOS: A New Enterprise Operating System for Video and Visual AI,” a Prese...“Nx EVOS: A New Enterprise Operating System for Video and Visual AI,” a Prese...
“Nx EVOS: A New Enterprise Operating System for Video and Visual AI,” a Prese...
 
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
“Building and Scaling AI Applications with the Nx AI Manager,” a Presentation...
 
"OpenCV for High-performance, Low-power Vision Applications on Snapdragon," a...
"OpenCV for High-performance, Low-power Vision Applications on Snapdragon," a..."OpenCV for High-performance, Low-power Vision Applications on Snapdragon," a...
"OpenCV for High-performance, Low-power Vision Applications on Snapdragon," a...
 
“Deploying Large Models on the Edge: Success Stories and Challenges,” a Prese...
“Deploying Large Models on the Edge: Success Stories and Challenges,” a Prese...“Deploying Large Models on the Edge: Success Stories and Challenges,” a Prese...
“Deploying Large Models on the Edge: Success Stories and Challenges,” a Prese...
 
“Scaling Vision-based Edge AI Solutions: From Prototype to Global Deployment,...
“Scaling Vision-based Edge AI Solutions: From Prototype to Global Deployment,...“Scaling Vision-based Edge AI Solutions: From Prototype to Global Deployment,...
“Scaling Vision-based Edge AI Solutions: From Prototype to Global Deployment,...
 
“What’s Next in On-device Generative AI,” a Presentation from Qualcomm
“What’s Next in On-device Generative AI,” a Presentation from Qualcomm“What’s Next in On-device Generative AI,” a Presentation from Qualcomm
“What’s Next in On-device Generative AI,” a Presentation from Qualcomm
 
“Learning Compact DNN Models for Embedded Vision,” a Presentation from the Un...
“Learning Compact DNN Models for Embedded Vision,” a Presentation from the Un...“Learning Compact DNN Models for Embedded Vision,” a Presentation from the Un...
“Learning Compact DNN Models for Embedded Vision,” a Presentation from the Un...
 
“Introduction to Computer Vision with CNNs,” a Presentation from Mohammad Hag...
“Introduction to Computer Vision with CNNs,” a Presentation from Mohammad Hag...“Introduction to Computer Vision with CNNs,” a Presentation from Mohammad Hag...
“Introduction to Computer Vision with CNNs,” a Presentation from Mohammad Hag...
 
“Selecting Tools for Developing, Monitoring and Maintaining ML Models,” a Pre...
“Selecting Tools for Developing, Monitoring and Maintaining ML Models,” a Pre...“Selecting Tools for Developing, Monitoring and Maintaining ML Models,” a Pre...
“Selecting Tools for Developing, Monitoring and Maintaining ML Models,” a Pre...
 
“Building Accelerated GStreamer Applications for Video and Audio AI,” a Prese...
“Building Accelerated GStreamer Applications for Video and Audio AI,” a Prese...“Building Accelerated GStreamer Applications for Video and Audio AI,” a Prese...
“Building Accelerated GStreamer Applications for Video and Audio AI,” a Prese...
 
“Understanding, Selecting and Optimizing Object Detectors for Edge Applicatio...
“Understanding, Selecting and Optimizing Object Detectors for Edge Applicatio...“Understanding, Selecting and Optimizing Object Detectors for Edge Applicatio...
“Understanding, Selecting and Optimizing Object Detectors for Edge Applicatio...
 
“Introduction to Modern LiDAR for Machine Perception,” a Presentation from th...
“Introduction to Modern LiDAR for Machine Perception,” a Presentation from th...“Introduction to Modern LiDAR for Machine Perception,” a Presentation from th...
“Introduction to Modern LiDAR for Machine Perception,” a Presentation from th...
 
“Vision-language Representations for Robotics,” a Presentation from the Unive...
“Vision-language Representations for Robotics,” a Presentation from the Unive...“Vision-language Representations for Robotics,” a Presentation from the Unive...
“Vision-language Representations for Robotics,” a Presentation from the Unive...
 
“ADAS and AV Sensors: What’s Winning and Why?,” a Presentation from TechInsights
“ADAS and AV Sensors: What’s Winning and Why?,” a Presentation from TechInsights“ADAS and AV Sensors: What’s Winning and Why?,” a Presentation from TechInsights
“ADAS and AV Sensors: What’s Winning and Why?,” a Presentation from TechInsights
 
“Computer Vision in Sports: Scalable Solutions for Downmarkets,” a Presentati...
“Computer Vision in Sports: Scalable Solutions for Downmarkets,” a Presentati...“Computer Vision in Sports: Scalable Solutions for Downmarkets,” a Presentati...
“Computer Vision in Sports: Scalable Solutions for Downmarkets,” a Presentati...
 
“Detecting Data Drift in Image Classification Neural Networks,” a Presentatio...
“Detecting Data Drift in Image Classification Neural Networks,” a Presentatio...“Detecting Data Drift in Image Classification Neural Networks,” a Presentatio...
“Detecting Data Drift in Image Classification Neural Networks,” a Presentatio...
 
“Deep Neural Network Training: Diagnosing Problems and Implementing Solutions...
“Deep Neural Network Training: Diagnosing Problems and Implementing Solutions...“Deep Neural Network Training: Diagnosing Problems and Implementing Solutions...
“Deep Neural Network Training: Diagnosing Problems and Implementing Solutions...
 

Recently uploaded

Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
James Anderson
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
Neo4j
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
Kari Kakkonen
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
SOFTTECHHUB
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
shyamraj55
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
Daiki Mogmet Ito
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
Matthew Sinclair
 
Large Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial ApplicationsLarge Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial Applications
Rohit Gautam
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
Alpen-Adria-Universität
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Malak Abu Hammad
 
Data structures and Algorithms in Python.pdf
Data structures and Algorithms in Python.pdfData structures and Algorithms in Python.pdf
Data structures and Algorithms in Python.pdf
TIPNGVN2
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
Quotidiano Piemontese
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
Kumud Singh
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
innovationoecd
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
mikeeftimakis1
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
DianaGray10
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 

Recently uploaded (20)

Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
Alt. GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using ...
 
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
GraphSummit Singapore | The Future of Agility: Supercharging Digital Transfor...
 
TrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy SurveyTrustArc Webinar - 2024 Global Privacy Survey
TrustArc Webinar - 2024 Global Privacy Survey
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
 
Climate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing DaysClimate Impact of Software Testing at Nordic Testing Days
Climate Impact of Software Testing at Nordic Testing Days
 
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
Why You Should Replace Windows 11 with Nitrux Linux 3.5.0 for enhanced perfor...
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
 
How to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For FlutterHow to use Firebase Data Connect For Flutter
How to use Firebase Data Connect For Flutter
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
 
Large Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial ApplicationsLarge Language Model (LLM) and it’s Geospatial Applications
Large Language Model (LLM) and it’s Geospatial Applications
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
 
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfUnlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdf
 
Data structures and Algorithms in Python.pdf
Data structures and Algorithms in Python.pdfData structures and Algorithms in Python.pdf
Data structures and Algorithms in Python.pdf
 
National Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practicesNational Security Agency - NSA mobile device best practices
National Security Agency - NSA mobile device best practices
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
Presentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of GermanyPresentation of the OECD Artificial Intelligence Review of Germany
Presentation of the OECD Artificial Intelligence Review of Germany
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 

“COVID-19 Safe Distancing Measures in Public Spaces with Edge AI,” a Presentation from the Government Technology Agency of Singapore

  • 1. COVID-19 Safe Distancing Measures in Public Spaces with Edge AI Ebi Jose, PhD Senior Systems Engineer Government Technology Agency of Singapore
  • 2. Government Technology Agency of Singapore (GovTech) • Is a statutory board of the Government of Singapore, under the Prime Minister's Office • 5 Capability Centres, conducting 3 key activities TECHNOLOGY EXPERIMENTATION PRODUCT ENGINEERING & DEVELOPMENT TECHNOLOGY ADVISORY & CONSULTANCY ENGINEERING EXPERTISE in: • Sensors & IoT (SIoT) • Cybersecurity • Data Science & AI • Infrastructure • Applications Design, Development, Deployment • Generate key technologies for Whole of Government • Establish key partnerships with industry players and research institutions • Develop core technologies, standards and guidelines • Provide technical consultation. • Develop POCs and products © 2022 Government Technology Agency of Singapore (GovTech) 2
  • 3. • Whether it’s indoor environments (supermarkets, museums, etc.) or outdoors (parks), crowd management is a priority. • By combining edge AI solutions with cloud connectivity, government agencies are equipped with information they need to manage the crowd effectively. • Crowd counting deployments on the edge in indoor & outdoor environments are presented. Introduction 3 © 2022 Government Technology Agency of Singapore (GovTech) Camera 1 Camera 2 Camera 3 Indoors – Supermarkets, offices, museums Outdoors - Parks
  • 4. • Current state-of-the-art methods treat crowd counting as: • Detection-and-counting approach • Density map estimation • Where a deep neural network first produces a 2D crowd density map for a given input image, and… • …estimates total size of the crowd by summing the density values across all spatial locations of the density map. Key Approach in Indoor & Outdoor Visitor Counts 4 © 2022 Government Technology Agency of Singapore (GovTech) • For large crowds, the density map estimation approach is more robust than the detection-then-counting approach • as it is less sensitive to occlusion and clutter. • does not need to commit to binarized decisions at an early stage.
  • 5. People Counting in Indoor Environments - Hardware 5 © 2022 Government Technology Agency of Singapore (GovTech) Nvidia Jetson Nano Wi-Fi Antenna AC-DC Power supply Camera Data Cable Vent Nvidia Jetson Nano Dev Kit Aaeon BOXER-8223AI NVIDIA Jetson Nano One edge device can process up to 2 cameras.
  • 6. People Counting in Indoor Environments - Software 6 © 2022 Government Technology Agency of Singapore (GovTech) Version 1 Version 2 Model SSD-Mobilenet v2 PeopleNet Pre-trained dataset MS-COCO Nvidia Proprietary Initial Object Classes 80 3 Object class after transfer learning 1 (i.e. person) 1 (i.e. person) Model optimization TensorRT (FP16) TensorRT (FP16) DeepStream No Yes Tracking Simple Online and Realtime Tracking (SORT) https://github.com/abewley/sort NvDCF tracker Accuracy 86% 91% Software Version Model TensorRT FPS CPU Usage GPU Usage RAM Usage (Gb) Version 1 SSD Mobilenet v2 No 17 49% (avg.) 70% (avg.) 2.9 / 4.0 SSD Mobilenet v2 Yes 23 35% (avg.) 50% (avg.) 2.7 / 4.0 Version 2 Nvidia PeopleNet Yes 25 40% (avg.) 50% (avg.) 2.7 / 4.0
  • 7. People Counting Indoors 7 © 2022 Government Technology Agency of Singapore (GovTech) • Transfer learning with custom dataset can achieve detection accuracy > 91%. • (Almost) a solved problem!
  • 8. Crowd Counting in Outdoor Environments
  • 9. • A challenging computer vision problem due to: • Heavy occlusion • Perspective distortion • Scale variation • Diverse crowd distribution Crowd Counting in Outdoors 9 © 2022 Government Technology Agency of Singapore (GovTech)
  • 10. • Crowd counting algorithms predict a density map from a crowd image. Summation of the density map is the crowd count. • Each training image contains multiple people, each person is annotated by a dot. • MSFANet crowd counting method • Combination of multi-scale-aware modules and dual path decoder • Predicts density maps and attention maps for highlighting crowd regions in input image. • Uses a Gaussian kernel to smooth each annotated dot. • Is trained on L2 pixel-wise loss. • Sensitive to the choice of variance in the Gaussian kernel. • DM-Count crowd counting method • Considers density maps and dot maps as probability distributions. • Loss composed of optimal transport (OT) loss, total variation (TV) pixel-wise loss & counting loss (CL). Crowd Density Methods – MSFANet & DM-Count 10 © 2022 Government Technology Agency of Singapore (GovTech)
  • 11. Multi-Scale Feature Adaptive Network (M-SFANet) – Data Preprocessing 11 © 2022 Government Technology Agency of Singapore (GovTech) Convolve the head annotation with Gaussian kernel (G) which has fixed standard deviation (σ). Assuming a head annotation at pixel 𝑥𝑖, represented as 𝛿 𝑥 − 𝑥𝑖 , density map, 𝐷 𝑥 = ෍ 𝑖=1 𝑁 𝛿 𝑥 − 𝑥𝑖 ∗ 𝐺𝜎 𝑥 where N = total number of headcounts. attention map, 𝐴(𝑖) = ቊ 0 = 0.001 > 𝐷(𝑖) 1 = 0.001 ≤ 𝐷(𝑖)
  • 12. M-SFANet Architecture (1) 12 © 2022 Government Technology Agency of Singapore (GovTech) Atrous spatial pyramid pooling (ASPP) with augmented image-level features
  • 13. M-SFANet Architecture (2) 13 © 2022 Government Technology Agency of Singapore (GovTech) Context-aware module (CAN)
  • 14. Crowd Counting in Outdoors – DM Count Estimation 14 © 2022 Government Technology Agency of Singapore (GovTech) Input Image Predicted Density Map Annotations (Ground Truth Count = 54) VGG19 model • Almost all previous work converts the sparse point annotation into dense ground truth maps. • Each point is replaced by a gaussian blob. • DM-Count paper shows that imposing Gaussians to annotations hurts generalization performance. How to measure discrepancy for training?
  • 15. • Counting loss (𝑙𝐶): absolute loss between ground truth and predicted counts • The Optimal Transport loss (𝑙𝑂𝑇): The OT similarity measurements provide valid gradients that can train a network if the source distribution does not overlap with the target distribution. • Total Variation loss (𝑙𝑇𝑉): Improve stability when optimising the OT loss with the Sinkhorn algorithm. DM-Count Loss 15 © 2022 Government Technology Agency of Singapore (GovTech) Total loss, 𝑙 𝒀, ෡ 𝒀 = 𝑙𝐶 𝒀, ෡ 𝒀 + 𝜆1𝑙𝑂𝑇 𝒀, ෡ 𝒀 + 𝜆2| 𝒀 |1𝑙𝑇𝑉(𝒀, ෡ 𝒀) • DM-Count considers density map as distributions. • Use of Optimal Transport (OT) to compute the distance between density maps. Sparse annotations Target distribution Predicted density map Source distribution Distribution distance
  • 16. People Counting Outdoors - Workflow 16 © 2022 Government Technology Agency of Singapore (GovTech) Training • Google cloud, used 1 K80 GPU • Max epochs – 500 • Learning rate – 1e-05 • Batch size - 10 • Weight decay – 0.0001
  • 17. People Counting Outdoors - Cloud Backend and UI 17 © 2022 Government Technology Agency of Singapore (GovTech) User Interface Cloud Backend
  • 18. Crowd Counting Outdoors – Hardware & Software 18 © 2022 Government Technology Agency of Singapore (GovTech) AAEON Boxer-8253AI • Nvidia Jetson Xavier NX • 8GB LPDDR4x • Storage option: 16GB eMMC and 64GB MicroSD • GbE PoE/PSE LAN x 2 • Quectel EP06: LTE-A Cat 6 module with Mini PCIe form factor Pytorch Model on Nvidia Jetson Xavier NX TensorRT (FP-16) on Nvidia Jetson Xavier NX Model Accuracy (%) Latency (sec) DM-Count 92.10 3.467 M-SFANet 88.99 8.841 Model Accuracy (%) Latency (sec) DM-Count 91.08 0.380 M-SFANet 86.46 0.637 Model DM-Count MSFANet Dataset UCF QNRF, Custom UCF QNRF, Custom Framework Pytorch 1.2 Pytorch 1.2 Model optimization TensorRT (FP16) TensorRT (FP16)
  • 19. Crowd Counting Outdoors – Results 19 2022 Government Technology Agency of Singapore (GovTech)
  • 20. Crowd Counting in Outdoors – DM-Count Results 20 © 2022 Government Technology Agency of Singapore (GovTech)
  • 21. • Accurate people counting: • For indoor environments, is almost a solved problem, when there are less/no occlusions. • For outdoor environments, is a challenging problem due to: • Heavy occlusion • Perspective distortion • Scale variation • Diverse crowd distribution • DM-Count performed well even with occlusions, providing accurate counts. Summary 21 © 2022 Government Technology Agency of Singapore (GovTech)
  • 22. Resources 22 © 2022 Government Technology Agency of Singapore (GovTech) Sensors & IoT Department https://www.tech.gov.sg/capability-centre-siot Government Technology Agency of Singapore (GovTech) https://www.tech.gov.sg M-SFANet for Count Counting (original paper and code) https://arxiv.org/abs/2003.05586 https://github.com/Pongpisit-Thanasutives/Variations-of-SFANet-for-Crowd-Counting Distribution Matching for Count Counting (original paper and code) https://arxiv.org/abs/2009.13077 https://github.com/cvlab-stonybrook/DM-Count