Skip to main content
Log in

Epileptic seizures identification with autoregressive model and firefly optimization based classification

Evolving Systems Aims and scope Submit manuscript

Cite this article


Identifying epilepsy cases and epileptic seizures from electroencephalogram (EEG) signals is a challenging issue, which usually needs high level of skilled neurophysiologists. Numerous works have attempted to develop tools that can provide an assistant to neurophysiologist in analyzing the EEG for epileptic seizures detection. This paper proposes a new automatic framework to identify and classify the epileptic seizure from EEG using a machine learning method. In particular, the feature extraction process of the proposed scheme utilizes autoregressive model (AR) and firefly optimization (FA) to procure an optimal model order (P). Namely, the main aim of FA is to find the best model order (P) with minimum residual variance using Akaike information criterion (AIC) as an objective function of FA algorithm. A support vector machine (SVM) classifier is employed for the classification of the epileptic seizures signals. The presented scheme is also effective for short segment of EEG signals owing to use of AR model in features extraction stage. Experiments with the publicly available Bonn database that is composed of healthy (nonepileptic), interictal and ictal EEG samples show promising results with high accuracy.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Institutional subscriptions

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5

Similar content being viewed by others


  • Akaike H (1974) A new look at the statistical model identification. IEEE Trans Autom Control 19(6):716–723

    Article  MathSciNet  Google Scholar 

  • Amorim P, Moraes T, Fazanaro D, Silva J, Pedrini H (2017) Electroencephalogram signal classification based on shearlet and contourlet transforms. Expert Syst Appl 67:140–147

    Article  Google Scholar 

  • Andrzejak RG, Lehnertz K, Mormann F, Rieke C, David P, Elger CE (2001) Indications of nonlinear deterministic and finite-dimensional structures in time series of brain electrical activity: dependence on recording region and brain state. Phys Rev E 64(6):61907

    Article  Google Scholar 

  • Angelov P, Kasabov N (2006) Evolving intelligent systems, eIS. IEEE SMC eNewsLett 15:1–13

    Google Scholar 

  • Angelov P, Zhou X (2008) On line learning fuzzy rule-based system structure from data streams. In: IEEE International Conference on fuzzy systems (IEEE World Congress on Computational Intelligence), 2008, pp 915–922

  • Ansari M, Othman F, Abunama T, El-Shafie A (2018) Analysing the accuracy of machine learning techniques to develop an integrated influent time series model: case study of a sewage treatment plant, Malaysia. Environ Sci Pollut Res 25(12):12139–12149

    Article  Google Scholar 

  • Attia A, Moussaoui A, Chahir Y (2017) An EEG-fMRI fusion analysis based on symmetric techniques using dempster shafer theory. J Med Imaging Health Inf 7(7):1493–1501

    Article  Google Scholar 

  • Atyabi A, Luerssen MH, Fitzgibbon SP, Powers DMW (2012) The impact of PSO based dimension reduction on EEG classification. In: International Conference on brain informatics, 2012, pp 220–231

  • Belhadj S, Attia A, Adnane BA, Ahmed-Foitih Z, Ahmed AT (2016a) A novel epileptic seizure detection using fast potential-based hierarchical agglomerative clustering based on emd. IJCSNS 16(5):7

    Google Scholar 

  • Belhadj S, Attia A, Adnane AB, Ahmed-Foitih Z, Taleb AA (2016) Whole brain epileptic seizure detection using unsupervised classification. In: 2016 8th International Conference on modelling, identification and control (ICMIC), 2016, pp 977–982

  • Burg JP (1968) A new analysis technique for time series data. In: Pap. Present. NATO Adv. Study Inst. Signal Process. Enschede, Netherlands

  • Byun H, Lee S-W (2002) Applications of support vector machines for pattern recognition: A survey. In: Pattern recognition with support vector machines. Springer, pp 213–236

  • Chandaka S, Chatterjee A, Munshi S (2009) Cross-correlation aided support vector machine classifier for classification of EEG signals. Expert Syst Appl 36(2):1329–1336

    Article  Google Scholar 

  • Chiarelli AMM, Zappasodi F, Di Pompeo F, Merla A (2017) Simultaneous functional near-infrared spectroscopy and electroencephalography for monitoring of human brain activity and oxygenation: a review. Neurophotonics 4(4):41411

    Article  Google Scholar 

  • Cortes C, Vapnik V (1995) Support-vector networks. Mach Learn 20(3):273–297

    MATH  Google Scholar 

  • Erguzel TT, Ozekes S, Tan O, Gultekin S (2015) Feature selection and classification of electroencephalographic signals: an artificial neural network and genetic algorithm based approach. Clin EEG Neurosci 46(4):321–326

    Article  Google Scholar 

  • Fabri SG, Camilleri KP, Cassar T (2011) .Parametric modelling of EEG data for the identification of mental tasks. In: Biomedical engineering, trends in electronics, communications and software. InTech

  • Guo L, Rivero D, Dorado J, Rabunal JR, Pazos A (2010) Automatic epileptic seizure detection in EEGs based on line length feature and artificial neural networks. J Neurosci Methods 191(1):101–109

    Article  Google Scholar 

  • Krusienski DJ, McFarland DJ, Wolpaw JR (2006) An evaluation of autoregressive spectral estimation model order for brain-computer interface applications. In: Engineering in Medicine and Biology Society, 2006. EMBS’06. 28th Annual International Conference of the IEEE, 2006, pp 1323–1326

  • Khushaba RN, Al-Ani A, Al-Jumaily A, Nguyen HT (2008) A hybrid nonlinear-discriminant analysis feature projection technique. In: Australasian Joint Conference on artificial intelligence, 2008, pp 544–550

  • Nicolaou N, Georgiou J (2012) Detection of epileptic electroencephalogram based on permutation entropy and support vector machines. Expert Syst Appl 39(1):202–209

    Article  Google Scholar 

  • Ordóñez C, Lasheras FS, Roca-Pardiñas J, de Cos Juez FJ (2019) A hybrid ARIMA–SVM model for the study of the remaining useful life of aircraft engines. J Comput Appl Math 346:184–191

    Article  MathSciNet  Google Scholar 

  • Ouelli A, Elhadadi B, Aissaoui H, Bouikhalene B (2015) Epilepsy seizure detection using autoregressive modelling and multiple layer perceptron neural network. Am J Comput Sci Eng 2(4):26–31

    Google Scholar 

  • Padmavathi K, Ramakrishna KS (2015a) Classification of ECG signal during atrial fibrillation using autoregressive modeling. Proc Comput Sci 46:53–59

    Article  Google Scholar 

  • Padmavathi K, Ramakrishna KS (2015b) Classification of ECG signal during atrial fibrillation using Burg’s method. Int J Electr Comput Eng 5(1):64

    Google Scholar 

  • Sharma R, Pachori RB (2015) Classification of epileptic seizures in EEG signals based on phase space representation of intrinsic mode functions. Expert Syst Appl 42(3):1106–1117

    Article  Google Scholar 

  • Shiman F, Safavi SH, Vaneghi FM, Oladazimi M, Safari MJ, Ibrahim F (2012) EEG feature extraction using parametric and non-parametric models. In: Biomedical and Health Informatics (BHI). IEEE-EMBS International Conference on 2012:66–70

  • Subasi A, Gursoy MI (2010) EEG signal classification using PCA, ICA, LDA and support vector machines. Expert Syst Appl 37(12):8659–8666

    Article  Google Scholar 

  • Swami P, Gandhi TK, Panigrahi BK, Tripathi M, Anand S (2016) A novel robust diagnostic model to detect seizures in electroencephalography. Expert Syst Appl 56:116–130

    Article  Google Scholar 

  • Tezel G et al (2009) A new approach for epileptic seizure detection using adaptive neural network. Expert Syst Appl 36:172–180

    Article  Google Scholar 

  • Übeyli ED (2008a) Analysis of EEG signals by combining eigenvector methods and multiclass support vector machines. Comput Biol Med 38(1):14–22

    Article  Google Scholar 

  • Übeyli ED (2008b) Analysis of EEG signals by combining eigenvector methods and multiclass support vector machines. Comput Bio. Med 38(1):14–22

    Article  Google Scholar 

  • Übeyli ED (2010) Least squares support vector machine employing model-based methods coefficients for analysis of EEG signals. Expert Syst Appl 37(1):233–239

    Article  Google Scholar 

  • Wang D, Miao D, Xie C (2011) Best basis-based wavelet packet entropy feature extraction and hierarchical EEG classification for epileptic detection. Expert Syst Appl 38(11):14314–14320

    Google Scholar 

  • Yalcin N, Tezel G, Karakuzu C (2015) Epilepsy diagnosis using artificial neural network learned by PSO. Turk J Electr Eng Comput Sci 23(2):421–432

    Article  Google Scholar 

  • Yang X-S (2009) Firefly algorithms for multimodal optimization. In: International symposium on stochastic algorithms, pp 169–178

  • Zhang Y, Liu B, Ji X, Huang D (2017) Classification of EEG signals based on autoregressive model and wavelet packet decomposition. Neural Process Lett 45(2):365–378

    Article  Google Scholar 

Download references

Author information

Authors and Affiliations


Corresponding author

Correspondence to Abdelouahab Attia.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Rights and permissions

Reprints and Permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Attia, A., Moussaoui, A. & Chahir, Y. Epileptic seizures identification with autoregressive model and firefly optimization based classification. Evolving Systems 12, 827–836 (2021).

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: