Your new experience awaits. Try the new design now and help us make it even better

ORIGINAL RESEARCH article

Front. Psychiatry, 03 November 2025

Sec. Addictive Disorders

Volume 16 - 2025 | https://doi.org/10.3389/fpsyt.2025.1635933

This article is part of the Research TopicBody Sensor Networks, Mobile Application Monitoring and Prescription Digital Therapeutics for Personalized Mental Health and Substance Use Management and TreatmentView all 5 articles

Analyzing EEG data during opium addiction treatment using a fuzzy logic-based machine learning model

Elnaz DehAbadi&#x;Elnaz DehAbadi1†Fateme Ayin Anka&#x;Fateme Ayşin Anka2†Fateme Vafaei,&#x;Fateme Vafaei3,4†Hossein Lanjanian*&#x;Hossein Lanjanian5*†Sajjad Nematzadeh&#x;Sajjad Nematzadeh6†Mahsa Torkamanian-Afshar&#x;Mahsa Torkamanian-Afshar6†Nazanin Aghahosseinzargar&#x;Nazanin Aghahosseinzargar1†Farzad Kiani,&#x;Farzad Kiani7,8†Peyman Hassani-Abharian*&#x;Peyman Hassani-Abharian9*†
  • 1Garmsar Branch, Islamic Azad University, Garmsar, Iran
  • 2Political Sciences and Public Administration Department, Faculty of Economics, Administrative and Social Sciences, Istinye University, Istanbul, Türkiye
  • 3Department of Biomedical Engineering, Shahed University, Tehran, Iran
  • 4Basir Eye Health Research Center, Iran University of Medical Sciences, Tehran, Iran
  • 5Cellular and Molecular Endocrine Research Center, Research Institute for Endocrine Molecular Biology, Research Institute for Endocrine Sciences, Shahid Beheshti University of Medical Sciences, Tehran, Iran
  • 6Software Engineering Department, Engineering Faculty, Istanbul Topkapi University, Istanbul, Türkiye
  • 7Computer Engineering Department, Faculty of Engineering, Fatih Sultan Mehmet Vakif University, Istanbul, Türkiye
  • 8Data Science Application and Research Center, Fatih Sultan Mehmet Vakif University, Istanbul, Türkiye
  • 9Department of Cognitive Psychology and Rehabilitation, Institute for Cognitive Science Studies (IRICSS), Tehran, Iran

Background: Reliable noninvasive tools for assessing substance abuse treatment and predicting outcomes remain a challenge. We believe EEG-derived complexity measures may have a direct link to clinical diagnosis. To this aim, our study involved a psychological investigation of four groups of current and former male opium addicts. Furthermore, we propose a machine learning (ML) model incorporating fuzzy logic to analyze EEG data and identify neural complexity changes associated with opium addiction.

Method: Male participants were categorized into four groups: active addicts, those with less than three days of treatment, those treated for over two weeks, and healthy controls. Psychological assessments evaluate mental health and addiction status. EEG data were collected using standardized electrode placement, preprocessed to remove noise, and analyzed using the Higuchi Fractal Dimension(HFD) to quantify neural complexity. Feature selection methods and ML classifiers were applied to identify key patterns distinguishing addiction stages.

Results: Distress levels varied significantly across groups and persisted post-quitting. Addicts exhibited poorer general health than controls, though treatment led to improvements. Significant differences in neural complexity were observed in brain regions linked to attention, memory, and executive function. The ML model effectively classified addiction stages based on EEG-derived features.

Conclusion: This study demonstrates the potential of ML and fuzzy logic in assessing addiction-related neural dynamics, offering insights into opioid addiction’s pathophysiology. The findings highlight the promise of brainwave-based biomarkers for personalized addiction diagnosis and treatment monitoring.

GRAPHICAL ABSTRACT
www.frontiersin.org

Graphical Abstract. The flowchart illustrates the analysis of EEG data during opium addiction treatment using fuzzy logic-based machine learning. It includes the collection of data from opioid-addicted and healthy males, psychological evaluations, EEG data analysis with noise removal, and feature extraction. A fuzzy logic machine learning model is then developed for treatment management, which identifies levels of distress and differences in the complexity of neural activity.

1 Introduction

Addiction can be defined as the loss of control over drug use or the compulsive seeking and use of drugs despite adverse consequences. It is a neuropsychiatric disorder caused by substance abuse that is strongly influenced by a person’s genetic structure and the psychological and social context in which drug use occurs. The disease cycle of addiction mainly results from dopaminergic dysfunction, particularly in dopamine (DA) secreted from the mesencephalic ventral tegmentum area (VTA) to the nucleus accumbens (NAcc), prefrontal cortex (PFC), and amygdala. Substances of abuse affect the same neural circuitry as primary biological rewards such as food, water, and sex, leading to substance dependence (1, 2). The understanding of addiction has evolved, from being viewed as a moral condition in DSM-II to being considered more based on psychobiological constructs in DSM-III and beyond. DSM-IV added cognitive factors to the contributing factors of addiction, while DSM-V focused on the psychological changes caused by substance abuse that lead to cognitive impairment (3). Consumed substances have different effects on neural processes, and substance use can lead to increased dopamine consumption in the collecting systems, which becomes an important element in goal-directed behavior and can ultimately result in substance dependence (2).

Nonlinear dynamics methods are widely used to analyze neurophysiological data due to the brain’s inherent complexity, which spans multiple spatial and temporal scales. Higuchi Fractal Dimension (HFD) specifically quantifies the self-similarity and complexity of neural oscillations, offering insights into the balance between stochasticity and determinism in brain dynamics. In the context of addiction, altered neural complexity may reflect disruptions in cognitive control, reward processing, and executive function. Various complexity measures have been developed, including those based on random fractal theory, information theory, and chaos theory. Gao et al. distinguish between chaos and random phenomena and found that the variations of complexity measures with time are either similar or reciprocal in their study on the relations among different complexity measures for EEG (4, 5).

Emotion recognition and addiction detection using electroencephalogram (EEG) signals have garnered increasing interest due to their potential applications in mental health monitoring, affective computing, and neurorehabilitation (68). Among various techniques applied to analyze EEG signals, fuzzy logic has emerged as a powerful mathematical framework to manage uncertainty and imprecision. Its inherent ability to model nonlinear and complex systems makes it highly suitable for EEG analysis, which often involves noisy, nonstationary, and high-dimensional data (912).

Fuzzy logic has been employed in diverse EEG-related domains, such as brain-computer interfaces (BCIs), neurological disorder diagnosis, and cognitive state assessment. For instance, studies have demonstrated the efficacy of fuzzy logic in classifying visual perception-related EEG signals and diagnosing epilepsy through fuzzy expert systems (1316). The flexibility of fuzzy set theory has also enhanced feature processing by enabling partial membership-based selection, which improves the robustness of classification tasks. Tools like partition generator functions have been leveraged to filter and transform EEG feature vectors into sparse representations, particularly valuable in multi-instance data scenarios. The Partition generator function can be used in feature processing methods that are based on fuzzy set theory. These methods use the idea of partial set membership to identify relevant features that have high membership degrees for a given class or target variable. By using fuzzy set theory in feature selection, these methods can provide more flexible and accurate results than traditional binary-based methods. This filter supports multi-instance data and can be applied to a given dataset and features for any partition generator to obtain these filtered vectors for all instances. As a result of this, filtered instances are composed of the relevant values and the class attribute (if set in the input data) and rendered as sparse instances (14, 15).

