IEEE Robotics & Automation Magazine - December 2023 - 70
fast speed and high precision [18], which was selected as the
basic model for cow face detection.
The network architecture of YOLOv5s consists of backbone,
neck, and head. The backbone part is composed of
cross-stage partial network (CSPNet) and spatial pyramid
pooling (SPPF), which map the features of the base layer into
two parts, and carry out feature fusion through local crosslayer
structure. The neck part uses a path aggregation network
(PANet) to effectively aggregate the semantic information in
the high level, and then fuses the shallow-layer features from
the bottom up. The head is used to make a final prediction
based on the features obtained from the neck layer.
In this study, the cow face detection and recognition results
are output. Although YOLOv5s is feasible to extract cow face
Backbone
Conv
Conv
C3
CA
Conv
C3
CA
Conv
C3
CA
Upsample
Conv
C3
CA
SPPF
Detection Box
Position
Embedding
Class Token
Transformer
Encoder
DeepSORT-ViT MULTIOBJECT
TRACKING
Based on YOLOv5s-CA detection
and recognition of cow face, the
multiface tracking method was further
studied. DeepSORT is an online
target tracking algorithm, which
mainly includes track state estimation,
association, and cascade matching
[12]. The information on track
state estimation is defined in the 8D
state space (,xc
h ).o
y ,c
c , h,
x ,
.
c
y ,
.
c
c ,o
The first four variables are the
DeepSORT
Track
ReID
Output
FIGURE 1. YOLOv5s-CA+DeepSORT-ViT base on cow tracking and feeding monitoring.
70 IEEE ROBOTICS & AUTOMATION MAGAZINE DECEMBER 2023
coordinates of the center of the face
frame, aspect, ratio, and height, respectively;
the last four variables are the
change rate of the corresponding
variables. The KF algorithm is used
to predict the position and state of
the target in the next frame. For
association and cascade matching,
the Hungarian algorithm is used to
Conv
C3
YOLO
HEAD
Concat
C3
Concat
Upsample
Conv
Concat
C3
Conv
YOLO
HEAD
Neck
C3
Concat
Conv
where
gic
h
() and
gjc
w
() represent the
attention weight matrix of H and W,
respectively. Finally, the acquired
image (, )yi jc
enhances the sensitivity
to position information. As shown in
Figure 2, CA was added to each C3
module in the backbone part of
YOLOv5s, and (, )yi jc
passed through
the neck and head parts to output the
cow face detection results for subsequent
tracking.
YOLO
HEAD
features, the complex background (e.g., pens, crush, forages)
brings visual occlusions, which affect the face detection performance.
To further focus on the cow face-related features,
CA was added [19] in the YOLOv5s.
As shown in Figure 2, CA embeds coordinate information
into channel attention, then generates the so-called CA. For
input face feature X, the pooled kernels of dimensions (H, 1)
and (1, W) are used to encode each channel along horizontal
and vertical coordinate directions. The two spatial direction
coding output expressions are as follows:
zh 11 xj w(, ).
w
W 1
-
c
h
()
==
=
W 0
i
xh iz w
c
c(, ), ()
H 1
-
// (1)
Then the output tensors of the two
H i =0
c
spatial directions () and ()
zhc
h
Prediction
zwc
w
are splicing, using 11# convolution.
The final acquired facial feature output
is:
yi jx ij gi gjcc c
h
(, )(,)
= ## w
()
c () (2)
Patch Embedding
IEEE Robotics & Automation Magazine - December 2023
Table of Contents for the Digital Edition of IEEE Robotics & Automation Magazine - December 2023
Contents
IEEE Robotics & Automation Magazine - December 2023 - Cover1
IEEE Robotics & Automation Magazine - December 2023 - Cover2
IEEE Robotics & Automation Magazine - December 2023 - 1
IEEE Robotics & Automation Magazine - December 2023 - Contents
IEEE Robotics & Automation Magazine - December 2023 - 3
IEEE Robotics & Automation Magazine - December 2023 - 4
IEEE Robotics & Automation Magazine - December 2023 - 5
IEEE Robotics & Automation Magazine - December 2023 - 6
IEEE Robotics & Automation Magazine - December 2023 - 7
IEEE Robotics & Automation Magazine - December 2023 - 8
IEEE Robotics & Automation Magazine - December 2023 - 9
IEEE Robotics & Automation Magazine - December 2023 - 10
IEEE Robotics & Automation Magazine - December 2023 - 11
IEEE Robotics & Automation Magazine - December 2023 - 12
IEEE Robotics & Automation Magazine - December 2023 - 13
IEEE Robotics & Automation Magazine - December 2023 - 14
IEEE Robotics & Automation Magazine - December 2023 - 15
IEEE Robotics & Automation Magazine - December 2023 - 16
IEEE Robotics & Automation Magazine - December 2023 - 17
IEEE Robotics & Automation Magazine - December 2023 - 18
IEEE Robotics & Automation Magazine - December 2023 - 19
IEEE Robotics & Automation Magazine - December 2023 - 20
IEEE Robotics & Automation Magazine - December 2023 - 21
IEEE Robotics & Automation Magazine - December 2023 - 22
IEEE Robotics & Automation Magazine - December 2023 - 23
IEEE Robotics & Automation Magazine - December 2023 - 24
IEEE Robotics & Automation Magazine - December 2023 - 25
IEEE Robotics & Automation Magazine - December 2023 - 26
IEEE Robotics & Automation Magazine - December 2023 - 27
IEEE Robotics & Automation Magazine - December 2023 - 28
IEEE Robotics & Automation Magazine - December 2023 - 29
IEEE Robotics & Automation Magazine - December 2023 - 30
IEEE Robotics & Automation Magazine - December 2023 - 31
IEEE Robotics & Automation Magazine - December 2023 - 32
IEEE Robotics & Automation Magazine - December 2023 - 33
IEEE Robotics & Automation Magazine - December 2023 - 34
IEEE Robotics & Automation Magazine - December 2023 - 35
IEEE Robotics & Automation Magazine - December 2023 - 36
IEEE Robotics & Automation Magazine - December 2023 - 37
IEEE Robotics & Automation Magazine - December 2023 - 38
IEEE Robotics & Automation Magazine - December 2023 - 39
IEEE Robotics & Automation Magazine - December 2023 - 40
IEEE Robotics & Automation Magazine - December 2023 - 41
IEEE Robotics & Automation Magazine - December 2023 - 42
IEEE Robotics & Automation Magazine - December 2023 - 43
IEEE Robotics & Automation Magazine - December 2023 - 44
IEEE Robotics & Automation Magazine - December 2023 - 45
IEEE Robotics & Automation Magazine - December 2023 - 46
IEEE Robotics & Automation Magazine - December 2023 - 47
IEEE Robotics & Automation Magazine - December 2023 - 48
IEEE Robotics & Automation Magazine - December 2023 - 49
IEEE Robotics & Automation Magazine - December 2023 - 50
IEEE Robotics & Automation Magazine - December 2023 - 51
IEEE Robotics & Automation Magazine - December 2023 - 52
IEEE Robotics & Automation Magazine - December 2023 - 53
IEEE Robotics & Automation Magazine - December 2023 - 54
IEEE Robotics & Automation Magazine - December 2023 - 55
IEEE Robotics & Automation Magazine - December 2023 - 56
IEEE Robotics & Automation Magazine - December 2023 - 57
IEEE Robotics & Automation Magazine - December 2023 - 58
IEEE Robotics & Automation Magazine - December 2023 - 59
IEEE Robotics & Automation Magazine - December 2023 - 60
IEEE Robotics & Automation Magazine - December 2023 - 61
IEEE Robotics & Automation Magazine - December 2023 - 62
IEEE Robotics & Automation Magazine - December 2023 - 63
IEEE Robotics & Automation Magazine - December 2023 - 64
IEEE Robotics & Automation Magazine - December 2023 - 65
IEEE Robotics & Automation Magazine - December 2023 - 66
IEEE Robotics & Automation Magazine - December 2023 - 67
IEEE Robotics & Automation Magazine - December 2023 - 68
IEEE Robotics & Automation Magazine - December 2023 - 69
IEEE Robotics & Automation Magazine - December 2023 - 70
IEEE Robotics & Automation Magazine - December 2023 - 71
IEEE Robotics & Automation Magazine - December 2023 - 72
IEEE Robotics & Automation Magazine - December 2023 - 73
IEEE Robotics & Automation Magazine - December 2023 - 74
IEEE Robotics & Automation Magazine - December 2023 - 75
IEEE Robotics & Automation Magazine - December 2023 - 76
IEEE Robotics & Automation Magazine - December 2023 - 77
IEEE Robotics & Automation Magazine - December 2023 - 78
IEEE Robotics & Automation Magazine - December 2023 - 79
IEEE Robotics & Automation Magazine - December 2023 - 80
IEEE Robotics & Automation Magazine - December 2023 - 81
IEEE Robotics & Automation Magazine - December 2023 - 82
IEEE Robotics & Automation Magazine - December 2023 - 83
IEEE Robotics & Automation Magazine - December 2023 - 84
IEEE Robotics & Automation Magazine - December 2023 - 85
IEEE Robotics & Automation Magazine - December 2023 - 86
IEEE Robotics & Automation Magazine - December 2023 - 87
IEEE Robotics & Automation Magazine - December 2023 - 88
IEEE Robotics & Automation Magazine - December 2023 - 89
IEEE Robotics & Automation Magazine - December 2023 - 90
IEEE Robotics & Automation Magazine - December 2023 - 91
IEEE Robotics & Automation Magazine - December 2023 - 92
IEEE Robotics & Automation Magazine - December 2023 - 93
IEEE Robotics & Automation Magazine - December 2023 - 94
IEEE Robotics & Automation Magazine - December 2023 - 95
IEEE Robotics & Automation Magazine - December 2023 - 96
IEEE Robotics & Automation Magazine - December 2023 - 97
IEEE Robotics & Automation Magazine - December 2023 - 98
IEEE Robotics & Automation Magazine - December 2023 - 99
IEEE Robotics & Automation Magazine - December 2023 - 100
IEEE Robotics & Automation Magazine - December 2023 - 101
IEEE Robotics & Automation Magazine - December 2023 - 102
IEEE Robotics & Automation Magazine - December 2023 - 103
IEEE Robotics & Automation Magazine - December 2023 - 104
IEEE Robotics & Automation Magazine - December 2023 - 105
IEEE Robotics & Automation Magazine - December 2023 - 106
IEEE Robotics & Automation Magazine - December 2023 - 107
IEEE Robotics & Automation Magazine - December 2023 - 108
IEEE Robotics & Automation Magazine - December 2023 - 109
IEEE Robotics & Automation Magazine - December 2023 - 110
IEEE Robotics & Automation Magazine - December 2023 - 111
IEEE Robotics & Automation Magazine - December 2023 - 112
IEEE Robotics & Automation Magazine - December 2023 - 113
IEEE Robotics & Automation Magazine - December 2023 - 114
IEEE Robotics & Automation Magazine - December 2023 - 115
IEEE Robotics & Automation Magazine - December 2023 - 116
IEEE Robotics & Automation Magazine - December 2023 - 117
IEEE Robotics & Automation Magazine - December 2023 - 118
IEEE Robotics & Automation Magazine - December 2023 - 119
IEEE Robotics & Automation Magazine - December 2023 - 120
IEEE Robotics & Automation Magazine - December 2023 - 121
IEEE Robotics & Automation Magazine - December 2023 - 122
IEEE Robotics & Automation Magazine - December 2023 - 123
IEEE Robotics & Automation Magazine - December 2023 - 124
IEEE Robotics & Automation Magazine - December 2023 - Cover3
IEEE Robotics & Automation Magazine - December 2023 - Cover4
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_december2023
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_september2023
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_june2023
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_march2023
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_december2022
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_september2022
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_june2022
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_march2022
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_december2021
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_september2021
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_june2021
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_march2021
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_december2020
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_september2020
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_june2020
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_march2020
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_december2019
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_september2019
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_june2019
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_march2019
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_december2018
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_september2018
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_june2018
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_march2018
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_december2017
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_september2017
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_june2017
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_march2017
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_december2016
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_september2016
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_june2016
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_march2016
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_december2015
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_september2015
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_june2015
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_march2015
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_december2014
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_september2014
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_june2014
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_march2014
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_december2013
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_september2013
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_june2013
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_march2013
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_december2012
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_september2012
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_june2012
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_march2012
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_december2011
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_september2011
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_june2011
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_march2011
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_december2010
https://www.nxtbook.com/nxtbooks/ieee/roboticsautomation_september2010
https://www.nxtbookmedia.com