Algorithm 1 The pseudo-code of data acquisition, validation, and visualization |
1: Read data from the smart meter |
2: Input the data to the Decision tree model |
3: Classify the data by the Decision tree |
4: if the output of the Decision tree == 1 |
5: Publish that the data is ‘Real’ |
6: else |
7: Publish that the data is ‘Fake’ |
8: end if |
9: Record the receiving time of data |
10: Calculate the change of time |
11: if the change of time ≤ sample rate of the smart meter |
12: Publish ‘No loss data’ |
13: else |
14: Publish ‘There is loss data’ |
15: end if |
16: Publish the reading of the smart meter |