Recent advancements in BCI technologies have further facilitated the integration of fuzzy logic with machine learning. Notably, Dhara et al. (2023) introduced a fuzzy ensemble-based deep learning model that attained over 97% accuracy on the DEAP dataset and 95% on AMIGOS, showcasing the synergy between fuzzy logic and deep learning in refining model predictions (11). In parallel, deep learning has gained significant momentum in EEG-based emotion recognition. Hassouneh et al. (2020) developed a real-time system combining facial expressions and EEG signals using machine learning and neural networks, highlighting the feasibility of accurate multimodal emotion classification (17). A comprehensive review by Chutia and Baruah (2024) emphasized the impact of convolutional and recurrent neural networks in capturing spatiotemporal dynamics of EEG data (6). Similarly, Khare et al. (2024) systematically reviewed a decade of emotion recognition studies, underlining the increasing shift toward hybrid models that integrate EEG with other physiological signals for improved contextualization (7). This trend is echoed in the review by Computers in Biology and Medicine (2023), which notes the growing importance of transfer learning, attention mechanisms, and multimodal fusion techniques in advancing EEG-based emotion detection (8).

Beyond emotion recognition, fuzzy logic and EEG complexity metrics have also proven useful in addiction research. For example, Marvi et al. (2023) applied recurrence quantification analysis and entropy indices to distinguish multidrug users from healthy individuals with 90% accuracy using support vector machines (18). Zhou et al. (2024) further extended these findings by employing wavelet-transformed P300 components and BiLSTM networks to detect methamphetamine abuse with 83.85% accuracy (19). Additionally, Crane et al. (2021) revealed altered neural reward processing in cannabis users via EEG event-related potentials, suggesting that EEG-based measures may serve as biomarkers for addiction-related dysfunctions (20). Finally, Hosseini et al. examined the effects of computer gaming on brain function, offering insights using quantitative EEG (QEEG) complexity analysis (21).

Collectively, these findings confirm that fuzzy logic approaches—whether standalone or hybridized with deep learning—and EEG-based signal complexity analysis substantially enhance both the accuracy and interpretability of brain activity monitoring in emotional and addiction-related research domains.

As mentioned previously, despite the widespread use of EEG in clinical neuroscience, there remains a critical need for reliable, noninvasive tools to assess substance addiction and monitor treatment progression. We introduce a novel EEG dataset comprising recordings from four distinct groups of male participants: active opium addicts, individuals undergoing early treatment (≤3 days), individuals in extended treatment (>2 weeks), and healthy controls. EEG signals were recorded from frontal and parietal regions, preprocessed to remove artifacts, and analyzed using the Higuchi Fractal Dimension to quantify EEG complexity. Additionally, fuzzy logic-enhanced machine learning model was applied to classify subjects based on their addiction stage. Addicted individuals exhibited reduced EEG complexity in regions associated with attention, memory, and executive function. These differences were partially reversed in long-term treated subjects. Fuzzy approach to HFD features of EEG complexity led to high classification accuracy across groups. This study advances the field by addressing limitations in previous works, refining EEG-based complexity analysis with fuzzy logic, and moving toward practical applications in addiction diagnosis and treatment monitoring.

2 Materials and methods

2.1 Participant selection

The research sample consisted of male participants selected from the Ahang De-Addiction Institute, a treatment center located in the 15th district of Tehran. Established in 1992, the institute provides addiction treatment services. Ethical authorization for research was received through letter No. IR.UT.IRICSS.REC.1403.021 from the Ethics Committee of the Institute for Cognitive Science Studies on March 12, 2024.

To reduce confounding effects and obtain a homogeneous sample, we restricted recruitment to male participants aged 18–40 years. This decision was based on evidence that EEG signals and brain complexity measures are influenced by both sex and age, with prior studies showing clear sex-related differences in brain activity and addiction patterns, as well as age-dependent changes in EEG complexity. Epidemiological surveys in Iran further support this choice, indicating that more than 90% of substance users are male and that opium use is most prevalent in young adults, with a mean age of initiation around 22 years and mean current ages in the early 30s (22, 23). While these studies are relatively old and addiction trends may have evolved, our clinical experience with referrals to addiction treatment centers continues to align with these statistics. Therefore, in this study we focused on 18–40-year-old males to capture the demographic group at highest risk, while minimizing variability unrelated to addiction status.

The participants were categorized into four groups based on their addiction status and treatment abstinence period. The first group comprised actively addicted individuals who had not yet started the treatment process. The second group consisted of individuals with less than three days of treatment. The third group included individuals who had undergone treatment for more than two weeks. The fourth group consisted of healthy individuals with no history of drug use.

The research was conducted over four consecutive days at a camp, with a psychologist from the research team present. Written consent was obtained from each participant before the study. The initial assessment process involved collecting a range of information, including basic demographics, substance abuse history (first-time drug use, duration of drug use, primary substance used, and expenditure on drugs), treatment history (number of quit attempts, longest period of abstinence, participation in Narcotics Anonymous meetings), history of risky behaviors (injection drug use, risky sexual behaviors, involvement with drug dealers, physical conflicts), medical and psychiatric information (chronic medical conditions, physical problems, depression, anxiety, hallucinations, delusions, suicide attempts or self-mutilation, history of mental health hospitalizations, HIV status), and family and social status (living conditions, employment status, monthly income, family history of addiction, number of children in the family, family’s emotional support).

Participants for the recently quit group and the control group were selected through the quit addiction camp and direct interviews. The active user group was recruited in collaboration with Ahang addiction treatment clinics, and EEG registrations were conducted with the consent of the patients. The study included 90 individuals undergoing treatment of opioid addiction and 22 healthy individuals with no history of drug abuse. All participants were males aged between 18 and 40 years. Opioid-addicted individuals were recruited from the AHANG drug rehabilitation center, including both active users and those who had recently sought treatment at the center. Psychological tests, such as the Drug Use Disorders Identification Test (DUDIT) and the Depression, Anxiety, and Stress Scale (DASS), were administered to all addicted individuals. Additionally, information regarding basic demographics, treatment history, history of risky behaviors, history of drug abuse, medical status, and family and social support was collected for the addicted group.

2.2 Psychological tests

Psychological assessments were conducted to evaluate the mental health and addiction status of participants. For the healthy group, a clinical interview, SCL-90 questionnaire, and urine test were administered to confirm mental health and the absence of addiction. The SCL-90 is a widely used psychiatric tool consisting of 90 items scored on a 5-point scale, assessing nine symptom dimensions including somatization, obsessive-compulsive behavior, interpersonal sensitivity, depression, anxiety, hostility, phobic anxiety, paranoid ideation, and psychoticism. In Iran, the SCL-90 has been standardized and validated in multiple studies.

The following psychological questionnaires were completed for each candidate:

Depression, Anxiety, and Stress Scale (DASS): The DASS questionnaire consists of three subscales designed to measure negative emotional states related to depression, anxiety, and tension. Each subscale contains 7 items that assess various aspects of these emotional states. From these 21 items, 8 items are related to depression, 7 items are related to anxiety and 6 items are related to stress.

General Health Questionnaire (GHQ): The GHQ is a self-administered test used to investigate non-psychotic disorders. It is a screening tool to identify individuals experiencing acute conditions or disturbances in functioning (24).

Desires for Drug Questionnaire (DDQ): The DDQ assesses craving for drugs and consists of 13 questions that measure three main craving components: desire and intention to use drugs, negative reinforcement, and control.

Obsessive Compulsive Drug Use Scale (OCDUS): The OCDUS questionnaire measures three components related to heroin use: heroin thoughts and interference, intention to use heroin and control of consumption and resistance against thoughts and decisions to use heroin.

