An Ant-Lion Optimizer-Trained Artiﬁcial Neural Network System for Chaotic Electroencephalogram (EEG) Prediction

: The prediction of future events based on available time series measurements is a relevant research area speciﬁcally for healthcare, such as prognostics and assessments of intervention applications. A measure of brain dynamics, electroencephalogram time series, are routinely analyzed to obtain information about current, as well as future, mental states, and to detect and diagnose diseases or environmental factors. Due to their chaotic nature, electroencephalogram time series require specialized techniques for effective prediction. The objective of this study was to introduce a hybrid system developed by artiﬁcial intelligence techniques to deal with electroencephalogram time series. Both artiﬁcial neural networks and the ant-lion optimizer, which is a recent intelligent optimization technique, were employed to comprehend the related system and perform some prediction applications over electroencephalogram time series. According to the obtained ﬁndings, the system can successfully predict the future states of target time series and it even outperforms some other hybrid artiﬁcial neural network-based systems and alternative time series prediction approaches from the literature.


Introduction
In mathematics and statistics, there are different types of problems that can be solved via artificial intelligence-based approaches.One remarkable research issue in this regard is the analysis of time series, and it seems that the collection of such data flows over a period of time often attract researchers as it is possible to derive lots of information from them.In the literature, the term "time series" is defined as the flow of data saved over a previous time period, which can be a week, month, or even year [1][2][3][4].It has been determined that the use of time series can make it easier to understand many aspects on the subject or event from which the time series data has been obtained.Due to this, time series analysis has become a remarkable application and, finally, the popularity of applications on 'predicting the future flow of time series' has taken many steps forward in time.The prediction of the future flow of time series involves the analysis of previous states of a time series to obtain ideas about the flow in the future.This approach benefits from the idea of that the past patterns of a time series will be observed in the future [1].
Time series prediction has relations with events or problems within almost all fields of modern life.Here, it is notable to express that future states related to changes in financial values, sales, productions, or even behaviors of natural dynamics can be predicted thanks to different approaches applied over a time series.Hereby, it is possible for a scientist, researcher, or an expert in a certain field, to have an idea about future states and, finally, to reach decisions that can be useful for new applications or problem solutions.In general, the prediction of time series has become an important application as a result of unstoppable, chaotic changes in real-life, and the nature of 'uncertainty' has appeared because of this situation.In particular, chaotic time series showing complex flows which make it difficult to perform accurate analyses have a remarkable place in real-life applications.
The prediction of chaotic time series is a research interest that is followed widely by the scientific community.If the background of time series prediction is examined in detail, it can be seen that previously-introduced traditional approaches or methods sometimes failed for especially chaotic time series which are more complex and dynamic [5].Due to this issue, there have been remarkable efforts to employ alternative solutions to overcome the prediction problem for difficult or challenging time series.At this point, it was also noticed that the use of artificial intelligence can overcome the related issues and furthermore, give many advantages of 'intelligent mechanisms' to solve real-world based problems.In time, this field has become a popular application interest when time series prediction is important for an encountered problem.Today, the development of artificial intelligence-based hybrid systems is one of the most attractive solutions and because of this, it is possible to see many examples of time series prediction applications done via hybrid systems structured with more than one method or technique.
Based on the explanations so far, this study aims to employ an alternative artificial intelligence-based hybrid system to predict chaotic time series and deal with electroencephalogram (EEG) time series, because of its vital importance in terms of healthcare.The study briefly focuses on designing an approach that combines artificial neural networks (ANN), and the ant-lion optimizer algorithm (ALO), which is a recent optimization technique, in order to realize the expressed objectives.As an alternative method of training the artificial neural network, the ant-lion optimizer is a recently-introduced algorithm which was inspired by the hunting behavior of ant-lions while they are larvae [6][7][8][9].The study done here is connected with many outputs, such as evaluating the potential of predicting EEG with Artificial Intelligence-based systems, and also the success rate of an ANN-ALO (ALO trained ANN) system with this problem.Furthermore, the practical value of the ANN-ALO system is analyzed thanks to applications made by physicians recently.The motivation of this study and the main contributions considered in it are as follows: The study deals with the remarkable, widely-followed research interest of time series prediction and focuses on predicting especially 'chaotic' ones.Additionally, the study also considers the healthcare field and tries to predict electroencephalogram (EEG) time series, which are important medical data for analyzing brain activity and obtaining information about possible diseases (like depression, autism, epilepsy, and even Alzheimer's disease) or environmental factors that interact with the brain.While performing predictions over EEG time series, the study contributes to the associated literature by introducing the ANN-ALO hybrid system which has not been employed for this purpose yet.As EEG is the target data to be predicted, the study aims to predict an advanced time series with chaotic characteristics.Furthermore, the study generally proves that hybrid Artificial Intelligence techniques are effective enough in predicting time series, even when they are chaotic.In this way, the more practical and effective sides of artificial intelligence techniques according to traditional approaches can be understood by readers.Finally, the study also proves, generally, that healthcare needs more use of artificial intelligence to solve some issues.The issue considered here, the 'prediction' over data flow, is one of the key elements for healthcare, especially in terms of early diagnosis.In this context, the study proves the advantages of the introduced approach thanks to performed evaluations including both comparative and experiences from experts (physicians).

Background
Except from other studies done over time series, the prediction of future states has always been a remarkable issue because of its advantages of 'seeing the future' and 'acting according to that'.Moving on from that fact, it is possible to indicate that the prediction of time series is a vital approach, especially in healthcare.On the other hand, there are many other fields that need predictions to be done over gathered data in the form of time series.In detail, chaotic time series have a remarkable value here because of their more complex structures.In the past, the disadvantages of traditional approaches have enabled researchers to search for alternative solutions and artificial intelligence has become an important solution for achieving better results in the prediction of time series, including chaotic ones.So far, the related literature has been affected by this situation too much.

A Brief Review of the Literature
By also extending a recently done literature review by the author and his colleague in [10], it is possible to explain some of the background on time series prediction (mostly on chaotic ones) as follows: Considering the technique of artificial neural networks (ANN), Gan et al. and Wong et al. all introduced some prediction-oriented research studies for the related literature [11,12].In terms of hybrid approaches, Gentili et al. employed a nonlinear local predictor, the feed forward artificial neural network, and fuzzy logic to realize predictions on time series of aperiodic hydrodynamic oscillations [13].Predicting multivariate chaotic time series is a challenging research issue.At this point, Chen and Han performed a study using the radial basis function (RBF) to deal with the related research issues [14].In the literature, some well-known chaotic time series have been used to evaluate different approaches.In a remarkable example, Wu et al. predicted the time series of Mackey-Glass, and the gas furnace (Box-Jenkins), thanks to the iterated extended Kalman filter with the single multiplicative neuron model [15].In addition, they also performed predictions over EEG time series.Based on the use of single multiplicative neuron (SMN) for the prediction of time series, it is possible to find many alternative studies that have been done so far.For example, Yadav et al. used this technique in their study which was published in 2007 [16].Additionally, Zhao and Yang performed a study similar to [14], but they used the SMN-PSO (particle swarm optimization trained SMN) approach to predict the Mackey-Glass, gas furnace (Box-Jenkins), and EEG time series [17].Yao and Liu benefited from a fuzzy logic (FL)-based approach to deal with the prediction issues about atmospheric visibility in the city of Shanghai, China [18].Particle swarm optimization (PSO), which is a widely-used swarm intelligence technique, was used by Unler to perform optimization-based time series prediction applications [19].In another study, Porto et al. used PSO in order to obtain optimum ensemble of Extreme Learning Machines (ELM) for time series prediction [20].Ant colony optimization (ACO), a combinatorial optimization algorithm that is widely-known in the literature, has become another effective prediction method for chaotic flows.Some examples are shown in [5,[21][22][23][24].Yeh used a model which provides a parameter-free simplified swarm optimization for the training of artificial neural networks (ANN) [25].In that study, the model was run over different time series, including EEG.In a remarkable study, Nourani and Andalib employed a Wavelet least square support vector machine (WLSSVM) system to predict hydrological time series [26].By focusing of the issue of predicting a suspended sediment load (SSL) for the Aji-Chay River (monthly), the authors performed a comparison-based prediction approach which analyzed approaches like ad-hoc the least square support vector machine (LSSVM) and models of artificial neural networks (ANN) together.Regarding the sub-field of machine learning, Bontempi et al. produced a book chapter to provide a review about recent approaches for predicting the time series via specific machine learning techniques [27].As it is based on a research study focused on prediction of general time series, this study is different from the alternative ones including only chaotic time series.It is an important background study due to its publishing year and wide scope.
The literature also includes some studies in which the authors employed hybrid systems structured via optimization algorithms and SVM to overcome the time series prediction problem.For example, Hu and Zhang employed support vector machines (SVM) and the chaotic simulated annealing algorithm (CSAA) to predict time series [28].On the other hand, Liu and Yao employed a hybrid system including PSO and the least square SVM to perform prediction processes [29].Readers are also referred to [30][31][32][33][34][35][36] to get a better idea about using SVM in prediction problems.

Ren et al. carried out a study on the prediction of short-term traffic flow with an Artificial
Intelligence-based approach.In this context, they used a prediction approach including the back-propagation neural network-niche genetic algorithm (NGA) [37].In another study on predicting traffic flow, Ding et al. predicted the 'lane-change trajectory by drivers' in urban traffic flow [38].In the context of predicting urban traffic flow, Yin et al. also developed an alternative approach and introduced the Fuzzy-Neural Model (FNM) for predicting traffic-flow in urban street networks [39].Dunne and Ghosh presented an alternative approach to predict traffic flow (hourly) by taking the effects of rainfall into consideration [40].In detail, they employed a neuro-wavelet model including the stationary wavelet transform (SWT).As a three-technique hybrid system formation, Pulido et al. employed ensemble neural networks (ENN)-fuzzy logic (as Type 1-Type 2), and particle swarm optimization (PSO) to perform predictions related to the Mexican Stock Exchange [41].Huang et al. used the chaos over BP artificial neural networks (CBPANNs) system supported by the genetic algorithm to perform predictions on time series [42].Briefly, they employed their system to predict wind power.In another study on predicting wind power and speed, Jiang et al. used a hybrid system based on the support vector regression (SVR) model, and cross correlation (CC) analysis.They supported their system with the cuckoo search (CS) and brainstorm optimization (BSO) algorithms [43] and applied the research to wind turbines running on a wind farm (China).Doucoure et al. used a multi-resolution analysis along with the artificial wavelet neural network model to predict wind speed [44].Briefly, the authors developed a prediction system that can be used in the context of renewable energy sources.The main objective of this study was to obtain an intelligent, alternative management approach for a micro-grid system that could use renewable energy within isolated and grid-connected power systems [44].Chandra used a recurrent neural networks system, trained thanks to the technique of Cooperative Coevolution (CC), to predict chaotic time series [45].Chai and Lim used artificial neural networks and weighted fuzzy membership functions (NEWFM) to perform predictions on the business cycle [46].In detail, the authors used chaotic time series (adjusted leading composite index time series with coordinate embedding (time-delay)) for the NEWFM and predicted the flow of business in this way [46].Seo et al. employed artificial neural networks and, also, the adaptive neuro-fuzzy inference system to perform prediction operations on water levels that were tracked daily [47].The theory of wavelet decomposition theory was also used within this research study.In their study, Marzban et al. employed differently structured dynamic neural networks (DNN) to predict chaotic systems like Mackey-Glass and Henon Map [48].Okkan employed a wavelet neural network (WNN) to realize the predictions for monthly reservoir in-flow (from the data obtained from the basin of the Kemer Dam in Turkey) [49].In detail, the system used here included discrete wavelet transform (DWT)-feed forward neural networks (FFNN), which are supported by the Levenberg-Marquardt optimization algorithm.Zhou et al. developed a dendritic neuron model (with dendritic functions and phase space reconstruction) for predictions over the financial time series of the Shanghai Stock Exchange Composite Index, the Deutscher Aktienindex, the DJI Average, and the N225 [50].In a research study, Wang et al. used differential evolution (DE) supported by teaching-learning based optimization (TLBO) to predict some chaotic time series [51].In relation to the prediction of chaotic time series, Heydari et al. employed the Takagi Sugeno Kang (TSK) second-order fuzzy system and ANFIS (artificial neural fuzzy inference system) [52].Wang et al. provided a study on the prediction of time series using a Back Propagation-oriented neural network model trained by adaptive differential evaluation (ADE) [53].It was reported that the authors produced successful, improved results in their study.Catalao et al. used a hybrid system in their study to predict short term electricity prices [54].In detail, they employed particle swarm optimization (PSO), wavelet transform (WT), and ANFIS for their research purposes.A hybrid system of the ANFIS-vortex optimization algorithm (VOA) was used by Kose and Arslan to perform predictions over the time series of EEG.It was reported that the related system is successful enough in the prediction of EEG data [10].A model of adaptive local linear (optimized) radial basis functional neural network (LLRBFNN) was employed by Patra et al. to predict some financial time series [55].It was reported in that study that LLRBFNN can perform predictions successfully enough and performs better than some other alternative systems that have been considered.In another study on financial time series prediction, Ravi et al. built a hybrid model including three different solution elements [56].They designed some three-stage hybrid models that employ chaos to construct the phase space in stage 1, the Multi-Layer Perceptron (MLP) network model in stage 2, and particle swarm optimization with a multi-objective mechanism (MOPSO) and the elitist non-dominated sorting genetic algorithm (NDSGA) in stage 3.Both long-term and short-term time series prediction were achieved by Méndez et al. by using a different approach [57].In their study, they built a modular (structured) neural network (MNN) model with two methods: competitive clustering and winner-takes-all.
Following the examination of works in the literature that have put more emphasis on the prediction of EEG time series (with a chaotic nature), the several works are explained briefly.In their study, Weil et al. used radial basis function neural networks with the adaptive projective learning algorithm to predict some EEG time series [58].In detail, they showed that the optimal choice of alpha parameters within the system can effectively predict EEG data and this depends on the correlation dimension of objective EEG time series.As a traditional use, Hou employed the BP neural network model to perform some prediction operations over the EEG time series [59].In the study, they also used brain electrical activity mapping (BEAM) as an alternative research approach.In a recent study by Wei et al., both the convolution neural network (CNN) and the bi-directional recurrent neural network (BRNN) were employed to develop a universal predictor for both EEG and ECG time series [60].The related system showed positive performances for predicting the chaotic time series by considering two medical data types: EEG and ECG.Blinowska and Malinowski used non-linear and autoregressive (AR) techniques to predict both EEG and simulated time series [61].The study followed the objective of evaluating whether the techniques can distinguish chaotic time series from noisy ones and positive results were obtained.In another study, Wei et al. used a third-order Volterra filter to predict chaotic time series including EEG data [62].The findings obtained in the research showed that the used technique was better than the second-order Volterra filter and it was successful in predicting high dimensional chaotic EEG time series.Coyle et al. used two neural network models to perform prediction operations on an EEG time series in the context of a feature extraction approach for a brain-computer interface [63].In that study, the prediction of EEG was supported with a classification process extraction done by linear discriminant analysis (LDA).By following the concept of brain fingerprinting, Coelho et al. used the General variable neighborhood search (GVNS) technique to optimize fuzzy rules to achieve a classification of individuals [64].Although the study is not directly about predicting EEG time series, it can be evaluated within the same scope because of the prediction done with current EEG patterns to catch differences.An ANFIS was used by Komijani et al. to distinguish healthy individuals from those with epilepsy by using chaotic EEG time series [65].Here, the formed system also included an EEG prediction phase including a mixture of normal and epileptic EEG time series.The authors obtained positive results in the context of the study objectives thanks to the use of ANFIS.Prasad and Prasad developed deep recurrent neural networks (DRNN) to realize an effective prediction approach for chaotic EEG time series [66].In detail, they also designed a dynamic programming (DP) training process to improve the efficiency by benefiting from matrix operations.The Elman RNN technique was used by Forney to classify EEG time series by supporting the process with prediction phases [67].The classifications used in the study included the winner-takes-all, the linear discriminant analysis, and the quadratic discriminant analysis.

Evaluation of the Works
Based on the expressed works, it is possible to mention the following notable points: EEG is a widely examined data type in terms of time series prediction.In addition to the EEG, there are some remarkable data systems that can be evaluated in terms of prediction.These are Mackey-Glass, gas furnace (Box-Jenkins), and Henon Map.Chaotic maps are also widely used for the prediction of oriented works.Chaotic data from real-life has great potential because of its unique characteristics that change in different locations around the world, regions, etc.It is already a remarkable approach to deal with chaotic time series systems by using hybrid structured solution approaches.In terms of predicting, in particular, chaotic time series, the artificial neural network is a widely-chosen technique that is used by researchers.Generally, researchers obtain positive results when they try to predict time series (even chaotic ones) via artificial intelligence-based approaches, methods, and techniques.There is a certain open problem involved in training the artificial neural network and its different variations as long as it has the function of being trained with optimization-based solutions.The prediction of EEG time series is a critical research topic for diagnosing brain diseases and better understanding potential brain activity that may appear in the future.On the other hand, there is also a remarkable interest in the evaluation of EEG data for research objectives on the brain-computer interface.In the context of intelligent optimization algorithms, the ant-lion optimizer has not yet been used with artificial neural networks to directly predict chaotic EEG time series.
In addition to the brief but expansive look at the background of this topic, it is now appropriate to express some of the information about how chaotic time series prediction over EEG is achieved by using the hybrid system of artificial neural networks and the ant-lion optimizer technique.To achieve this, each technique and the general prediction solution designed in this study are explained to the readers in the next section.

Materials and Methods
In regard to the materials and methods used in this study, the essentials of the techniques employed within the hybrid system and also, important details regarding the designed prediction approach are explained in the following text:

Artificial Neural Networks
In the Artificial Intelligence literature, there are some general techniques that are still strong enough to deal with encountered real-life problems.The artificial neural network (ANN) is one of them, and this technique is widely used by researchers in problems, even in hybrid-structured approaches.As it is also a machine learning technique, ANN is a data processing system model which is inspired from the human brain's structure.Generally, a typical ANN model includes some artificial neurons which are some kind of distributed, parallel calculation element.By using some sets of artificial neurons, it is possible to form different ANN models.A typical ANN model can deal with many tasks, like classification, prediction, intelligent optimization, control, pattern recognition, etc. [68][69][70][71][72][73][74][75][76][77][78][79].The default structure of a multi-layer ANN is shown in Figure 1  In addition to the brief but expansive look at the background of this topic, it is now appropriate to express some of the information about how chaotic time series prediction over EEG is achieved by using the hybrid system of artificial neural networks and the ant-lion optimizer technique.To achieve this, each technique and the general prediction solution designed in this study are explained to the readers in the next section.

Materials and Methods
In regard to the materials and methods used in this study, the essentials of the techniques employed within the hybrid system and also, important details regarding the designed prediction approach are explained in the following text:

Artificial Neural Networks
In the Artificial Intelligence literature, there are some general techniques that are still strong enough to deal with encountered real-life problems.The artificial neural network (ANN) is one of them, and this technique is widely used by researchers in problems, even in hybrid-structured approaches.As it is also a machine learning technique, ANN is a data processing system model which is inspired from the human brain's structure.Generally, a typical ANN model includes some artificial neurons which are some kind of distributed, parallel calculation element.By using some sets of artificial neurons, it is possible to form different ANN models.A typical ANN model can deal with many tasks, like classification, prediction, intelligent optimization, control, pattern recognition, etc. [68][69][70][71][72][73][74][75][76][77][78][79].The default structure of a multi-layer ANN is shown in Figure 1 [78].The default structure of an artificial neuron was introduced by McCulloch and Pitts [80].Since then, the literature regarding the ANN has gained momentum, and there has been a rapid increase in research studies based on that technique.Eventually, several different ANN models (i.e., multi-layer, single perceptron, self-organized map, ADALINE, adaptive neuro-fuzzy, probabilistic network) were introduced by researchers [56,57,68,70,72,79,[81][82][83].
The learning mechanism employed in an ANN model is briefly described as follows: an ANN learns from the environment and gives appropriate responses to newly encountered situations thanks to the learned experiences and information, which is like the mechanism seen for humans' (and even some other living organisms') behavior when learning new things from experiences and using them to solve new problems (or solving already known ones in a better way) [70][71][72]79,[81][82][83].In this context, the learning process of an ANN can be based on three different machine learning strategies: supervised learning, unsupervised learning, and reinforcement learning.Supervised learning deals with the use of inputs and desired outputs to train an ANN, while unsupervised learning uses only inputs, and the reinforcement learning focuses on the feedback value(s) received [70][71][72]79,[81][82][83].
A common ANN model structure used in research studies is as follows: the network includes artificial neurons connected to each other by weights.In general, an artificial neuron employs input(s) with weight(s), a function of summation, and finally, an output.Here, inputs are multiplied by weight values, and sum of them is used by a transfer function.The output of the transfer function is the output of the neuron [79,[81][82][83].Thanks to such connections, more and more artificial neurons and larger ANN models can be obtained [79,83].
Today, it is clear that the ANN technique is still popular in the context of artificial intelligence-based applications, as was indicated previously.At this point, hybrid system formation is a common usage of ANN.Although there can be many different ways to use an ANN in hybrid form, the support of its learning process with alternative algorithms has always been attractive for researchers.One remarkable approach is to use artificial intelligence-based, intelligent optimization algorithms instead of known traditional algorithms.In this study, the hybrid structure was formed by following an intelligent optimization-oriented approach and a recent algorithm.The ant-lion optimizer was chosen as the training algorithm for the process.The next subsection briefly focuses on the essentials of that algorithm.

Ant-Lion Optimizer
The ant-lion optimizer (ALO) is a recently developed artificial intelligence-based optimization algorithm that was introduced by Mirjalili [6].It is also a swarm intelligence-based approach that was inspired from ant-lions by considering their behaviors during larvae form.The algorithm employs particles as ant-lions and ants, respectively, in order to perform an optimization process that was designed mathematically and logically around the hunting behaviors shown by ant-lions.In real-life, ant-lions use traps under the ground in order to hunt ants (Figure 2 [6]).The ALO builds on this fact and focuses on interactions among particles of ant-lions and ants.To model these interactions, ants are moved over the search space while ant-lions are allowed to hunt them with their traps [6,7].At this point, the ant-lions become fitter by using the traps.In the ALO, the movements of ants are modelled by using the approach of 'random walk' [6][7][8][9].Here, the changing positions of the ants are used as parameters for objective function(s) so that optimum values are searched [6].
ALO has already been used in different studies in the associated literature [6][7][8][9]84,85].For the ALO, the following conditions are considered through optimization steps followed in this manner [6]: Ants move in the objective search space with different random walks by considering all dimensions of the problem.Performed random walks are affected by the traps of the ant-lions.Pits indicating traps are built by ant-lions proportionally to their calculated fitness, and larger pits (ant-lions) have a greater probability of catching ants.Any ant can be caught by an ant-lion (including the best one) during ALO iterations.Ants actually move towards ant-lions by decreasing their range of random walk adaptively.If an ant is fitter than an ant-lion, it is caught and hid under the sand by the ant-lion.Ant-lions to be processed are chosen during ALO iterations using the roulette wheel choosing approach applied in genetic algorithms.
employs particles as ant-lions and ants, respectively, in order to perform an optimization process that was designed mathematically and logically around the hunting behaviors shown by ant-lions.In real-life, ant-lions use traps under the ground in order to hunt ants (Figure 2 [6]).The ALO builds on this fact and focuses on interactions among particles of ant-lions and ants.To model these interactions, ants are moved over the search space while ant-lions are allowed to hunt them with their traps [6,7].At this point, the ant-lions become fitter by using the traps.In the ALO, the movements of ants are modelled by using the approach of 'random walk' [6][7][8][9].Here, the changing positions of the ants are used as parameters for objective function(s) so that optimum values are searched [6].Ant-lions are relocated to the last caught prey, and a pit is built here to improve the chance of catching other prey.
A pseudo-code regarding the default ALO can be written as follows, which also includes essential equations [6][7][8][9]: Step 1 (Initialization Phase): Randomly place M number of ants, and N number of ant-lions over the search space.
Step 2: Calculate the fitness levels of all ants and ant-lions.Additionally, determine the best ant-lion according to the calculated fitness values.
Step 3: Perform the following steps until the stopping criteria is met.
Step 3.1: Perform the following sub-steps for each ant.
Step 3.1.1:Select an ant-lion with the roulette wheel.
Step 3.1.2:Update the minimum and maximum (c and d) values with the ratio (I), by using the following equations: Step 3.1.3:Perform a random walk (Equation ( 3)) and normalize it (Equation (4)): where cs is the cumulative sum, and r(time) = 1, random number > 0.5 0, random number ≤ 0.5 Step 3.1.4:Update the related ant's position by using the following equation: where R time AntLion is a random walk around the chosen ant-lion with the roulette wheel while R time AntLion is a random walk around the best ant-lion.Step 3.2: Calcute the fitness values for all ants.
Step 3.3: Replace an ant-lion with its related ant if it is fitter by using the following equation: Step 3.4: Update the best ant-lion if an ant-lion is better than it.
Step 4: The best ant-lion is the optimum solution(s) for the related problem.
The whole process can be explained in a more technical way, as follows [86].In the ALO, first, the matrices representing ants and ant-lions are randomly initialized.Following that, the position of each ant corresponding to an ant-lion is chosen with the roulette wheel approach, while the best ant-lion so far is updated in each iteration.Here, the position, which updates the boundary, is firstly relative to the current iteration number, and the position is then updated via two random walks around the chosen best one and the ant-lion.In every random walk, the points are predicted over the fitness function.If any ant becomes fitter than any other ant-lions, their positions are set as the new positions for ant-lions in the next iteration.The best ant-lion is contrasted with the best ant-lion that was obtained through the optimization and is replaced at its primary point.
Although it is a recent algorithm, ALO has been widely applied in problems within different fields with different optimization problem structures (i.e., multi-objective optimization) [87][88][89][90][91]. Additionally, as expressed before, ALO is an algorithm which is the subject of the swarm intelligence sub-field under artificial intelligence.Swarm intelligence briefly deals with particle-based systems coming from the idea of behaviors seen among social swarms (i.e., fishes, birds, ants, bees, and even humans) that are observed as they are collectively realized [79,92].Under swarm intelligence, many different intelligent algorithms dealing with optimization problems have been developed in the related literature.Particle swarm optimization (PSO), ant colony optimization (ACO), cuckoo search (CS), and artificial bee colony (ABC) are some recent, widely-employed swarm intelligence algorithms.Readers interested in the subfield of swarm intelligence and some known algorithms are referred to [93][94][95][96][97][98][99][100] for more detailed information.
In this study, ALO has been used to optimize the weights of the ANN technique which means training of the model.The next subsection provides more information about the formed ANN-ALO system and the chaotic time series prediction approach used for EEG data here.

Chaotic Time Series Prediction with the ANN-ALO System
EEG time series are in chaotic forms.Due to this, there is a need for a prediction solution strong enough to deal with chaotic time series.In order to achieve that, a hybrid approach rising over the ANN-ALO combination was considered in this study.The system briefly employs an ANN model which is trained by the ALO.Since it is a recent, effective optimization technique, ALO has been employed to train the ANN model rather than using traditional training approaches, e.g., the back-propagation algorithm.
The approach designed here is a novel one with it is function being to employ ALO for the first time to train ANN on chaotic time series prediction.The novelty here deals with the prediction success according to alternative approaches and as a first-time alternative for the associated literature.The prediction approach is as follows: For training, particles of the ALO are associated with the weight and bias of the ANN (ALO was employed to optimize the weight and the bias).The ANN is trained according to the mean squared error (MSE) criteria by considering the differences between obtained output values and desired output values.In this context, the ANN model is, briefly, a multi-layer perceptron (MLP) that employs four inputs and one output.The ANN model tries to predict the value of x(time + 3), by using the values x(time), x(time − 3), x(time − 6), and x(time − 9).It is important to express here that there are many different combinations of lags used for the prediction approach.However, past studies that were performed by the author showed that these lags are the most appropriate ones for the different chaotic time series considered [101].Additionally, some alternative lag options have been tested before in order to understand which one is appropriate to use (a report on this is provided in the next paragraphs).Of course, further investigations are always open to select alternative lags as long as the success of prediction approaches depends on choosing the optimum number of lags and time delays between each of them.In this study, the general prediction performance of the approach was evaluated according to the mean absolute error (MAE) criteria.
Figure 3 shows a brief view of the ANN-ALO prediction system.

Applications on Electroencephalogram (EEG) Prediction
The applications of the followed research were based on prediction operations done over some considered EEG data.Here, it was also important to determine the general structure of the ANN-ALO system that was employed for prediction.First of all, the optimum structure of the ANN was determined by evaluating five different ANN models with alternative lags (inputs), outputs, and hidden layers.The ANN models were trained with the traditional back propagation algorithm (BPA), and the prediction accuracy of the models were analyzed by considering the sample and simulated EEG time series used in [10].Following that, five different ALO adjustments (regarding the used parameters of the ALO) were used in the optimum ANN model to determine the best adjustment that was then evaluated further in terms of its success in predicting chaotic EEG time series.The next paragraphs briefly explain all of these research stages.

Chaotic EEG Time Series Prediction with the ANN-ALO System
The electroencephalogram (EEG) is a typical monitoring approach for electrical activities that occur in our brains.Since the brain is a complex component of the body that is associated with many vital functions, the electrical activity in it can be observed in chaotic forms.Due to this, a general analysis of brain activity requires the employment of advanced approaches to understand the chaotic flows in time series that are derived from electrical activities in them.It is possible to consider this to be a vital issue because of the following key points: In terms of the healthcare and medical perspective, the early diagnosis of some diseases (like depression, autism, epilepsy, and even Alzheimer's disease) related to the brain is very important.Additionally, the evaluation of interactions of the brain with other environmental factors (e.g., triggering factors around living organisms, psychological aspects, living standards, and health state affected by problems in other organs) are also critical.
Considering the mentioned key points, predicting the future of such data flow is also a remarkable research approach and is followed in this study.
In order to perform predictions over chaotic EEG time series, data were recorded from individuals coming to the Isparta State Hospital located in the city center of Isparta, Turkey.At this point, a total of 10 EEG data gathered from 10 (five males and five females) individuals (from whom necessary ethical permission was obtained) were considered for the prediction approach.In this context, a total of 10 different prediction applications were determined to achieve the prediction approach with the ANN-ALO hybrid system and also to evaluate it.
A typical EEG recording is done by locating electrodes on certain points over the individual's head (Figure 4a [102]).At this point, an internationally used 10-20 system is followed to place the electrodes on points from which it is possible to gather the desired electrical data easily (Figure 4b [103]).In this study, the sampling frequency for the EEG recording was 250 Hz, and in order to make the related data While forming a hybrid system for a specific problem, it is important to adjust all parameters regarding the employed techniques to ensure that there is good enough synchronization among/between them.Thus, it is important to determine how both ANN and ALO should be adjusted to ensure desired interaction between them and to solve the problem of predicting chaotic time series which is one of the objectives of this research study.

Applications on Electroencephalogram (EEG) Prediction
The applications of the followed research were based on prediction operations done over some considered EEG data.Here, it was also important to determine the general structure of the ANN-ALO system that was employed for prediction.First of all, the optimum structure of the ANN was determined by evaluating five different ANN models with alternative lags (inputs), outputs, and hidden layers.The ANN models were trained with the traditional back propagation algorithm (BPA), and the prediction accuracy of the models were analyzed by considering the sample and simulated EEG time series used in [10].Following that, five different ALO adjustments (regarding the used parameters of the ALO) were used in the optimum ANN model to determine the best adjustment that was then evaluated further in terms of its success in predicting chaotic EEG time series.The next paragraphs briefly explain all of these research stages.

Chaotic EEG Time Series Prediction with the ANN-ALO System
The electroencephalogram (EEG) is a typical monitoring approach for electrical activities that occur in our brains.Since the brain is a complex component of the body that is associated with many vital functions, the electrical activity in it can be observed in chaotic forms.Due to this, a general analysis of brain activity requires the employment of advanced approaches to understand the chaotic flows in time series that are derived from electrical activities in them.It is possible to consider this to be a vital issue because of the following key points: In terms of the healthcare and medical perspective, the early diagnosis of some diseases (like depression, autism, epilepsy, and even Alzheimer's disease) related to the brain is very important.Additionally, the evaluation of interactions of the brain with other environmental factors (e.g., triggering factors around living organisms, psychological aspects, living standards, and health state affected by problems in other organs) are also critical.
Considering the mentioned key points, predicting the future of such data flow is also a remarkable research approach and is followed in this study.
In order to perform predictions over chaotic EEG time series, data were recorded from individuals coming to the Isparta State Hospital located in the city center of Isparta, Turkey.At this point, a total of 10 EEG data gathered from 10 (five males and five females) individuals (from whom necessary ethical permission was obtained) were considered for the prediction approach.In this context, a total of 10 different prediction applications were determined to achieve the prediction approach with the ANN-ALO hybrid system and also to evaluate it.
A typical EEG recording is done by locating electrodes on certain points over the individual's head (Figure 4a [102]).At this point, an internationally used 10-20 system is followed to place the electrodes on points from which it is possible to gather the desired electrical data easily (Figure 4b [103]).In this study, the sampling frequency for the EEG recording was 250 Hz, and in order to make the related data ready for the prediction tasks, it was preprocessed against noises, eye blinks, and muscular artifacts.For the noise artifact removal, FastICA, which is an automated, simple technique introduced by Jadhav et al. [104] (which benefits generally from wavelet transform) was used in this study.Each chaotic EEG time series is called as 'Application' and named with the letter followed by application number (A1, …, A10). Figure 5 briefly presents the chaotic EEG time series considered in the sense of this research study.Since it is important to observe chaotic behaviors within each EEG time series (for the scope of the research), it is possible to evaluate their phase-space state portraits.In this context, Figure 6 represents the phase-space state portrait for each chaotic EEG time series within the related applications.It can be seen from Figure 6 that for each piece of EEG data, the phase-spaces are not periodic and do not extend to infinity, which is a sign of chaos.Each chaotic EEG time series is called as 'Application' and named with the letter followed by application number (A1, . . ., A10). Figure 5   Each chaotic EEG time series is called as 'Application' and named with the letter followed by application number (A1, …, A10). Figure 5 briefly presents the chaotic EEG time series considered in the sense of this research study.Since it is important to observe chaotic behaviors within each EEG time series (for the scope of the research), it is possible to evaluate their phase-space state portraits.In this context, Figure 6 represents the phase-space state portrait for each chaotic EEG time series within the related applications.It can be seen from Figure 6 that for each piece of EEG data, the phase-spaces are not periodic and do not extend to infinity, which is a sign of chaos.Since it is important to observe chaotic behaviors within each EEG time series (for the scope of the research), it is possible to evaluate their phase-space state portraits.In this context, Figure 6 represents the phase-space state portrait for each chaotic EEG time series within the related applications.It can be seen from Figure 6 that for each piece of EEG data, the phase-spaces are not periodic and do not extend to infinity, which is a sign of chaos.In order to validate that the considered EEG time series are chaotic, a formal approach-calculation of the largest Lyapunov exponent-was used for each EEG time series.The related calculation was done with the following equation [105]: where dist means the Euclidian distance between two points, s(n) is the reference point, s(m) is the nearest neighbor to it, and N is the number of Euclidian distance calculations.Table 1 provides the Lyapunov exponents calculated for each EEG time series application.In order to accept a time series as chaotic, at least one of the calculated exponents should be positive (positive values are shown in bold style in Table 1).It can be seen from Table 1 that all EEG time series are chaotic, because each of them has a least one positive Lyapunov exponent.
Table 1.Lyapunov exponents for each EEG time series application (Figure 5) in the study.

Application (EEG Time Series)
Lyapunov Positive values are in bold style.

Organization of the ANN-ALO
As was indicated before, an optimum ANN model was first determined by evaluating the accuracy with the EEG data used in [10], and then five different ALO adjustments were used for the ANN model structure for the prediction applications in the study.After performing the prediction applications with each hybrid system, the system with the best results was used for the comparative evaluations done in further stages.Here, a remarkable consideration was also given to obtain an ANN-ALO system which does not have an overfitting problem.This was controlled by prediction applications done over different ANN-ALO adjustments by evaluating the relation between training and testing errors.At the end of the process, more consideration was also given to employing the best adjustment of ANN-ALO with no overfitting problem.
Table 2 shows a report on the mean accuracy of the prediction shown by different BPA-trained In order to validate that the considered EEG time series are chaotic, a formal approach-calculation of the largest Lyapunov exponent-was used for each EEG time series.The related calculation was done with the following equation [105]: where dist means the Euclidian distance between two points, s(n) is the reference point, s(m) is the nearest neighbor to it, and N is the number of Euclidian distance calculations.Table 1 provides the Lyapunov exponents calculated for each EEG time series application.In order to accept a time series as chaotic, at least one of the calculated exponents should be positive (positive values are shown in bold style in Table 1).It can be seen from Table 1 that all EEG time series are chaotic, because each of them has a least one positive Lyapunov exponent.

Organization of the ANN-ALO
As was indicated before, an optimum ANN model was first determined by evaluating the accuracy with the EEG data used in [10], and then five different ALO adjustments were used for the ANN model structure for the prediction applications in the study.After performing the prediction applications with each hybrid system, the system with the best results was used for the comparative evaluations done in further stages.Here, a remarkable consideration was also given to obtain an ANN-ALO system which does not have an overfitting problem.This was controlled by prediction applications done over different ANN-ALO adjustments by evaluating the relation between training and testing errors.At the end of the process, more consideration was also given to employing the best adjustment of ANN-ALO with no overfitting problem.
Table 2 shows a report on the mean accuracy of the prediction shown by different BPA-trained ANN models (the best model is in bold style).The models were run 10 times over four different EEG data (explained in [10]) and in order to make the evaluation simpler, the mean accuracy of prediction for the test data only (which was 50% of the whole EEG data) was used.Furthermore, in order to obtain one single value of prediction accuracy, the mean of 10 runs was calculated over a single mean accuracy value calculated for each ANN model by considering the entire EEG time series.Two of different lag alternatives are the ones reported by [10,65].As a widely used activation function, sigmoid was used in all ANN models in this study.Tt can be seen from Table 2 that a greater the number of inputs (previous data points) does not always lead to a better prediction performance for the ANN model.On the other hand, it is also important to determine the optimum number of total hidden layers and artificial neurons included within each of them.Since it is not ideal to use different numbers of neurons in different hidden layers for the training and test performances of an ANN model, the same number of neurons was included in each hidden layer in the context of related works by the author.Here, it is considered that the alternative ANN model formation No. 3 provided better prediction accuracy than the other alternative formations.Additionally, the lag structure chosen in model no. 3 led to better findings than the lag structure preferred in [10,65].
Moving on from the obtained findings, Table 3 provides information about the essential adjustments of the optimum ANN model structure that are used in the prediction applications of chaotic EEG data.In addition to that, different adjustments (parameter values) that were used to form five different ALO based training approaches are presented in Table 4.It is notable that ALO has just two parameters that can be adjusted for optimization.Hybrid systems employing the same ANN and five different ALO adjustments were applied to the chaotic EEG data.In detail, each EEG data (applications: A1, . . ., A10) contained a total of 3990 rows corresponding to x(time + 3): x(time), x(time − 3), x(time − 6), and x(time − 9), and 70% of the data for each time series (2793 rows) was employed for the 'training' processes, and generally, predictions were observed over the whole time period by including all the points whether they were associated (70% of the data) or not associated (remaining; 30% of the data) with the training process.In this study, the data was called training and test data, respectively, rather than the terms in-sample and out-of-sample (i.e., training, selection, and out-of-sample) suggested by [106] to provide a simple approach to perform the evaluation around.The general findings obtained with the performed applications are provided in the following section.

Findings from Prediction Applications
To be sure about which ANN-ALO solution is more successful at predicting the used time series, the prediction errors obtained with five different applications were compared.In order to make comparisons, errors in the prediction performances were calculated for the whole dataset (including both training and test data) with the mean absolute error (MAE), while the mean squared error (MSE) was used for ANN training processes.MAE and MSE can be represented as follows [107,108]: Let o i be the observation (i) and p i be the prediction regarding o i . where where e i = o i − p i , and n is the total data (row) considered.
The MAE and MSE values obtained with five different ANN-ALO systems are presented in Tables 5 and 6 respectively (best values are in bold style).Tables 5 and 6 show that the ANN-ALO system with Adjustment 4 (ALO-A 4 /Table 3) had the best performance in seven out of 10 prediction applications.Figure 7 presents the prediction flow for the related EEG time series (Figure 5) in order to give visual idea about the success of the employed hybrid system.In Figures 7 and 8, the predictions done for both the training and test data of the considered chaotic EEG time series are shown (predictions of training and test data are separated with a red line).The original data is shown with a white line, and predictions are represented with red dots (line).Additionally, some visible and remarkable periods including errors in prediction are represented by blue squares.
Visualization of the prediction performances (Figures 7 and 8) showed that the ANN-ALO system is successful enough to predict the future states of the considered chaotic EEG time series data flow.In order to be sure, the chaotic flow was also checked by considering the points in the prediction phase of the processes.Additionally, there no overfitting problem observed when the error values were evaluated again.On the other hand, it is also still important to evaluate the system in detail by comparing it with some alternative approaches, and even validating it statistically.

More Comparisons with Alternative Approaches
In addition to the evaluation of predictions done by ANN-ALO, a comparison-based evaluation was performed to get more idea about the effectiveness of the ANN-ALO model.At this point, the chosen (best) ANN-ALO system (ANN-ALO A 4 ) from the former prediction results was compared with alternative hybrid systems with the same ANN model structure (Table 3), but with different optimization algorithms as trainers.The evaluation was done according to the same criteria under Equations ( 8) and (9).However, this time, a total of 30 different runs were performed on each system to eliminate the findings obtained by chance.For the evaluation, the means of MAE and MSE were used for each EEG time series via different ANN-based systems.As this was done while determining the appropriate ANN-ALO adjustment, the chaotic flow was checked again and again for all alternative approaches, considering the points in the prediction phase of the related processes.Additionally, the whole approaches were checked for any possible overfitting issue that could have affected objective evaluation, and further analyses were done when it was certain that they did not have an overfitting problem.
As for the trainers, the particle swarm optimization (PSO) [98,109,110], cuckoo search (CS) [111,112], firefly algorithm (FA) [113,114], bat algorithm (BA) [115,116] and, also, the traditional back-propagation algorithm (BPA) [117] were used for the ANN, and each different system was employed over the same time series considered in this study (the ANN-ALO A 4 system was run, except for the previously obtained findings, and a mean of 30 different runs was considered for this evaluation in order determine the level of stability within all runs).
The mean MAE and mean MSE values (with standard deviations) obtained over the time series via different ANN-based systems are reported in Tables 7 and 8 respectively (the best values are in bold style).It can be seen from the findings provided in Tables 7 and 8 that ANN-ALO A 4 outperformed the other systems in six out of the 10 applications.In detail, the findings obtained for the four remaining applications were also in the top three findings obtained by all different ANN-based hybrid systems.Here, CS seems to be a competitive algorithm for ALO (ALO A 4 ) in the context of chaotic EEG time series.However, the other algorithms do not seem to be strong enough to even get near findings with the same ANN, compared with the ANN-ALO A 4 system.As the traditional trainer, BPA also seems to be generally different from the other systems in terms of the obtained findings.
After the comparison with different ANN-based hybrid systems, the ANN-ALO A 4 was compared with some alternative chaotic time series prediction approaches.In detail, the alternative time series prediction approaches were the dynamic Boltzmann machine (DyBM) [118], the support vector machine (SVM) [119], the hidden Markov model (HMM) [120], the Bayesian learning on Gaussian process model (BG) [121], the autoregressive integrated moving average (ARIMA) [122], the autoregressive model (ARM) [123], and the K-nearest neighbor algorithm (K-NN) [124].The same approach of using a total of 30 different runs was performed over the objective 10 chaotic EEG time series, and the mean values of MAE obtained for each approach were assessed to determine the 'outperforming approaches'.In order to use the general ranking after that, the mean MAE values for ANN-ALO A 4 (as reported in Table 7) were directly used, which means only seven alternative approaches were run and compared with ANN-ALO A 4 Tables 9 and 10 report the mean values of MAE that were obtained for the time series via ANN-ALO A 4 and the other alternative prediction approaches (best values are in bold style).It can be observed from Tables 9 and 10 that ANN-ALO A 4 provided the top performances for all EEG time series applications when it was compared with alternative ANN-based hybrid system prediction approaches.Although some approaches provided slightly similar performances, ANN-ALO A 4 was mostly different in terms of values and provided successful findings by outperforming the other methods for all components considered in the evaluation stage.
It is also important to evaluate the accuracy of ANN-ALO A 4 by focusing on the predictions only done for test data.Thus, the mean rates for correctly predicted test data (based on 30 runs in the context of 1197 rows) were calculated for all 13 approaches, with each application calculated separately.The obtained findings are shown in Tables 11 and 12, respectively (best values are shown in bold style).
Tables 11 and 12 show that the ANN-ALO A 4 mostly outperformed the other approaches based on the mean accuracy evaluation done for the predictions using only the test data considering each chaotic EEG time series (application).

Validation Test
It was important to validate the obtained findings among the related approaches, including ANN-ALO, to determine that they were not obtained by chance.In this way, it was critical to validate and assess the performance and success of the introduced ANN-ALO system.In order to achieve this, a statistical technique, the Giacomini-White Test [125] was applied in this study.This technique was applied to determine whether the minimum mean value of MAE also meant that the corresponding approach was good at prediction.Following the pairwise comparison that was done with all approaches, the general test results showing which approach provided the better performance (statistically outperformed the others with a significance level of 5%) in the related prediction application are provided in Table 13.In Table 13, the presence of more than one approach means that there was equivalence among the related approaches for the corresponding application.Additionally, it is possible to indicate from Table 13 that the good performances of ANN-ALO (ANN-ALO A 4 ) were validated statistically.In addition, competitive approaches in this manner may show effects sometimes, by the validations done on their findings.One remarkable fact here is also that ANN-CS was the best performing method for the A9, while ANN-ALO A 4 produced the best performance(s) for the remaining applications.

Ranking
By gathering the findings from Tables 7, 9 and 10, a ranking was also made for all 13 approaches to chaotic EEG time series prediction.In order to determine an order of approaches, each of them was given a point for each prediction application; points were given according to the following equation (a lower mean value of MAE gave more points to the corresponding approach): Moving on from the explanations, Tables 14 and 15 provide a report of the ranks and the obtained points from each approach in the context of the prediction applications.
Figure 9 represents the total obtained points by the related approaches in the form of a graphic.It can be seen that the ANN-ALO A 4 took first place with a total of 125 points, ANN-CS took second place with a total of 121 points, and ANN-BA took the third place with a total of 102 points.Except for the SVM and K-NN approaches, ANN-based systems are generally consecutive places.The worst rank was given to ARM, followed by BG, and then the other approaches-DyBM, HMM, and ARIMA-had total point values of around 38-43.Finally, ANN-BPA (the traditional training algorithm) took eighth place among all 13 approaches evaluated.

Practical Application and Experiences by Physicians
The development of this s scientific method with ANN-ALO to predict chaotic EEG time series also required its practical value to be shown.Due to this, it was critical to gather some evidence for the practical value of the system.In order to achieve this, the ANN-ALO system was coded with the Java programming language in order to form a prediction software system that could be used directly in computers to analyze chaotic EEG data flows in a real manner.The developed software was distributed to neurosurgery policlinics of four local hospitals in Isparta, Turkey.The hospitals were, respectively, Isparta State Hospital (from which the EEG data used in the study were obtained), the Hospital of Suleyman Demirel University (SDU), Meddem Hospital, and the Davraz Life Hospital.Currently, the software system is actively used by a total of six physicians from the related policlinics of the hospitals, and in order to obtain enough information about the practical value of the system, anonymous interviews were done to obtain remarkable ideas from the experts for the developed system and solution approach.Statements received from the physicians were generally positive ones.Some remarkable statements noted are as follows: 'This software has improved my efficiency by ensuring predictive analyze of EEG' (Meddem Hospital).'I am currently using the system for investigating epilepsy in my patients' (Isparta State Hospital).'I think such a prediction approach can be useful for also cardiologists and other physicians dealing with medical time series' (Davraz Life Hospital).'I am able to predict brain diseases better thanks to this system.It is something like I have an experienced assistant who does not know being tired' (Hospital of SDU).'I

Practical Application and Experiences by Physicians
The development of this s scientific method with ANN-ALO to predict chaotic EEG time series also required its practical value to be shown.Due to this, it was critical to gather some evidence for the practical value of the system.In order to achieve this, the ANN-ALO system was coded with the Java programming language in order to form a prediction software system that could be used directly in computers to analyze chaotic EEG data flows in a real manner.The developed software was distributed to neurosurgery policlinics of four local hospitals in Isparta, Turkey.The hospitals were, respectively, Isparta State Hospital (from which the EEG data used in the study were obtained), the Hospital of Suleyman Demirel University (SDU), Meddem Hospital, and the Davraz Life Hospital.Currently, the software system is actively used by a total of six physicians from the related policlinics of the hospitals, and in order to obtain enough information about the practical value of the system, anonymous interviews were done to obtain remarkable ideas from the experts for the developed system and solution approach.Statements received from the physicians were generally positive ones.Some remarkable statements noted are as follows: 'This software has improved my efficiency by ensuring predictive analyze of EEG' (Meddem Hospital).'I am currently using the system for investigating epilepsy in my patients' (Isparta State Hospital).'I think such a prediction approach can be useful for also cardiologists and other physicians dealing with medical time series' (Davraz Life Hospital).'I am able to predict brain diseases better thanks to this system.It is something like I have an experienced assistant who does not know being tired' (Hospital of SDU).'I will shape my future academic research in nature of EEG data after seeing that it is possible to perform effective analyzes with Machine Learning' (Hospital of SDU).'The system is good enough at predicting future states of brain activity and making effective decision making in terms of treatments' (Meddem Hospital).'The system can be used as a mobile application I think.Currently I need to use my laptop everywhere' (Davraz Life Hospital).'I started to reduce my diagnosis time thanks to using that automated system for prediction and analyze of EEG data' (Meddem Hospital).'Prediction done with this software is useful to see many details you can miss with human eyes' (Isparta State Hospital).'This software is fast at analyzing future states of the electrical activity in human brain.I wonder its application on also animals' (Davraz Life Hospital).
In addition to the interview, the physicians were also asked to fill out a small survey to try and evaluate the used software system in terms of usability, accuracy, speed, effectiveness, and novelty, respectively.At this point, each physician gave a point for each characteristic with the following scale: too bad (1); bad (2); normal (3); good (4); and very good (5).The obtained findings with mean points are given briefly in Table 16.Table 16 shows that the software system running ANN-ALO in the background is 'very good' in terms of its usability, accuracy, and effectiveness.Although the physicians thought that the speed of the system was between the scale of normal and good, the novelty value of the system was around the level of 'good'.
Figure 10 below also shows the prediction examples done for two different patients at the Hospital of SDU.As necessary, ethical permission was obtained from both patients, one of which was a 37-year old female with a possible epilepsy problem and the other one with normal EEG data was a 32-year old male.One prediction was for early epilepsy seizure diagnosis (Figure 10a) for the female patient and the other one was for the male patient with a normal EEG flow (no disease diagnosis) at the end (Figure 10b).The data flow in the blue color corresponds to predictions, and from Figure 10a, it can be seen that the ANN-ALO system was effective enough to predict even epilepsy seizures, which is a vital medical diagnosis issue.
All the findings obtained through the explained evaluation stages and practical application indicate that the designed ANN-ALO hybrid system (with the ALO A 4 form) was successful and effective enough for predicting chaotic EEG time series, which means such healthcare-oriented data can be predicted by that system to support diagnosis and treatment-based tasks.On the other hand, the system has good potential to predict the future states of chaotic time series which are generally in the form of medical data or other data types related to natural occurrences and dynamics in real-life.More discussion is provided in the following section.

Discussion
Based on the works done so far in the study, it is possible to discuss some remarkable points which are important for the characteristic of the study and its effects generally.At this point, a discussion is made concerning the findings of the system and general effects considering the wider scope.

Discussion over Findings
Based on the comparisons done, it is possible to indicate that the ANN system supported by ALO seems to produce better results than some other alternative systems.The results were even validated with the Giacomini-White Test, which was done for the findings from all approaches for the related prediction applications.Thus, the results seen in this study can be accepted as being a good contribution to the alternative research studies done so far regarding the prediction of chaotic time series.The prediction of chaotic time series is an important research method for time series prediction.This study briefly showed the effectiveness of the introduced ANN-ALO hybrid system/approach (and thus, the role of artificial intelligence and the related techniques) in predicting chaotic time series successfully.According to the findings, not only hybrid systems or alternative approaches, but also the traditional ANN-BPA system, provides worse results than the employed ANN-ALO approach, although it has a medium-level rank over some alternative approaches.The performed alternative error evaluations with both MAE and MSE confirmed the performance and success of the ANN-ALO system along with the states of other prediction systems and approaches considered.Additional statistical tests confirmed the reliability of the obtained findings and again confirmed the obtained findings leading more accurate results.The practical applications and received feedback point out the value of the developed ANN-ALO system in terms of its use in hospitals and healthcare units by physicians.

General Discussion
The prediction of medical/healthcare-oriented data by EEG is a remarkable approach because of the reasons expressed in previous paragraphs.In addition to being vital in terms of detection and diagnosis, the determination of future state of EEG is especially important for today's world in which there is great interaction with the digital world.The understanding of brain activities and their relations with the world will always be a research interest and studies like the one done here will always be triggering factors for the shaping of technology and the future world.Recent evidence

Discussion
Based on the works done so far in the study, it is possible to discuss some remarkable points which are important for the characteristic of the study and its effects generally.At this point, a discussion is made concerning the findings of the system and general effects considering the wider scope.

Discussion over Findings
Based on the comparisons done, it is possible to indicate that the ANN system supported by ALO seems to produce better results than some other alternative systems.The results were even validated with the Giacomini-White Test, which was done for the findings from all approaches for the related prediction applications.Thus, the results seen in this study can be accepted as being a good contribution to the alternative research studies done so far regarding the prediction of chaotic time series.The prediction of chaotic time series is an important research method for time series prediction.This study briefly showed the effectiveness of the introduced ANN-ALO hybrid system/approach (and thus, the role of artificial intelligence and the related techniques) in predicting chaotic time series successfully.According to the findings, not only hybrid systems or alternative approaches, but also the traditional ANN-BPA system, provides worse results than the employed ANN-ALO approach, although it has a medium-level rank over some alternative approaches.The performed alternative error evaluations with both MAE and MSE confirmed the performance and success of the ANN-ALO system along with the states of other prediction systems and approaches considered.Additional statistical tests confirmed the reliability of the obtained findings and again confirmed the obtained findings leading more accurate results.The practical applications and received feedback point out the value of the developed ANN-ALO system in terms of its use in hospitals and healthcare units by physicians.

General Discussion
The prediction of medical/healthcare-oriented data by EEG is a remarkable approach because of the reasons expressed in previous paragraphs.In addition to being vital in terms of detection and diagnosis, the determination of future state of EEG is especially important for today's world in which there is great interaction with the digital world.The understanding of brain activities and their relations with the world will always be a research interest and studies like the one done here will always be triggering factors for the shaping of technology and the future world.Recent evidence for this is the research currently being done for brain-computer interfaces.At this point, ANN-ALO systems can be effectively used to support the development of brain-computer interfaces.The prediction of chaotic time series is a very attractive issue in the informatics era which currently requires the rapid formation of information/data-manipulating it, sharing it, and obtaining alternative information/data (i.e., future states, explanations for problems/solutions) which is greatly usable.Thus, the study conducted here is an important alternative for similar studies being done in the scientific arena.The observed findings and the results reached here show the importance of artificial intelligence and its role in solving real-life problems.It is also important that artificial intelligence is a science that is progressed in the future because of its multidisciplinary scope.Since the literature is a dynamic environment which will always have better candidates, there is an open opportunity for the author(s) to carry out future studies.The prediction of, particularly natural dynamics, is an important point for dealing with real-life problems.The study realized here can be accepted as a good solution in this manner.Swarm intelligence is an important subfield of artificial intelligence, and it has potential for use in the future.The use of ALO here and its effective role in shaping the solution are remarkable points for supporting the ideas about swarm intelligence.It is thought by the author that the future of artificial intelligence will be based on the design of appropriate hybrid systems by using the most recent approaches, methods, and techniques.This study is a remarkable example of developing a hybrid artificial intelligence system to solve real-world based problems.The hybrid system introduced here has the potential to be part of some modular components to derive feedback for people/users (according to meaning of future states of time series) and to form general medical artificial intelligence-based systems like expert systems and/or medical/clinical decision support systems [126][127][128][129][130]. Furthermore, it may be also a small part of larger, adaptive control systems which continuously support real-time processes performed in medical/healthcare locations.The results obtained here can be thought of as 'butterfly effects' which may shape greater research by considering small, but effective, outputs.

Conclusions
This study introduced a novel hybrid system formed by the artificial neural network (ANN) and ant-lion optimizer (ALO) to be applied for the chaotic time series of electroencephalograms (EEGs).As a recent effective optimization algorithm, ALO was developed through inspiration from the hunting behaviors shown by ant-lions while they are larvae.In the study, ALO was employed for the training phase of the ANN which can use its inputs to obtain outputs corresponding to future predictions.From a general perspective, that hybrid system has been used to predict chaotic time series in the form of medical data (EEG).EEG was considered as the objective time series, because it is a vital data collection method that is used to diagnose brain diseases earlier to allow better healthcare options.Furthermore, EEG is associated with many occurrences in the body of a living organism, so it is possible to diagnose many diseases or interactions with environmental factors thanks to the evaluation done by EEGs.Since it also has chaotic flow, the prediction of such time series requires effective prediction approaches and, because of that, the ANN-ALO system was employed in this study as an artificial intelligence-based solution.The obtained results and planned future works are as follows:

Obtained Results
In order to see if the ANN-ALO system is successful enough at predicting future states of EEGs, it was applied to a total of 10 different EEG datasets recorded from random individuals at the Isparta State Hospital located in the city of Isparta, Turkey.The obtained findings showed that the considered ANN-ALO system can predict the future states of objective time series which means it can be used a predictive infrastructure for EEG time series.In addition, it was determined that the ANN-ALO even outperforms some other alternative hybrid systems formed with ANN and different swarm intelligence algorithm variations.Finally, the ANN-ALO is also a better prediction system than the traditional ANN-BPA system and also some traditional chaotic time series prediction approaches introduced in the associated literature.It is also important that the results here were validated statistically with the Giacomini-White Test.Except for the performed comparative works, some experiences from physicians who had used the ANN-ALO system in four separate hospitals in Isparta, Turkey were evaluated.The experiences reported in this manner showed positive results regarding the practical application of the system.All of these results showed that the ANN-ALO system can be used as an effective, and also quick, prediction approach.It was also observed that the system can be effectively used by physicians for early diagnosis and further investigations on brain activity.

Future Work
The positive results obtained in this study have encouraged the author to continue performing more works with the ANN-ALO system.In this context, future studies include applying the ANN-ALO on alternative chaotic time series in order to investigate more about its success in time series prediction.Since the scope of this study has been healthcare resulting from the use of EEG data, it is important to evaluate the system with some other chaotic time series from different fields.However, future works will also include applications in the electrocardiogram (ECG), which is the key time series of heart activity.Another future study will be associated with the analysis of effects of different adjustments applied to both ANN and ALO, respectively, and also the use of alternative lags/delays (from previous failed ones) as inputs to the ANN which have not been investigated before.In regard to using the ANN-ALO structure, future studies will also include using different hybrid techniques (e.g., ANNs with different intelligent optimization algorithms) to determine their success with chaotic time series, including healthcare-oriented ones.

Figure 1 .
Figure 1.Typical structure of a multi-layer artificial neural network (ANN) [78] (the figure is free to be used as it is from an open access source).The default structure of an artificial neuron was introduced by McCulloch and Pitts [80].Since then, the literature regarding the ANN has gained momentum, and there has been a rapid increase in research studies based on that technique.Eventually, several different ANN models (i.e., multi-layer, single perceptron, self-organized map, ADALINE, adaptive neuro-fuzzy, probabilistic network) were introduced by researchers [56,57,68,70,72,79,81-83].

Figure 1 .
Figure 1.Typical structure of a multi-layer artificial neural network (ANN) [78] (the figure is free to be used as it is from an open access source).

Figure 2 .
Figure 2. Ant-lions (shown with blue arrow), ants, and the hunting behavior, which are inspiration sources for the ant-lion optimizer (ALO) algorithm [6] (the figures are free to use according to the permission policies of Inderscience, publisher of the referenced article).

Figure 2 .
Figure 2. Ant-lions (shown with blue arrow), ants, and the hunting behavior, which are inspiration sources for the ant-lion optimizer (ALO) algorithm [6] (the figures are free to use according to the permission policies of Inderscience, publisher of the referenced article).
Appl.Sci.2018, 8, x FOR PEER REVIEW 11 of 31the noise artifact removal, FastICA, which is an automated, simple technique introduced by Jadhav et al.[104] (which benefits generally from wavelet transform) was used in this study.

Figure 5 .
Figure 5.The chaotic electroencephalogram (EEG) time series that was included in the study for prediction applications.
briefly presents the chaotic EEG time series considered in the sense of this research study.Appl.Sci.2018, 8, x FOR PEER REVIEW 11 of 31the noise artifact removal, FastICA, which is an automated, simple technique introduced by Jadhav et al.[104] (which benefits generally from wavelet transform) was used in this study.

Figure 5 .
Figure 5.The chaotic electroencephalogram (EEG) time series that was included in the study for prediction applications.

Figure 5 .
Figure 5.The chaotic electroencephalogram (EEG) time series that was included in the study for prediction applications.

31 Figure 6 .
Figure 6.Phase-space state portraits of the EEG time series (Figure 5) included in the study.

Figure 6 .
Figure 6.Phase-space state portraits of the EEG time series (Figure 5) included in the study.

Figure 7 .
Figure 7. Predictions for both training and test data regarding the EEG time series: A1-A5 (the white line represents original data, and the red dots are for predictions.Some visible and remarkable periods including errors are represented by blue squares).

Figure 7 .
Figure 7. Predictions for both training and test data regarding the EEG time series: A1-A5 (the white line represents original data, and the red dots are for predictions.Some visible and remarkable periods including errors are represented by blue squares).

Figure 8 .
Figure 8. Predictions for both training and test data regarding the EEG time series: A6-A10 (the white line shows the original data, and the red dots are for predictions.Some visible and remarkable periods, including errors, are represented by blue squares).

Figure 8 .
Figure 8. Predictions for both training and test data regarding the EEG time series: A6-A10 (the white line shows the original data, and the red dots are for predictions.Some visible and remarkable periods, including errors, are represented by blue squares).

Figure 9 .
Figure 9. Ranking (with points) of the employed approaches used to predict the EEG time series in this study.

Figure 9 .
Figure 9. Ranking (with points) of the employed approaches used to predict the EEG time series in this study.

Figure 10 .
Figure 10.(a) Early epilepsy seizure diagnosis done with the ANN-ALO approach at the Hospital of SDU; and (b) normal patient EEG prediction done with the ANN-ALO approach at the Hospital of SDU.

Figure 10 .
Figure 10.(a) Early epilepsy seizure diagnosis done with the ANN-ALO approach at the Hospital of SDU; and (b) normal patient EEG prediction done with the ANN-ALO approach at the Hospital of SDU. [78].

Table 1 .
Lyapunov exponents for each EEG time series application (Figure5) in the study.

Table 2 .
Average true prediction rate values of different back propagation algorithm (BPA)-trained ANN models for the EEG time series (Figure5) in the study.
Total data rows for each EEG time series: 4000/total data rows for test: 2000.The best model is in bold style.

Table 3 .
Adjustments of ANN models employed in prediction applications for the EEG time series (Figure5) in the study.

Table 4 .
Five different ALO adjustments considered for training ANN models along the prediction applications for the EEG time series (Figure5) in the study.

Table 5 .
Mean absolute error (MAE) values calculated for each EEG time series (Figure5) via different ANN-ALO adjustments.

Table 6 .
Mean squared error (MSE) values calculated for each EEG time series (Figure5), via different ANN-ALO adjustments.
Best MSE values are in bold style.

Table 7 .
Mean MAE values of predictions done for the EEG time series via different ANN-based systems.
Values are for mean of MAE within 30 runs.Best values are in bold style.

Table 8 .
Mean MSE and standard deviation of predictions done for the EEG time series via different ANN-based systems.
Each Cell = mean of MSE ± SD.The values represent the mean MSE of 30 runs.Best values are in bold style.

Table 9 .
Mean MAE values of predictions done for the EEG time series using ANN-ALO A 4 and some other prediction approaches (set 1).
Values represent the mean MAE from 30 runs.Best values are in bold style.

Table 10 .
Mean MAE values of predictions done for the EEG time series using ANN-ALO A 4 and some other prediction approaches (set 2).
Values represent the mean MAE from 30 runs.Best values are in bold style.

Table 11 .
Mean accuracy of different approaches for predicting the test data of each EEG time series (set 1).

Table 12 .
Mean accuracy of different approaches for predicting the test data of each EEG time series (set 2).

Table 13 .
Giacomini-WhiteTest results for determining the best performance(s).

Table 14 .
The ranks and obtained points from each approach for the predictions of the EEG time series (set 1).

Table 16 .
Findings from the survey work done with the physicians using ANN-ALO for EEG prediction.