This is an open access article under the CC BY license: Al-Khwarizmi Engineering Journal Al-Khwarizmi Engineering Journal, Vol. 19, No. 4, December, (2023) P. P. 29- 41 Working Memory Classification Enhancement of EEG Activity in Dementia: A Comparative Study Noor Kamal Al-Qazzaz* Sawal Hamid Bin Mohd Ali ** Siti Anom Ahmad *** *Department of Biomedical Engineering/ Al-Khwarizmi College of Engineering/ University of Baghdad/ Baghdad / Iraq ** Department of Electrical, Electronic & Systems Engineering, Faculty of Engineering & Built Environment, Universiti Kebangsaan Malaysia/ UKM Bangi/ Selangor 43600/ Malaysia Centre of Advanced Electronic and Communication Engineering, Department of Electrical/ Electronic and Systems Engineering/ Universiti Kebangsaan Malaysia/ Selangor 43600/ Malaysia ***Department of Electrical and Electronic Engineering, Faculty of Engineering, Universiti Putra Malaysia, UPM Serdang/ Selangor 43400/ Malaysia Malaysian Research Institute on Ageing (MyAgeingโ„ข)/ Universiti Putra Malaysia/ Serdang/ Selangor 43400/ Malaysia Corresponding Author *Email: noorbme@kecbu.uobaghdad.edu.iq **Email: sawal@ukm.edu.my ***Email: sanom@upm.edu.my (Received 2 January 2023; accepted 20 September 2023) https://doi.org/10.22153/kej.2023.09.002 Abstract The purpose of the current investigation is to distinguish between working memory (๐‘Š๐‘€) in five patients with vascular dementia (๐‘‰๐ท), fifteen post-stroke patients with mild cognitive impairment (๐‘†๐‘€๐ถ๐ผ), and fifteen healthy control individuals (๐ป๐ถ) based on background electroencephalography (EEG) activity. The elimination of EEG artifacts using wavelet (WT) pre-processing denoising is demonstrated in this study. In the current study, spectral entropy (๐‘†๐‘๐‘’๐‘๐ธ๐‘›), permutation entropy (๐‘ƒ๐‘’๐‘Ÿ๐ธ๐‘›), and approximation entropy (๐ด๐‘๐ธ๐‘›) were all explored. To improve the ๐‘Š๐‘€ classification using the k-nearest neighbors (๐‘˜NN) classifier scheme, a comparative study of using fuzzy neighbourhood preserving analysis with ๐‘„๐‘…-decomposition (๐น๐‘๐‘ƒ๐ด๐‘„๐‘…) as a dimensionality reduction technique and the improved binary gravitation search (๐ผ๐ต๐บ๐‘†๐ด) optimization algorithm as a channel selection method has been conducted. The ๐‘˜NN classification accuracy was increased from 86.67% to 88.09% and 90.52% using the ๐น๐‘๐‘ƒ๐ด๐‘„๐‘… dimensionality reduction technique and the ๐ผ๐ต๐บ๐‘†๐ด channel selection algorithm, respectively. According to the findings, ๐ผ๐ต๐บ๐‘†๐ด reliably enhances ๐‘Š๐‘€ discrimination of ๐ป๐ถ , ๐‘†๐‘€๐ถ๐ผ , and ๐‘‰๐ท participants. Therefore, WT, entropy features, IBGSA and ๐‘˜NN classifiers provide a valid dementia index for looking at EEG background activity in patients with ๐‘‰๐ท and ๐‘†๐‘€๐ถ๐ผ. Keywords: Dementia, wavelet, entropy, dimensionality reduction, channels selection, features, classification. 1. Introduction Stroke is broadly categorized by its type and severity and the brain region affected. Dementia can be brought on after a stroke, and its severity relies on how quickly the condition is identified and treated [1]. Following a stroke, working memory (๐‘Š๐‘€) impairment is common. Within the first year of stroke diagnosis, vascular dementia (๐‘‰๐ท) may develop in 30% of stroke patients. The prevalence of ๐‘‰๐ท doubles every 5-10 years after the age of 65 in the elderly population. Clinically speaking, mild cognitive impairment ( ๐‘€๐ถ๐ผ ), in particular in attention, memory, language and orientation is a transition stage of cognitive decline [2]. At the time of diagnosis, attention, executive mailto:noorbme@kecbu.uobaghdad.edu.iq mailto:aseel.m.ali@nahrainuniv.edu.iq mailto:sanom@upm.edu.my https://doi.org/10.22153/kej.2023.09.002 https://doi.org/10.22153/kej.2023.09.002 Noor K. Al-Qazzaz Al-Khwarizmi Engineering Journal, Vol. 19, No. 4, P.P. 29- 41(2023) 30 functioning, and memory show the greatest impact of a stroke [3]. Patients who had suffered from cognitive impairment as a result of a stroke were the first to be introduced to the vascular cognitive impairment (VCI) spectrum, which spans the range from mild cognitive impairment (๐‘€๐ถ๐ผ) to advanced dementia. However, the phrase "cognitive impairment no dementia" (CIND) is used to refer to the period of time following dementia during which the brain is in danger [4]. People who have ๐‘€๐ถ๐ผ , have a more severe decline in cognitive performance when age and education level are included, yet this decline is not as obvious in day-to-day tasks. Although some people with ๐‘€๐ถ๐ผ will eventually develop dementia, others will remain in this ๐‘€๐ถ๐ผ stage for a significant amount of time before progressing to dementia. Because of this, ๐‘€๐ถ๐ผ is a disorder that can present very differently in different patients. In any case, research has been shown that patients diagnosed with ๐‘€๐ถ๐ผ have a substantial risk of developing dementia by the third month following the onset of dementia symptoms. This risk was observed to increase significantly with time. The symptoms most commonly associated with ๐‘€๐ถ๐ผ are those related to attention and executive function in ๐‘Š๐‘€. Daily functioning is unaffected by mild cognitive impairment. A decline in long-term memory, particularly episodic memory, is related to dementia, which is the next step following mild cognitive impairment. Mild cognitive impairment is the stage before dementia. 10% of patients will acquire post-stroke dementia (PSD) or severe dementia in the months following the commencement of an ischemic stroke (30% with recurrent ischemic stroke). This can happen as early as three months after the stroke [3]. Electroencephalography (EEG) has been extensively employed in recent years to investigate the cortical abnormalities linked to dementia and cognitive decline [5]. As a result, EEG signal analysis may reveal information on cognitive decline and dementia. Clinical EEG has a frequency range of 1 to 100 Hz and an amplitude of about 10-100 millivolts [6]. The main differences between healthy people and those with a problem with working memory (๐‘Š๐‘€) can be summed up as follows: Dementia causes a slowing of EEG signals due to a power shift to lower frequencies and decreased cortical- subcortical communication for patients with ๐‘‰๐ท and ๐‘†๐‘€๐ถ๐ผ . Also, the reduction in signal complexity caused by dementia and other neurodegenerative diseases. Understanding the differences between how healthy people and people with ๐‘Š๐‘€ problems show EEG signals can help make clinical signs and better ways to diagnose neurological illnesses [5]. However, the EEG is impacted by extracranial sources known as artifacts, which can imitate the abnormal activity of the brain and hence impair the analysis. Such artifacts have been seen in EEG recordings and wrongly attributed to neurological disorders. Clinical studies involving EEG signals necessitate the creation of automatic algorithms to eliminate artifacts. Several methods have been proposed for artifact removal in the literature [7], including regression-based analysis, wavelet transform (WT), Independent Component Analysis (ICA), blind source separation (BSS), and epoch rejection. In another example of an automated hybrid artifact removal method, Al-Qazzaz et al. estimated ICs first, then used DWT to detect components as artifacts that had been marked and denoised. To produce an EEG devoid of artifacts, we correct the ICs and then reconstruct them using inv-ICA. The benefits of the proposed method were seen by the authors, who found that it improved discriminating between dementia and healthy groups [5, 8]. Numerous studies have been conducted over the past few years to examine the impact of ๐‘€๐ถ๐ผ and AD on EEG signals and how they change over time. Using resting-state EEG recordings, Yin et al. have devised a scheme based on integrated spectral and temporal analysis for the identification of ๐‘€๐ถ๐ผ . Stationary wavelet transform (SWT) and descriptive statistical analysis with support vector machine (SVM) classifiers were used to establish a three-dimensional discrete feature space. A machine learning-based methodology has been presented by Kashefpoor et al. to distinguish between ๐‘€๐ถ๐ผ and normal cases utilizing basic spectral frequency band EEG data [9]. Eight EEG biomarkers, including power spectral density, skewness, kurtosis, spectral skewness, spectral kurtosis, spectral crest factor, spectral entropy, and fractal dimension, have been studied by Sharma et al. for the diagnosis of individuals with ๐‘€๐ถ๐ผ [10]. Using the ๐‘˜-nearest neighbors (๐‘˜NN) technique, Durongbhan et al. developed a supervised classification framework for EEG signals to distinguish between healthy controls and AD participants [11]. Previous research has largely used a 2-way classification ( ๐ด๐ท vs. ๐ป๐ถ , ๐‘†๐‘€๐ถ๐ผ vs. ๐ป๐ถ ) however some studies have reported using a 3-way classification. Other researchers have looked into the possibility of using power spectrum analysis for the early diagnosis of AD and ๐‘†๐‘€๐ถ๐ผ [5]. In [12] , neuro-markers based on complexity are calculated from AD patients and ๐ป๐ถ participants. These Noor K. Al-Qazzaz Al-Khwarizmi Engineering Journal, Vol. 19, No. 4, P.P. 29- 41(2023) 31 complexity measures include fractal dimension and Lempel-Ziv complexity. A variety of entropies, such as spectral entropy (๐‘†๐‘๐‘’๐‘๐ธ๐‘› ), permutation entropy ( ๐‘ƒ๐‘’๐‘Ÿ๐ธ๐‘› ), Tsallis entropy ( ๐‘‡๐‘ ๐ธ๐‘› ), approximation entropy ( ๐ด๐‘๐ธ๐‘› ), and sample entropy (๐‘†๐‘Ž๐‘š๐‘๐ธ๐‘› ), could be computed for this demand in order to examine the EEG markers that may aid in dementia early detection [13]. A three-way categorization methodology was used in one study [14]. Eyes-open, eyes-closed with a counting task, and eyes-closed conditions were used to compute spectral and complexity features from ๐ป๐ถ , ๐‘†๐‘€๐ถ๐ผ , and AD participants, respectively. Time-frequency domain parameters (relative power band, median frequency) and entropy-based neuro-markers (spectral entropy, sample entropy, auto-mutual information) have been merged by Ruiz-Gomez et al. [15]. Eyes-open and eyes-closed EEG recordings were obtained from individuals with ๐ด๐ท , ๐‘€๐ถ๐ผ , and ๐ป๐ถ [16]. Classification was carried out using Linear Discriminant Analysis (LDA), Quadratic Discriminant Analysis (QDA), and Multi-layer perceptron (MLP). Toural et al. have classified patients into three groups using wavelet entropy, relative beta, and theta power [17]. In the pre- classification phase, a SVM is employed for binary assessment, and in the classification phase, a neural network is implemented for the voting mechanism. The power spectrum density of EEG sub-bands and interhemispheric coherence were determined by Oltu et al. using data from ๐ด๐ท , ๐‘€๐ถ๐ผ , and ๐ป๐ถ . Each EEG sub-band's variance and amplitude sum, as well as the coherence amplitude sum, are included in the feature vectors [18]. The use of EEG for the detection and classification of dementia-related brain activity patterns has shown encouraging results. In spite of this, additional study is required in two areas: dimensionality reduction and channel selection. First of all, dimensionality reduction strategies try to minimize the loss of information by simplifying the number of features or variables in EEG data. Next-generation classification algorithms can be made more manageable in terms of both complexity and computing overhead if the dimensionality of the data is reduced. The best dimensionality reduction strategies to improve EEG categorization in dementia are not yet fully understood. Despite their success elsewhere, techniques for dimensionality reduction were applied to increase the classification accuracy. There are many techniques that can be applied, including the well-known principal component analysis (PCA) technique for dimensionality reduction. The PCA approach is frequently used to prevent redundancy in high-dimensional data [19]. Additionally, channel selection is a type of feature selection that may be applied to the removal of irrelevant or noisy channels and the selection of channels with related features [20]. The most efficient EEG channels have been determined using the sparse common spatial pattern (SCSP) algorithm, the mutual information technique [21, 22], the recursive channel elimination (RCE) approach [23], and the differential evolution โ€“ based channel selection algorithm (DEFS_Ch) [20, 24]. Although the strategy of channel selection can offer the benefits of eliminating unimportant channels or choosing a small number of significant EEG features to enhance classification performance. Second, channel selection includes picking the EEG channels that add the most value to the categorization process. This method can enhance classification precision, however, the best way to pick channels for EEG classification purposes in dementia is not yet certain. Channel selection can be based on a variety of parameters, including statistics, spectral analysis, and geographical patterns; nevertheless, their efficacy and robustness must be assessed in the context of dementia [25]. Most of the approaches in the literature have a complicated structure and take a long time since they do not employ a data-efficient reduction technique, which is necessary for fast and accurate analysis. Effective dimensionality reduction approaches and optimal channel selection procedures are the last pieces of the puzzle when it comes to improving EEG classification for dementia. Closing these knowledge gaps will aid in the creation of more precise and time-saving EEG- based categorization systems for the diagnosis and monitoring of dementia. To improve EEG categorization for dementia, more study is needed to analyze and compare different ways and determine the most suitable techniques. Based on background electroencephalography (EEG) activity, the goal of the current investigation is to differentiate between working memory (๐‘Š๐‘€) in five patients with vascular dementia ( ๐‘‰๐ท ), fifteen post-stroke patients with mild cognitive impairment (๐‘†๐‘€๐ถ๐ผ ), and fifteen healthy control individuals (๐ป๐ถ). In the current study, as spectral entropy (๐‘†๐‘๐‘’๐‘๐ธ๐‘›), permutation entropy (๐‘ƒ๐‘’๐‘Ÿ๐ธ๐‘›) and approximation entropy ( ๐ด๐‘๐ธ๐‘› ), were the features that were selected to investigate the ๐‘Š๐‘€ and classify their tasks using the k-nearest neighbours (๐‘˜NN) classifier scheme. Therefore, a comparative study of using the fuzzy neighborhood Noor K. Al-Qazzaz Al-Khwarizmi Engineering Journal, Vol. 19, No. 4, P.P. 29- 41(2023) 32 preserving analysis with ๐‘„๐‘… -decomposition ( ๐น๐‘๐‘ƒ๐ด๐‘„๐‘… ) as a dimensionality reduction technique and the improved binary gravitation search ( ๐ผ๐ต๐บ๐‘†๐ด ) optimization algorithm as a channel selection method has been conducted. The ๐น๐‘๐‘ƒ๐ด๐‘„๐‘… was used in this investigation as a dimensionality reduction method to maximize the distance between the centers of various classes while minimizing the distance between samples that belong to the same class [26, 27]. Additionally, the most efficient channels that increase classification accuracy have been found using the ๐ผ๐ต๐บ๐‘†๐ด algorithm [25]. Additionally, the suitability of ๐‘†๐‘๐‘’๐‘๐ธ๐‘› , ๐ด๐‘๐ธ๐‘› , and ๐‘ƒ๐‘’๐‘Ÿ๐ธ๐‘› characteristics for the early identification of ๐‘‰๐ท was examined. ๐‘˜NN classifier has also been used to identify patients with post-stroke ๐‘Š๐‘€ dysfunction. 2. Materials and Methods To improve the ๐‘Š๐‘€ classification of dementia patients, the EEG signals would undergo various signal processing phases, as shown in Figure 1. The participants in this EEG study participated in a session of an auditory ๐‘Š๐‘€ task. The non- stationary EEG signals were initially processed using a wavelet (WT) denoising approach during the preprocessing step. After that, we look into and extract the meaningful features, such as non-linear ๐‘†๐‘๐‘’๐‘๐ธ๐‘›, ๐ด๐‘๐ธ๐‘›, and ๐‘ƒ๐‘’๐‘Ÿ๐ธ๐‘› entropy features, and conduct a comparison of the dimensionality reduction techniques fuzzy neighborhood preserving analysis with QR-decomposition (๐น๐‘๐‘ƒ๐ด๐‘„๐‘…) and the improved binary gravitation search (IBGSA) optimization algorithm for channel selection. Finally, the performance of the classifiers utilized is evaluated, showing that dementia classification techniques can be used to categorize patients' mental disability after stroke. Fig. 1. The block diagram of the proposed study. 2.1 Participants In the current investigation, 35 patients' EEG datasets were examined. The sample was recruited from the stroke unit and neurology clinic at the Pusat Perubatan Universiti Kebangsaan Malaysia (PPUKM). 15 ๐ป๐ถ participants (7 male and 8 female,age 60.06ยฑ5.21), 15 ๐‘†๐‘€๐ถ๐ผ patients (5 male and 10 female,age 60.26ยฑ7.77), and 5 ๐‘‰๐ท patients (3 male and 2 female,age 64.6ยฑ4.8) had their EEG data reviewed. The cognitive evaluations that were administered to the three groups were the mini-mental state examination (MMSE) [7] and the Montreal cognitive assessment (MoCA) [8]. ๐ป๐ถ participants' MMSE and MoCA scores were (29.6ยฑ0.73,29.06ยฑ0.88), but ๐‘†๐‘€๐ถ๐ผ patients' MMSE and MoCA scores were (20.2ยฑ5.63 and 16.13ยฑ5.97), respectively. Lastly, the MMSE and MoCA scores for the ๐‘‰๐ท patients were (14.8ยฑ1.92 and 14.8ยฑ1.92) respectively. The experimental methods utilized throughout the research were approved by PPUKM's Human Ethics Committee, and the patients' voluntary and informed consent was secured by acquiring signed consent forms. All patients were diagnosed using computed Noor K. Al-Qazzaz Al-Khwarizmi Engineering Journal, Vol. 19, No. 4, P.P. 29- 41(2023) 33 tomography/magnetic resonance imaging (CT/MRI) scans, patient medical histories, and clinical and laboratory tests. 2.2 EEG recording NicoletOne (V32) was utilized in order to collect the 19 EEG channel datasets. Using a single ground electrode and two reference electrodes with 19 channels starting from left, right to the center, these are: Fp2, F8, T4, T6, O2, Fp1, F7, T3, T5, O1, F4, C4, P3, F3, C3, P3, Fz, Cz and Pz. A referential montage was created, and the channels were constructed according to the 10-20 international framework. The Nicolet EEG system was sampled at 256 Hz, and the electrode-skin impedance was tested to ensure that it did not exceed10 kilo ohms. This corresponded to a sensitivity of 100 v/cm, whereas the low cut-off frequency and high cut-off frequency were, respectively, 0.5 Hz and 70 Hz. The EEG was recorded for 60 seconds, with a 0.5-second fixation cue preceding the start of the recording period. The patients were then asked to commit five words to memory for 10 seconds as part of a simple auditory ๐‘Š๐‘€ test involving working memory. Following this, EEG recordings were made as each subject attempted to recall the phrase. After the 60-second interval elapsed, the researcher instructed the participants of the sample group to open their eyes and to recall in turn each of the words they had memorized [3]. 2.3 Preprocessing Stage In this investigation, WT denoising was utilized to eliminate EEG artifacts. Since the sampling frequency was 256 Hz [28], the symlets mother WT of order 9 'sym9' and 5 decomposition levels were utilized to decompose the acquired EEG information. As in Equation 1, the discrete values of ๐‘Ž and ๐‘ can process the DWT. It can be constructed as ๐‘Ž set of decomposition functions of the correlation between the signal ๐‘“(๐‘ก) and the shifting and dilating of the mother wavelet function ๐œ“(๐‘ก). In Equation 2, location parameter ๐‘ shifts MWT and the frequency scaling parameter ๐‘Ž dilates or contracts it [29, 30]: ๐ท๐‘Š๐‘‡๐‘š,๐‘›(๐‘“) = ๐‘Ž0 โˆ’๐‘š 2โ„ โˆซ ๐‘“(๐‘ก) ๐œ“(๐‘Ž0 โˆ’๐‘š๐‘ก โˆ’ ๐‘›๐‘0)๐‘‘๐‘ก . . . (1) ๐‘Ž0 and ๐‘0 values are set to 2 and 1, respectively. ๐œ“๐‘Ž,๐‘(๐‘ก) = 1 โˆš๐‘Ž ๐œ“ ( ๐‘ก โˆ’ ๐‘ ๐‘Ž ) , ๐‘Ž๐œ–โ„+, ๐‘๐œ–โ„ โ€ฆ (2) 2.4 Features Extraction Stage Each EEG dataset had 19 channels with a duration of 60 seconds, so 15360 samples were utilized for this study. Entropies have been utilized to identify anomalies in dementia patients' EEGs. The EEGs of dementia patients have been separated from those of age-matched healthy people using ๐‘†๐‘๐‘’๐‘๐ธ๐‘› [31-33]. After normalizing the power spectral density ( ๐‘ƒ๐‘†๐ท ) to a scale from 0 to 1 to obtain normalized PSD (PSDn), which has the value 1 for โˆ‘ PSDn(f) = 1, the ๐‘†๐‘๐‘’๐‘๐ธ๐‘› is computed as in Equation 3 [31]. ๐‘†๐‘๐‘’๐‘๐ธ๐‘› = โˆ’1 log(๐‘) โˆ‘ ๐‘ƒ๐‘†๐ท๐‘›(๐‘“) log[๐‘ƒ๐‘†๐ท๐‘›(๐‘“)]64๐ป๐‘ง ๐‘“=0.1๐ป๐‘ง โ€ฆ (3) Utilizing the algorithm described in [34], ๐ด๐‘๐ธ๐‘› is calculated as in Equation 4 [35]. ๐ด๐‘๐ธ๐‘›(๐‘š, ๐‘Ÿ, ๐‘) = โˆ…๐‘š(๐‘Ÿ) โˆ’ โˆ…๐‘š+1(๐‘Ÿ) โ€ฆ (4) where, โˆ…๐‘š is the natural logarithm for ๐‘š contiguous observation within tolerance width ๐‘Ÿ and ๐‘ is the number of points of the EEG time series. For the sake of our analysis, ๐ด๐‘๐ธ๐‘› is calculated with a tolerance of r = 0.2 ร— SD and a run length of m = 2 epochs, where SD is the standard deviation. In the case of ๐‘ƒ๐‘’๐‘Ÿ๐ธ๐‘›, this sort of entropy is widely employed in the context of artefacts and noise , and one of its distinguishing properties [36] is its computational speed. In terms of ๐‘ƒ๐‘’๐‘Ÿ๐ธ๐‘› 's applications, non โˆ’ stationary and non โˆ’ linear signals are frequently employed [37]. ๐‘ƒ๐‘’๐‘Ÿ๐ธ๐‘› has been utilized by researchers to assess the complexity of EEG signals in Alzheimerโ€ฒs disease (AD) patients [38]. The ๐‘ƒ๐‘’๐‘Ÿ๐ธ๐‘› can also be used to detect aberrant electrical activity in the brain, which cannot be demonstrated by traditional EEG signal detection methods [39]. When all motifs have equal probability, the largest value of ๐‘ƒ๐‘’๐‘Ÿ๐ธ๐‘› is obtained, which has a value of ln ๐‘‘!, where ๐‘‘ = 3, ๐‘™ = 1. In contrast, if there is only one ๐‘(๐œ‹๐‘˜) different from zero, which illustrates a completely regular signal, the smallest value of ๐‘ƒ๐‘’๐‘Ÿ๐ธ๐‘› is obtained as much as 0 [36, 40, 41]. For 60 seconds, ๐‘ = 15360 samples, 6 windows of 10 second length (2560 samples) Noor K. Al-Qazzaz Al-Khwarizmi Engineering Journal, Vol. 19, No. 4, P.P. 29- 41(2023) 34 were extracted from the original EEG time series for each of 19 channels. In order to estimate the ๐‘ƒ๐‘’๐‘Ÿ๐ธ๐‘› , assume the time series of ๐‘ฆ = {๐‘ฆ1, ๐‘ฆ2, โ€ฆ , ๐‘ฆ๐‘} of length ๐‘, at each time ๐‘ก of ๐‘ฆ a vector including the ๐‘‘๐‘กโ„Ž subsequence value constructed as: ๐‘Œ๐‘ก ๐‘‘,๐‘™ = {๐‘ฆ๐‘ก , ๐‘ฆ๐‘ก+1, โ€ฆ , ๐‘ฆ๐‘ก+(๐‘‘โˆ’2)๐‘™ , ๐‘ฆ๐‘ก+(๐‘‘โˆ’1)๐‘™} for ๐‘ก = 1,2, โ€ฆ , ๐‘ โˆ’ (๐‘‘ โˆ’ 1)๐‘™ , where ๐‘‘ is the embedded dimension, determines how much information is contained in each vector and ๐‘™ is the time delay. To calculate the ๐‘ƒ๐‘’๐‘Ÿ๐ธ๐‘› , the ๐‘‘ of ๐‘ฆ๐‘– are associated with numbers from 1 to ๐‘‘ and arranged in increasing order as {๐‘ฆ๐‘ก+(๐‘—1โˆ’1)๐‘™, ๐‘ฆ๐‘ก+(๐‘—2โˆ’1)๐‘™ , โ€ฆ , ๐‘ฆ๐‘ก+(๐‘—๐‘‘โˆ’1โˆ’1)๐‘™ , ๐‘ฆ๐‘ก+(๐‘—๐‘‘โˆ’1)๐‘™} for different samples, there will be ๐‘‘! potential ordinal patterns, ๐œ‹ , which are named โ€œmotifsโ€ [38]. For each ๐œ‹๐‘ก , ๐‘(๐œ‹๐‘ก) demonstrate the relative frequency as follows: ๐‘(๐œ‹๐‘– ๐‘‘,๐‘™) = #{๐‘ก|๐‘กโ‰ค๐‘โˆ’๐‘‘,type(๐‘Œ๐‘ก ๐‘‘,๐‘™)=๐œ‹๐‘– ๐‘‘,๐‘™ } ๐‘โˆ’๐‘‘+1 โ€ฆ(5) Where #{ } denotes the cardinality of the set (the number of elements). The ๐‘ƒ๐‘’๐‘Ÿ๐ธ๐‘› is computed as follows: ๐ป(๐‘ฆ, ๐‘‘, ๐‘™) = โˆ’ โˆ‘ ๐‘(๐œ‹๐‘˜)๐œ‹๐‘˜=๐‘‘! ๐œ‹๐‘˜=1 ln ๐‘(๐œ‹๐‘˜) โ€ฆ(6) When all motifs have equal probability, the largest value of ๐‘ƒ๐‘’๐‘Ÿ๐ธ๐‘› is obtained, which has a value of ln ๐‘‘!, where ๐‘‘ = 3, ๐‘™ = 1. In contrast, if there is only one ๐‘(๐œ‹๐‘˜) different from zero, which illustrates a completely regular signal, the smallest value of ๐‘ƒ๐‘’๐‘Ÿ๐ธ๐‘› is obtained as much as 0 [36, 40, 41]. For 60 seconds, ๐‘ = 15360 samples, 6 windows of 10 second length (2560 samples) were extracted from the original EEG time series for each 19 channels. 2.5 Statistical analysis The denoised 19 channels from the EEG dataset of 15 ๐ป๐ถ , 15 ๐‘†๐‘€๐ถ๐ผ , and 5 ๐‘‰๐ท patients were preliminary divided into 5 recording regions that correspond to the scalp area of the cerebral cortex. The frontal includes seven channels: Fp1, Fp2, F3, F4, F7, F8 and Fz, temporal includes four channels: T3, T4, T5 and T6, parietal includes three channels: P3, P4 and Pz), occipital includes two channels: O1 and O2), and central includes three channels: C3, C4 and Cz). The Kolmogorovโ€“Smirnov test determined normality, while Levene's test confirmed homoscedasticity. Thus, SPSS 22 used two analysis of variance (ANOVA) sections on ๐‘†๐‘๐‘’๐‘๐ธ๐‘›, ๐ด๐‘๐ธ๐‘›, and ๐‘ƒ๐‘’๐‘Ÿ๐ธ๐‘› characteristics. Each segment had two independent variables (IVs): the subject groups ( ๐ป๐ถ subjects, ๐‘†๐‘€๐ถ๐ผ , and ๐‘‰๐ท patients) and the five scalp regions (frontal, temporal, parietal, occipital, and central). One of the former attributes was the dependent variable (DV). All statistical tests were significant at P< 0.05. 2.6 Dimensionality reduction using ๐…๐๐๐€๐๐‘ In order to maximize the distance between the centers of various classes while minimizing the distance between samples that belong to the same class, this study also used the fuzzy neighborhood preserving analysis with QR-decomposition ( ๐น๐‘๐‘ƒ๐ด๐‘„๐‘… ) dimensionality reduction technique [26] of Khushaba et al [20]. ๐น๐‘๐‘ƒ๐ด๐‘„๐‘… maintains the contribution of samples to various classes in this way [26]. For the first time, our study used ๐น๐‘๐‘ƒ๐ด๐‘„๐‘… to distinguish between ๐ป๐ถ and demented participants during ๐‘Š๐‘€ tasks. The matrix (๐บ๐น๐‘๐ท๐ด๐‘„๐‘…) was built from the training set to project the input feature vector using ๐น๐‘๐‘ƒ๐ด๐‘„๐‘… . To reduce dimensionality, the projection matrix was multiplied by the training and testing sets. ๐น๐‘๐‘ƒ๐ด๐‘„๐‘… projected training data input feature vector. Projecting the feature vector's testing set requires merely multiplying it by the projection matrix from the training data. Figure 2 shows how the ๐น๐‘๐‘ƒ๐ด๐‘„๐‘… feature projection calculates the within-class scatter matrix (๐‘†๐‘Š) and between-class scatter matrix (๐‘†๐ต). calculates the within-class scatter matrix ( ๐‘†๐‘Š ) and between-class scatter matrix (๐‘†๐ต). Noor K. Al-Qazzaz Al-Khwarizmi Engineering Journal, Vol. 19, No. 4, P.P. 29- 41(2023) 35 Fig. 2. The steps of Dimensionality reduction using ๐…๐๐๐€๐๐‘ In a comparative study, the ๐น๐‘๐‘ƒ๐ด๐‘„๐‘… dimensionality reduction approach and ๐‘˜ NN classifier were used to identify ๐‘‰๐ท , ๐‘†๐‘€๐ถ๐ผ , and ๐ป๐ถ subjects [5]. 2.7 Channel Selection using ๐ˆ๐๐†๐’๐€ The most effective channels have been found, and the amount of information has been decreased, using the improved binary gravitation search algorithm ( ๐ผ๐ต๐บ๐‘†๐ด ) optimization algorithm [25, 42]. ๐บ๐‘†๐ด is a powerful optimization technique that was first proposed in [43]. for use in addressing binary-valued problems. It was created based on the Newtonian laws of gravity and motion. ๐‘ objects (agents) are defined for the ๐ผ๐ต๐บ๐‘†๐ด algorithm to determine the best EEG channels. The population starts out with this collection of things. Each object in this study is regarded as a binary vector with a dimension of 19. The number of EEG channels is the same as the dimension that was given. The following vector can be regarded as the ๐‘–๐‘กโ„Ž object. Finding the item that gives the best fitness value is the main objective. Equation 7 [44] can be used to calculate the classification accuracies for each set of EEG channels, which are used in this work to determine the ๐‘“๐‘–๐‘ก๐‘›๐‘’๐‘ ๐‘  values for the objects: ๐‘“๐‘–๐‘ก๐‘– = ๐œ”1 ร— ๐‘Ž๐‘๐‘๐‘ข๐‘– + ๐œ”2 ร— [1 โˆ’ โˆ‘ ๐‘“๐‘— ๐‘ ๐‘—=1 ๐‘ ] . . . (7) where ๐œ”1, ๐œ”2 are predefined weight factors, ๐œ”1 is the weight factor for the classification accuracy of the ๐‘˜ NN classifiers respectively determined by the 10-fold cross-validation (๐ถ๐‘‰) method; ๐‘Ž๐‘๐‘๐‘ข๐‘– is the 1-NN classification accuracy; ๐œ”2 is the weight factor for the number of selected features and ๐‘“๐‘— is the value of the feature mask. If precision is the most crucial factor, the ๐‘ค๐‘’๐‘–๐‘”โ„Ž๐‘ก factor might be increased to a high amount (such as 100%). The position of the object with a high fitness value should be set suitably since it has a high likelihood of influencing the positions of the other objects in the following iteration [14,15]. Equation 8 yields the ๐‘Ž๐‘๐‘๐‘ข๐‘– , where corr is the number of cases that were properly classified and incorr is the number of examples that were classified wrongly [44]: ๐‘Ž๐‘๐‘๐‘ข๐‘– = ๐‘๐‘œ๐‘Ÿ๐‘Ÿ ๐‘๐‘œ๐‘Ÿ๐‘Ÿ+๐‘–๐‘›๐‘๐‘œ๐‘Ÿ๐‘Ÿ ร— 100% โ€ฆ(8) The IBGSA algorithm selects the most informative EEG channels for classification. The method selects the optimal EEG channel subset for classification. The technique optimizes channel selection to increase EEG-based classification accuracy and efficiency [43]. 2.8 Dementia Classification Techniques The EEG signals were divided into (๐ป๐ถ, ๐‘†๐‘€๐ถ๐ผ, and ๐‘‰๐ท) using a ๐‘˜NN classifier. The patients with ๐‘‰๐ท made up a statistically significant minority in this analysis. To address the discrepancy, the researchers used a synthetic oversampling technique (SMOTE) [45]. To prevent overfitting and bias in the classification analysis, the classifier parameters and the percentage of oversampling were evaluated by 10-fold cross-validation with a grid search approach [46]. The provided data set was partitioned into ten independent samples of similar size. Only one of these groups was utilized to train the classifier, while the other nine were used as the test set. Ten iterations of this process yielded ten reliable results. The 10-fold CV accuracy of this dataset was calculated as the mean of these accuracies [47]. Since SMOTE modifies the dataset, the oversampling was incorporated into the settings. Because of this, it is possible that the parameters discovered with varying amounts of SMOTE are not equivalent. When using the SMOTE to normalize the class frequencies, we solely considered the training set [48, 49]. The classifier in this study was trained to find the best value of k, which was discovered to be k = 5, and to increase classification accuracy. Each trial has been classified by ๐‘˜NN using the Euclidean distance as a similarity metric. After selecting the optimal EEG channels, the ๐‘˜NN algorithm classifies background signals from symptomatic and asymptomatic instances using entropy. ๐‘˜ NN uses labeled training samples to classify data points. EEG signal entropy measures randomness or chaos. The ๐‘˜NN method classifies symptomatic and asymptomatic cases based on their resemblance to training samples by computing the entropy of chosen EEG channels [50]. 3. Results and Discussion 3.1 Results of Preprocessing Stage Figure 3 depicts the denoised EEG signals produced by the WT method. Due to the heterogeneity of EEG artifacts, WT has been Noor K. Al-Qazzaz Al-Khwarizmi Engineering Journal, Vol. 19, No. 4, P.P. 29- 41(2023) 36 evaluated on every channel of the available EEG datasets. When comparing the original recorded EEG (red) with the suppressed version (blue), it is clear that the artifactual components were effectively eliminate Fig. 3. The denoising resulting from the application of the WT technique to EEG Ch2 which represents F8. 3.2 Results of Statistical analysis Patients with ๐‘‰๐ท showed less complexity than those with ๐‘†๐‘€๐ถI and ๐ป๐ถ using ๐‘†๐‘๐‘’๐‘๐ธ๐‘›, ๐ด๐‘๐ธ๐‘› and ๐‘ƒ๐‘’๐‘Ÿ๐ธ๐‘› as shown in Figures 4, 5 and 6. For all patients, but especially for those with ๐ป๐ถ and ๐‘‰๐ท, the complexity of the EEG signals reduces as the condition worsens. Figure 4 shows that the ๐‘†๐‘๐‘’๐‘๐ธ๐‘› values of the ๐‘‰๐ท patients were lower than those of the ๐‘†๐‘€๐ถ๐ผ patients and that the ๐ป๐ถ patients' values were the greatest. Moreover, the ๐‘‰๐ท patients had lower ๐ด๐‘๐ธ๐‘› values than the ๐‘†๐‘€๐ถ๐ผ patients, and the ๐ป๐ถ subjects had the highest ๐ด๐‘๐ธ๐‘› values (Figure 5). Finally, the patients with ๐‘‰๐ท had lower ๐‘ƒ๐‘’๐‘Ÿ๐ธ๐‘› values than those with ๐‘†๐‘€๐ถ๐ผ, and the participants with ๐ป๐ถ had the greatest value (Figure 6). Fig. 4. Comparative plot of the ๐‘บ๐’‘๐’†๐’„๐‘ฌ๐’ for the five scalp regions of the brain for ๐‘ฝ๐‘ซ, ๐‘บ๐‘ด๐‘ช๐‘ฐ patients and ๐‘ฏ๐‘ช subjects. Fig. 5. Comparative plot of the ๐‘จ๐’‘๐‘ฌ๐’ for the five scalp regions of the brain for ๐‘ฝ๐‘ซ, ๐‘บ๐‘ด๐‘ช๐‘ฐ patients and ๐‘ฏ๐‘ช subjects. Fig. 6. Comparative plot of the ๐‘ท๐’†๐’“๐‘ฌ๐’ for the five scalp regions of the brain for ๐‘ฝ๐‘ซ, ๐‘บ๐‘ด๐‘ช๐‘ฐ patients and ๐‘ฏ๐‘ช subjects. Noor K. Al-Qazzaz Al-Khwarizmi Engineering Journal, Vol. 19, No. 4, P.P. 29- 41(2023) 37 3.3 Results of Dementia Classification Techniques The classification confusion matrix for all three schemes proposed is shown in Tables I, II and III. Table I illustrates the confusion matrix for the ๐‘˜NN Classifier without using the ๐น๐‘๐‘ƒ๐ด๐‘„๐‘… and IBGSA. Table II shows the confusion matrix for the ๐‘˜ NN Classifier with the ๐น๐‘๐‘ƒ๐ด๐‘„๐‘… dimensionality reduction technique. The number of selected features by the ๐น๐‘๐‘ƒ๐ด๐‘„๐‘… dimensionality reduction technique was set to 40 characteristics, which are the most essential features in terms of differentiating between patients suffering from ๐‘‰๐ท and stroke-related ๐‘†๐‘€๐ถ๐ผ and healthy control participants. Table III shows the confusion matrix for the ๐‘˜NN Classifier with the IBGSA channels selection algorithm. The ๐‘˜ NN classification accuracy was improved from 86.67% to 88.09 using ๐น๐‘๐‘ƒ๐ด๐‘„๐‘… dimensionality reduction technique and 90.52 by IBGSA channel selection algorithm. The results suggested that IBGSA consistently improves ๐‘Š๐‘€ discrimination of ๐‘‰๐ท, ๐‘†๐‘€๐ถ๐ผ patients and ๐ป๐ถ subjects. Therefore, IBGSA improves the classification over all accuracy for all three groups as in the ๐‘˜ NN classification over the ๐น๐‘๐‘ƒ๐ด๐‘„๐‘… accuracy. Table 1, Calculation of the confusion matrix for multi-class classification using the ๐’ŒNN Classifier. ๐œ๐จ๐ง๐Ÿ๐ฎ๐ฌ๐ข๐จ๐ง ๐ฆ๐š๐ญ๐ซ๐ข๐ฑ ๐•๐ƒ ๐’๐Œ๐‚๐ˆ ๐‡๐‚ ๐‘ฝ๐‘ซ 93.33% 6.67% 0.00% ๐‘บ๐‘ด๐‘ช๐‘ฐ 5.56% 93.33% 1.11% 73.33% ๐‘ฏ๐‘ช 16.67% 10% Table 2, Calculation of the confusion matrix for multi-class classification using ๐’ŒNN and the ๐‘ญ๐‘ต๐‘ท๐‘จ๐‘ธ๐‘น technique. ๐œ๐จ๐ง๐Ÿ๐ฎ๐ฌ๐ข๐จ๐ง ๐ฆ๐š๐ญ๐ซ๐ข๐ฑ ๐•๐ƒ ๐’๐Œ๐‚๐ˆ ๐‡๐‚ ๐‘ฝ๐‘ซ 87.78% 11.11% 1.11% ๐‘บ๐‘ด๐‘ช๐‘ฐ 7.78% 92.22% 0.00% ๐‘ฏ๐‘ช 6.67% 16.67% 76.67% Table 3, Calculation of the confusion matrix for multi-class classification using ๐’ŒNN and the IBGSA technique. ๐œ๐จ๐ง๐Ÿ๐ฎ๐ฌ๐ข๐จ๐ง ๐ฆ๐š๐ญ๐ซ๐ข๐ฑ ๐•๐ƒ ๐’๐Œ๐‚๐ˆ ๐‡๐‚ ๐‘ฝ๐‘ซ 67.78% 31.11% 1.11% ๐‘บ๐‘ด๐‘ช๐‘ฐ 7.78% 88.89% 3.33% ๐‘ฏ๐‘ช 3.33% 6.67% 90% As a result, ๐‘˜ NN was used in the study to support multi-class classification and to distinguish ๐‘‰๐ท, ๐‘†๐‘€๐ถ๐ผ patients, and ๐ป๐ถ subjects. This study had several limitations, including a small sample size, and an additional analysis with a large database should be performed in the future. Finally, we compared the proposed approach to other cutting-edge methods in the literature that employed the different dementia datasets as we did in our work. The results show that our model outperforms other existing methods in the literature, with the highest classification accuracy of 90.52% compared to Kashefpoor et al. [9] proposed a methodology that obtained an accuracy of around 88%, Sharma et al. [10] investigated different features for control vs. ๐‘€๐ถ๐ผ signal classification and obtained accuracy ranges between 73.2% and 89.8%. 4. Conclusion The electroencephalogram (EEG) is a vital tool for studying mental processes. Here, we analyze and filter EEG signals to identify promising channels and useful markers for an earlier, more accurate diagnosis of dementia. The WT method has been implemented as a denoising method. Patients with ๐‘‰๐ท and ๐‘†๐‘€๐ถ๐ผ have had their irregularities assessed with ๐‘†๐‘๐‘’๐‘๐ธ๐‘› , ๐ด๐‘๐ธ๐‘› , and ๐‘ƒ๐‘’๐‘Ÿ๐ธ๐‘› as characteristics. To improve ๐‘Š๐‘€ categorization, we applied the ๐น๐‘๐‘ƒ๐ด๐‘„๐‘… dimensionality reduction technique in conjunction with the IBGSA channel selection algorithm. ๐น๐‘๐‘ƒ๐ด๐‘„๐‘… dimensionality reduction technique increased ๐‘˜ NN classification accuracy from 86.67% to 88.09%, while the IBGSA channel selection algorithm increased it to 90.52%. Findings revealed that IBGSA reliably enhances ๐‘Š๐‘€ discrimination in ๐‘‰๐ท , ๐‘†๐‘€๐ถ๐ผ patients, and ๐ป๐ถ controls. Because of these findings, it is clear that minimizing the number of channels used in the IBGSA selection process has a substantial impact on improving classification accuracy. Working memory stores and manipulates information for ongoing tasks. Dementia causes cognitive deterioration, including working memory loss. Therefore, working memory enhancement may slow dementia-related cognitive deterioration. Working memory training may increase brain activity in working memory-related areas, however, healthy volunteers trained working memory using an adaptive N-back task. The training did not directly cause changes in brain activation in several important locations. In spite of that, studies have Noor K. Al-Qazzaz Al-Khwarizmi Engineering Journal, Vol. 19, No. 4, P.P. 29- 41(2023) 38 implied that working memory training may have benefits, but more study is needed to determine the long-term consequences. Working memory training alone may not diminish dementia-related brain activity since dementia is complicated. Working memory training may also be affected by dementia stage, type, and training procedure. In general, improving working memory in people who have dementia continues to be our focus of research. Future studies may provide additional insights into effective interventions and techniques to improve cognitive function and quality of life. References [1] B. C. Campbell, D. A. De Silva, M. R. Macleod, S. B. Coutts, L. H. Schwamm, S. M. Davis, et al., "Ischaemic stroke," Nature Reviews Disease Primers, vol. 5, p. 70, 2019. [2] N. K. Al-Qazzaz, S. H. Ali, S. A. Ahmad, and S. Islam, "Cognitive assessments for the early diagnosis of dementia after stroke," Neuropsychiatric disease and treatment, vol. 10, p. 1743, 2014. [3] N. K. Al-Qazzaz, S. H. Ali, S. A. Ahmad, S. Islam, and K. Mohamad, "Cognitive impairment and memory dysfunction after a stroke diagnosis: a post-stroke memory assessment," Neuropsychiatric disease and treatment, vol. 10, p. 1677, 2014. [4] C. N. Kan, J. Cano, X. Zhao, Z. Ismail, C. L.-H. Chen, and X. Xu, "Prevalence, clinical correlates, cognitive trajectories, and dementia risk associated with mild behavioral impairment in Asians," The Journal of Clinical Psychiatry, vol. 83, p. 40123, 2022. [5] N. K. Al-Qazzaz, S. H. B. M. Ali, S. A. Ahmad, M. S. Islam, and J. Escudero, "Discrimination of stroke-related mild cognitive impairment and vascular dementia using EEG signal analysis," Medical & biological engineering & computing, vol. 56, pp. 137-157, 2018. [6] N. K. Al-Qazzaz, S. H. B. Ali, S. A. Ahmad, K. Chellappan, M. S. Islam, and J. Escudero, "Role of EEG as Biomarker in the Early Detection and Classification of Dementia," The Scientific World Journal, vol. 2014, 2014. [7] E. H. Houssein, A. Hammad, and A. A. Ali, "Human emotion recognition from EEG-based brainโ€“computer interface using machine learning: a comprehensive review," Neural Computing and Applications, vol. 34, pp. 12527-12557, 2022. [8] N. K. Al-Qazzaz, S. Hamid Bin Mohd Ali, S. A. Ahmad, M. S. Islam, and J. Escudero, "Automatic artifact removal in EEG of normal and demented individuals using ICAโ€“WT during working memory tasks," Sensors, vol. 17, p. 1326, 2017. [9] M. Kashefpoor, H. Rabbani, and M. Barekatain, "Automatic diagnosis of mild cognitive impairment using electroencephalogram spectral features," Journal of medical signals and sensors, vol. 6, p. 25, 2016. [10] N. Sharma, M. Kolekar, K. Jha, and Y. Kumar, "EEG and cognitive biomarkers based mild cognitive impairment diagnosis," Irbm, vol. 40, pp. 113-121, 2019. [11] P. Durongbhan, Y. Zhao, L. Chen, P. Zis, M. De Marco, Z. C. Unwin, et al., "A dementia classification framework using frequency and time-frequency features based on EEG signals," IEEE Transactions on Neural Systems and Rehabilitation Engineering, vol. 27, pp. 826-835, 2019. [12] A. H. H. Al-Nuaimi, E. Jammeh, L. Sun, and E. Ifeachor, "Complexity measures for quantifying changes in electroencephalogram in Alzheimerโ€™s disease," Complexity, vol. 2018, 2018. [13] N. K. Al-Qazzaz, M. K. Sabir, A. H. Al- Timemy, and K. Grammer, "An integrated entropy-spatial framework for automatic gender recognition enhancement of emotion- based EEGs," Medical & Biological Engineering & Computing, pp. 1-20, 2022. [14] M. ลžeker, Y. ร–zbek, G. Yener, and M. S. ร–zerdem, "Complexity of EEG dynamics for early diagnosis of Alzheimer's disease using permutation entropy neuromarker," Computer Methods and Programs in Biomedicine, vol. 206, p. 106116, 2021. [15] S. J. Ruiz-Gรณmez, C. Gรณmez, J. Poza, G. C. Gutiรฉrrez-Tobal, M. A. Tola-Arribas, M. Cano, et al., "Automated multiclass classification of spontaneous EEG activity in Alzheimerโ€™s disease and mild cognitive impairment," Entropy, vol. 20, p. 35, 2018. [16] C. S. Musaeus, K. Engedal, P. Hรธgh, V. Jelic, M. Mรธrup, M. Naik, et al., "EEG theta power is an early marker of cognitive decline in dementia due to Alzheimerโ€™s disease," Journal of Alzheimer's Disease, vol. 64, pp. 1359-1371, 2018. [17] J. E. Santos Toural, A. Montoya Pedrรณn, and E. J. Maraรฑรณn Reyes, "Classification among healthy, mild cognitive impairment and Alzheimerโ€™s disease subjects based on wavelet entropy and relative beta and theta power," Pattern Analysis and Applications, vol. 24, pp. 413-422, 2021. Noor K. Al-Qazzaz Al-Khwarizmi Engineering Journal, Vol. 19, No. 4, P.P. 29- 41(2023) 39 [18] B. Oltu, M. F. AkลŸahin, and S. KibaroฤŸlu, "A novel electroencephalography based approach for Alzheimerโ€™s disease and mild cognitive impairment detection," Biomedical Signal Processing and Control, vol. 63, p. 102223, 2021. [19] M. KavitaMahajan and M. S. M. Rajput, "A Comparative study of ANN and SVM for EEG Classification," International Journal of Engineering, vol. 1, 2012. [20] N. K. Al-Qazzaz, S. H. M. Ali, and S. A. Ahmad, "Differential Evolution Based Channel Selection Algorithm on EEG Signal for Early Detection of Vascular Dementia among Stroke Survivors," in 2018 IEEE- EMBS Conference on Biomedical Engineering and Sciences (IECBES), 2018, pp. 239-244. [21] T. Lan, D. Erdogmus, A. Adami, S. Mathan, and M. Pavel, "Channel selection and feature projection for cognitive load estimation using ambulatory EEG," Computational intelligence and neuroscience, vol. 2007, pp. 8-8, 2007. [22] M. Arvaneh, C. Guan, K. K. Ang, and C. Quek, "Optimizing the channel selection and classification accuracy in EEG-based BCI," IEEE Transactions on Biomedical Engineering, vol. 58, pp. 1865-1873, 2011. [23] M. Schrรถder, T. N. Lal, T. Hinterberger, M. Bogdan, N. J. Hill, N. Birbaumer, et al., "Robust EEG channel selection across subjects for brain-computer interfaces," EURASIP Journal on Applied Signal Processing, vol. 2005, pp. 3103-3112, 2005. [24] N. K. Al-Qazzaz, M. K. Sabir, S. Ali, S. A. Ahmad, and K. Grammer, "Effective EEG Channels for Emotion Identification over the Brain Regions using Differential Evolution Algorithm," in 2019 41th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC), 2019. [25] N. K. Al-Qazzaz, S. H. B. M. Ali, S. A. Ahmad, and J. Escudero, "Optimal EEG Channel Selection for Vascular Dementia Identification Using Improved Binary Gravitation Search Algorithm," in International Conference for Innovation in Biomedical Engineering and Life Sciences, 2017, pp. 125-130. [26] R. N. Khushaba, S. Kodagoda, D. Liu, and G. Dissanayake, "Electromyogram (EMG) based fingers movement recognition using neighborhood preserving analysis with QR- decomposition," in Intelligent Sensors, Sensor Networks and Information Processing (ISSNIP), 2011 Seventh International Conference on, 2011, pp. 1-105. [27] N. K. Al-Qazzaz, S. Ali, S. A. Ahmad, and J. Escudero, "Classification enhancement for post-stroke dementia using fuzzy neighborhood preserving analysis with QR- decomposition," in 2017 39th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC), 2017, pp. 3174-3177. [28] N. K. Al-Qazzaz, S. Ali, S. Islam, S. Ahmad, and J. Escudero, "EEG Wavelet Spectral Analysis During a Working Memory Tasks in Stroke-Related Mild Cognitive Impairment Patients," in International Conference for Innovation in Biomedical Engineering and Life Sciences, 2016, pp. 82-85. [29] Z. German-Sallo and C. Ciufudean, "Waveform-adapted wavelet denoising of ECG signals." [30] A. Shoeb and G. Cliord, "Chapter 16 - Wavelets; Multiscale Activity in Physiological Signals," in Biomedical Signal and Image Processing, ed, 2005. [31] J. Escudero, R. Hornero, D. Abรกsolo, and A. Fernรกndez, "Blind source separation to enhance spectral and non-linear features of magnetoencephalogram recordings. Application to Alzheimer's disease," Medical engineering & physics, vol. 31, pp. 872-879, 2009. [32] J. Escudero Rodrรญguez, "Applications of blind source separation to the magnetoencephalogram background activity in alzheimer's disease," Universidad de Valladolid, 2010. [33] R. Hornero, J. Escudero, A. Fernรกndez, J. Poza, and C. Gรณmez, "Spectral and nonlinear analyses of MEG background activity in patients with Alzheimer's disease," Biomedical Engineering, IEEE Transactions on, vol. 55, pp. 1658-1665, 2008. [34] J. S. Richman and J. R. Moorman, "Physiological time-series analysis using approximate entropy and sample entropy," American Journal of Physiology-Heart and Circulatory Physiology, vol. 278, pp. H2039- H2049, 2000. [35] D. E. Lake, J. S. Richman, M. P. Griffin, and J. R. Moorman, "Sample entropy analysis of neonatal heart rate variability," American Journal of Physiology-Regulatory, Integrative and Comparative Physiology, vol. 283, pp. R789-R797, 2002. Noor K. Al-Qazzaz Al-Khwarizmi Engineering Journal, Vol. 19, No. 4, P.P. 29- 41(2023) 40 [36] H. Azami and J. Escudero, "Improved multiscale permutation entropy for biomedical signal analysis: Interpretation and application to electroencephalogram recordings," Biomedical Signal Processing and Control, vol. 23, pp. 28-41, 2016. [37] A. Holzinger, M. Hรถrtenhuber, C. Mayer, M. Bachler, S. Wassertheurer, A. J. Pinho, et al., "On entropy-based data mining," in Interactive Knowledge Discovery and Data Mining in Biomedical Informatics, ed: Springer, 2014, pp. 209-226. [38] F. C. Morabito, D. Labate, F. La Foresta, A. Bramanti, G. Morabito, and I. Palamara, "Multivariate multi-scale permutation entropy for complexity analysis of Alzheimerโ€™s disease EEG," Entropy, vol. 14, pp. 1186- 1202, 2012. [39] E. Ferlazzo, N. Mammone, V. Cianci, S. Gasparini, A. Gambardella, A. Labate, et al., "Permutation entropy of scalp EEG: A tool to investigate epilepsies: Suggestions from absence epilepsies," Clinical Neurophysiology, vol. 125, pp. 13-20, 2014. [40] C. Bandt and B. Pompe, "Permutation entropy: a natural complexity measure for time series," Physical review letters, vol. 88, p. 174102, 2002. [41] M. Zanin, L. Zunino, O. A. Rosso, and D. Papo, "Permutation entropy and its main biomedical and econophysics applications: a review," Entropy, vol. 14, pp. 1553-1577, 2012. [42] N. K. Al-Qazzaz, M. K. Sabir, S. H. B. M. Ali, S. A. Ahmad, and K. Grammer, "Multichannel optimization with hybrid spectral-entropy markers for gender identification enhancement of emotional- based EEGs," IEEE Access, vol. 9, pp. 107059-107078, 2021. [43] A. Ghaemi, E. Rashedi, A. M. Pourrahimi, M. Kamandar, and F. Rahdari, "Automatic channel selection in EEG signals for classification of left or right hand movement in Brain Computer Interfaces using improved binary gravitation search algorithm," Biomedical Signal Processing and Control, vol. 33, pp. 109-118, 2017. [44] J. Xiang, X. Han, F. Duan, Y. Qiang, X. Xiong, Y. Lan, et al., "A novel hybrid system for feature selection based on an improved gravitational search algorithm and k-NN method," Applied Soft Computing, vol. 31, pp. 293-307, 2015. [45] N. V. Chawla, K. W. Bowyer, L. O. Hall, and W. P. Kegelmeyer, "SMOTE: synthetic minority over-sampling technique," Journal of artificial intelligence research, pp. 321- 357, 2002. [46] R. Kohavi, "A study of cross-validation and bootstrap for accuracy estimation and model selection," in Ijcai, 1995, pp. 1137-1145. [47] Y. Song and J. Zhang, "Discriminating preictal and interictal brain states in intracranial EEG by sample entropy and extreme learning machine," Journal of neuroscience methods, vol. 257, pp. 45-54, 2016. [48] I. H. Witten and E. Frank, Data Mining: Practical machine learning tools and techniques: Morgan Kaufmann, 2005. [49] M. Hall, E. Frank, G. Holmes, B. Pfahringer, P. Reutemann, and I. H. Witten, "The WEKA data mining software: an update," ACM SIGKDD explorations newsletter, vol. 11, pp. 10-18, 2009. [50] L. A. Moctezuma and M. Molinas, "Multi- objective optimization for EEG channel selection and accurate intruder detection in an EEG-based subject identification system," Scientific Reports, vol. 10, pp. 1-12, 2020. (2023) 29-41ุŒ ุตูุญุฉ 4ุŒ ุงู„ุนุฏุฏ19ุงู„ู…ุฌู„ุฏ ุฌู„ุฉ ุงู„ุฎูˆุงุฑุฒู…ูŠ ุงู„ู‡ู†ุฏุณูŠุฉู… ุงู„ู‚ุฒุงุฒู†ูˆุฑ ูƒู…ุงู„ 41 ุชุญุณูŠู† ุชุตู†ูŠู ุงู„ุฐุงูƒุฑุฉ ุงู„ุนุงู…ู„ุฉ ู„ู†ุดุงุท ุชุฎุทูŠุท ุงู„ุฏู…ุงุบ ููŠ ุงู„ุฎุฑู: ุฏุฑุงุณุฉ ู…ู‚ุงุฑู†ุฉ ** ุดูˆุงู„ ุญู…ูŠุฏ ุจู† ู…ุญู…ุฏ ุนู„ูŠ ู†ูˆุฑ ูƒู…ุงู„ ุงู„ู‚ุฒุงุฒ * ***ุณูŠุชูŠ ุฃู†ูˆู… ุฃุญู…ุฏ ุงู„ุนุฑุงู‚ /ุจุบุฏุงุฏ /ุฌุงู…ุนุฉ ุจุบุฏุงุฏ /ูƒู„ูŠุฉ ุงู„ุฎูˆุงุฑุฒู…ูŠ ู„ู„ู‡ู†ุฏุณุฉ /ู‚ุณู… ุงู„ู‡ู†ุฏุณุฉ ุงู„ุทุจูŠุฉ ุงู„ุญูŠูˆูŠุฉ* ู…ุงู„ูŠุฒูŠุง /ุณูŠุงู„ู†ุบูˆุฑ /ู‚ุณู… ุงู„ู‡ู†ุฏุณุฉ ุงู„ูƒู‡ุฑุจุงุฆูŠุฉ ูˆุงุฅู„ู„ูƒุชุฑูˆู†ูŠุฉ ูˆุงู„ู†ุธู…ุŒ ูƒู„ูŠุฉ ุงู„ู‡ู†ุฏุณุฉ ูˆุงู„ุจูŠุฆุฉ ุงู„ู…ุจู†ูŠุฉุŒ ุฌุงู…ุนุฉ ูƒูŠุจุงู†ุบุณุงู† ู…ุงู„ูŠุฒูŠุง ** ู…ุงู„ูŠุฒูŠุง /ุณูŠุงู„ู†ุบูˆุฑ /ู…ุงู„ูŠุฒูŠุง /ุฌุงู…ุนุฉ ูƒูŠุจุงู†ุบุณุงู† /ู‚ุณู… ุงู„ู‡ู†ุฏุณุฉ ุงู„ูƒู‡ุฑุจุงุฆูŠุฉ ูˆุงุฅู„ู„ูƒุชุฑูˆู†ูŠุฉ ูˆู‡ู†ุฏุณุฉ ุงู„ู†ุธู… /ู…ุฑูƒุฒ ุงู„ู‡ู†ุฏุณุฉ ุงุฅู„ู„ูƒุชุฑูˆู†ูŠุฉ ูˆู‡ู†ุฏุณุฉ ุงุงู„ุชุตุงุงู„ุช ุงู„ู…ุชู‚ุฏู…ุฉ ู…ุงู„ูŠุฒูŠุง /ุณูŠุงู„ู†ุบูˆุฑ /ุฌุงู…ุนุฉ ุจูˆุชุฑุง ู…ุงู„ูŠุฒูŠุง /ูƒู„ูŠุฉ ุงู„ู‡ู†ุฏุณุฉ /ู‚ุณู… ุงู„ู‡ู†ุฏุณุฉ ุงู„ูƒู‡ุฑุจุงุฆูŠุฉ ูˆุงุฅู„ู„ูƒุชุฑูˆู†ูŠุฉ*** ู…ุงู„ูŠุฒูŠุง /ุณูŠุงู„ู†ุบูˆุฑ /ุณูŠุฑุฏุงู†ุบ /ุฌุงู…ุนุฉ ุจูˆุชุฑุง ู…ุงู„ูŠุฒูŠุง /ุงู„ู…ุนู‡ุฏ ุงู„ู…ุงู„ูŠุฒูŠ ู„ุจุญูˆุซ ุงู„ุดูŠุฎูˆุฎุฉ noorbme@kecbu.uobaghdad.edu.iq *ุงู„ุจุฑูŠุฏ ุงุงู„ู„ูƒุชุฑูˆู†ูŠ: sawal@ukm.edu.my *ุงู„ุจุฑูŠุฏ ุงุงู„ู„ูƒุชุฑูˆู†ูŠ:* sanom@upm.edu.my *ุงู„ุจุฑูŠุฏ ุงุงู„ู„ูƒุชุฑูˆู†ูŠ:** ุงู„ุฎุงู„ุตุฉ (ุŒ ูˆุฎู…ุณุฉ ุนุดุฑ ู…ุฑูŠู‹ุถุง ุจุนุฏ ุงู„ุณูƒุชุฉ VD( ููŠ ุฎู…ุณุฉ ู…ุฑุถู‰ ูŠุนุงู†ูˆู† ู…ู† ุงู„ุฎุฑู ุงู„ูˆุนุงุฆูŠ )WMุงู„ุนุงู…ู„ุฉ )ู„ุบุฑุถ ู…ู† ุงู„ุชุญู‚ูŠู‚ ุงู„ุญุงู„ูŠ ู‡ูˆ ุงู„ุชู…ูŠูŠุฒ ุจูŠู† ุงู„ุฐุงูƒุฑุฉ (. ุชู… ุชูˆุถูŠุญ EEG( ุจู†ุงู‹ุก ุนู„ู‰ ุงู„ุฎู„ููŠุฉ ู†ุดุงุท ุชุฎุทูŠุท ูƒู‡ุฑุจูŠุฉ ุงู„ุฏู…ุงุบ )HC(ุŒ ูˆุฎู…ุณุฉ ุนุดุฑ ูุฑุฏู‹ุง ุณู„ูŠู‹ู…ุง ู„ู„ุชุญูƒู… )MCIุงู„ุฏู…ุงุบูŠุฉ ูŠุนุงู†ูˆู† ู…ู† ุถุนู ุฅุฏุฑุงูƒูŠ ุฎููŠู ) (ุŒ ApEn( ููŠ ู‡ุฐู‡ ุงู„ุฏุฑุงุณุฉ. ููŠ ุงู„ุฏุฑุงุณุฉ ุงู„ุญุงู„ูŠุฉุŒ ุชู… ุงุณุชูƒุดุงู ุงุฅู„ู†ุชุฑูˆุจูŠุง ุงู„ุทูŠููŠุฉ )WTุจุงุณุชุฎุฏุงู… ุงู„ุชุนุฏูŠู„ ุงู„ู…ุณุจู‚ ู„ู„ู…ูˆุฌุงุช ) EEGุงู„ุชุฎู„ุต ู…ู† ุงู„ู‚ุทุน ุงุฃู„ุซุฑูŠุฉ (ุŒ ุชู… ุฅุฌุฑุงุก ุฏุฑุงุณุฉ ๐‘˜NNุฃู‚ุฑุจ ุงู„ุฌูŠุฑุงู† )-kุจุงุณุชุฎุฏุงู… ู…ุฎุทุท ุชุตู†ูŠู WM(. ู„ุชุญุณูŠู† ุชุตู†ูŠู SpecEn(ุŒ ูˆุงุฅู„ู†ุชุฑูˆุจูŠุง ุงู„ุชู‚ุฑูŠุจูŠุฉ )PerEnูˆุฅู†ุชุฑูˆุจูŠ ุงู„ุชุจุฏูŠู„ ) ูƒุชู‚ู†ูŠุฉ ู„ุชู‚ู„ูŠู„ ุงุฃู„ุจุนุงุฏ ูˆุชุญุณูŠู† ุงู„ุจุญุซ ุนู† ุงู„ุฌุงุฐุจูŠุฉ ุงู„ุซู†ุงุฆูŠุฉ QR-decomposition (FNPAQR)ุฏุงู… ุชุญู„ูŠู„ ุงู„ุญูุงุธ ุนู„ู‰ ุงู„ุญูŠ ุงู„ุบุงู…ุถ ุจุงุณุชุฎุฏุงู… ู…ู‚ุงุฑู†ุฉ ุงู„ุณุชุฎ (IBGSA ุชู…ุช ุฒูŠุงุฏุฉ ุฏู‚ุฉ ุชุตู†ูŠู .)๐‘˜NN ุจุงุณุชุฎุฏุงู… ุชู‚ู†ูŠุฉ ุชู‚ู„ูŠู„ ุงุฃู„ุจุนุงุฏ 90.52ูช ูˆ 88.09ูช ุฅู„ู‰ 86.67ู…ู† ูชFNPAQR ูˆุฎูˆุงุฑุฒู…ูŠุฉ ุงุฎุชูŠุงุฑ ู‚ู†ูˆุงุช IBGSAู‰ ุงู„ุชูˆุงู„ูŠ. ูˆูู‚ู‹ุง ู„ู„ู†ุชุงุฆุฌุŒ ูŠุนุฒุฒ ุŒ ุนู„IBGSA ุจุดูƒู„ ู…ูˆุซูˆู‚ ุงู„ุชู…ูŠูŠุฒ ููŠWM ู„ู„ู…ุดุงุฑูƒูŠู† ููŠHC ูˆMCI ูˆVD ู„ุฐู„ูƒุŒ ุชูˆูุฑ .WT ูˆู…ูŠุฒุงุช ุงุฅู„ู†ุชุฑูˆุจูŠุง .MCIูˆ VDู„ู„ู…ุฑุถู‰ ุงู„ุฐูŠู† ูŠุนุงู†ูˆู† ู…ู† EEGู…ุคุดู‹ุฑุง ุตุญูŠู‹ุญุง ู„ู„ุฎุฑู ู„ู„ุจุญุซ ุนู† ู†ุดุงุท ุฎู„ููŠุฉ ๐‘˜NNูˆู…ุตู†ู IBGSAูˆ mailto:noorbme@kecbu.uobaghdad.edu.iq mailto:sawal@ukm.edu.my mailto:sanom@upm.edu.my Abstract Keywords: Dementia, wavelet, entropy, dimensionality reduction, channels selection, features, classification. 1. Introduction 2. Materials and Methods 2.1 Participants 2.2 EEG recording 2.3 Preprocessing Stage 2.4 Features Extraction Stage 2.5 Statistical analysis 2.6 Dimensionality reduction using ๐…๐๐๐€๐๐‘ 2.7 Channel Selection using ๐ˆ๐๐†๐’๐€ 2.8 Dementia Classification Techniques 3. Results and Discussion 3.1 Results of Preprocessing Stage 3.2 Results of Statistical analysis 3.3 Results of Dementia Classification Techniques 4. Conclusion References