Each questionnaire was completed using a Likert-scale answer sheet, with participants rating their experiences or feelings based on the provided options (25).

Note: The original versions of the DASS (26, 27), DDQ and OCDUS (28) questionnaires were modified to improve internal consistency by including additional questions.

2.3 EEG recording and data gathering

EEG data was collected from participants using a standardized electrode placement scheme. The EEG signals were obtained from 19 active electrodes using the MEDICOM MTD device, following the standard 10–20 system electrode placement. The electrode locations included Fp1, Fp2, F7, F3, Fz, F4, F8, T3, C3, Cz, C4, T4, T5, P3, Pz, P4, T6, O1, and O2; using a Linked Ears reference. The sampling frequency of the EEG signals was 250 Hz. In line with our previous studies and to keep the approach simple and decrease the computation steps, we calculated the HFD for the total EEG signals (without focusing on any specific frequency band) was calculated (29). Except for the addict group, we recorded two EEG signals in closed eye and one signal in open eye states (Figure 1).

Figure 1
Diagram of an EEG electrode placement on the human head, showing labeled positions: Fp1, Fp2, F7, F3, Fz, F4, F8, A1, T3, C3, Cz, C4, T4, A2, T5, P3, Pz, P4, T6, O1, and O2. Lines indicate the grid formation over the scalp.

Figure 1. Electrode positions for the 19-channel EEG apparatus. EEG data were collected using a standardized 19-channel electrode placement scheme with the MEDICOM MTD device, following the international 10–20 system. The electrode locations included Fp1, Fp2, F7, F3, Fz, F4, F8, T3, C3, Cz, C4, T4, T5, P3, Pz, P4, T6, O1, and O2, using a Linked Ears reference.

2.4 Signal preprocessing and data cleaning

Signal preprocessing was conducted on the recordings obtained from all 19 channels for each participant using EEGLAB v.2019. The following steps were followed:

I. Artifact detection and removal: EEGLAB’s “Remove baseline” and “Reject data using Clean Raw data and ASR” options were utilized to eliminate artifacts from the recorded EEG signals.

II. Out-of-band noise removal: A Finite Impulse Response (FIR) filter was applied to filter the EEG time series within a range of 1–70 Hz, effectively removing noise outside this frequency range.

III. EEG re-referencing: Common average referencing was employed, which involved calculating the average of all channels and using it as the reference for each channel.

IV. Line noise suppression: A notch filter at 50 Hz was utilized to suppress line noise interference.

V. Repairing bad or missing channels: Any channels that were deemed bad or missing were repaired through interpolation, which involved replacing them with the average value of their neighboring channels.

VI. Independent Component Analysis (ICA): ICA was applied to detect components within each signal in every channel.

VII. Removal of undesired components: Components originating from undesired sources, such as electrocardiography (ECG) and electromyography (EMG), were removed to obtain artifact-free EEG signals.

These preprocessing steps enhance the quality of the EEG data and minimize the impact of artifacts and noise, ensuring more reliable and accurate analysis in subsequent stages of the study.

It is noteworthy that only closed-eye EEG segments were analyzed, as the open-eye recordings did not provide sufficiently reliable results. This approach minimizes the influence of ocular artifacts and ensures that the analyzed EEG signals reflect neural activity relevant to the study.

2.5 Higuchi algorithm and feature extraction

Feature extraction is the process of transforming original data to remove redundant or irrelevant information and producing a much smaller and more manageable data set of more discriminator variables. Fractal theory can be used to extract features from a series. The Higuchi Fractal Dimension (HFD) algorithm is a method for measuring the fractal dimension of discrete-time sequences. Here, fractal dimensions were extracted as features using the Higuchi Fractal Dimension (HFD) algorithm (30, 31) (21).

2.6 Partition membership method and feature processing

The fuzzy function maps the membership degree of an element for a given set to a real value in between [0,1]. There are some feature processing methods based on the Partition generator function that come from the fuzzy set idea. To calculate these feature vectors for all instances, WEKA’s PartitionMembershipFilter was employed, which can apply any partition generator to a given dataset. The extracted features were filtered through propositionalization and partitioning using the PartitionMembership filter. WEKA (Waikato Environment for Knowledge Analysis) (32, 33), a non-commercial and open-source data mining system was utilized for this purpose.

For more details on the mathematical principles and applications of Higuchi’s Fractal Dimension (HFD) and fuzzy logic in our study, please refer to Supplementary File 1, which provides an in-depth explanation of the methods and their integration into the analysis of EEG data.

2.7 Feature selection

We are interested in the feature subset containing the minimum number of features that contribute to accuracy the most (29). Here we used CorrelationAttributeEval, ChiSquaredAttributeEval, SignificanceAttributeEval, and PrincipalComponents as the attribute evaluator and “Ranker” as the search method to find the most important attribute in discrimination between different groups. For three methods, WEKA outputs are a ranked list of attributes; however, to determine the priority of features using PrincipalComponents, we follow these steps: 1- Computing the correlation matrix; 2- Obtaining the eigenvalues and eigenvectors; 3- Sorting eigenvalues; eigenvalues represent the amount of variance explained by each principal component. Higher eigenvalues indicate more important principal components. 4- Selecting first principal components; 5- Determining feature importance; The coefficients within the eigenvectors indicate the importance of the original features in the respective principal component. Larger coefficients suggest higher importance (34).

2.8 Classification

Finally, supervised machine-learning classification using a Support Vector Machine (SVM) (35), MLPClassifier (Trains a multilayer perceptron with one hidden layer) and Multilayer Perceptron (A classifier that uses backpropagation to learn a multi-layer perceptron) were employed for feature selection. The calculations were done using WEKA default parameters.

2.9 Statistical analysis of features

A parallel analysis of machine learning (ML) was conducted to assess the statistical significance of Higuchi features using appropriate statistical methods. The objective was to identify which channels exhibited significantly different complexities between different groups. Firstly, the Kolmogorov-Smirnov test was employed to assess the normality of the data, revealing that the data satisfied the normality assumption (P > 0.05). Subsequently, the One-way ANOVA test was utilized to compare the four groups across 38 Higuchi variables. Tukey’s test is a single-step multiple comparison procedure and statistical test. It can be used to find means that are significantly different from each other. it compares all possible pairs of means and applies simultaneously to the set of all pairwise comparisons.

The same method was used to analyze the results of psychological assessments of participants. Here, we take together all participants who had undergone treatment (second and third groups).

3 Results

During the preprocessing steps, some records were detected as being corrupted or disturbed; therefore, the final numbers of analyzed participants of different groups were displayed in Table 1.

Table 1
www.frontiersin.org

Table 1. The final numbers of analyzed participants.

3.1 Psychological tests

The results of the psychological assessments of participants are presented in Table 2 and Supplementary Table S1. Here, we take together all participants who had undergone treatment (second and third groups).

Table 2
www.frontiersin.org

Table 2. Results of the psychological assessments of the participants. Here, we take together all participants who had undergone treatment (second and third groups).

For more details on the psychological assessments of the participants, please refer to Supplementary File 2.

3.2 Classification

In this study, we utilized HFD algorithms to convert the series of EEG data into scalar values, generating a set of features specific to each participant. The HFD algorithms processed the signals from each EEG channel, resulting in a total of 38 features for every participant. These features were derived from EEG channels, with pairs like Higu_1 and Higu_2 originating from channel 1, and the third and fourth Higuchi features originating from channel 2.

