ASHRAE Journal - February 2021 - 43

TECHNICAL FEATURE

can be used to test the algorithm proTABLE 1 Detection results of three datasets.
posed in this study.
DATA SET 3
DATA SET 1
DATA SET 2
For the above three sets of data, the
k-Nearest
k-Nearest
k-Nearest
Z-Score
Z-Score
Z-Score
Neighbor
Neighbor
Neighbor
parameter selection method proTP
163
115
155
90
265
158
posed in the " Calculation Method
of N and k " section above is used to
TN
15,532
15,120
15,434
15,511
15,562
15,048
select N and k, and the abnormal data
P
171
115
168
90
282
158
detection algorithm is used to detect
Q
15,609
15,665
15,821
15,899
15,616
15,740
the abnormal data. For the first set,
TP + TN
15,695
15,235
15,589
15,601
15,827
15,206
N = 50, k = 30. For the second set, N =
P+Q
15,780
15,780
15,989
15,989
15,898
15,898
60, k = 40. And for the third set, N =
ACC
99.5%
96.5%
97.5%
97.6%
99.6%
95.6%
50, k = 30. The data points of instantaneous flow rate, supply and return water temperacollected from the heat meter installed in a thermal
ture on the primary side and the abnormal data detec- station located in Hejin City, Shanxi Province, China,
tion results were shown in Figures 6 through 8.
between Nov. 15, 2018, and March 15, 2019. The difThe accuracy, ACC, is used to evaluate the performance ference between two adjacent data is used to calculate
of the k-nearest neighbor method. ACC is calculated
the heat consumption data per minute. After that, the
using the following equation:
Z-score method is used to detect the outlier data. Then,
the method proposed in this article is used after impleTP + TN
(8)
menting the Z-score method to study the improvement
ACC =
P+Q
of detection performance.
where Q is the total number of data points detected
Figure 9a shows that before abnormal detection, there
as normal; TN, true negative, is the number of normal
are a small number of outliers in the data set because
data points correctly detected as normal. The detection
of the malfunction of wireless transmission of data.
results are shown in Table 1.
Using the Z-score method, you can see from Figure 9b that
Table 1 shows that for Data Set 1 to Data Set 3, the accumany outliers with very large deviations from normal
racy of the k-nearest neighbor method is 99.5%, 97.5%
values can be successfully removed, but outliers with
and 99.6%, respectively. For Data Set 1 and Data Set 3,
relatively small deviations from normal values cannot be
the accuracy of the k-nearest neighbor method is 3% and removed. This is because the abnormal data with a large
4% higher than that of the Z-score method, respectively.
deviation from the normal value causes a large deviation
Z-Score is a commonly used standard-normal-distribuin the calculation of the mean and variance when impletion-based abnormal data detection method. Although
menting the Z-score method. Figure 9c shows that outliers
all the abnormalities detected by the Z-score method are with small deviations from the normal values can also be
correct, the Z-score method cannot completely judge the detected successfully.
abnormal data (especially when the abnormal data is
Because the k-nearest neighbor method does not
close to the normal data), while for the k-nearest neighrequire calculating the mean and variance based on
bor method, after the calculation of k and N values, the
the original data that may include erroneous data
k-nearest neighbor method can detect the abnormal
and judging which one is abnormal using the erronedata accurately. At the same time, the correct data at the ous data, the performance resulting from detecting
edge of the interval can avoid being detected as abnorabnormal values with a small deviation from normal
mal data, which proves the feasibility of the abnormal
values will not be affected by abnormal data with a
detection algorithm proposed in this article.
large deviation. Therefore, using the algorithm inteThis method has already been applied to the real-life
grated in the smart heating system, the abnormal data
application of the abnormal detection of sensor data
can be automatically detected and rejected, enabling
collected from several smart heating networks in three
the analysis of energy consumption and building
China provinces, including Shanxi, Shandong and
thermal characteristic identification to be carried out
Henan. Figure 9 presents the accumulated heat data
successfully.
FEBRUARY 2021

ashrae.org

ASHRAE JOURNAL

43


http://ashrae.org

ASHRAE Journal - February 2021

Table of Contents for the Digital Edition of ASHRAE Journal - February 2021

