Skip to main content
. 2014 Jan 6;14(1):848–867. doi: 10.3390/s140100848

Algorithm 1: Novelty Detection Power Meter.

Input : X = (X1,…,Xn); /* dataset */
Output : alerts to mobile devices
Data: Threshold, Markov;
1 begin
2  State⇐KNN(X); /* classifies unknown instances */
3  Markov ⇐ UpdateMarkovChain(Markov, State); /* embeds classified instances in the Markov  chain state */
4  Probability⇐GetProbabilidade(Markov); /* probability vector */
5  DeltaEntropy⇐Shannon(Probability); /* entropy variation */
/* novelty detection in electronic equipment */
6 if DeltaEntropy ≥ Threshold then
7   Send(Device); /* send the message to the mobile device */
8 end
9 end