Initially, the machine learning methods struggled to distinguish between different classes without applying the fuzzy approach. To improve classification performance, we utilized the Partition Membership method in WEKA to filter and combine the extracted features. We then conducted classification experiments on both the raw (unprocessed) and filtered feature sets using three classification methods: MLPClassifier, LibSVM, and MultilayerPerceptron. This comparison allowed us to evaluate whether feature selection and transformation via Partition Membership improved classification accuracy and model robustness in differentiating addiction stages.

To evaluate the performance, we considered four distinct groups and examined a total of 11 combinations. These combinations included a category that encompassed all groups, four categories representing each group, one category where a single group was compared against a merged group of the remaining three, and six categories involving pairwise comparisons between groups. Before using the Partition Membership method in WEKA without a fuzzy approach, the machine learning methods failed to distinguish between different classes (data has been not shown). The results obtained from fuzzy analyses are presented in Table 3.

Table 3
www.frontiersin.org

Table 3. The obtained results from the classifiers.

It is noteworthy that the MultilayerPerceptron method yielded the most favorable outcomes for the majority of categories when the filtered attributes were utilized. However, in two categories, the Partition Membership filter only produced one partition and failed to effectively classify the participants. Additionally, in two categories, the LibSVM method outperformed the MultilayerPerceptron method. The results obtained from the MultilayerPerceptron method are also provided for these two categories.

3.3 Feature priority

To evaluate the effectiveness of the feature processing, the study assessed the output of four different feature selection methods. CorrelationAttributeEval, Principal Components, ChiSquaredAttributeEval, and SignificanceAttributeEval are the employed methods. However, the last two methods did not find any difference between the features except two; higu_29 for First vs Others and higu_9 Normal vs Second; interestingly, these attributes were also proposed by the CorrelationAttributeEva methods. For the other two methods, we select the 5 high-ranked attributes and present them in Supplementary Table S2. By analyzing the eigenvalues and eigenvectors, you can identify the most influential features in your dataset. Features with high coefficients in the principal components associated with large eigenvalues contribute significantly to the variability and can be considered high-priority features. For more details on the Feature priority, please refer to Supplementary File 2.

The statistical analysis revealed significant differences among the four groups in terms of Higuchi variables. Specifically, the variables higu_7, higu_9, higu_11, and higu_29 exhibited statistically significant variations (P value < 0.05). These variables were derived from channels 4, 5, 6, and 15, respectively. To further investigate the differences within the groups, post hoc analysis was performed using Tukey’s test. The results of the post hoc analysis are summarized in Supplementary Table S3, which presents the variables that showed a statistically significant difference between at least two different groups.

Table 3 presents classification performance across the analyzed groups. Each comparison is explicitly labeled, e.g., “First Group vs. Second Group,” to avoid ambiguity. The table is formatted in the standard three-line style (top line, header-body separator, and bottom line) for clarity. Key features contributing to group differentiation are mapped to their corresponding EEG channels, and anatomical regions (e.g., prefrontal cortex, limbic system) are indicated. This allows linking changes in neural complexity to cognitive processes associated with addiction, such as executive control, decision-making, and reward processing.

4 Discussion

This study aims to propose a machine learning (ML) model based on fuzzy logic for analyzing EEG data in order to enhance the understanding of the biological mechanisms underlying opium addiction and enable personalized diagnostics based on individual neural activity patterns. We analyzed EEG data from four groups based on their addiction status and treatment abstinence period by using of extracted complexity features that serve as indicators of neural dynamics in the brain. Classification experiments using different methods and attribute sets showed that MultilayerPerceptron function in combination with WEKA partition membership preprocessing resulted in outstanding results. All participants in this study were male and between 18–40 years of age. While this demographic restriction limits the generalizability of our findings to young adult male opioid users, it also provides an advantage in terms of methodological rigor. By studying a relatively homogeneous group, we were able to partially offset the limitations of a small sample size and reduce the influence of confounding factors such as sex, age, and ethnicity. This approach increases the internal validity of our findings, although future studies with larger and more diverse populations will be needed to confirm their broader applicability.

Table 2 and Supplementary Table S1 present the results of psychological assessments that were conducted to evaluate the mental health and addiction status of the participants.

The DASS questionnaire revealed that despite addiction treatment, the depression factor remained unchanged and did not differ between the control and addiction groups, but it decreased in the healthy group. In terms of anxiety, there was no significant difference between the recently quit group and the control group, but both differed significantly from the healthy group. The stress factor showed no significant difference between the recently quit group and the control group, but both significantly differed from the healthy group. Overall, the DASS questionnaire indicated that distress levels were significantly different between the groups, and even after quitting, the difference persisted.

Regarding the GHQ questionnaire, individuals who had recently quit exhibited higher levels of physical symptoms, which resolved immediately after quitting. The control group, who had quit more recently, showed similarities to the healthy group. The sleep factor also significantly differed between the recently quit group and both the control and healthy groups. Social interaction did not significantly differ between the three groups and did not change after quitting. The depression factor in the GHQ questionnaire aligned with the findings from the DASS questionnaire. In general, the total factors of the GHQ questionnaire demonstrated that addicted individuals had lower general health compared to healthy individuals. Treatment improved general health but still posed challenges compared to the healthy group.

Regarding the OCDUS questionnaire, cravings, and mental preoccupation did not show significance or differences between the recently quit group and the control group. However, the impact of drug use on work and life significantly differed between the recently quit group and the control group. Significant differences were also found in motivation, excitement, and violation of control between the recently quit group and the control group, indicating that emotional experiences were more consciously regulated in different situations. There was no significant difference in resistance to drug use between the two groups. Overall, the OCDUS questionnaire showed a significant difference in factors between the two groups, indicating a decrease in the urge to consume in the past week for both compared groups. However, intention and desire to consume were not significant, and there was high variability in dispersion and standard deviation.

Finally, the DDQ questionnaire did not yield any significant differences between the two groups in all factors.

The fuzzy-rough feature selection method involves using fuzzy logic to calculate the relevance of each feature and then using rough set theory to select the most relevant features. The method was shown to outperform other feature selection methods in terms of accuracy and efficiency (3638). However, here we used WEKA partition membership as a filter based on fuzzy logic. It is clear from Table 3 that Classification experiments using different methods and attribute sets were conducted, revealing the varying performance of the MultilayerPerceptron, LibSVM, and MLPClassifier methods across different categories. In consistence with our previous finding (21), the performance of MultilayerPerceptron function in combination with WEKA partition membership preprocessing shows outstanding results (Table 3).

The pattern of brain function in people who are using can be different from those who are quitting and healthy people, also the function of the brain can change under the influence of the type of substance consumed (39) For example, by comparing the EEG of alcoholics with the normal control group, an increase in beta power and a decrease in alpha power, as well as a decrease in the ratio of delta to theta, were confirmed (40). Marijuana consumption also leads to instability of the alpha frequency band (41, 42). According to the EEG recorded from people who have recently quit heroin a decrease in alpha, an increase in beta and an increase in Delta and Theta have been encountered in the central areas (43, 44). As a result, the people in this research were divided into four groups, the Addicted group included people who had just visited and the treatment process had not yet started for them, in other words, they were addicted, the First group included people who had less than three days of treatment. The second group included people who had been treated for more than two weeks, and finally the Normal group, who were healthy people who had no history of drug use. Using fuzzy logic techniques, the extracted features were processed to develop an ML model. Thus, we employed HFD algorithms to convert EEG data into scalar values, resulting in a set of features for each participant. These features were then filtered and combined using the Partition Membership method.