Contents
ASHRAE Journal - February 2021 - Intro
ASHRAE Journal - February 2021 - Cover1
ASHRAE Journal - February 2021 - Cover2
ASHRAE Journal - February 2021 - 1
ASHRAE Journal - February 2021 - Contents
ASHRAE Journal - February 2021 - 3
ASHRAE Journal - February 2021 - 4
ASHRAE Journal - February 2021 - 5
ASHRAE Journal - February 2021 - 6
ASHRAE Journal - February 2021 - 7
ASHRAE Journal - February 2021 - 8
ASHRAE Journal - February 2021 - 9
ASHRAE Journal - February 2021 - 10
ASHRAE Journal - February 2021 - 11
ASHRAE Journal - February 2021 - 12
ASHRAE Journal - February 2021 - 13
ASHRAE Journal - February 2021 - 14
ASHRAE Journal - February 2021 - 15
ASHRAE Journal - February 2021 - 16
ASHRAE Journal - February 2021 - 17
ASHRAE Journal - February 2021 - 18
ASHRAE Journal - February 2021 - 19
ASHRAE Journal - February 2021 - 20
ASHRAE Journal - February 2021 - 21
ASHRAE Journal - February 2021 - 22
ASHRAE Journal - February 2021 - 23
ASHRAE Journal - February 2021 - 24
ASHRAE Journal - February 2021 - 25
ASHRAE Journal - February 2021 - 26
ASHRAE Journal - February 2021 - 27
ASHRAE Journal - February 2021 - 28
ASHRAE Journal - February 2021 - 29
ASHRAE Journal - February 2021 - 30
ASHRAE Journal - February 2021 - 31
ASHRAE Journal - February 2021 - 32
ASHRAE Journal - February 2021 - 33
ASHRAE Journal - February 2021 - 34
ASHRAE Journal - February 2021 - 35
ASHRAE Journal - February 2021 - 36
ASHRAE Journal - February 2021 - 37
ASHRAE Journal - February 2021 - 38
ASHRAE Journal - February 2021 - 39
ASHRAE Journal - February 2021 - 40
ASHRAE Journal - February 2021 - 41
ASHRAE Journal - February 2021 - 42
ASHRAE Journal - February 2021 - 43
ASHRAE Journal - February 2021 - 44
ASHRAE Journal - February 2021 - 45
ASHRAE Journal - February 2021 - 46
ASHRAE Journal - February 2021 - 47
ASHRAE Journal - February 2021 - 48
ASHRAE Journal - February 2021 - 49
ASHRAE Journal - February 2021 - 50
ASHRAE Journal - February 2021 - 51
ASHRAE Journal - February 2021 - 52
ASHRAE Journal - February 2021 - 53
ASHRAE Journal - February 2021 - 54
ASHRAE Journal - February 2021 - 55
ASHRAE Journal - February 2021 - 56
ASHRAE Journal - February 2021 - 57
ASHRAE Journal - February 2021 - 58
ASHRAE Journal - February 2021 - 59
ASHRAE Journal - February 2021 - 60
ASHRAE Journal - February 2021 - 61
ASHRAE Journal - February 2021 - 62
ASHRAE Journal - February 2021 - 63
ASHRAE Journal - February 2021 - 64
ASHRAE Journal - February 2021 - 65
ASHRAE Journal - February 2021 - 66
ASHRAE Journal - February 2021 - 67
ASHRAE Journal - February 2021 - 68
ASHRAE Journal - February 2021 - 69
ASHRAE Journal - February 2021 - 70
ASHRAE Journal - February 2021 - 71
ASHRAE Journal - February 2021 - 72
ASHRAE Journal - February 2021 - 73
ASHRAE Journal - February 2021 - 74
ASHRAE Journal - February 2021 - 75
ASHRAE Journal - February 2021 - 76
ASHRAE Journal - February 2021 - 77
ASHRAE Journal - February 2021 - 78
ASHRAE Journal - February 2021 - 79
ASHRAE Journal - February 2021 - 80
ASHRAE Journal - February 2021 - Cover3
ASHRAE Journal - February 2021 - Cover4
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_MCDEBX
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_WNYSQY
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_XATVOD
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_FJSHSS
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_CCBZDS
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_XDEFVG
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_amca_2023november_v2
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_amca_2023november
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_VHGNBL
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_WPKBNJ
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_UUVCDE
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_RTGDEW
https://www.nxtbook.com/nxtbooks/ashrae/ashraemexico_2023
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_LKRFXS
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_AZSOFG
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_ERCDBH
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_QWDFRV
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_JHGVDF
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_OPUYHG
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_SREIBM
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_LRTGLK
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_OKRFGH
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_amca_2022november_v2
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_amca_2022november
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_TZSERA
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_LVRUIX
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_RPTVYZ
https://www.nxtbook.com/nxtbooks/ashrae/mini_pub_catalog
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_XIYTGD
https://www.nxtbook.com/nxtbooks/ashrae/ashraemexico_2022
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_RFGDOB
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_PABXNU
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_REMKLS
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_PICVBT
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_AOYTVW
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_JQOPLS
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_IOYTBC
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_SGAJJF
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_IGHYER
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_PDRKLS
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_amca_2021november
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_amca_2021november_v2
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_XCODFR
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_QSLFGO
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_ILKVNM
https://www.nxtbook.com/nxtbooks/ashrae/ashraemexico_2021
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_OPDJKD
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_VJKSRY
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_SDHUTC
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_JPPKRR
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_SDLTTH
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_CKLLES
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_SLDOX
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_HJETUK
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_OLUHGE
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_amca_2020october
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_amca_2020october_v2
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_ZERDGH
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_QVMNEO
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_RTPOKE
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_BBATRE
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_STUBMW
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_TPEMPE
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_JNMKDS
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_FBTTPA
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_WQMMNE
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_TVBRYN
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_showguide2020
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_KTUZMA
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_ABEDGD
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_201910
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_201909
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_amca_2019septmeber_v2
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_amca_2019september
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_201908
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_201907
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_201906
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_201905
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_201904
https://www.nxtbook.com/nxtbooks/ashrae/meetingplanner_2019april
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_201903
https://www.nxtbook.com/nxtbooks/ashrae/meetingplanner_2019march
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_201902
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_201901
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_showguide2019
https://www.nxtbook.com/nxtbooks/ashrae/meetingplanner_2018december
https://www.nxtbook.com/nxtbooks/ashrae/meetingplanner_2018november
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_amca_2018fall_v2
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_amca_2018fall
https://www.nxtbook.com/nxtbooks/ashrae/meetingplanner_2018october
https://www.nxtbook.com/nxtbooks/ashrae/ashraemexico_2018
https://www.nxtbook.com/nxtbooks/ashrae/meetingplanner_201810
https://www.nxtbook.com/nxtbooks/ashrae/ashraeinsights_201806
https://www.nxtbook.com/nxtbooks/ashrae/meetingplanner_201805
https://www.nxtbook.com/nxtbooks/ashrae/meetingplanner_201804
https://www.nxtbook.com/nxtbooks/ashrae/meetingplanner_201803
https://www.nxtbook.com/nxtbooks/ashrae/meetingplanner_201712
https://www.nxtbook.com/nxtbooks/ashrae/meetingplanner_201711
https://www.nxtbook.com/nxtbooks/ashrae/meetingplanner_201710
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_amca_2017fall_v2
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_amca_2017fall
https://www.nxtbook.com/nxtbooks/ashrae/meetingplanner_201709
https://www.nxtbook.com/nxtbooks/ashrae/meetingplanner_201705
https://www.nxtbook.com/nxtbooks/ashrae/ashrae_meetinginsert_201610
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_amca_2016fall_v2
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_amca_2016fall
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_acrexindia
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_amca_2015summer_v2
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_amca_2015summer
https://www.nxtbook.com/nxtbooks/amca/2014summer2
https://www.nxtbook.com/nxtbooks/amca/2014summer
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_acma_2014summer
https://www.nxtbook.com/nxtbooks/ashrae/meetingplanner_201311
https://www.nxtbook.com/nxtbooks/ashrae/meetingplanner_201309
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_acmasupp_2013fall
https://www.nxtbook.com/nxtbooks/ashrae/meetingplanner_201305
https://www.nxtbook.com/nxtbooks/ashrae/meetingplanner_201303
https://www.nxtbook.com/nxtbooks/ashrae/pubcatalog_2013winter
https://www.nxtbook.com/nxtbooks/ashrae/meetingplanner_201211
https://www.nxtbook.com/nxtbooks/ashrae/achr_expo_mexico2012
https://www.nxtbook.com/nxtbooks/ashrae/meetingplanner_201209
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_201208_v3
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_201208_v2
https://www.nxtbook.com/nxtbooks/ashrae/pubcatalog_2012summer
https://www.nxtbook.com/nxtbooks/ashrae/meetingplanner_201205
https://www.nxtbook.com/nxtbooks/ashrae/meetingplanner_201203
https://www.nxtbook.com/nxtbooks/ashrae/pubcatalog_2012winter
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_201111_v2
https://www.nxtbook.com/nxtbooks/ashrae/ashraejournal_201109_v2
https://www.nxtbook.com/nxtbooks/ashrae/pubcatalog_2011summer
https://www.nxtbook.com/nxtbooks/ashrae/meetingplanner_201105
https://www.nxtbook.com/nxtbooks/ashrae/meetingplanner_201103
https://www.nxtbookmedia.com