IEEE Consumer Electronics Magazine - January/February 2022 - 54

Special Section on Security and Sustainability Technologies for Smart Cities
Figure 4. Distance matrix for Simulated CAN Data.
then corresponds to a probability distribution,
and EM-GMM tries to discover their parameters
(mean and covariance). Although this algorithm
requires prior knowledge of the number of clusters,
we chose to use it because it can help to
investigate if a particular CAN ID belongs with
multiple vehicular functions.
EVALUATION
We implemented the four clustering approaches
in Python with the numpy and scipy
libraries, and with the PyClustering tool.10 We
evaluate our approach using 2 CAN data sets: simulatedCAN
data and real J1939.
Simulated CAN Data
We conducted a feasibility study using a simulated
CAN data log with 10 different CAN IDs, simulating
an acceleration mode and a braking mode.
This data log hadmessages with different frequencies
and message intervals to simulate real data.
There were five IDs specifically related to acceleration
and another four IDs related to braking, with
one message that was transmitted during both
modes. This data was used to verify and validate
our hypothesis that clustering can be effective.
GiventhatrawCANdataisdependent on the vehicle
it was captured from, our simulated data gives
us a baseline to understand the workings of our
algorithms when applied toward raw captured
CAN data. Simulated data was generated using
Vector CANoe and has complete information
about the relationship between messages and
vehicle functions.
Figure 4 shows the distance matrix for this
data. We passed this matrix into the AH clustering
algorithm as well as a dendrogram creator. A
dendrogram visualizes hierarchical clustering in
a tree-like structure that records the sequences
of merges of the leaves, in this case, the CAN
messages. The dendrogram (see Figure 5) is
54
Figure 5. Dendrogram for Simulated CAN Data. The
two major groupings for the CAN IDs are easily
distinguished visually.
created from the leaves first to create the cluster
tree. It shows that there are two clusters of the
CAN IDs, which is expected since we simulated
two separate driving modes of braking and accelerating.
Our clustering algorithm confirmed the
dendrogram results. CAN IDs 1-5 and 8 were designated
as accelerating and were clustered into
one group, and CAN IDs 6, 7, 9, and 10 were designated
as braking and clustered into another
group. The simulated data was used to confirm
our hypothesis and approach before applying
clustering to real CAN data.
Real J1939 Data
To address the chicken-and-egg problem of
incomplete information about the ground truth
that our clustering algorithms are trying to discover,
we obtained CAN data that followed the
J1939 standard to examine the performance of our
approach. The Society of Automotive Engineers
standard SAE J1939 is the vehicle bus standard
based on CAN that has been widely adopted by
diesel engine manufacturers for use in large tractors
and trucks.11 This standard defines that all
J1939 packets, except for the request packet,
should contain eight bytes of data and a standard
header which contains a Parameter Group Number
(PGN), that is embedded in the message's 29bit
identifier. A PGN identifies a message's function
and associated data. J1939 attempts to define
standardPGNs to encompass a wide range of automotive
and other vehicle purposes. PGNs define
the message functions so we validate the clustering
algorithm results by using the standard as a
basis for ground truth.
The J1939 data set was captured from a John
Deere tractor as it performed tillage operations
at different sites. This data set is raw, has no
IEEE Consumer Electronics Magazine

IEEE Consumer Electronics Magazine - January/February 2022

Table of Contents for the Digital Edition of IEEE Consumer Electronics Magazine - January/February 2022