To evaluate the ability of different Higuchi variables(features) in discriminating different groups the output of four different feature selection methods is presented in Supplementary Table S2. Additionally, the study used a statistical analysis with the same aim (Supplementary Table S3). According to these results, we find out that different channels are responsible for the segregation of different groups.

The comparison between the Addict group and the other groups identified significant differences in Higuchi variables across channels 2, 4, 6, 8, 9, 10, 12, 16, and 17. These channels likely correspond to brain regions associated with addictive behaviors and related cognitive processes. Addiction involves complex interactions between several brain regions, including the prefrontal cortex, limbic system, and reward pathways. The observed differences in Higuchi variables within these channels may reflect altered neurophysiological activity linked to addictive tendencies.

The comparison of all groups against each other revealed significant differences in Higuchi variables across channels 2, 4, 5, 8, 9, 10, 16, 17, and 18. These channels potentially correspond to brain regions involved in various neurocognitive functions shared among the groups, such as attention, memory, and executive control. The observed differences in Higuchi variables within these channels suggest variations in the complexity of neural activity, reflecting the diversity of cognitive processes exhibited across the groups.

Comparisons of the First group with other groups revealed distinct sets of EEG channels exhibiting significant differences in Higuchi Fractal Dimension (HFD) variables, reflecting variations in neural complexity. For instance, when comparing the First group with the Addict group, channels 1, 4, 6, 9, 10, 15, 16, 17, and 19 showed significant differences, which may correspond to brain regions implicated in substance use disorders and associated cognitive impairments, such as executive control, reward processing, and attention regulation (45). Similarly, comparisons between the First group and the Other groups (channels 4, 5, 8, 9, 10, 15, 16, 17, and 19), and between the First and Second groups (channels 2, 3, 4, 5, 6, 13, 16, 17, and 19) revealed significant HFD differences, suggesting variations in neurophysiological activity that may underlie the unique cognitive and behavioral profiles of the First group (31).

Additional group comparisons also demonstrated channel-specific differences in HFD values: Normal vs. Addict (channels 2, 6, 9, 11, 12, 13, 17, 18), Normal vs. First (channels 3, 4, 5, 9, 11, 15, 17, 19), Normal vs. Others (channels 4, 8, 9, 10, 11, 16, 17, 18), Normal vs. Second (channels 2, 3, 4, 5, 8, 9, 11, 14, 18), Second vs. Addict (channels 2, 3, 4, 5, 8, 9, 10, 12, 16, 17), and Second vs. Others (channels 2, 3, 5, 8, 9, 10, 14, 16, 17, 18). These results indicate group-specific variations in neural complexity, potentially reflecting differential engagement of brain regions involved in addiction-related cognitive processes, including decision-making, inhibitory control, and reward sensitivity (46). Overall, these findings highlight the utility of HFD-based EEG analysis for capturing subtle neurophysiological differences across addiction stages and treatment groups.

The very high classification performance reported in Table 3 (e.g., Normal vs. Others, F1 = 0.98; Normal vs. Addict, F1 = 0.91) should be interpreted with caution. Although we employed strict 10-fold cross-validation, evaluation on a held-out independent test set, and dimensionality reduction via the Partition Membership filter, the possibility of overfitting cannot be entirely excluded. One potential risk is that the model may have captured non-neural artifacts (e.g., head movements, muscle activity, or subtle recording differences) that coincidentally distinguished the groups. At the same time, the application of fuzzy logic to EEG feature processing constitutes a key methodological innovation of this study. Unlike traditional feature selection methods (e.g., correlation-based or chi-square) that operate on binary inclusion–exclusion rules, fuzzy logic allows for partial membership of features to classes, offering a more flexible and realistic way to address the inherent variability and uncertainty of EEG data. This approach not only enhances classification accuracy by retaining weak but informative signals that would otherwise be discarded under strict thresholding, but also improves interpretability: membership degrees provide an intuitive measure of the relative importance of each feature for group separation. Furthermore, the Partition Membership filter generates sparse feature representations that effectively reduce dimensionality while preserving subtle discriminative patterns, thereby improving robustness to noise. Taken together, these theoretical advantages (Supplementary Table S1 of Supplementary File 1) highlight fuzzy logic as a promising framework for uncovering latent neural patterns that may be overlooked by conventional methods, while also underscoring the need for careful validation to ensure that observed performance reflects genuine brain signal differences rather than overfitting artifacts. It is important to consider that the functional interpretations of these EEG channels and their relationships with neurocognitive and neurophysiological activities may require further investigation. Incorporating additional techniques, such as neuroimaging and comprehensive cognitive assessments, would contribute to a more comprehensive understanding of the brain regions involved and the specific neurocognitive and neurophysiological activities underlying the observed differences in Higuchi variables across these EEG channels. One of the main goals underlying this study is to focus on and interpret the issue from various dimensions, as it is a social problem that can expand to a large-scale social level. In this regard, as is evident in the study, an interdisciplinary study has been carried out by making use of both social sciences and engineering. As a result of the study, it would be a good idea and useful if the artificial intelligence-based model in this study could be connected to online tools that can evaluate the effectiveness of addiction treatment institutions and government spending. In this way, both public and private institutions can be managed effectively, and more accurate and rapid steps can be taken for patients. Therefore, policy development and implementation principles can be presented on the public side. The findings of the study provide important information for better understanding the pathophysiology of opioid addiction and personalizing individual diagnoses. This information can be used in the field of public administration to develop programs to combat substance addiction and to take and implement preventive measures. In particular, new substance addiction policies can be developed to increase the effectiveness of treatment programs and to take individual differences into account in addiction treatment. In addition, this study can make significant contributions for improving health services in public administration, increasing social welfare and security, and activating educational programs.

The second activity in the public administration dimension is the efficient management of health services. With the right plans for this, both the management of treatment centers and resource allocation and planning will become easier. As the third activity, education and awareness raising can be emphasized. In this regard, public awareness programs can be organized about the causes, effects, and treatment methods of addiction. The content of such training programs can be updated and made more effective in light of the findings of the study.

The last activity in public administration is social welfare and security. This may be among the issues that politicians need to deal with directly and put forward solutions. Of course, it may vary from country to country. In this context, the relationship between addiction and crime needs to be evaluated. Considering the impact of substance abuse on crime rates, effective management of addiction treatment can increase social safety. Public administration can develop effective policies for the rehabilitation and reintegration of individuals struggling with addiction. Social services and support programs can be developed to ensure the integration of individuals receiving addiction treatment into society. In this context, the results of the study can be used to increase the effectiveness of social service models used in the fight against addiction. Also, dependent people will not be excluded. Therefore, with these four basic activities in public administration, important steps will be taken towards the United Nations Sustainable Development Goals.

4.1 Limitation

The relatively small sample size of this study, particularly in relation to the number of pairwise (up to 11) and four-group comparisons, limits the statistical power to detect smaller effects. This may increase the likelihood of false negatives and, conversely, may also result in overestimation of significant effects. We also note that our study was designed as a proof-of-concept exploratory analysis to assess the feasibility of nonlinear EEG dynamics and fuzzy logic–based machine learning in the context of opioid addiction. We believe the promising preliminary results support further investigation in larger cohorts, and we have highlighted this as an important future direction.

4.2 Future directions

In the present study, we restricted our analyses to closed-eye resting-state EEG recordings. However, the nonlinear measures applied here—including Higuchi’s fractal dimension, entropy, and fuzzy entropy—have also been shown to be effective in task-based or functional EEG paradigms, where they capture task-specific brain dynamics and cognitive load (23, 4751). This suggests that our framework could be readily extended to functional EEG experiments, such as during memory, attention, or decision-making tasks. Consequently, we propose that the Partition Membership filtering and fuzzy-based feature processing described in this work are suitable for task-based EEG analyses and could be used in follow-up studies to probe stimulus- or task-specific signatures of addiction. Exploring this avenue in future work may help to clarify whether the observed differences in brain complexity generalize beyond resting-state conditions and provide richer insights into the neurophysiological mechanisms under study.

