IEEE Consumer Electronics Magazine - January/February 2024 - 75
system's adaptability. Common benchmark datasets
such as ImageNet and COCO are often insufficient
due to the limited availability of annotated
data with diverse object labels. There are few
labeled datasets that identify objects as threats,
requiring custom images and videos with threat
objects and proper label annotations to design the
proposed online physical threat detection system.
Pretrained models on large datasets are frequently
used and then retrained on customdatasets.
Although faster R-CNN and RetinaNet are more
accurate than YOLO, YOLO's real-time detection
capability outshines other detection algorithms.
In Jiang et al.6 YOLOv3-SPP was identified as having
high mAP and precision, but not ideal for edge
deployment due to its low speed and high storage
requirements. YOLOv5-s is recommended for
edge deployment with a compact size of 14 MB,
fast speed of 41 FPS, and high mAP and precision
of 0.803 and 0.638, respectively, outperforming
YOLOv3-SPP. GhostNet12
generated reduced boundary box
learning and implementation phases, which are
explained in detail in this section.
Learning Phase
The learning phase consists of the process of
preprocessing the dataset, using the data to
train the YOLO model, and using the validation
dataset to test the model.
To improve the algorithm's ability to predict
images, data augmentation is necessary for both
the training and validation datasets. This
includes random crop, rotation, flips, saturation,
and exposure shifts. Manual labeling is required
for the augmented images and newly captured
images containing threat labels. A minimum of
1,500 images per class and 10,000 labeled objects
per class are recommended, and adding background
images with no objects can help reduce
false positives.
To make the OD model operational, the proand
coordinate attention
(CA)13 methods can make YOLOv5-s even
more lightweight but equally efficient. Using both
techniques14
loss, classification loss, and object confidence
loss in self-constructed data.11 It demonstrated
better performance of the YOLOv4 version with a
trimmed-down CSPdarknet53 and a modified
backbone neck with spatial pyramid pooling
(SPP) and feature pyramid network (FPN) for costeffectivesmall
OD.
The modified GhostNet and CA backbone of
YOLOv5-s can be improved with the same lightweight
neck structure used in YOLOv4 to
enhance our physical threat detection model
performance. YOLOv5 uses batch normalization,
leaky ReLU activation, stochastic gradient
descent optimization, binary cross-entropy for
classification loss, and mean squared error for
coordinate regression. Mean average precision
(mAP), intersection over union (IoU), precision,
recall, and frames per second (FPS) are used to
evaluate the proposed system.
DESIGN OF THE PROPOSED
FRAMEWORK
The proposed real-time physical threat
detection framework with online learning is presented
in Figure 1. It is composed of two parts:
January/February 2024
posed YOLO model is fed with annotated thermal
and visual images. Pretrained weights are
suggested for small or medium datasets. The
YOLOv5 model's default settings obtain good
results on large and well-labeled datasets with
300 epochs recommended. Overfitting can
occur if the model is too complex. Regularization
techniques such as L1 (Lasso) and L2
(Ridge) regularization can be used in such
cases. Cross validation can also be used to
avoid overfitting. The batch size should always
be as large as the hardware allows as a lower
batch size generates poor batch normalization
statistics. YOLOv5 has approximately 30
hyperparameters for training. A genetic algorithm
(GA) is provided to optimize these
hyperparameters, producing an optimal value
by repeatedly mutating parent hyperparameters.
For best results, 300 generation cycles
are recommended, and the hyperparameters
from the best-performing cycle are chosen for
the model.
The performance of the YOLO model on the
test image dataset can be evaluated using the
validation dataset. This evaluation involves
estimating the model's localization and classification
errors, using the evaluation metrics
IEEE Consumer Electronics Magazine - January/February 2024
Table of Contents for the Digital Edition of IEEE Consumer Electronics Magazine - January/February 2024
Contents
IEEE Consumer Electronics Magazine - January/February 2024 - Cover1
IEEE Consumer Electronics Magazine - January/February 2024 - Cover2
IEEE Consumer Electronics Magazine - January/February 2024 - Contents
IEEE Consumer Electronics Magazine - January/February 2024 - 2
IEEE Consumer Electronics Magazine - January/February 2024 - 3
IEEE Consumer Electronics Magazine - January/February 2024 - 4
IEEE Consumer Electronics Magazine - January/February 2024 - 5
IEEE Consumer Electronics Magazine - January/February 2024 - 6
IEEE Consumer Electronics Magazine - January/February 2024 - 7
IEEE Consumer Electronics Magazine - January/February 2024 - 8
IEEE Consumer Electronics Magazine - January/February 2024 - 9
IEEE Consumer Electronics Magazine - January/February 2024 - 10
IEEE Consumer Electronics Magazine - January/February 2024 - 11
IEEE Consumer Electronics Magazine - January/February 2024 - 12
IEEE Consumer Electronics Magazine - January/February 2024 - 13
IEEE Consumer Electronics Magazine - January/February 2024 - 14
IEEE Consumer Electronics Magazine - January/February 2024 - 15
IEEE Consumer Electronics Magazine - January/February 2024 - 16
IEEE Consumer Electronics Magazine - January/February 2024 - 17
IEEE Consumer Electronics Magazine - January/February 2024 - 18
IEEE Consumer Electronics Magazine - January/February 2024 - 19
IEEE Consumer Electronics Magazine - January/February 2024 - 20
IEEE Consumer Electronics Magazine - January/February 2024 - 21
IEEE Consumer Electronics Magazine - January/February 2024 - 22
IEEE Consumer Electronics Magazine - January/February 2024 - 23
IEEE Consumer Electronics Magazine - January/February 2024 - 24
IEEE Consumer Electronics Magazine - January/February 2024 - 25
IEEE Consumer Electronics Magazine - January/February 2024 - 26
IEEE Consumer Electronics Magazine - January/February 2024 - 27
IEEE Consumer Electronics Magazine - January/February 2024 - 28
IEEE Consumer Electronics Magazine - January/February 2024 - 29
IEEE Consumer Electronics Magazine - January/February 2024 - 30
IEEE Consumer Electronics Magazine - January/February 2024 - 31
IEEE Consumer Electronics Magazine - January/February 2024 - 32
IEEE Consumer Electronics Magazine - January/February 2024 - 33
IEEE Consumer Electronics Magazine - January/February 2024 - 34
IEEE Consumer Electronics Magazine - January/February 2024 - 35
IEEE Consumer Electronics Magazine - January/February 2024 - 36
IEEE Consumer Electronics Magazine - January/February 2024 - 37
IEEE Consumer Electronics Magazine - January/February 2024 - 38
IEEE Consumer Electronics Magazine - January/February 2024 - 39
IEEE Consumer Electronics Magazine - January/February 2024 - 40
IEEE Consumer Electronics Magazine - January/February 2024 - 41
IEEE Consumer Electronics Magazine - January/February 2024 - 42
IEEE Consumer Electronics Magazine - January/February 2024 - 43
IEEE Consumer Electronics Magazine - January/February 2024 - 44
IEEE Consumer Electronics Magazine - January/February 2024 - 45
IEEE Consumer Electronics Magazine - January/February 2024 - 46
IEEE Consumer Electronics Magazine - January/February 2024 - 47
IEEE Consumer Electronics Magazine - January/February 2024 - 48
IEEE Consumer Electronics Magazine - January/February 2024 - 49
IEEE Consumer Electronics Magazine - January/February 2024 - 50
IEEE Consumer Electronics Magazine - January/February 2024 - 51
IEEE Consumer Electronics Magazine - January/February 2024 - 52
IEEE Consumer Electronics Magazine - January/February 2024 - 53
IEEE Consumer Electronics Magazine - January/February 2024 - 54
IEEE Consumer Electronics Magazine - January/February 2024 - 55
IEEE Consumer Electronics Magazine - January/February 2024 - 56
IEEE Consumer Electronics Magazine - January/February 2024 - 57
IEEE Consumer Electronics Magazine - January/February 2024 - 58
IEEE Consumer Electronics Magazine - January/February 2024 - 59
IEEE Consumer Electronics Magazine - January/February 2024 - 60
IEEE Consumer Electronics Magazine - January/February 2024 - 61
IEEE Consumer Electronics Magazine - January/February 2024 - 62
IEEE Consumer Electronics Magazine - January/February 2024 - 63
IEEE Consumer Electronics Magazine - January/February 2024 - 64
IEEE Consumer Electronics Magazine - January/February 2024 - 65
IEEE Consumer Electronics Magazine - January/February 2024 - 66
IEEE Consumer Electronics Magazine - January/February 2024 - 67
IEEE Consumer Electronics Magazine - January/February 2024 - 68
IEEE Consumer Electronics Magazine - January/February 2024 - 69
IEEE Consumer Electronics Magazine - January/February 2024 - 70
IEEE Consumer Electronics Magazine - January/February 2024 - 71
IEEE Consumer Electronics Magazine - January/February 2024 - 72
IEEE Consumer Electronics Magazine - January/February 2024 - 73
IEEE Consumer Electronics Magazine - January/February 2024 - 74
IEEE Consumer Electronics Magazine - January/February 2024 - 75
IEEE Consumer Electronics Magazine - January/February 2024 - 76
IEEE Consumer Electronics Magazine - January/February 2024 - 77
IEEE Consumer Electronics Magazine - January/February 2024 - 78
IEEE Consumer Electronics Magazine - January/February 2024 - 79
IEEE Consumer Electronics Magazine - January/February 2024 - 80
IEEE Consumer Electronics Magazine - January/February 2024 - 81
IEEE Consumer Electronics Magazine - January/February 2024 - 82
IEEE Consumer Electronics Magazine - January/February 2024 - 83
IEEE Consumer Electronics Magazine - January/February 2024 - 84
IEEE Consumer Electronics Magazine - January/February 2024 - 85
IEEE Consumer Electronics Magazine - January/February 2024 - 86
IEEE Consumer Electronics Magazine - January/February 2024 - 87
IEEE Consumer Electronics Magazine - January/February 2024 - 88
IEEE Consumer Electronics Magazine - January/February 2024 - 89
IEEE Consumer Electronics Magazine - January/February 2024 - 90
IEEE Consumer Electronics Magazine - January/February 2024 - 91
IEEE Consumer Electronics Magazine - January/February 2024 - 92
IEEE Consumer Electronics Magazine - January/February 2024 - 93
IEEE Consumer Electronics Magazine - January/February 2024 - 94
IEEE Consumer Electronics Magazine - January/February 2024 - 95
IEEE Consumer Electronics Magazine - January/February 2024 - 96
IEEE Consumer Electronics Magazine - January/February 2024 - 97
IEEE Consumer Electronics Magazine - January/February 2024 - 98
IEEE Consumer Electronics Magazine - January/February 2024 - 99
IEEE Consumer Electronics Magazine - January/February 2024 - 100
IEEE Consumer Electronics Magazine - January/February 2024 - 101
IEEE Consumer Electronics Magazine - January/February 2024 - 102
IEEE Consumer Electronics Magazine - January/February 2024 - 103
IEEE Consumer Electronics Magazine - January/February 2024 - 104
IEEE Consumer Electronics Magazine - January/February 2024 - Cover3
IEEE Consumer Electronics Magazine - January/February 2024 - Cover4
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20240102
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20231112
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20230910
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20230708
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20230506
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20230304
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20230102
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20221112
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20220910
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20220708
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20220506
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20220304
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20220102
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20211112
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20210910
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20210708
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20210506
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_20210304
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_202010
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_202009
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_202007
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_202004
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_202003
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_202001
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_201910
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_201909
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_201907
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_201905
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_201903
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_201901
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_201811
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_201809
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_201807
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_201805
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_201803
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_july2017
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_april2017
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_january2017
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_october2016
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_july2016
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_april2016
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_january2016
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_october2015
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_july2015
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_april2015
https://www.nxtbook.com/nxtbooks/ieee/consumerelectronics_january2015
https://www.nxtbookmedia.com