Contents
IEEE Consumer Electronics Magazine - January/February 2022 - Cover1
IEEE Consumer Electronics Magazine - January/February 2022 - Cover2
IEEE Consumer Electronics Magazine - January/February 2022 - Contents
IEEE Consumer Electronics Magazine - January/February 2022 - 2
IEEE Consumer Electronics Magazine - January/February 2022 - 3
IEEE Consumer Electronics Magazine - January/February 2022 - 4
IEEE Consumer Electronics Magazine - January/February 2022 - 5
IEEE Consumer Electronics Magazine - January/February 2022 - 6
IEEE Consumer Electronics Magazine - January/February 2022 - 7
IEEE Consumer Electronics Magazine - January/February 2022 - 8
IEEE Consumer Electronics Magazine - January/February 2022 - 9
IEEE Consumer Electronics Magazine - January/February 2022 - 10
IEEE Consumer Electronics Magazine - January/February 2022 - 11
IEEE Consumer Electronics Magazine - January/February 2022 - 12
IEEE Consumer Electronics Magazine - January/February 2022 - 13
IEEE Consumer Electronics Magazine - January/February 2022 - 14
IEEE Consumer Electronics Magazine - January/February 2022 - 15
IEEE Consumer Electronics Magazine - January/February 2022 - 16
IEEE Consumer Electronics Magazine - January/February 2022 - 17
IEEE Consumer Electronics Magazine - January/February 2022 - 18
IEEE Consumer Electronics Magazine - January/February 2022 - 19
IEEE Consumer Electronics Magazine - January/February 2022 - 20
IEEE Consumer Electronics Magazine - January/February 2022 - 21
IEEE Consumer Electronics Magazine - January/February 2022 - 22
IEEE Consumer Electronics Magazine - January/February 2022 - 23
IEEE Consumer Electronics Magazine - January/February 2022 - 24
IEEE Consumer Electronics Magazine - January/February 2022 - 25
IEEE Consumer Electronics Magazine - January/February 2022 - 26
IEEE Consumer Electronics Magazine - January/February 2022 - 27
IEEE Consumer Electronics Magazine - January/February 2022 - 28
IEEE Consumer Electronics Magazine - January/February 2022 - 29
IEEE Consumer Electronics Magazine - January/February 2022 - 30
IEEE Consumer Electronics Magazine - January/February 2022 - 31
IEEE Consumer Electronics Magazine - January/February 2022 - 32
IEEE Consumer Electronics Magazine - January/February 2022 - 33
IEEE Consumer Electronics Magazine - January/February 2022 - 34
IEEE Consumer Electronics Magazine - January/February 2022 - 35
IEEE Consumer Electronics Magazine - January/February 2022 - 36
IEEE Consumer Electronics Magazine - January/February 2022 - 37
IEEE Consumer Electronics Magazine - January/February 2022 - 38
IEEE Consumer Electronics Magazine - January/February 2022 - 39
IEEE Consumer Electronics Magazine - January/February 2022 - 40
IEEE Consumer Electronics Magazine - January/February 2022 - 41
IEEE Consumer Electronics Magazine - January/February 2022 - 42
IEEE Consumer Electronics Magazine - January/February 2022 - 43
IEEE Consumer Electronics Magazine - January/February 2022 - 44
IEEE Consumer Electronics Magazine - January/February 2022 - 45
IEEE Consumer Electronics Magazine - January/February 2022 - 46
IEEE Consumer Electronics Magazine - January/February 2022 - 47
IEEE Consumer Electronics Magazine - January/February 2022 - 48
IEEE Consumer Electronics Magazine - January/February 2022 - 49
IEEE Consumer Electronics Magazine - January/February 2022 - 50
IEEE Consumer Electronics Magazine - January/February 2022 - 51
IEEE Consumer Electronics Magazine - January/February 2022 - 52
IEEE Consumer Electronics Magazine - January/February 2022 - 53
IEEE Consumer Electronics Magazine - January/February 2022 - 54
IEEE Consumer Electronics Magazine - January/February 2022 - 55
IEEE Consumer Electronics Magazine - January/February 2022 - 56
IEEE Consumer Electronics Magazine - January/February 2022 - 57
IEEE Consumer Electronics Magazine - January/February 2022 - 58
IEEE Consumer Electronics Magazine - January/February 2022 - 59
IEEE Consumer Electronics Magazine - January/February 2022 - 60
IEEE Consumer Electronics Magazine - January/February 2022 - 61
IEEE Consumer Electronics Magazine - January/February 2022 - 62
IEEE Consumer Electronics Magazine - January/February 2022 - 63
IEEE Consumer Electronics Magazine - January/February 2022 - 64
IEEE Consumer Electronics Magazine - January/February 2022 - 65
IEEE Consumer Electronics Magazine - January/February 2022 - 66
IEEE Consumer Electronics Magazine - January/February 2022 - 67
IEEE Consumer Electronics Magazine - January/February 2022 - 68
IEEE Consumer Electronics Magazine - January/February 2022 - 69
IEEE Consumer Electronics Magazine - January/February 2022 - 70
IEEE Consumer Electronics Magazine - January/February 2022 - 71
IEEE Consumer Electronics Magazine - January/February 2022 - 72
IEEE Consumer Electronics Magazine - January/February 2022 - 73
IEEE Consumer Electronics Magazine - January/February 2022 - 74
IEEE Consumer Electronics Magazine - January/February 2022 - 75
IEEE Consumer Electronics Magazine - January/February 2022 - 76
IEEE Consumer Electronics Magazine - January/February 2022 - 77
IEEE Consumer Electronics Magazine - January/February 2022 - 78
IEEE Consumer Electronics Magazine - January/February 2022 - 79
IEEE Consumer Electronics Magazine - January/February 2022 - 80
IEEE Consumer Electronics Magazine - January/February 2022 - 81
IEEE Consumer Electronics Magazine - January/February 2022 - 82
IEEE Consumer Electronics Magazine - January/February 2022 - 83
IEEE Consumer Electronics Magazine - January/February 2022 - 84
IEEE Consumer Electronics Magazine - January/February 2022 - 85
IEEE Consumer Electronics Magazine - January/February 2022 - 86
IEEE Consumer Electronics Magazine - January/February 2022 - 87
IEEE Consumer Electronics Magazine - January/February 2022 - 88
IEEE Consumer Electronics Magazine - January/February 2022 - 89
IEEE Consumer Electronics Magazine - January/February 2022 - 90
IEEE Consumer Electronics Magazine - January/February 2022 - 91
IEEE Consumer Electronics Magazine - January/February 2022 - 92
IEEE Consumer Electronics Magazine - January/February 2022 - 93
IEEE Consumer Electronics Magazine - January/February 2022 - 94
IEEE Consumer Electronics Magazine - January/February 2022 - 95
IEEE Consumer Electronics Magazine - January/February 2022 - 96
IEEE Consumer Electronics Magazine - January/February 2022 - Cover3
IEEE Consumer Electronics Magazine - January/February 2022 - 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