In future studies, it would be valuable to extend our methodology beyond eyes-closed resting-state EEG to include task-related or stimulus-evoked EEG paradigms, and to examine joint complexity with other physiological signals such as electrocardiography (ECG) or respiration. Prior work has shown that EEG and ECG complexity correlate via multiscale entropy (52) and that complexity synchronization across organ systems may reveal deeper insights into neurophysiological regulation (53).

5 Conclusion

This study presents a machine learning framework integrating fuzzy logic to analyze EEG data, offering an objective tool for assessing addiction severity and treatment progress. By extracting Higuchi Fractal Dimension features, refining them with the Partition Membership method, and applying classifiers, we identified Multilayer Perceptron as the most effective model for distinguishing addiction stages. Traditional addiction assessments rely heavily on self-reported data, which can be incomplete, biased, or unreliable. The challenge of obtaining accurate treatment histories underscores the value of our approach: EEG-based complexity measures combined with fuzzy logic provide an objective and data-driven complement to traditional demographic and clinical assessments, helping to reduce dependence on self-explanation by addicted individuals. The findings highlight persistent brain function disruptions even after treatment initiation, emphasizing the need for objective, brain-based biomarkers. Overall, this work demonstrates the potential of AI-driven neurophysiological analysis to strengthen addiction research. Future efforts should prioritize broader validation and explore real-time monitoring applications, paving the way toward more personalized and effective treatment strategies.

Data availability statement

The raw data supporting the conclusions of this study can be found here: https://github.com/sajjad-nematzadeh/EEGOpium. Further inquiries can be directed to the corresponding author/s.

Ethics statement

The studies involving humans were approved by Ethical authorization for research was received through letter No. IR.UT.IRICSS.REC.1403.021 from the Ethics Committee of the Institute for Cognitive Science Studies on March 12, 2024. The studies were conducted in accordance with the local legislation and institutional requirements. The participants provided their written informed consent to participate in this study.

Author contributions

ED: Data curation, Investigation, Writing – review & editing. FA: Methodology, Conceptualization, Writing – review & editing. FV: Writing – review & editing, Software, Formal analysis. HL: Methodology, Conceptualization, Formal analysis, Investigation, Writing – original draft. SN: Software, Methodology, Writing – review & editing. MT-A: Software, Writing – review & editing. NA: Writing – review & editing. FK: Writing – review & editing, Supervision. PH-A: Data curation, Supervision, Conceptualization, Writing – review & editing, Project administration.

Funding

The author(s) declare that no financial support was received for the research, and/or publication of this article.

Conflict of interest

The authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.

The reviewer RK declared a shared affiliation with the author HL to the handling editor at time of review.

Generative AI statement

The author(s) declare that Generative AI was used in the creation of this manuscript. I want to express my sincere gratitude for the invaluable assistance provided by ChatGPT in editing the English language of my manuscript, meticulous attention to detail, enhanced clarity and coherence of the text, and creative ideas offered for the graphical abstract. This support has been essential in refining these elements of my work.

Any alternative text (alt text) provided alongside figures in this article has been generated by Frontiers with the support of artificial intelligence and reasonable efforts have been made to ensure accuracy, including review by the authors wherever possible. If you identify any issues, please contact us.

Publisher’s note

All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article, or claim that may be made by its manufacturer, is not guaranteed or endorsed by the publisher.

Supplementary material

The Supplementary Material for this article can be found online at: https://www.frontiersin.org/articles/10.3389/fpsyt.2025.1635933/full#supplementary-material

References

1. Yip SW, Scheinost D, Potenza MN, and Carroll KM. Connectome-based prediction of cocaine abstinence. Am J Psychiatry. (2019) 176:156–64. doi: 10.1176/appi.ajp.2018.17101147, PMID: 30606049

PubMed Abstract | Crossref Full Text | Google Scholar

2. Steele VR, Ding X, and Ross TJ. Addiction: Informing drug abuse interventions with brain networks. In: Connectomics. Elsevier (2019). p. 101–22. (Singapore: Springer Nature / Academic Press).

Google Scholar

3. Zou Z, Wang H, d’Oleire Uquillas F, Wang X, Ding J, and Chen H. Definition of substance and non-substance addiction. substance and non-substance addiction. (2017). pp. 21–41. (Singapore: Springer Nature Singapore Pte Ltd).

Google Scholar

4. Gao J, Hu J, Tung W-w, and Blasch E. Multiscale analysis of biological data by scale-dependent Lyapunov exponent. Front Physiol. (2012) 2:110. doi: 10.3389/fphys.2011.00110, PMID: 22291653

PubMed Abstract | Crossref Full Text | Google Scholar

5. Gao J, Cao Y, Tung W-w, and Hu J. Multiscale analysis of complex time series: integration of chaos and random fractal theory, and beyond. Hoboken, NJ, USA: John Wiley & Sons (2007).

Google Scholar

6. Chutia T and Baruah N. A review on emotion detection by using deep learning techniques. Artif Intell Rev. (2024) 57:203. doi: 10.1007/s10462-024-10831-1

Crossref Full Text | Google Scholar

7. Khare SK, Blanes-Vidal V, Nadimi ES, and Acharya UR. Emotion recognition and artificial intelligence: A systematic review (2014–2023) and research recommendations. Inf Fusion. (2024) 102:102019. doi: 10.1016/j.inffus.2023.102019

Crossref Full Text | Google Scholar

8. Jafari M, Shoeibi A, Khodatars M, Bagherzadeh S, Shalbaf A, García DL, et al. Emotion recognition in EEG signals using deep learning methods: A review. Comput Biol Med. (2023) 165:107450. doi: 10.1016/j.compbiomed.2023.107450, PMID: 37708717

PubMed Abstract | Crossref Full Text | Google Scholar

9. Zadeh L. Fuzzy sets. Inform Control. (1965) 8:338–53. doi: 10.1016/S0019-9958(65)90241-X

Crossref Full Text | Google Scholar

10. Byeon H, Quraishi A, Khalaf MI, Sunil M, Khan IR, Dutta AK, et al. Bio-inspired EEG signal computing using machine learning and fuzzy theory for decision making in future-oriented brain-controlled vehicles. SLAS Technol. (2024) 29:100187. doi: 10.1016/j.slast.2024.100187, PMID: 39209118

PubMed Abstract | Crossref Full Text | Google Scholar

11. Dhara T, Singh PK, and Mahmud M. A fuzzy ensemble-based deep learning model for EEG-based emotion recognition. Cogn Comput. (2024) 16:1364–78. doi: 10.1007/s12559-023-10171-2

Crossref Full Text | Google Scholar

12. Jiang X, Ou L, Chen Y, Ao N, Chang Y-C, Do T, et al. A fuzzy-based approach to predict human interaction by functional near-infrared spectroscopy. arXiv preprint arXiv:240917661. (2024).

Google Scholar

13. Shourie N, Firoozabadi M, and Badie K. Analysis of EEG signals related to artists and nonartists during visual perception, mental imagery, and rest using approximate entropy. BioMed Res Int. (2014) 2014:764382. doi: 10.1155/2014/764382, PMID: 25133180

PubMed Abstract | Crossref Full Text | Google Scholar

