<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article">
  <front>
    <journal-meta>
      <journal-id journal-id-type="publisher-id">JCC</journal-id>
      <journal-title-group>
        <journal-title>Journal of Computer and Communications</journal-title>
      </journal-title-group>
      <issn pub-type="epub">2327-5219</issn>
      <publisher>
        <publisher-name>Scientific Research Publishing</publisher-name>
      </publisher>
    </journal-meta>
    <article-meta>
      <article-id pub-id-type="doi">10.4236/jcc.2019.78004</article-id>
      <article-id pub-id-type="publisher-id">JCC-94713</article-id>
      <article-categories>
        <subj-group subj-group-type="heading">
          <subject>Articles</subject>
        </subj-group>
        <subj-group subj-group-type="Discipline-v2">
          <subject>Computer Science&amp;Communications</subject>
        </subj-group>
      </article-categories>
      <title-group>
        <article-title>


          Survey and Proposal of an Adaptive Anomaly Detection Algorithm for Periodic Data Streams

        </article-title>
      </title-group>
      <contrib-group>
        <contrib contrib-type="author" xlink:type="simple">
          <name name-style="western">
            <surname>Zirije</surname>
            <given-names>Hasani</given-names>
          </name>
          <xref ref-type="aff" rid="aff1">
            <sup>1</sup>
          </xref>
          <xref ref-type="corresp" rid="cor1">
            <sup>*</sup>
          </xref>
        </contrib>
        <contrib contrib-type="author" xlink:type="simple">
          <name name-style="western">
            <surname>Samedin</surname>
            <given-names>Krrabaj</given-names>
          </name>
          <xref ref-type="aff" rid="aff1">
            <sup>1</sup>
          </xref>
          <xref ref-type="corresp" rid="cor1">
            <sup>*</sup>
          </xref>
        </contrib>
      </contrib-group>
      <aff id="aff1">
        <addr-line>Faculty of Computer Science, University “Ukshin Hoti”, Prizren, Kosovo</addr-line>
      </aff>
      <pub-date pub-type="epub">
        <day>20</day>
        <month>08</month>
        <year>2019</year>
      </pub-date>
      <volume>07</volume>
      <issue>08</issue>
      <fpage>33</fpage>
      <lpage>55</lpage>
      <history>
        <date date-type="received">
          <day>10,</day>
          <month>July</month>
          <year>2019</year>
        </date>
        <date date-type="rev-recd">
          <day>26,</day>
          <month>August</month>
          <year>2019</year>
        </date>
        <date date-type="accepted">
          <day>29,</day>
          <month>August</month>
          <year>2019</year>
        </date>
      </history>
      <permissions>
        <copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement>
        <copyright-year>2014</copyright-year>
        <license>
          <license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p>
        </license>
      </permissions>
      <abstract>
        <p>


          Real-time anomaly detection of massive data streams is an important research topic nowadays due to the fact that a lot of data is generated in continuous temporal processes. There is a broad research area, covering mathematical, statistical, information theory methodologies for anomaly detection. It addresses various problems in a lot of domains such as health, education, finance, government, etc. In this paper, we analyze the state-of-the-art of data streams anomaly detection techniques and algorithms for anomaly detection in data streams (time series data). Critically surveying the techniques’ performances under the challenge of real-time anomaly detection of massive high-velocity streams, we conclude that the modeling of the normal behavior of the stream is a suitable approach. We evaluate Holt-Winters (HW), Taylor’s Double Holt-Winters (TDHW), Hierarchical temporal memory (HTM), Moving Average (MA), Autoregressive integrated moving average (ARIMA) forecasting models, etc. Holt-Winters (HW) and Taylor’s Double Holt-Winters (TDHW) forecasting models are used to predict the normal behavior of the periodic streams, and to detect anomalies when the deviations of observed and predicted values exceeded some predefined measures. In this work, we propose an enhancement of this approach and give a short description about the algorithms and then they are categorized by type of pre-diction as: predictive and non-predictive algorithms. We implement the Genetic Algorithm (GA) to periodically optimize HW and TDHW smoothing parameters in addition to the two sliding windows parameters that improve Hyndman’s MASE measure of deviation, and value of the threshold parameter that defines no anomaly confidence interval [1]. We also propose a new optimization function based on the input training datasets with the annotated anomaly intervals, in order to detect the right anomalies and minimize the number of false ones. The proposed method is evaluated on the known anomaly detection benchmarks NUMENTA and Yahoo datasets with annotated anomalies and real log data generated by the National education information system (NEIS)
          <sup>1</sup> in Macedonia.

        </p>
      </abstract>
      <kwd-group>
        <kwd>Anomaly Detection</kwd>
        <kwd> Periodic Time Series</kwd>
        <kwd> HOLT Winters Algorithm</kwd>
        <kwd> Genetic Algorithm GA</kwd>
        <kwd> MASE</kwd>
        <kwd> HTM</kwd>
      </kwd-group>
    </article-meta>
  </front>
  <body>
    <sec id="s1">
      <title>1. Introduction</title>
      <p>Anomaly detection in real-time massive data streams (practically infinite flow of data, pouring in as time goes, each piece of data having its own timestamp) is one of the important research topics nowadays due to the fact that the most of the world data generation is a continuous temporal process. Many sophisticated and highly effective anomaly detection methods exist that run-in batch mode, where the data is collected and processed after the occurrence. However, identifying anomalies long after they happened isn’t our primary goal. On the contrary, real-time data processing, requests continual input, time-critical manner processing, and instant output (e.g. alarm) if anomaly happened. Instead of searching for the unknown anomalies we can, in advance, model a normal behavior of the data stream and compare it to the observed one. Consequently, predicting the values of a stream one-time step ahead are used, the deviation between the predicted values and the observed values are measured, and a decision mechanism, if an observed value exceeds normal behavior, is established. Yet other questions arise. The real-time streams are infinite, can have a high rate of data appearance in time unite (high volume, high velocity) and can evolve over time. Thus, the development of the model of normal behavior must adapt to these challenges to maintain detection accuracy: be iterative, use only a part of the stream (even before it is permanently stored), and be implemented as a positive feedback in the learning process (e.g. repeated anomalies labeling in the supervised process). Due to the need for the real-time detection process, detection algorithms have to be robust, with low processing time (low complexity), even at the cost of the accuracy. Currently, the most intensively developed anomaly detection methods that consider underlined challenges are based on machine learning, neural networks, predictive and statistical time series forecasting models.</p>
      <p>
        In this paper, we are interested in anomaly detection of real data streams that have seasonal patterns. There are a number of studies in this area. The most adequate and often used models are Moving Average (MA) [<xref ref-type="bibr" rid="scirp.94713-ref2">2</xref>] , the AutoRegressive Moving Average (ARMA) and AutoRegressive Integrated Moving Average (ARIMA) [<xref ref-type="bibr" rid="scirp.94713-ref2">2</xref>] , exponential smoothing algorithms HW [<xref ref-type="bibr" rid="scirp.94713-ref3">3</xref>] and TDHW [<xref ref-type="bibr" rid="scirp.94713-ref4">4</xref>] , Hierarchical Temporal Memory (HTM) [<xref ref-type="bibr" rid="scirp.94713-ref5">5</xref>] algorithm and sliding windows [<xref ref-type="bibr" rid="scirp.94713-ref6">6</xref>] [<xref ref-type="bibr" rid="scirp.94713-ref7">7</xref>] .
      </p>
      <p>
        However, our work brings several benefits [<xref ref-type="bibr" rid="scirp.94713-ref1">1</xref>] :
      </p>
      <p>&#183; Review and classification of existing literature for anomaly detection;</p>
      <p>&#183; From all the reviewed literature for anomaly detection, we assessed methods and algorithms for anomaly detection in data streams (time series) which are proper and capable to respond to the challenges that massive data streams and real-time detection have;</p>
      <p>&#183; We propose an enhancement of the additive HW and TDHW algorithms that answers the stated challenges. The algorithm is implemented as a positive feedback optimization with a periodic adaptation of the algorithm parameters;</p>
      <p>
        &#183; Starting with ideas of numerous papers [<xref ref-type="bibr" rid="scirp.94713-ref4">4</xref>] [<xref ref-type="bibr" rid="scirp.94713-ref7">7</xref>] - [<xref ref-type="bibr" rid="scirp.94713-ref13">13</xref>] , we use the GA optimization process, to optimize α, β, γ, ω, the HW and TDHW smoothing parameters, where we added optimization of the three new parameters k, n and δ;
      </p>
      <p>
        &#183; Improvement is made in the new definition of the optimization function based on the input training datasets with the annotated anomaly intervals, enhanced Hyndman’s MASE [<xref ref-type="bibr" rid="scirp.94713-ref14">14</xref>] definition where k and n define the two sliding windows intervals, and δ is the threshold parameter;
      </p>
      <p>&#183; The positive feedback learning process is achieved if the anomalies detected in the next time frame, by the proposed detection engine based on the computed optimal parameters from the annotated anomalies of previous one, are verified/acknowledged by human and reused for parameter optimization;</p>
      <p>&#183; The results of the experiments performed on the sets of synthetic and real data periodic streams show that our proposed HW algorithm, with GA optimized parameters and with improved MASE, outperforms the other algorithms.</p>
      <p>
        The data used for experiments are known as anomaly detection benchmarks NUMENTA [<xref ref-type="bibr" rid="scirp.94713-ref12">12</xref>] and Yahoo [<xref ref-type="bibr" rid="scirp.94713-ref15">15</xref>] datasets with annotated anomalies and our real log data from the Macedonian national education system e-dnevnik<sup>1</sup>.
      </p>
      <p>The rest of this paper has the following structure: in the second section is related work; in the third section proposed a model for real-time data streams anomaly detection is described, in the fourth section are the experimental results; and the last section contains conclusions and further work.</p>
    </sec>
    <sec id="s2">
      <title>2. Review and Classification of Methods for Anomaly Detection</title>
      <p>In this section, we have shown some algorithms used for anomaly detection classified by type of data, type of anomalies, application area, type of supervision and also is done classification of algorithms as predictive and non-predictive.</p>
      <p>
        In <xref ref-type="fig" rid="fig1">Figure 1</xref> below is shown the classification which is done for anomaly detection algorithms for different fields.
      </p>
      <sec id="s2_1">
        <title>2.1. Classification of Anomaly Detection Methods by Type of Data</title>
        <p>
          Kalinichenko et al., 2014 [<xref ref-type="bibr" rid="scirp.94713-ref2">2</xref>] categorize the data (and related methods) into three categories: the metric data, evolving data, and multi-structured data.
        </p>
        <p>The Metric Data</p>
        <p>The methods used are the distance between objects, the correlation between</p>
        <p>them, and the probabilistic distribution of data. Further subdivision is based on the notion of distance (clustering methods, K nearest neighbors and their derivatives), based on the correlations (method of linear regression, PCA-Principal component analysis), data distributions, an iterative algorithm based on the maximum likelihood method, and methods related to the data with high dimension (methods of dimensionality reduction).</p>
        <p>The Evolving Data (Discrete Sequences Data and Time Series Data)</p>
        <p>
          The methods for Discrete Sequences Data are distance-based, frequency-based and Hidden Markov Model that measure the deviation of a specific value or whole sequence. In the survey [<xref ref-type="bibr" rid="scirp.94713-ref1">1</xref>] , the methods are divided into three groups: sequence-based, contiguous subsequence-based and pattern-based. The first group includes Kernel Based Techniques, Window Based Techniques, Markovian Techniques, contiguous subsequence methods include Window Scoring Techniques and Segmentation Based Techniques. Pattern-based methods include Substring Matching, Subsequence Matching, and Permutation Matching Techniques. For the category of Time series data, the methods that are used are based on well-developed apparatus of time series analysis, including predictive methods, Kalman Filtering, Autoregressive Modeling, detection of unusual shapes with the Haar transform and various statistic techniques.
        </p>
        <p>Multi-Structured Data</p>
        <p>The data are categorized into two categories: text data and graph data. The methods used for outlier detection in text data are LSA (Latent semantic analysis) which makes it possible to group text, integrating it with the standard anomaly detection methods, and tf-idf measure. For graph data, the methods are Minimal Description Length principle, Bayesian Models, Markov Random Field, Ising Model, EM and LOF algorithm.</p>
      </sec>
      <sec id="s2_2">
        <title>2.2. Classification of Methods by Type of Anomalies</title>
        <p>
          Unlike previous authors, in their comparative research Chandola et al., 2009 [<xref ref-type="bibr" rid="scirp.94713-ref1">1</xref>] and Pokrajac et al., 2008 [<xref ref-type="bibr" rid="scirp.94713-ref16">16</xref>] classify methodologies according to the type of anomaly (point, contextual, and collective anomaly).
        </p>
        <p>
          The widest range of methodologies is devoted to the simplest one, a point anomaly detection. These are classification methodologies, supervised, semi-supervised and unsupervised (based on the rules, neural networks and SVM), methodologies based on the nearest neighbor (density, distance, local outlier factor LOF), clustering (transformation of data multidimensional signals), statistical (parametric, nonparametric) methods based on the information theory, and statistical probability, spectral-based visualization and others. Contextual anomalies (also called conditional anomalies’<sup>2</sup>). Often occur in data such as time series [<xref ref-type="bibr" rid="scirp.94713-ref17">17</xref>] [<xref ref-type="bibr" rid="scirp.94713-ref18">18</xref>] , and spatial data [<xref ref-type="bibr" rid="scirp.94713-ref19">19</xref>] and the choice of the methodologies is often associated with the application domain. Unlike point anomalies, for the contextual anomalies, there is not a wide range proposed methodology. They fall into two categories: using separate transformations to reduce the problem into a point anomaly detection in a particular context, for example, the methodology illustrated in the [<xref ref-type="bibr" rid="scirp.94713-ref20">20</xref>] and predictive sequence and time series in methodologies (mostly regression-based techniques for time series).
        </p>
        <p>
          The collective anomaly occurs when the collection of instances deviates in relation to other data. For example, an individual event in the computer system does not necessarily mean anomaly, but a certain sequence of events can mean a hacker attack. The collective anomaly may exist if the data are associated with certain relations. It is investigated in a series of data [<xref ref-type="bibr" rid="scirp.94713-ref21">21</xref>] [<xref ref-type="bibr" rid="scirp.94713-ref22">22</xref>] , time series [<xref ref-type="bibr" rid="scirp.94713-ref23">23</xref>] , graphs [<xref ref-type="bibr" rid="scirp.94713-ref24">24</xref>] and spatial data [<xref ref-type="bibr" rid="scirp.94713-ref19">19</xref>] . The discovery of collective anomalies is more complex in terms of point and contextual anomalies since it requires a separate examination of the structure.
        </p>
      </sec>
      <sec id="s2_3">
        <title>2.3. Classification of Methods by Application Area</title>
        <p>
          Due to the wide number of areas for anomaly detection, the authors of some comparative studies limited themselves to the comparison of methods and techniques of detection of anomalies by a separate research field, data type or application area. Thus Phua et al. 2004 [<xref ref-type="bibr" rid="scirp.94713-ref25">25</xref>] , Dua and Du [<xref ref-type="bibr" rid="scirp.94713-ref26">26</xref>] Sreevidya et al., 2014 [<xref ref-type="bibr" rid="scirp.94713-ref27">27</xref>] , compare methods in the field of data mining, Chandola et al., 2009 [<xref ref-type="bibr" rid="scirp.94713-ref3">3</xref>] methods for data type of discrete series, Gogoi et al., 2011 [<xref ref-type="bibr" rid="scirp.94713-ref28">28</xref>] and Ranshous et al., 2013 [<xref ref-type="bibr" rid="scirp.94713-ref29">29</xref>] , Lazarevic et al., 2003 [<xref ref-type="bibr" rid="scirp.94713-ref9">9</xref>] methods for detecting anomalies in networks, Zwietasch, 2014 [<xref ref-type="bibr" rid="scirp.94713-ref30">30</xref>] detection of anomalies in the log files, Viaene, 2014 [<xref ref-type="bibr" rid="scirp.94713-ref31">31</xref>] for selecting the best methodology in integrated management. Significant comparative research is given by Gupta et al. 2014 [<xref ref-type="bibr" rid="scirp.94713-ref4">4</xref>] , who from the perspective of IT researchers classify and compare the methodologies for anomaly detection in the temporal and spatial data, data streams and time series with reference to accounting and H/S features. In most of the comparative studies, the authors discuss methodology advantages/disadvantages in terms of the application field, the type of anomaly, the data characteristics, and computational complexity.
        </p>
      </sec>
      <sec id="s2_4">
        <title>2.4. Classification of Methods by Type of Supervision</title>
        <p>
          The other significant classification of methods is by type of supervision. A training data set is required by techniques which involve building an explicit predictive model. The labels associated with a data instance denote if that instance is normal or an outlier. Based on the extent to which these labels are utilized Chandola et al., 2009 [<xref ref-type="bibr" rid="scirp.94713-ref1">1</xref>] , outlier detection techniques divide into the three categories: supervised, semi-supervised and unsupervised outlier detection techniques.
        </p>
      </sec>
      <sec id="s2_5">
        <title>2.5. Review of Predictive and Not Predictive Algorithms for Real-Time Anomaly Detection in Massive Data Streams (Contextual Anomalies)</title>
        <p>
          Usually, authors of newly proposed algorithms for anomaly detection compare their results with the results of the state-of-the-art techniques (for example, LOF, k-NN), but often, they do not take into account a possibility of real-time detection in a huge amount of incoming data. The starting goal of this work was to evaluate different categories of algorithms, (we divided them into predictive and non-predictive (statistical) algorithms), for which we expected to be fast and with satisfactory detection rate (sensitivity-recall and precision [<xref ref-type="bibr" rid="scirp.94713-ref32">32</xref>] [<xref ref-type="bibr" rid="scirp.94713-ref33">33</xref>] ) and so suitable for real-time anomaly detection of massive data streams.
        </p>
        <p>
          Several algorithms were explored, MAD, runMAD [<xref ref-type="bibr" rid="scirp.94713-ref34">34</xref>] , Boxplot [<xref ref-type="bibr" rid="scirp.94713-ref35">35</xref>] , Twitter ADVec [<xref ref-type="bibr" rid="scirp.94713-ref36">36</xref>] , DBSCAN [<xref ref-type="bibr" rid="scirp.94713-ref37">37</xref>] [<xref ref-type="bibr" rid="scirp.94713-ref38">38</xref>] , our proposal combination of runMAD and Boxplot, ARIMA [<xref ref-type="bibr" rid="scirp.94713-ref39">39</xref>] , Moving Range Technique [<xref ref-type="bibr" rid="scirp.94713-ref40">40</xref>] [<xref ref-type="bibr" rid="scirp.94713-ref41">41</xref>] , Statistical Control Chart Techniques [<xref ref-type="bibr" rid="scirp.94713-ref39">39</xref>] , Moving Average [<xref ref-type="bibr" rid="scirp.94713-ref42">42</xref>] , Hierarchical Temporal Memory (HTM), Holt-Winters and Taylor’s Double Seasonality Holt-Winters.
        </p>
        <p>
          Autoregressive (AR) and Moving Average (MA) forecasting models have been in existence since the early 1900s. Exponential Smoothing Methods, as a forecasting tool, are introduced in the 1950s. Detailed history, statistical theory, and classification depending on the time series characteristics can be found in [<xref ref-type="bibr" rid="scirp.94713-ref43">43</xref>] .
        </p>
        <p>
          Following is a more detailed review of the research papers dealing with Holt-Winters and Taylor’s Double Seasonality Holt-Winters forecast modeling of normal data streams behavior. Papers are grouped in studies where HW and TDHW models are used for anomaly detection and their model parameters calculated by exponential formula or decided experimentally [<xref ref-type="bibr" rid="scirp.94713-ref3">3</xref>] [<xref ref-type="bibr" rid="scirp.94713-ref44">44</xref>] [<xref ref-type="bibr" rid="scirp.94713-ref45">45</xref>] , studies that deal with optimization of the model parameters for the best fitted forecast [<xref ref-type="bibr" rid="scirp.94713-ref4">4</xref>] [<xref ref-type="bibr" rid="scirp.94713-ref8">8</xref>] [<xref ref-type="bibr" rid="scirp.94713-ref9">9</xref>] [<xref ref-type="bibr" rid="scirp.94713-ref10">10</xref>] [<xref ref-type="bibr" rid="scirp.94713-ref46">46</xref>] , parameter optimization are done using classical optimization methods (e.g. using excel solver) [<xref ref-type="bibr" rid="scirp.94713-ref47">47</xref>] [<xref ref-type="bibr" rid="scirp.94713-ref48">48</xref>] , or different metaheuristic algorithms as GA [<xref ref-type="bibr" rid="scirp.94713-ref8">8</xref>] [<xref ref-type="bibr" rid="scirp.94713-ref9">9</xref>] [<xref ref-type="bibr" rid="scirp.94713-ref46">46</xref>] , Particle Swarm (PS) [<xref ref-type="bibr" rid="scirp.94713-ref9">9</xref>] , Artificial Bee Colony algorithm (BEE) [<xref ref-type="bibr" rid="scirp.94713-ref4">4</xref>] , Differential Evolution (DE) [<xref ref-type="bibr" rid="scirp.94713-ref48">48</xref>] , Hill climber (HC) and Simulated Annealing (SA) [<xref ref-type="bibr" rid="scirp.94713-ref9">9</xref>] , etc.
        </p>
        <p>
          J. Brutlag [<xref ref-type="bibr" rid="scirp.94713-ref44">44</xref>] for the first time in the 2000 year, used a model based on HW forecasting. He integrated it into the Cricket/RRDtool open source monitoring tools to detect automatically, in the real-time, aberrant behavior of the WebTV services streams. He proposed usage of the exponential formulas for calculation of the smoothing parameters. The anomaly is detected if the new observed data stream value y<sub>t</sub> falls outside the interval, determined by the measure of deviation d<sub>t</sub> for each time point in the seasonal cycle. Deviation d<sub>t</sub> is a weighted average of absolute deviation, updated via exponential smoothing (calculated with the same parameter γ as a sessional factor in HW). While perhaps not optimal, this solution was shown as a flexible, efficient, and effective tool for automatic detection. Authors in [<xref ref-type="bibr" rid="scirp.94713-ref3">3</xref>] implement the same idea in multiplicative HW forecasting model, as a part of a test platform that collects real IP flow, based on open source software Nfsen/RRDtool. Calculation of the parameters was as in [<xref ref-type="bibr" rid="scirp.94713-ref44">44</xref>] . They used Mean Absolute Error (MAE) and Root Mean Square Error (RMSE) as suitable to compare different forecasting methods and Mean Absolute Percentage Error (MAPE), to compare how a forecasting method suits forecasting different time series. In [<xref ref-type="bibr" rid="scirp.94713-ref45">45</xref>] author emphases the need of close examination of the stream behavior before choosing the forecast model: trend existence, characterization of single/multiple seasons, threshold determination concerning the importance of a number of correct and false detections, and a number of detected anomalies in time unit to signal an alarm.
        </p>
        <p>
          Optimization of parameters in forecasting model is dating back to 1996 [<xref ref-type="bibr" rid="scirp.94713-ref8">8</xref>] . GA optimization is applied to determine HW smoothing parameters α, β, γ, including variable s, a seasonality interval, and corresponding start-up values for level, trend, and seasonality, by minimizing the evaluation function forecasting Mean Square Error (MSE). As the forecasting task presented in this thesis did not require a great precision for the parameters and the start-up values, a binary GA (not a real-valued one) is used. Authors underline the great applicability of GA in such type of prediction tasks, especially when a large number of parameters is required.
        </p>
        <p>
          Similarly to the previous paper, in the [<xref ref-type="bibr" rid="scirp.94713-ref46">46</xref>] , optimization of HW parameters are done along with tuning of the GA initialization, population size, and crossover probability, that enable the comparative study of the best accuracy prediction (minimum value) of MAPE. The data used in this study are monthly data set for the total number of tourist arrivals in the ten years period.
        </p>
        <p>
          In some of the works, authors used classical non-linear optimization methods with constrained values of variables, to optimize HW parameters. In [<xref ref-type="bibr" rid="scirp.94713-ref47">47</xref>] authors used the MS Excel Nonlinear Solver, a spreadsheet-based non-linear optimizer, to find the values of the smoothing parameters, together with an initial forecast that minimize a measure of forecast error MAD or MSE. A detailed description is given to avoid problems reported by several other authors. Similar work is given in [<xref ref-type="bibr" rid="scirp.94713-ref48">48</xref>] where spreadsheet modeling of additive and multiplicative HW is given to identify optimal smoothing parameters by minimizing MSE with MS Excel Nonlinear Solver and DE heuristics.
        </p>
        <p>
          In Ashraf [<xref ref-type="bibr" rid="scirp.94713-ref4">4</xref>] authors improved prediction accuracy MSE by employing Artificial Bee Colony algorithm to optimize smoothing parameters of the multiplicative multi sessional HW forecasting model. Cloud workload with multi-seasonal cycle’s data stream is forecasted to scale in advance computational resources. Performance of the proposed algorithm has been evaluated with double and triple exponential smoothing methods using MAPE and RMSE.
        </p>
        <p>
          In [<xref ref-type="bibr" rid="scirp.94713-ref9">9</xref>] authors optimize α, β, γ, δ, smoothing parameters, φ damped parameter and λ adjustment for the first-order autocorrelation error, of the multiplicative double seasonality and additive damped trend forecast HW. They compare the results of minimization of the sum of squared errors equation (SSE) by several meta-heuristic methods: local improved procedure HC and SA, Evolutionary Algorithms (EA), GA, PS. Optimization is implemented in MATLAB for Portuguese three months electricity demand stream of data. The conclusion is that the values obtained for the forecasting equation’s parameters using different meta-heuristic algorithms were similar as well as the post-sample forecasting performance which suggests that HC algorithm for its simplicity is a good solution.
        </p>
        <p>
          In [<xref ref-type="bibr" rid="scirp.94713-ref10">10</xref>] authors use PS metaheuristic minimizing the Residual Standard Error (RSE), Sum of Squared Errors (SSE), Mean of Squared Errors (MSE) or Mean Absolute Deviation (MAD) to determine optimal smoothing parameters of the additive Holt model. The direction of the exchange rate and the actual exchange rate values for the Dollar-Peso and Euro-Peso is accurately forecasted.
        </p>
        <p>
          In [<xref ref-type="bibr" rid="scirp.94713-ref7">7</xref>] work is interesting due to proposed ideas of optimization of the sliding time windows that defines set of time legs used to build various forecasting methods and also define the number of the model inputs, using the Genetic and Evolutionary Algorithms (GEA) with a real-valued representative.
        </p>
        <p>
          Ideas for using metaheuristic optimization of parameters of similar forecasting models exist. In [<xref ref-type="bibr" rid="scirp.94713-ref49">49</xref>] , Seasonal Autoregressive Integrated Moving Average SARIMA forecasting model parameters are optimized by GA. In [<xref ref-type="bibr" rid="scirp.94713-ref11">11</xref>] , authors compared slightly modified HW (that instead of using the time intervals immediately before the analyzed ones for the forecasting calculation, used the time intervals that are equal to the current and relating to the prior seasonal cycle), with the Ant Colony Optimization (ACO) cluster model.
        </p>
        <p>For more details about the suitable algorithms and their classification are given in the following section.</p>
      </sec>
    </sec>
    <sec id="s3">
      <title>3. Methods</title>
      <p>
        Next are presented the algorithms which are used to compare the proposed method and are shown the proposed method [<xref ref-type="bibr" rid="scirp.94713-ref1">1</xref>] .
      </p>
      <sec id="s3_1">
        <title>3.1. Algorithms for Anomaly Detection in Real-Time Massive Data Streams</title>
        <p>Suitable to the need for the real-time alarm and semi-supervised or unsupervised procedures for massive streaming data anomaly detection, algorithms have to be robust with low processing time, eventually at the cost of the accuracy.</p>
        <p>The studied algorithms we categorize into two classes:</p>
        <p>1) Non-predictive, statistical (Boxplot, DBSCAN, MAD);</p>
        <p>2) Predictive (HTM, ARIMA, HW, TDHW).</p>
        <p>
          We choose to analyze algorithms with rather low computational complexity runMAD [<xref ref-type="bibr" rid="scirp.94713-ref34">34</xref>] , Twitter ADVec [<xref ref-type="bibr" rid="scirp.94713-ref36">36</xref>] , Boxplot [<xref ref-type="bibr" rid="scirp.94713-ref35">35</xref>] , Moving range technique [<xref ref-type="bibr" rid="scirp.94713-ref40">40</xref>] [<xref ref-type="bibr" rid="scirp.94713-ref41">41</xref>] , Statistical Control Charts [<xref ref-type="bibr" rid="scirp.94713-ref39">39</xref>] , ARIMA [<xref ref-type="bibr" rid="scirp.94713-ref39">39</xref>] , Moving Average [<xref ref-type="bibr" rid="scirp.94713-ref42">42</xref>] , DBSCAN [<xref ref-type="bibr" rid="scirp.94713-ref37">37</xref>] [<xref ref-type="bibr" rid="scirp.94713-ref38">38</xref>] , HTM [<xref ref-type="bibr" rid="scirp.94713-ref5">5</xref>] , HW [<xref ref-type="bibr" rid="scirp.94713-ref45">45</xref>] and TDHW [<xref ref-type="bibr" rid="scirp.94713-ref43">43</xref>] . All of them we implement in R language [<xref ref-type="bibr" rid="scirp.94713-ref50">50</xref>] except HTM, which is already implemented in NAB environment [<xref ref-type="bibr" rid="scirp.94713-ref12">12</xref>] .
        </p>
        <p>
          DBSCAN algorithm is a density-based clustering algorithm. It works by greedily agglomerating points that are close to each other. Outliers are considered clusters with few points in them [<xref ref-type="bibr" rid="scirp.94713-ref38">38</xref>] . This algorithm has two main parts: a parameter ε that specifies a distance threshold under which two points are considered to be close; and the minimum number of points that have to be within a point’s ε-radius before that point can start agglomerating.
        </p>
        <p>The Tukey (1977) BoxPlot does not make any distribution assumptions nor does it depend on a mean or standard deviation. The lower quartile (q1-the 25th percentile), and the upper quartile (q3-the 75th percentile) of the data define the inter-quartile range (IQR) and lines (whiskers) are indicating variability outside the upper and lower limits (9th and 91st percentile or 1.5 IQR over and below IQR defining anomalies.</p>
        <p>
          RunMAD<sup>3</sup> (Median Absolute Deviation of Moving Windows) for streaming data is the median of the absolute deviations from the data’s median for the defined window. As such does not make any distribution assumptions. Similar window functions are runmin, runmax, runmed, runquartile, etc. Depending on the stringency of the researcher’s criteria, which should be defined and justified by the researcher, the author [<xref ref-type="bibr" rid="scirp.94713-ref51">51</xref>] proposes the values of k = 3 (very conservative), k = 2.5 (moderate conservative) or even k = 2 (poor conservative) for anomaly detection that are outside Median &#177; k*MAD.
        </p>
        <p>
          Twitter ADVec [<xref ref-type="bibr" rid="scirp.94713-ref36">36</xref>] proposed by Twitter is composed of different algorithms. The primary algorithm, Seasonal Hybrid ESD (S-H-ESD), builds upon the Generalized ESD test for detecting anomalies. S-H-ESD can be used to detect both global and local anomalies. This is achieved by employing time series decomposition and using robust statistical metrics, viz., median together with ESD. In addition, for long time series such as 6 months of minute data, the algorithm employs piecewise approximation. This is rooted in the fact that trend extraction in the presence of anomalies is non-trivial for anomaly detection.
        </p>
        <p>
          Statistical control chart technique [<xref ref-type="bibr" rid="scirp.94713-ref39">39</xref>] is a graph used to study how a process changes over time and control of repetitive processes. In general, the chart has a central line that represents the mean value of the in-control process and the other two lines, the upper control limit, and the lower control limit. These control limits are chosen so that almost all the data points will fall within these limits as long as the process remains in control. Data could be a chart of individual data, aggregated by a time parameter (e.g. hour), moving range, moving average and others.
        </p>
        <p>In statistics and econometrics, and in particular in time series analysis, an autoregressive integrated moving average (ARIMA) model is a generalization of an autoregressive moving average (ARMA) model. Both of these models are fitted to time series data either to better understand the data or to predict future points in the series (forecasting) Moving average. In time series analysis, the moving average (MA) model is a common approach for modeling univariate time series. Together with the autoregressive (AR) model, the moving-average model is a special case and key component of the more general ARMA and ARIMA models of time series, which have a more complicated stochastic structure.</p>
        <p>
          Hierarchical Temporal Memory (HTM) [<xref ref-type="bibr" rid="scirp.94713-ref5">5</xref>] is a machine learning algorithm based on the input stream and prediction of the next value. Raw anomaly score that measures the deviation between the model’s predicted input and the actual input is calculated. The distribution is modeled as a rolling normal distribution where the sample mean and variance are continuously updated from previous anomaly scores. The recent short-term average of anomaly scores is using to apply as mean to the Gaussian tail probability to decide whether to declare an anomaly. HTM can robustly detect anomalies in a variety of conditions. The resulting system is efficient, extremely tolerant to noisy data, continually adapts to changes in the statistics of the data, and detects very subtle anomalies while minimizing false positives.
        </p>
      </sec>
      <sec id="s3_2">
        <title>3.2. The Adaptive Algorithm for Anomaly Detection</title>
        <p>
          In <xref ref-type="fig" rid="fig2">Figure 2</xref>, the positive feedback optimization method for continuous adaptation of the anomaly detection parameters is shown. The method is composed of four different stages [<xref ref-type="bibr" rid="scirp.94713-ref1">1</xref>] .
        </p>
        <p>First is the annotation of the anomalies in the training dataset. The anomaly annotation is defined as a time interval where an anomaly is located. The annotation is done by a human or an oracle.</p>
        <p>
          The second stage is the computation of anomaly detection parameters for our algorithm using GAs, i.e. computation of HW or TDHW parameters, together with δ, k and n. GAs have been successfully applied to solve optimization problems, both for continuous (whether differentiable or not) and discrete functions” [<xref ref-type="bibr" rid="scirp.94713-ref14">14</xref>] . This enables us to find near-optimal values of the anomaly detection parameters very successfully.
        </p>
        <p>The third stage is the actual anomaly detection engine based on the computed optimal parameters from the second stage. This stage outputs the detected anomalies with our proposed algorithm.</p>
        <p>The fourth stage is the human acknowledgment of the output data, and classifies the output data into TP (true positive), FP (false positive) and FN (false negative). The result of the verification/acknowledgment stage is then used again in the second stage for further optimization of the anomaly detection parameters.</p>
        <p>
          In the rest of this section, we present the improved algorithm for anomaly detection of real data streams with sessional patterns, based on well-known HW and TDHW [<xref ref-type="bibr" rid="scirp.94713-ref3">3</xref>] [<xref ref-type="bibr" rid="scirp.94713-ref4">4</xref>] additive forecasting models.
        </p>
        <p>
          The first improvement is done by modification of the Mean Absolute Scaled Error (MASE) [<xref ref-type="bibr" rid="scirp.94713-ref52">52</xref>] , and the second one by optimization of the model parameters.
        </p>
        <sec id="s3_2_1">
          <title>3.2.1. Standard Algorithms for Anomaly Detection and MASE Modification</title>
          <p>
            Additive HW trend forecast prediction y ^ t + 1 is defined iteratively (1) by three components, level l<sub>t</sub>, trend b<sub>t</sub> and seasonality s<sub>t</sub> using restricted real smoothing constants 0 ≤ α, β, γ ≤ 1:
          </p>
          <p>Forecast equation: y ^ t + 1 = l t + b t + s t − m + 1</p>
          <p>Level: l t = α ( y t − s t − m ) + ( 1 − α ) ( l t − 1 + b t − 1 )</p>
          <p>Trend:</p>
          <p>b t = β ( l t − l t − 1 ) + ( 1 − β ) b t − 1 (1)</p>
          <p>Seasonality: s t = γ ( y t − l t ) + ( 1 − γ ) s t − m</p>
          <p>
            where m is the periodicity of the one whole seasonal cycle, i.e. the number of time steps of one season. Good initial values l<sub>0</sub>, b<sub>0</sub> and s<sub>0</sub> (2) can be achieved by having y t streaming data of two full sessional cycles 2m.
          </p>
          <p>Initial level component: l 0 = y 1 + y 2 + … . + y m m</p>
          <p>Initial trend component:</p>
          <p>b 0 = ∑ t = m + 1 2 m y t − ∑ t = 1 m y t m 2 (2)</p>
          <p>Initial seasonal component: s i = y i − l 0 , i = 1 , 2 , ⋯ , m .</p>
          <p>
            Additive TDHW, trend forecast prediction y ^ t + 1 (3) is defined iteratively by four components: level l<sub>t</sub>, trend b<sub>t</sub>, m<sub>1</sub> seasonality and m<sub>2</sub> seasonality, using restricted real smoothing constants 0 ≤ α, β, γ, ω ≤ 1.
          </p>
          <p>Forecast equation: y ^ t + 1 = l t + b t + D t + W t</p>
          <p>Level: l t = α ( y t − D t − m 1 − W t − m 2 ) + ( 1 − α ) ( l t − 1 + b t − 1 )</p>
          <p>Trend:</p>
          <p>b t = β ( l t − l t − 1 ) + ( 1 − β ) b t − 1 (3)</p>
          <p>
            m<sub>1</sub> seasonality: D t = γ ( y t − l t − W t − m 2 ) + ( 1 − γ ) D t − m 1
          </p>
          <p>
            m<sub>2</sub> seasonality: W t = ω ( y t − l t − D t − m 1 ) + ( 1 − ω ) W t − m 2
          </p>
          <p>
            For example, if the stream values y t are observed every minute a daily cycle m<sub>1</sub> = 24 &#215; 60 = 1440 and a weekly cycle m<sub>2</sub> = 24 &#215; 60 &#215; 7 = 10,080 [<xref ref-type="bibr" rid="scirp.94713-ref53">53</xref>] . Possible initial values are:
          </p>
          <p>l 0 = y 1</p>
          <p>b 0 = 0</p>
          <p>D 0 , 1 = D 0 , 2 = ⋯ = D 0 , m 1 = 0</p>
          <p>W 0 , 1 = W 0 , 2 = ⋯ = W 0 , m 2 = 0</p>
          <p>
            Measurement of the forecast accuracy (by using MASE), defined by Hyndeman [<xref ref-type="bibr" rid="scirp.94713-ref52">52</xref>] is calculated as follows:
          </p>
          <p>q t = | y t − y ^ t | 1 l − 1 ∑ i = 2 l | y i − y i − 1 | (4)</p>
          <p>MASE = 1 t ∑ i = 1 t | q i |</p>
          <p>
            where l is a number of values in the training stream. In the anomaly detection models based on HW or TDHW models [<xref ref-type="bibr" rid="scirp.94713-ref3">3</xref>] [<xref ref-type="bibr" rid="scirp.94713-ref44">44</xref>] [<xref ref-type="bibr" rid="scirp.94713-ref53">53</xref>] , if MASE &gt; δ, where δ is a predefined threshold, the new arrived stream data y<sub>t</sub> is determined as an anomaly.
          </p>
          <p>
            We propose [<xref ref-type="bibr" rid="scirp.94713-ref1">1</xref>] an adoption of the MASE definition (5) by adding two window parameters k and n, to the current iterative processes (1) and (3) with smoothing parameters α, β, γ and ω. For the HW forecast, MASE depends on parameters α, β, γ, δ, k, n and for TDHW, MASE depends on parameters α, β, γ, δ, k, n.
          </p>
          <p>q t ( α , β , γ , δ , k ) = | y t − y ^ t | 1 k ∑ i = t t − k | y i − y i − 1 | , q t ( α , β , γ , ω , δ , k ) = | y t − y ^ t | 1 k ∑ i = t t − k | y i − y i − 1 | (5)</p>
          <p>where k &lt; t .</p>
          <p>MASE t ( α , β , γ , δ , k , n ) = 1 n ∑ i = t t − n q i ( α , β , γ , , δ , k , n ) , MASE t ( α , β , γ , ω , δ , k , n ) = 1 n ∑ i = t t − n q i ( α , β , γ , ω , δ , k , n )</p>
          <p>where n &lt; t .</p>
          <p>The anomaly is declared if MASE t &gt; δ , where δ is threshold.</p>
        </sec>
        <sec id="s3_2_2">
          <title>3.2.2. Finding the Optimal Values of the Algorithm Parameters</title>
          <p>The goal of our proposed algorithm is to find the optimal parameter values for the anomaly detection algorithm in order to achieve the correct TP and zero FP and FN.</p>
          <p>The evaluation of the optimization parameters for the anomaly detection is based on input datasets and annotated anomaly intervals. We define the following procedures for counting the TP, FP and FN:</p>
          <p>&#183; TP (true positive) is the number of anomalies annotated intervals with at least one detected anomaly;</p>
          <p>&#183; FP (false positive) is the number of detected anomalies outside of all annotated intervals;</p>
          <p>&#183; FN (false negative) in the number of annotated intervals with 0 detected anomalies.</p>
          <p>Having defined these values, we use the following evaluation function for our genetic algorithm optimization:</p>
          <p>EF ( α , β , γ , ω , δ , k , n , w 1 , w 2 , w 3 , w 4 ) = TP ∗ w 1 − FP ∗ w 2 − FN ∗ w 3 − δ ∗ w 4 (6)</p>
          <p>
            where w<sub>1</sub>, w<sub>2</sub>, w<sub>3</sub> and w<sub>4</sub> are weight factors (constants) that are given based on the importance of the targeted goals. In our case, we favor to achieve correct TP, and minimal FP and FN, hence the w1 is 100 and w<sub>2</sub>, w<sub>3</sub> and w<sub>4</sub> are 1.
          </p>
          <p>Based on the defined EF (6), we use a real-valued GA optimization for parameters optimization using the following constraints:</p>
          <p>0 &lt; α ≤ 1</p>
          <p>0 ≤ β , γ , ω ≤ 1</p>
          <p>0 &lt; δ &lt; δ max</p>
          <p>0 &lt; n , k ≤ 2 ∗ m</p>
          <p>
            EF starts with a calculation of a prediction using additive HW (1). Then based on this prediction, we calculate MASE t (4) and evaluate its value against δ. δ<sub>max</sub> is defined experimental based on the dataset (in our case 50). If our algorithm detects an anomaly, we add the timestamp to a list of anomalies for further evaluation. The next step is an evaluation of the anomaly list against the anomaly annotated intervals, thus deriving TP, FP and FN, and finally calculating the EF value.
          </p>
          <p>The GA optimization is very effective: we use small populations with less than 100 individuals, and achieve the optimal solutions in less than 20 iterations. The proposed algorithm is implemented in R language.</p>
        </sec>
      </sec>
    </sec>
    
    <sec id="s4">
      <title>4. Experimental Results</title>
      <p>In this section, the datasets used in the experiments are described. The main part of the section is a comparison of the results (TP, FP, FN, detection rate, precision) achieved with our proposed algorithms HW GA and DTHW GA, compared to several older variations of HW, DTHW and ARIMA, MA, HTM algorithms.</p>
      <sec id="s4_1">
        <title>4.1. Experimental Datasets</title>
        <p>
          To evaluate the proposed algorithm, we have used the most known benchmarks from Yahoo, Webscope dataset “data-labeled-time-series-anomalies-v1_0” [<xref ref-type="bibr" rid="scirp.94713-ref15">15</xref>] , NAB [<xref ref-type="bibr" rid="scirp.94713-ref12">12</xref>] “artificial With Anomaly” and our real data log-file, generated by NEIS.
        </p>
        <p>
          We have exploited the first 4 out of 100 Yahoo synthetic A2 and real A3 and A4 time-series benchmarks, with tagged anomaly points. The datasets are suitable for testing the detection accuracy of various anomaly-types including outliers and change-points. The synthetic dataset consists of time-series with the varying trend, noise and seasonality, while the real one consists of time-series representing the metrics of various Yahoo services. Some datasets have a weekly and some a weekly and daily seasonality Part of the datasets A4 is shown in <xref ref-type="fig" rid="fig3">Figure 3</xref> below.
        </p>
        <p>NAB contains artificially-generated datasets with varying types of tagged anomalies and a daily seasonality. The NEIS dataset has weekly and daily seasonality. Anomalies are unknown but are analyzed and tagged by a human. All the datasets contain a timestamp and single value based on the log.</p>
      </sec>
      </sec>
      <sec id="s4_2">
        <title>4.2. Results and Discussion</title>
        <p>In order to evaluate if the optimization of the parameters works well, we have separated the datasets into training and test sets. The optimal values of the parameters are determined on the training set and then they are verified on the test set.</p>
        <p>
          Our proposed algorithm (HW GA) with GA optimized parameters (α, β, γ, δ, k, n) and with improved MASE t ( α , β , γ , δ , k , n ) is compared with ARIMA, MA (implemented in our previous work [<xref ref-type="bibr" rid="scirp.94713-ref54">54</xref>] ), HTM [<xref ref-type="bibr" rid="scirp.94713-ref5">5</xref>] algorithm,
        </p>
        <p>HW where smoothing parameters are calculated by formula and default MASE (HW calc. MASE), HW by default smoothing parameters (optimized in R) and default MASE (HW def. MASE), HW by default smoothing parameters and improved MASE k , n (HW def. MASE(k, n)).</p>
        <p>
          HW GA [<xref ref-type="bibr" rid="scirp.94713-ref1">1</xref>] counts automatically the number of TP, FP and FN that is not possible with other compared algorithms. The smoothing parameters can be calculated by Formula (7) were for the total weight we take 0.95:
        </p>
        <p>α = 1 − exp ( log ( 1 − total   weights   as % ) #   of   time   points ) (7)</p>
        <p>A number of points (frequency) for Yahoo benchmark stream, with week seasonality, is 24 &#215; 7 = 168, having data each hour. A number of points for the Numenta benchmark stream are 12 &#215; 24 = 288 having data every 5 minutes.</p>
        <p>To be able to compare the results we use detection rate (recall) in % (d.r.) and precision (prec.), the statistical performance measures of a binary classification test. Due to the big number of the TN-True Negative values, specificity (the true negative rate) and accuracy are not applicable measures for the time series data.</p>
        <p>In Tables 1-5 below, a number of detected TP, FP and FN for NUMENTA, Yahoo, and NEIS on training and test sets are given.</p>
        <p>Similarly, the Taylor’s Double Holt Winters GA (TDHA GA) with optimized parameters (α, β, γ, ω, δ, k, n) and with improved MASE t ( α , β , γ , , δ , k , n ) , is compared with the same algorithms as for HW, where HW type algorithms are replaced with TDHW.</p>
        <p>
          In <xref ref-type="table" rid="table6">Table 6</xref> below are shown experiments for double seasonality for both training sets and test sets for NEIS data.
        </p>
        <p>
          The last rows indicated by gray color show the results of our HW GA. As can be seen in all the cases it outperforms or is equal to the results of the other algorithms. Direct comparison of the result achieved on the same benchmark datasets can be done between proposed HW GA algorithm and HTM anomaly detection algorithm [<xref ref-type="bibr" rid="scirp.94713-ref5">5</xref>] (online implemented in [<xref ref-type="bibr" rid="scirp.94713-ref1">1</xref>] ). HW GA and HTM have given equally good results on NUMENTA datasets, while HW GA (100% detection rate and 0% false positive) significantly outperform HTM on all the Yahoo benchmark datasets as also our e-dnevnik dataset. HW GA outperforms the best results (detection rate 84.67%, and false positive 10.12%) of HW forecasting algorithm with parameter maximum likelihood estimates optimization in [<xref ref-type="bibr" rid="scirp.94713-ref53">53</xref>] , as also results of another type of algorithms (sliding windows) applied on the similar type of data streams reported in [<xref ref-type="bibr" rid="scirp.94713-ref6">6</xref>] .
        </p>
        <p>
          The other important achievement of the HW GA [<xref ref-type="bibr" rid="scirp.94713-ref1">1</xref>] is that the algorithm is self-learning and can be implemented as a positive feedback optimization with a periodic adaptation of the parameters of the algorithm. In <xref ref-type="table" rid="table2">Table 2</xref> the first dataset is used as a training set. Anomalies detected on the second dataset (test set) are verified/acknowledged by human and reused for new parameter optimization. With such newly optimized parameters detection is implemented on the third set and so on.
        </p>
        <p>
          Correct results are achieved even in the case when there are no anomalies in the training set, while the test set has anomalies (example in <xref ref-type="table" rid="table3">Table 3</xref>).
        </p>
        <p>In Tables 3-6 below, the parameters used by various algorithms are shown. Parameters δ, k, n, tagged by (*) are defined experimentally.</p>
       </sec>
        </body>
         
           <back>
          <ref-list>
            <title>References</title>
            <ref id="scirp.94713-ref1">
              <label>1</label>
              <mixed-citation publication-type="other" xlink:type="simple">Hasani, Z., Jakimovski, B., Velinov, G. and Kon-Popovska, M. (2018) An Adaptive Anomaly Detection Algorithm for Periodic Real Time Data Streams. In: International Conference on Intelligent Data Engineering and Automated Learning, Springer, Berlin, 385-397.</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref2">
              <label>2</label>
              <mixed-citation publication-type="other" xlink:type="simple">Hyndman, R.J. and Athanasopoulos, G. (2018) Forecasting: Principles and Practice. 2nd Edition, Texts Monash University, Lexington.</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref3">
              <label>3</label>
              <mixed-citation publication-type="other" xlink:type="simple">Ekberg, J., Ylinen, J. and Loula, P. (2011) Network Behaviour Anomaly Detection Using Holt-Winters Algorithm. 6th International Conference on Internet Technology and Secured Transactions, IEEE, Piscataway, 627-631.</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref4">
              <label>4</label>
              <mixed-citation publication-type="other" xlink:type="simple">Shahin, A.A. (2016) Using Multiple Seasonal Holt-Winters Exponential Smoothing to Predict Cloud Resource Provisioning. International Journal of Advanced Computer Science and Applications, 7, 91-96. https://doi.org/10.14569/IJACSA.2016.071113</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref5">
              <label>5</label>
              <mixed-citation publication-type="other" xlink:type="simple">Ahmad, S. and Purdy, S. (2016) Real-Time Anomaly Detection for Streaming Analytics. 1-10.</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref6">
              <label>6</label>
              <mixed-citation publication-type="other" xlink:type="simple">Li, G., Wang, J., Liang, J. and Yue, C.T. (2018) The Application of a Double CUSUM Algorithm in Industrial Data Stream Anomaly Detection. Symmetry, 10, 2-14. https://doi.org/10.3390/sym10070264</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref7">
              <label>7</label>
              <mixed-citation publication-type="book" xlink:type="simple">Cortez, P., Rocha, M. and Neves, J. (2001) Genetic and Evolutionary Algorithms for Time Series Fore-Casting. In: Monostori, L., Váncza, J. and Ali, M., Eds., Engineering of Intelligent Systems, Lecture Notes in Computer Science, Vol. 2070, Springer, Berlin, Heidelberg, 393-402. https://doi.org/10.1007/3-540-45517-5_44</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref8">
              <label>8</label>
              <mixed-citation publication-type="other" xlink:type="simple">Agapie, A. and Agapie, A. (1997) Forecasting the Economic Cycles Based on an Extension of the Holt-Winters Model. A Genetic Algorithms Approach. Computational Intelligence for Financial Engineering, Proceedings of the IEEE/IAFE, New York, 24-25 March 1997, 96-99.</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref9">
              <label>9</label>
              <mixed-citation publication-type="other" xlink:type="simple">Eusébio, E., Camus, C. and Curvelo, C. (2015) Metaheuristic Approach to the Holt-Winters Optimal Short Term Load Forecast. Renewable Energy and Power Quality Journal, 10, 708-713. https://doi.org/10.24084/repqj13.460</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref10">
              <label>10</label>
              <mixed-citation publication-type="other" xlink:type="simple">Riz Rupert, L.O. (2016) The Accuracy Rate of Holt-Winters Model with Particle Swarm Optimization in Forecasting Exchange Rates. Journal of Computers, 11, 216-224. https://doi.org/10.17706/jcp.11.3.216-224</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref11">
              <label>11</label>
              <mixed-citation publication-type="other" xlink:type="simple">de Assis, M.V.O., Carvalho, L.F., Rodrigues, J.J.P.C. and Proena, M.L. (2013) Holt-Winters Statistical Forecasting and ACO Metaheuristic for Traffic Characterization. IEEE International Conference on Communications, Budapest, 2524-2528. https://doi.org/10.1109/ICC.2013.6654913</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref12">
              <label>12</label>
              <mixed-citation publication-type="other" xlink:type="simple">NUMENTA Anomaly Benchmark with Labeled Anomalies. https://github.com/numenta/NAB/tree/master/data/artificialWithAnomaly</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref13">
              <label>13</label>
              <mixed-citation publication-type="other" xlink:type="simple">Hamamoto, A.H., Carvalho, L.F., Sampaio, L.D.H., Abrao, T. and Proenc&amp;Uuml;a Jr., M.L. (2017) Network Anomaly Detection System Using Genetic Algorithm and Fuzzy Logic. Expert Systems with Applications: An International Journal, 99, 390-402. https://doi.org/10.1016/j.eswa.2017.09.013</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref14">
              <label>14</label>
              <mixed-citation publication-type="other" xlink:type="simple">Scrucca, L. (2013) GA: A Package for Genetic Algorithms in R. Journal of Statistical Software, 53, 1-37. https://doi.org/10.18637/jss.v053.i04</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref15">
              <label>15</label>
              <mixed-citation publication-type="other" xlink:type="simple">Yahoo: S5—dA Labeled Anomaly Detection Dataset, Version 1.0(16M). https://webscope.sandbox.yahoo.com/catalog.php?datatype=s%5c&amp;did=70</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref16">
              <label>16</label>
              <mixed-citation publication-type="other" xlink:type="simple">Pokrajac, D., Lazarevic, A. and Latecki, L.J. (2007) Incremental Local Outlier Detection for Data Streams. IEEE Symposium on Computational Intelligence and Data Mining, Honolulu, 1 March-5 April 2007, 1-12. https://doi.org/10.1109/CIDM.2007.368917</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref17">
              <label>17</label>
              <mixed-citation publication-type="other" xlink:type="simple">Weigend, A.S., Mangeas, M. and Srivastava, A.N. (1995) Nonlinear Gated Experts for Time-Series—Discovering Regimes and Avoiding over Thing. International Journal of Neural Systems, 6, 373-399. https://doi.org/10.1142/S0129065795000251</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref18">
              <label>18</label>
              <mixed-citation publication-type="other" xlink:type="simple">Salvador, S., Chan, P. and Brodie, J. (2004) Learning States and Rules for Time Series Anomaly Detection. American Association for Artificial Intelligence, Melbourne.</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref19">
              <label>19</label>
              <mixed-citation publication-type="other" xlink:type="simple">Shekhar, S., Lu, C.T. and Zhang, P. (2001) Detecting Graph-Based Spatial Outliers: Algorithms and Applications (A Summary of Results). In: Proceedings of the 7th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, ACM Press, New York, 371-376. https://doi.org/10.1145/502512.502567</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref20">
              <label>20</label>
              <mixed-citation publication-type="other" xlink:type="simple">Song, X.Y., Wu, M.X., Jermaine, C. and Ranka, S. (2007) Conditional Anomaly Detection. IEEE Transactions on Knowledge and Data Engineering, 19, 631-645. https://doi.org/10.1109/TKDE.2007.1009</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref21">
              <label>21</label>
              <mixed-citation publication-type="other" xlink:type="simple">Warrender, C., Forrest, S. and Pearlmutter, B. (1999) Detecting Intrusions Using System Calls: Alternate Data Models. In: Proceedings of the 1999 IEEE ISRSP, IEEE Computer Society, Washington DC, 133-145.</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref22">
              <label>22</label>
              <mixed-citation publication-type="other" xlink:type="simple">Sun, P., Chawla, S. and Arunasalam, B. (2006) Mining for Outliers in Sequential Databases. SIAM International Conference on Data Mining, Sydney, 21 January 2006, 94-105. https://doi.org/10.1137/1.9781611972764.9</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref23">
              <label>23</label>
              <mixed-citation publication-type="other" xlink:type="simple">Chan, P.K. and Mahoney, M.V. (2005) Modeling Multiple Time Series for Anomaly Detection. In: Proceedings of the 5th IEEE International Conference on Data Mining, IEEE Computer Society, Washington DC, 90-97.</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref24">
              <label>24</label>
              <mixed-citation publication-type="other" xlink:type="simple">Noble, C.C. and Cook, D.J. (2003) Graph-Based Anomaly Detection. Data Mining and Knowledge Discovery, 29, 625-688. https://doi.org/10.1145/956750.956831</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref25">
              <label>25</label>
              <mixed-citation publication-type="other" xlink:type="simple">Phua, C., Lee, V., Smith, K. and Gayler, R. (2004) A Comprehensive Survey of Data Mining-Based Fraud Detection Research. CoRR 1009(6119), 1-14.</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref26">
              <label>26</label>
              <mixed-citation publication-type="other" xlink:type="simple">Dua, S. and Du, X. (2011) Data Mining and Machine Learning in Cybersecurity. CRC Press, Taylor &amp; Francis Group, Boca Raton, London, New York.</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref27">
              <label>27</label>
              <mixed-citation publication-type="other" xlink:type="simple">Sreevidya, S.S., et al. (2014) A Survey on Outlier Detection Methods. International Journal of Computer Science and Information Technologies, 5, 8153-8156.</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref28">
              <label>28</label>
              <mixed-citation publication-type="other" xlink:type="simple">Gogoi, P., Bhattacharyya, D.K., Borah, B. and Kalita, J.K. (2011) A Survey of Outlier Detection Methods in Network Anomaly Identification. The Computer Journal, 54, 570-588. https://doi.org/10.1093/comjnl/bxr026</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref29">
              <label>29</label>
              <mixed-citation publication-type="other" xlink:type="simple">Ranshous, S., Shen, S., Koutra, D., Faloutsos, C. and Samatova, N.F. (2013) Anomaly Detection in Dynamic Networks: Survey. WIREs Computational Statistics, 7, 223-247. https://doi.org/10.1002/wics.1347</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref30">
              <label>30</label>
              <mixed-citation publication-type="other" xlink:type="simple">Zwietasch, T. (2014) Detecting Anomalies in System Log Files Using Machine Learning Techniques. Bachelor Thesis, University of Stuttgart, Stuttgart.</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref31">
              <label>31</label>
              <mixed-citation publication-type="other" xlink:type="simple">Viaene, S. (2014) Analysis and Evaluation of Anomaly Detection Methods in Integrated Management. Master Thesis, EPFL, Lausanne.</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref32">
              <label>32</label>
              <mixed-citation publication-type="other" xlink:type="simple">Goldstein, M. and Uchida, S. (2016) A Comparative Evaluation of Unsupervised Anomaly Detection Algorithms for Multivariate Data. PLoS ONE, 11, e0152173. https://doi.org/10.1371/journal.pone.0152173</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref33">
              <label>33</label>
              <mixed-citation publication-type="other" xlink:type="simple">Simple Guide to Confusion Matrix Terminology. https://www.dataschool.io/simple-guide-to-confusion-matrix-terminology</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref34">
              <label>34</label>
              <mixed-citation publication-type="other" xlink:type="simple">Median Absolute Deviation of Moving Windows RunMAD. http://veda.cs.uiuc.edu/TCGA_classify/RWR/DRaWR/library/caTools/html/runmad.html</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref35">
              <label>35</label>
              <mixed-citation publication-type="other" xlink:type="simple">Boxplot. https://www.r-statistics.com/tag/boxplot-outlier</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref36">
              <label>36</label>
              <mixed-citation publication-type="other" xlink:type="simple">Twitter Advec. https://github.com/twitter/AnomalyDetection</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref37">
              <label>37</label>
              <mixed-citation publication-type="other" xlink:type="simple">MAD and DBSCAN Algorithms. https://www.datadoghq.com/blog/outlier-detection-algorithms-at-datadog</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref38">
              <label>38</label>
              <mixed-citation publication-type="other" xlink:type="simple">DBSCAN. https://cran.r-project.org/web/packages/dbscan/dbscan.pdf</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref39">
              <label>39</label>
              <mixed-citation publication-type="other" xlink:type="simple">Kasunic, M., McCurley, J., Goldenson, D. and Zubrow, D. (2012) An Investigation of Techniques for Detecting Data Anomalies in Earned Value Management Data. Carnegie Mellon University, 3, 2-103. https://doi.org/10.21236/ADA591417</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref40">
              <label>40</label>
              <mixed-citation publication-type="other" xlink:type="simple">Moving Range Technique. https://gist.github.com/tomhopper/9000495</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref41">
              <label>41</label>
              <mixed-citation publication-type="other" xlink:type="simple">Moving Range Technique. http://qualityamerica.com/LSS-Knowledge-Center/statisticalprocesscontrol/moving_range_chart_calculations.php</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref42">
              <label>42</label>
              <mixed-citation publication-type="other" xlink:type="simple">Moving Average. https://cran.r-project.org/web/packages/smooth/vignettes/sma.html</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref43">
              <label>43</label>
              <mixed-citation publication-type="other" xlink:type="simple">Gooijer, J.G. and Hyndman, R. (2006) 25 Years of Time Series Forecasting. International Journal of Forecasting, 22, 443-473. https://doi.org/10.1016/j.ijforecast.2006.01.001</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref44">
              <label>44</label>
              <mixed-citation publication-type="other" xlink:type="simple">Brutlag, J.D. (2000) Aberrant Behavior Detection in Time Series for Network Monitoring. In: Proceedings of the 14th USENIX Conference on System Administration, ACM, Louisiana, 139-146.</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref45">
              <label>45</label>
              <mixed-citation publication-type="other" xlink:type="simple">Galvas, G. (2016) Time Series Forecasting Used for Real-Time Anomaly Detection on Websites. Master Thesis, Vrije Universiteit, Amsterdam.</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref46">
              <label>46</label>
              <mixed-citation publication-type="other" xlink:type="simple">Nur Intan Liyana Binti Mohd Azmi (2013) Parameters Estimation of Holt-Winter Smoothing Method Using a Genetic Algorithm. Master Thesis, Universiti Teknologi, Malaysia.</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref47">
              <label>47</label>
              <mixed-citation publication-type="other" xlink:type="simple">Ravinder, H.V. (2013) Determining the Optimal Values of Exponential Smoothing Constants-Does Solver Really Work? American Journal of Business Education, 6, 347-360. https://doi.org/10.19030/ajbe.v6i3.7815</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref48">
              <label>48</label>
              <mixed-citation publication-type="other" xlink:type="simple">Yusuf Ziya &amp;Uuml;nal at all (2015) Developing Spreadsheet Models of Holt-Winter Methods and Solving with Microsoft Excel Solver and Differential Evaluation Technique: An Application to Tourism Sector. Proceedings of the 2015 International Conference on Industrial Engineering and Operations Management Dubai, United Arab Emirates (UAE), Dubai, 3-5 March 2015.</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref49">
              <label>49</label>
              <mixed-citation publication-type="other" xlink:type="simple">Md Maarof, M.Z., Ismail, Z. and Fadzli, M. (2014) Optimization of SARIMA Model Using Genetic Algorithm Method in Forecasting Singapore Tourist Arrivals to Malaysia. Applied Mathematical Sciences, 8, 8481-8491. https://doi.org/10.12988/ams.2014.410847</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref50">
              <label>50</label>
              <mixed-citation publication-type="book" xlink:type="simple">Hasani, Z. and Fondaj, J. (2018) Improvement of Implemented Infrastructure for Streaming Outlier Detection in Big Data with ELK Stack. In: Rocha, á., Adeli, H., Reis, L.P. and Costanzo, S., Eds., 6th World Conference on Information Systems and Technologies, Vol. 2, Springer, Berlin, 869-877. https://doi.org/10.1007/978-3-319-77712-2_82</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref51">
              <label>51</label>
              <mixed-citation publication-type="other" xlink:type="simple">Leys, C., Ley, C., Klein, O., Bernard, P. and Licata, L. (2013) Detecting Outliers: Do Not Use Standard Deviation around the Mean, Use Absolute Deviation around the Median. Journal of Experimental Social Psychology, 49, 764-766. https://doi.org/10.1016/j.jesp.2013.03.013</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref52">
              <label>52</label>
              <mixed-citation publication-type="other" xlink:type="simple">Hyndman, R.J. and Koehler, A.B. (2006) Another Look at Forecast-Accuracy Metrics for Inter-Mittent Demand. International Journal of Forecasting, 22, 679-688. https://doi.org/10.1016/j.ijforecast.2006.03.001</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref53">
              <label>53</label>
              <mixed-citation publication-type="other" xlink:type="simple">Andrysiak, T., Saganowski, L. and Maszewski, M. (2017) Time Series Forecasting Using Holt-Winters Model Applied to Anomaly Detection in Network Traffic. International Joint Conference, 649, 567-576. https://doi.org/10.1007/978-3-319-67180-2_55</mixed-citation>
            </ref>
            <ref id="scirp.94713-ref54">
              <label>54</label>
              <mixed-citation publication-type="other" xlink:type="simple">Hasani, Z. (2017) Robust Anomaly Detection Algorithms for Real-Time Big Data: Comparison of Algorithms. In: 6th Mediterranean Conference on Embedded Computing, IEEE, Montenegro, 1-6. https://doi.org/10.1109/MECO.2017.7977130</mixed-citation>
            </ref>
          </ref-list>
        </back>
</article>