14. Güler I and Übeyli ED. Adaptive neuro-fuzzy inference system for classification of EEG signals using wavelet coefficients. J Neurosci Methods. (2005) 148:113–21. doi: 10.1016/j.jneumeth.2005.04.013, PMID: 16054702

PubMed Abstract | Crossref Full Text | Google Scholar

15. Rabcan J, Levashenko V, Zaitseva E, and Kvassay M. EEG signal classification based on fuzzy classifiers. IEEE Trans Ind Inform. (2021) 18:757–66. doi: 10.1109/TII.2021.3084352

Crossref Full Text | Google Scholar

16. Agounad S, Hamou S, Tarahi O, Moufassih M, and Islam MK. Intelligent fuzzy system for automatic artifact detection and removal from EEG signals. J King Saud University-Computer Inf Sci. (2022) 34:9428–41. doi: 10.1016/j.jksuci.2022.09.020

Crossref Full Text | Google Scholar

17. Hassouneh A, Mutawa A, and Murugappan M. Development of a real-time emotion recognition system using facial expressions and EEG based on machine learning and deep neural network methods. Inf Med Unlocked. (2020) 20:100372. doi: 10.1016/j.imu.2020.100372

Crossref Full Text | Google Scholar

18. Marvi N, Haddadnia J, and Bordbar MRF. An automated drug dependence detection system based on EEG. Comput Biol Med. (2023) 158:106853. doi: 10.1016/j.compbiomed.2023.106853, PMID: 37030264

PubMed Abstract | Crossref Full Text | Google Scholar

19. Zhou H, Zhang J, Gao J, Zeng X, Min X, Zhan H, et al. Identification of methamphetamine abusers can be supported by EEG-based wavelet transform and BiLSTM networks. Brain Topogr. (2024) 37:1217–31. doi: 10.1007/s10548-024-01062-2, PMID: 38955901

PubMed Abstract | Crossref Full Text | Google Scholar

20. Crane NA, Funkhouser CJ, Burkhouse KL, Klumpp H, Phan KL, and Shankman SA. Cannabis users demonstrate enhanced neural reactivity to reward: An event-related potential and time-frequency EEG study. Addictive Behav. (2021) 113:106669. doi: 10.1016/j.addbeh.2020.106669, PMID: 33035810

PubMed Abstract | Crossref Full Text | Google Scholar

21. Hosseini Z, Delpazirian R, Lanjanian H, Salarifar M, and Hassani-Abharian P. Computer gaming and physiological changes in the brain: an insight from QEEG complexity analysis. Appl Psychophysiol Biofeedback. (2021) 46:301–8. doi: 10.1007/s10484-021-09518-y, PMID: 34255228

PubMed Abstract | Crossref Full Text | Google Scholar

22. Nassr M, Daneshamuz B, Gharai B, Salehi M, Ardebili ME, and Ghalebandi MF. A Household Study on the Prevalence of Substance Misuse in Tehran: The need for other methods to estimate the prevalence. Iranian J Psychiatry. (2006) 1:158–61.

Google Scholar

23. Mokri A. Brief overview of the status of drug abuse in Iran. Arch Iran Med. (2002).

Google Scholar

24. Goldberg DP. User’s guide to the General Health Questionnaire. UK: Windsor (1988).

Google Scholar

25. Franken IH, Hendriks VM, and van den Brink W. Initial validation of two opiate craving questionnaires: the Obsessive Compulsive Drug Use Scale and the Desires for Drug Questionnaire. Addictive Behav. (2002) 27:675–85. doi: 10.1016/S0306-4603(01)00201-5, PMID: 12201376

PubMed Abstract | Crossref Full Text | Google Scholar

26. Sahebi A, Asghari MJ, and Salari RS. Validation of depression anxiety and stress scale (DASS-21) for an Iranian population. (2005).

Google Scholar

27. Montazeri A, Harirchi AM, Shariati M, Garmaroudi G, Ebadi M, and Fateh A. The 12-item General Health Questionnaire (GHQ-12): translation and validation study of the Iranian version. Health Qual Life Outcomes. (2003) 1:66. doi: 10.1186/1477-7525-1-66, PMID: 14614778

PubMed Abstract | Crossref Full Text | Google Scholar

28. Hassani-Abharian P, Mokri A, Ganjgahi H, Oghabian M-A, and Ekhtiari H. Validation for Persian versions of “desire for drug questionnaire” and “obsessive compulsive drug use scale” in heroin dependents. Arch Iranian Med. (2016) 19:0–., PMID: 27631182

PubMed Abstract | Google Scholar

29. Roozbehi Z, Mohaghegh M, Lanjanian H, and Abharian PH eds. (2020). Proposing two different feature extraction methods from multi-fractal detrended fluctuation analysis of electroencephalography signals: A case study on attention-deficit hyperactivity disorder, in: Neural Information Processing: 27th International Conference, ICONIP 2020, Bangkok, Thailand, November 18–22, 2020. Cham, Switzerland: Springer, Proceedings, Part V 27.

Google Scholar

30. Kesić S and Spasić SZ. Application of Higuchi’s fractal dimension from basic to clinical neurophysiology: A review. Comput Methods Programs Biomed. (2016) 133:55–70. doi: 10.1016/j.cmpb.2016.05.014, PMID: 27393800

PubMed Abstract | Crossref Full Text | Google Scholar

31. Higuchi T. Approach to an irregular time series on the basis of the fractal theory. Phys D: Nonlinear Phenomena. (1988) 31:277–83. doi: 10.1016/0167-2789(88)90081-4

Crossref Full Text | Google Scholar

32. Holmes G, Donkin A, and Witten IH eds. (1994). Weka: A machine learning workbench, in: Proceedings of ANZIIS’94-Australian New Zealnd Intelligent Information Systems Conference. Piscataway, NJ, USA: IEEE.

Google Scholar

33. Garner SR, Cunningham SJ, Holmes G, Nevill-Manning CG, and Witten IH eds. (1995). Applying a machine learning workbench: Experience with agricultural databases, in: Proc Machine Learning in Practice Workshop, Machine Learning Conference, Tahoe City, CA, USA. San Francisco / Burlington (USA): Elsevier.

Google Scholar

34. Witten IH and Eibe F. Data Mining: Practical Machine Learning Tools and Techniques. Amsterdam: Morgan Kaufman (2005).

Google Scholar

35. El-Manzalawy Y and Honavar V. WLSVM: integrating LibSVM into Weka environment (2005). Available online at: http://wwwcsiastateedu/yasser/wlsvm (Accessed October 2023).

Google Scholar

36. Liang P, Lei D, Chin K, and Hu J. Feature selection based on robust fuzzy rough sets using kernel-based similarity and relative classification uncertainty measures. Knowledge-Based Syst. (2022) 255:109795. doi: 10.1016/j.knosys.2022.109795

Crossref Full Text | Google Scholar

37. Yang X, Chen H, Li T, and Luo C. A noise-aware fuzzy rough set approach for feature selection. Knowledge-Based Syst. (2022) 250:109092. doi: 10.1016/j.knosys.2022.109092

Crossref Full Text | Google Scholar

38. Hassani Z, Alambardar Meybodi M, and Hajihashemi V. Credit risk assessment using learning algorithms for feature selection. Fuzzy Inf Eng. (2020) 12:529–44. doi: 10.1080/16168658.2021.1925021

Crossref Full Text | Google Scholar

39. Sokhadze TM, Cannon RL, and Trudeau DL. EEG biofeedback as a treatment for substance use disorders: review, rating of efficacy, and recommendations for further research. Appl Psychophysiol Biofeedback. (2008) 33:1–28. doi: 10.1007/s10484-007-9047-5, PMID: 18214670

PubMed Abstract | Crossref Full Text | Google Scholar

40. Kinreich S, Meyers JL, Maron-Katz A, Kamarajan C, Pandey AK, Chorlian DB, et al. Predicting risk for Alcohol Use Disorder using longitudinal data with multimodal biomarkers and family history: a machine learning study. Mol Psychiatry. (2021) 26:1133–41. doi: 10.1038/s41380-019-0534-x, PMID: 31595034

PubMed Abstract | Crossref Full Text | Google Scholar

41. Mondino A, Cavelli M, González J, Murillo-Rodriguez E, Torterolo P, and Falconi A. Effects of cannabis consumption on sleep. In: Cannabinoids and Sleep: Molecular, Functional and Clinical Aspects (2021). p. 147–62. (Switzerland: Springer)., PMID: 33537943

PubMed Abstract | Google Scholar

42. Struve FA, Straumanis JJ, Patrick G, Leavitt J, Manno JE, and Manno BR. Topographic quantitative EEG sequelae of chronic marihuana use: a replication using medically and psychiatrically screened normal subjects. Drug Alcohol Dependence. (1999) 56:167–79. doi: 10.1016/S0376-8716(99)00029-0, PMID: 10529019

PubMed Abstract | Crossref Full Text | Google Scholar

43. Seif M, Yousefi MR, and Behzadfar N. EEG spectral power analysis: A comparison between heroin dependent and control groups. Clin EEG Neurosci. (2022) 53:307–15. doi: 10.1177/15500594221089366, PMID: 35360976

PubMed Abstract | Crossref Full Text | Google Scholar

44. Zhao Q, Jiang H, Hu B, Li Y, Zhong N, Li M, et al. Nonlinear dynamic complexity and sources of resting-state EEG in abstinent heroin addicts. IEEE Trans Nanobiosci. (2017) 16:349–55. doi: 10.1109/TNB.2017.2705689, PMID: 28809667

PubMed Abstract | Crossref Full Text | Google Scholar

45. Koob GF and Volkow ND. Neurobiology of addiction: a neurocircuitry analysis. Lancet Psychiatry. (2016) 3:760–73. doi: 10.1016/S2215-0366(16)00104-8, PMID: 27475769

PubMed Abstract | Crossref Full Text | Google Scholar

46. Goldstein RZ and Volkow ND. Dysfunction of the prefrontal cortex in addiction: neuroimaging findings and clinical implications. Nat Rev Neurosci. (2011) 12:652–69. doi: 10.1038/nrn3119, PMID: 22011681

PubMed Abstract | Crossref Full Text | Google Scholar

47. Parbat D and Chakraborty M. A novel methodology to study the cognitive load induced EEG complexity changes: Chaos, fractal and entropy based approach. Biomed Signal Process Control. (2021) 64:102277. doi: 10.1016/j.bspc.2020.102277

Crossref Full Text | Google Scholar

48. Tang S and Li Z. EEG complexity measures for detecting mind wandering during video-based learning. Sci Rep. (2024) 14:8209. doi: 10.1038/s41598-024-58889-9, PMID: 38589498

PubMed Abstract | Crossref Full Text | Google Scholar

49. Cao Z, Ding W, Wang Y-K, Hussain FK, Al-Jumaily A, and Lin C-T. Effects of repetitive SSVEPs on EEG complexity using multiscale inherent fuzzy entropy. Neurocomputing. (2020) 389:198–206. doi: 10.1016/j.neucom.2018.08.091

Crossref Full Text | Google Scholar

50. Shamsi E, Ahmadi-Pajouh MA, and Ala TS. Higuchi fractal dimension: An efficient approach to detection of brain entrainment to theta binaural beats. Biomed Signal Process Control. (2021) 68:102580. doi: 10.1016/j.bspc.2021.102580

Crossref Full Text | Google Scholar

51. Kaushik P, Yang H, Roy PP, and van Vugt M. Comparing resting state and task-based EEG using machine learning to predict vulnerability to depression in a non-clinical population. Sci Rep. (2023) 13:7467. doi: 10.1038/s41598-023-34298-2, PMID: 37156879

PubMed Abstract | Crossref Full Text | Google Scholar

52. Lin P-F, Lo M-T, Tsao J, Chang Y-C, Lin C, and Ho Y-L. Correlations between the signal complexity of cerebral and cardiac electrical activity: a multiscale entropy analysis. PloS One. (2014) 9:e87798. doi: 10.1371/journal.pone.0087798, PMID: 24498375

PubMed Abstract | Crossref Full Text | Google Scholar

53. Mahmoodi K, Kerick SE, Grigolini P, Franaszczuk PJ, and West BJ. Complexity synchronization: a measure of interaction between the brain, heart and lungs. Sci Rep. (2023) 13:11433. doi: 10.1038/s41598-023-38622-8, PMID: 37454210

PubMed Abstract | Crossref Full Text | Google Scholar

Keywords: EEG data analysis, fuzzy logic, neural activity patterns, opium addiction, substance abuse treatment

Citation: DehAbadi E, Anka FA, Vafaei F, Lanjanian H, Nematzadeh S, Torkamanian-Afshar M, Aghahosseinzargar N, Kiani F and Hassani-Abharian P (2025) Analyzing EEG data during opium addiction treatment using a fuzzy logic-based machine learning model. Front. Psychiatry 16:1635933. doi: 10.3389/fpsyt.2025.1635933

Received: 27 May 2025; Accepted: 15 October 2025;
Published: 03 November 2025.

Edited by:

Rachel Davis-Martin, University of Massachusetts Medical School, United States

Reviewed by:

Li-Zhuang Yang, Chinese Academy of Sciences (CAS), China
Reza Khosrowabadi, Shahid Beheshti University, Iran
Hui Zhou, South Central Minzu University, China

Copyright © 2025 DehAbadi, Anka, Vafaei, Lanjanian, Nematzadeh, Torkamanian-Afshar, Aghahosseinzargar, Kiani and Hassani-Abharian. This is an open-access article distributed under the terms of the Creative Commons Attribution License (CC BY). The use, distribution or reproduction in other forums is permitted, provided the original author(s) and the copyright owner(s) are credited and that the original publication in this journal is cited, in accordance with accepted academic practice. No use, distribution or reproduction is permitted which does not comply with these terms.

*Correspondence: Hossein Lanjanian, aC5sYW5qYW5pYW5AdXQuYWMuaXI=; Peyman Hassani-Abharian, YWJoYXJpYW5AaWNzcy5hYy5pcg==

ORCID: Elnaz DehAbadi, orcid.org/0000-0002-3957-4234
Fateme Ayşin Anka, orcid.org/0000-0002-2795-6438
Fateme Vafaei, orcid.org/0000-0003-4724-1816
Hossein Lanjanian, orcid.org/0000-0003-4284-6592
Sajjad Nematzadeh, orcid.org/0000-0001-5064-2181
Mahsa Torkamanian-Afshar, orcid.org/0000-0002-8658-4013
Nazanin Aghahosseinzargar, orcid.org/0009-0001-0515-8152
Farzad Kiani, orcid.org/0000-0002-0354-9344
Peyman Hassani-Abharian, orcid.org/0000-0003-4683-066X

Disclaimer: All claims expressed in this article are solely those of the authors and do not necessarily represent those of their affiliated organizations, or those of the publisher, the editors and the reviewers. Any product that may be evaluated in this article or claim that may be made by its manufacturer is not guaranteed or endorsed by the publisher.