Skip to main content
PLOS ONE logoLink to PLOS ONE
. 2022 Dec 16;17(12):e0277257. doi: 10.1371/journal.pone.0277257

Application of machine learning and complex network measures to an EEG dataset from ayahuasca experiments

Caroline L Alves 1,2,*, Rubens Gisbert Cury 3, Kirstin Roster 2, Aruane M Pineda 2, Francisco A Rodrigues 2, Christiane Thielemann 1, Manuel Ciba 1
Editor: Yiming Tang4
PMCID: PMC9757568  PMID: 36525422

Abstract

Ayahuasca is a blend of Amazonian plants that has been used for traditional medicine by the inhabitants of this region for hundreds of years. Furthermore, this plant has been demonstrated to be a viable therapy for a variety of neurological and mental diseases. EEG experiments have found specific brain regions that changed significantly due to ayahuasca. Here, we used an EEG dataset to investigate the ability to automatically detect changes in brain activity using machine learning and complex networks. Machine learning was applied at three different levels of data abstraction: (A) the raw EEG time series, (B) the correlation of the EEG time series, and (C) the complex network measures calculated from (B). Further, at the abstraction level of (C), we developed new measures of complex networks relating to community detection. As a result, the machine learning method was able to automatically detect changes in brain activity, with case (B) showing the highest accuracy (92%), followed by (A) (88%) and (C) (83%), indicating that connectivity changes between brain regions are more important for the detection of ayahuasca. The most activated areas were the frontal and temporal lobe, which is consistent with the literature. F3 and PO4 were the most important brain connections, a significant new discovery for psychedelic literature. This connection may point to a cognitive process akin to face recognition in individuals during ayahuasca-mediated visual hallucinations. Furthermore, closeness centrality and assortativity were the most important complex network measures. These two measures are also associated with diseases such as Alzheimer’s disease, indicating a possible therapeutic mechanism. Moreover, the new measures were crucial to the predictive model and suggested larger brain communities associated with the use of ayahuasca. This suggests that the dissemination of information in functional brain networks is slower when this drug is present. Overall, our methodology was able to automatically detect changes in brain activity during ayahuasca consumption and interpret how these psychedelics alter brain networks, as well as provide insights into their mechanisms of action.

1 Introduction

Ayahuasca is made from a blend of Amazonian herbs [1]. This combination of plants is often associated with rituals of different religions and social groups. Ayahuasca has been used in the Amazon for a couple of hundred years, being part of the traditional medicine of the indigenous population within this region [2].

Since the use of ayahuasca has spread throughout many countries, it is necessary to study in depth its cerebral mechanisms and its potential clinical implications. In addition, because it affects brain areas related to emotions, memories, and executive functions, ayahuasca might be used in the treatment of psychiatric disorders, such as drug addiction [35], Parkinson’s disease [69], and depression [1016]. For example, an open-label clinical study found significant therapeutic benefits among patients with treatment-resistant major depressive disorder after the administration of a single dose of ayahuasca [12]. Moreover, a randomized trial showed that ayahuasca doses were associated with reductions in depressive symptoms in patients with major depressive disorder, compared to placebo treatments [11].

Additionally, ayahuasca has been shown to elicit anti-neuroinflammatory properties [16] and stimulate adult neurogenesis in vitro [17]. In this line, ayahuasca could be helpful for the treatment of several neurological diseases well known to harbor inflammation in its physiopathology [18], including chronic degenerative diseases and illnesses related to acute injury, such as cerebral ischemia, multiple sclerosis, and Alzheimer’s disease (AD) [19, 20].

The EEG data studied here are from [21], from subjects who ingested ayahuasca. This study observed slow-gamma power increases at the left Centro-parietal-occipital, left frontotemporal, and right frontal cortices. In contrast, fast-gamma increases were significant at the left Centro-parieto-occipital, left frontotemporal, right frontal, and right parieto-occipital cortices due to ayahuasca ingestion. As a result, this study concentrated solely on the changes in frequency bands caused by the use of the psychedelic substance.

Despite the enormous therapeutic potential of ayahuasca, in most countries, it is an illegal substance and only legalized for religious use, such as in Brazil. Therefore, few studies on human beings are found in the literature, and more research is needed on how this substance alters the brain and its mechanism of action.

The use of graph theory mathematical approaches gave intriguing insights into the intricate network structure of the human brain, which is also related with pathological states [2225]. Notably, complex networks have been employed as biomarkers for a variety of disorders [26, 27]. Furthermore, the community detection algorithm (also referred to as the clustering graph) is a fundamental analysis technique that aims to identify densely connected structures within complex networks [2830]. Several studies have used complex network measurements and community detection algorithms to detect brain activity in EEG data recently [3133]

Because of the increased amount of data related to health, such as medical records, exams of patients, and hospital resources, machine learning (ML) algorithms have become more applicable, primarily for medical diagnosis [3437], in order to provide more accurate and automatic investigations of various diseases [38] and may be an important tool capable of detecting acute and permanent abnormalities in the brain. In addition, many studies have utilized machine learning algorithms to capture brain activity using raw EEG time series [39, 40], the correlation between electrodes [41, 42], and complex network measures [23].

Also, in contrast to traditional statistical methods, the ML approach has the advantage that it does not rely on prior assumptions (such as adequate distribution, independence of observations, absence of multicollinearity, and interaction problems) and is also well suited to analyze and capture complex nonlinear relationships in data automatically. Nevertheless, new techniques have emerged to assist in interpreting machine learning results, e.g., SHapley Additive Explanations (SHAP) values. Any machine learning algorithm may use this metric for identifying and prioritizing features [4345].

The purpose of this study is to determine whether it is possible to automatically detect the changes in brain activity after intake of ayahuasca with machine learning methods using the following data abstraction levels for the input: (A) raw EEG time series, (B) the correlation between the EEG electrodes as used in (A) represented by a connectivity matrix, and (C) complex network measures extracted from (B). In contrast to articles in the literature that use only one of these levels of abstraction, this study uses all three levels. In addition, we define which of these abstraction levels is most appropriate for capturing ayahuasca-induced brain changes. The SHAP value method has also been shown to be more effective than the studies cited above in identifying the best brain regions, the best connections between the brain regions, and the best measures of complex networks, which can be used to interpret the effects of the psychedelic substance on the brain. A final result of this research was the creation of new measures that have never been used before within the literature, which can be used as input to machine learning algorithms to assess the size of community structures.

2 Materials and methods

The python code used for the analysis is available at https://github.com/Carol180619/Paper-ayahuasca.git.

2.1 Data

The data used for this study has been made openly available by the Federal University of São Carlos, Brazil [21]. Sixteen healthy male and female patients with prior ayahuasca experience (eight women, mean 29.0 years; 12 men, mean 38.5 years) agreed (with written permission) to consume this psychedelic substance while EEG recordings were made (The following exclusion criteria were used: minors than the age of 21 years, personal history of psychiatric illness, current use of any psychiatric medication, cardiovascular disease, and any neurological disorders or brain damage in the previous year). All methodologies for this investigation were approved by the Universidade Federal de São Paulo’s Ethical Committee, and the study was carried out in compliance with available criteria for human hallucinogen research safety [46].

Patients were instructed to close their eyes and remain in a resting condition. A nurse accompanied the experiment for its duration of 225 minutes. The recordings began 25 minutes before ayahuasca consumption and ended 200 minutes afterward. The main compounds in the brew were [21]: Dimethyltryptamine (DMT), DMTN-oxide (DMT-NO), N-methyltryptamine (NMT), indoleacetic acid (IAA), 5-hydroxy-DMT (5-OH-DMT, or bufotenin), 5-methoxy-DMT (5-MeO-DMT), Harmine, Harmol, Harmaline, Harmalol, THH, 7-hydroxy-tetrahydroharmine (THH-OH), and 2-methyl-tetrahydro-beta- carboline (2-MTHBC). All recordings were downsampled to 500 Hz, bandpass filtered between 0.5 and 150 Hz, and artifacts due to movements were removed. Recordings were made with 62 electrodes, following the EEG electrode positions in the 10–10 system. These channels are: Fp1, Fz, F3, F7, FT9, FC5, FC1, C3, TP9, CP5, CP1, Pz, P3, P7, O1, Oz, P8, TP10, CP6, CP2, C4, T8, FT10, FC6, FC2, F4, F8, Fp2, AF7, AF3, AFz, F1, F5, FT7, FC3, FCz, C1, C5, TP7, CP3, P1, P5, PO7, PO3, POz, PO4, PO8, P6, P2, CPz, CP4, TP8, FC4, FT8, F6, F2, AF4, AF8, O2, P4, C6, and C2 (see in Appendix A (Fig 13) of S1 Appendix). It is worth mentioning that after using ayahuasca, all individuals experienced notable alterations in their typical state of consciousness.

Further details are given in [21].

2.2 Machine learning algorithm

2.2.1 Classification

In order to classify the (A) EEG time series, (B) the connectivity matrices, and (C) the complex network measures, the support vector machine (SVM) [47] algorithm was used. SVM has been used with superior results for the classification of complex network measures before by other groups [4850] and performed superior in our comparative evaluation. In this analysis, we compared the following machine learning methods to classify the complex network measures: Random forest (RF) [51], SVM [47], naive bayes (NB) [52], multilayer perceptron (MLP) [53], stochastic gradient descent with linear models classifier (SGD) [54], logistic regression (LR) [55] and extreme Gradient Boosting classifier [56] (XGBoost). The results can be found in Appendix C in S1 Appendix.

A more robust deep learning (DL) algorithm from [41] (in which the model was named tuned convolutional neural network) was also tested. The results using DL are in the Appendix D in S1 Appendix.

2.2.2 Resampling and evaluation

The dataset was resampled by separating it into training (train) and test sets, with 25% of data composing the test set. Then, for a reliable model, a k-cross validation was used [57], with k = 10 (value widely used in the literature [5862]). A hyper-parameter optimization called grid search was used here, similar to [6367]. The hyper-parameter optimization values used for each classifier models can be found in Appendix C in S1 Appendix.

For evaluation, accuracy (Acc.) was used as the standard performance metrics, as is the state-of-art in the literature [37, 6871]. Since the problem here is a two-class (negative and positive) classification problem, other metrics considered here are the measures of precision and recall, also commonly used in the literature [7275]. Precision (also called positive predictive value) is the proportion of relevant instances among those retrieved. Whereas recall (also called sensitivity) measures how well a classifier can predict positive examples (hit rate in the positive class), here related with an effect of the ayahuasca. Another measure used here and also used in literature [64, 76, 77] is the F1 score which is the harmonic mean of the recall and precision [78]. For visualization of these two latter measures, the receiver operating characteristic (ROC) curve is a standard method as it displays the relation between the rate of true positives and false positives. The area below this curve, called the area under the ROC curve (AUC), has been widely used in classification problems [66, 68, 79, 80]. The value of the AUC varies from 0 to 1, where the value of one corresponds to a classification result free of errors. AUC = 0.5 indicates that the classifier is not able to distinguish the two classes; this result is equal to the random choice. Furthermore, we consider the micro average of the ROC curve, which computes the AUC metric independently for each class (calculate AUC metric for healthy individuals, class zero, and separately calculate for unhealthy subjects, class one), and then the average is computed considering these classes equally. The macro average is also used in our evaluation, which does not consider both classes equally, but aggregates the contributions of the classes separately and then calculates the average.

Furthermore, we interpret the machine learning results using SHapley Additive exPlanations (SHAP) values [81] to quantify the importance of the complex measures, connections of brain regions, and location of electrodes for the classification result. This metric enables the identification and prioritization of features and can be used with any machine learning algorithm [4345].

2.3 Input data for machine learning

The following three data abstraction levels were applied to a classification algorithm as described in subsection 2.2 Machine learning algorithm: (2.3.1 EEG time series) the EEG time series (Fig 1), (2.3.2 Connectivity matrices) the connectivity matrix calculated by means of the Pearson correlation of the EEG time series (Fig 2), and (2.3.3 Complex network measures) the complex network measures calculated from the connectivity matrix (Fig 3).

Fig 1. Methodology of the subsection using raw EEG time series.

Fig 1

For each participant, the EEG time series was split into three parts. Those corresponding to the first window were labeled as class 0 (no effect of ayahuasca) and those corresponding to the second and third windows as class 1 (under the influence of ayahuasca), and then SVM was used. The objective was to determine which brain parts are most influenced by ayahuasca consumption. The crucial areas discovered using the SHAP values approach are emphasized in the illustration.

Fig 2. Methodology of the subsection using connectivity matrices.

Fig 2

For each of the time windows, the Pearson correlation connectivity matrix was generated, and then they were classified with the SVM method considering the first window as zero label (without ayahuasca) and the other two as one label (with ayahuasca). This analysis aimed to verify the best connections of the brain areas used during ayahuasca use. The principal connection discovered using the SHAP value approach is depicted in the picture.

Fig 3. Methodology of the subsection using complex network measures.

Fig 3

The EEG time series is divided into three parts. For each of them, the Pearson correlation was calculated. For each window, a connectivity matrix was generated (in the Fig, the connectivity matrix of the first window of the first subject containing the 62 electrodes, the color bar containing the connection strength between these electrodes). A graph was formed for each of them (in the Fig, the graph of this connectivity matrix has 62 nodes and the connection strength according to the color bar and the node size according to its number of connections), and complex network measures are extracted from them.

2.3.1 EEG time series

The data was divided into three “time windows” (see Table 1). The first window (25 minutes before ingestion until 50 minutes after ingestion of ayahuasca) was defined as the “control”. This is reasonable as it is known from [21], that the blood plasma concentration of the main psychedelic compound DMT is low until 50 minutes after ingestion. Windows two and three were both defined as thoroughly influenced by ayahuasca. The ayahuasca-influenced time series were divided into two windows to enhance the quantity of data points for the machine learning method. Even though the number of independent samples (subjects) did not change, increasing the data points by splitting the time series is a common machine learning approach [82, 83]. Even though the number of independent samples (subjects) did not change, increasing the data points by splitting the time series is a standard machine learning approach. Furthermore, in the following classification task, only two classes will be labeled class zero (without ayahuasca) and labeled class one (with ayahuasca). The scheme of this methodology is shown in Fig 1. All participants’ EEG time series were successively combined and stored in a 2D matrix to feed the data into the machine learning algorithm. Each column represents an electrode, and each row represents the amplitude of each time point of the EEG signal. For each of the three time windows, a 2D matrix was constructed.

Table 1. Definition of time windows of the EEG signal.

Window 1 is considered the control (without effect of ayahuasca), window 2 and 3 are considered as recordings under the influence of ayahuasca.

Time window Ingestion of ayahuasca at t = 0 minutes
1 -25 to 50 minutes
2 50 to 125 minutes
3 125 to 200 minutes

2.3.2 Connectivity matrices

The matrices of connectivity were calculated by the well known Pearson correlation. It is a widely used and successfully approved measure to capture the correlation of EEG electrodes [8488].

The Pearson correlation was calculated for all electrode pairs resulting in three connectivity matrices per participant (for each time window). Fig 2 illustrates the workflow of this approach. The connectivity matrices were flattened into one vector to input the data into the machine learning algorithm. Then, all vectors were sequentially merged into a 2D matrix. Each column represents a connection between two brain regions, and each row represents a subject. Such a 2D matrix was generated for each of the three time windows.

2.3.3 Complex network measures

For each connectivity matrix (see subsection 2.3.2 Connectivity matrices), a graph was generated to extract different complex network measures. The complex network measures were stored in a matrix to input the data into the machine learning algorithm. Each column represents a complex network measure, and each row a subject. Such a 2D matrix was generated for each of the three time windows. The following complex network measures were calculated: Assortativity [89, 90], average path length (APL) [91], betweenness centrality (BC) [92], closeness centrality (CC) [93], eigenvector centrality (EC) [94], diameter [95], hub score [96], average degree of nearest neighbors [97] (Knn), mean degree [98], second moment degree (SMD) [99], entropy degree [100], transitivity [101, 102], complexity, k-core [103, 104], eccentricity [105], density [106], and efficiency [107]. Furthermore, newly developed metrics reflecting the number of communities in a complex network are used in this paper.

Furthermore, newly developed metrics reflecting the number of communities in a complex network are used in this paper. We perform the community detection algorithms to find the largest community, then calculate the average path length within this community and receive a single value as a result (that will be used to feed ML algorithm). The community detection algorithms used were:

  • Fastgreedy community (FC) is defined in [108] as a hierarchical agglomerative clustering algorithm aimed at maximizing the modularity measure defined in [109].

  • Infomap community (IC) Infomap community (IC) described in [110], the purpose behind this technique is to exploit the dynamics of random walks. This is accomplished by employing Huffman’s method [111] and then calculating the minimization of the map equation to determine the number of communities [110].

  • Leading eigenvector community (LC) is defined in [112]. It aims to calculate the eigenvector of the modularity matrix for the largest positive eigenvalue and then separate the vertices into two communities based on the sign of the corresponding element in the eigenvector.

  • Label propagation community (LPC) is defined in [113]. It is an optimization algorithm [114] in which, at first, each node in the network has a label indicating its assignment, and then each node updates its label according to the label with the maximum number in its neighbors. This process is repeated until the network reaches a stable state and nodes with the same class are considered to belong to the same community. [115].

  • Edge betweenness community (EBC) is defined in [109] is a divisive model based on the BC. At each iteration, this measure is calculated for all edges, and the one with the highest value of this measure is eliminated until the network contains N elements resulting in a hierarchical distribution of communities. The one with the highest modularity is adopted.

  • Spinglass (SPC) is defined in [116] this algorithm considers the spin state of nodes as communities and tries to minimize the spin energy until it finds a ground state of the spin-glass model [117].

  • Multilevel community (ML) Multilevel community (ML) is a greedy optimization method using modularity and is defined in [118].

Since the community detection algorithms were combined with the average path length, we extended the abbreviations by the letter “A” as follows: AFC, AIC, ALC, ALPC, AEBC, ASPC, and AMC.

Fig 3 depicts the entire workflow.

3 Results

The highest classification performance was obtained using the connectivity matrices with an accuracy of 92%, followed by the EEG time series (88%) and the complex network measures (83%) (see Table 2). The following subsections 3.1 EEG time series, 3.2 Connectivity matrices and 3.3 Complex network measures contain the results in more detail.

Table 2. Performances of the SVM classifier for the different data types used in this paper.

The best performance is highlighted in bold. The classification of connectivity matrices best captured the changes in the brain due to ayahuasca.

Type of data Subset AUC Acc. F1 score Recall Precision
EEG time series Train 0.87 0.89 0.88 0.87 0.89
Test 0.85 0.88 0.86 0.85 0.86
Connectivity matrix Train 0.92 0.94 0.93 0.92 0.96
Test 0.88 0.92 0.90 0.88 0.94
Complex measure Train 0.79 0.81 0.79 0.79 0.78
Test 0.75 0.83 0.78 0.75 0.90

3.1 EEG time series

The performance of the test sample using the EEG time series was mean AUC of 0.85, mean precision of 0.88, mean F1 score of 0.86, mean recall of 0.85, and mean accuracy of 0.86. The precision measure is related to the positive class (with ayahuasca). Since the precision measure was slightly higher than the recall measure, the model can better detect the presence of ayahuasca instead of the absence of it.

In Fig 4, the confusion matrix (Fig 4A), the learning curve (Fig 4B), and the ROC curve (Fig 4C) are plotted.

Fig 4. Machine learning results using the EEG time series as input data.

Fig 4

A) Confusion matrix indicating a true negative rate of 92.1% (blue according to the color bar) and a true positive rate of 78.3% (orange according to the color bar). B) Learning curve for the training accuracy (blue) and for test accuracy (green). C) ROC curve of class 0 (without ayahuasca) and class 1 (with ayahuasca). The gray dotted curve is the macro-average accuracy (area under curve = 0.85) and the pink one the random classifier.

The learning curve evaluates the predictability of the model by varying the size of the training set [45]. Fig 4B shows that the highest accuracy in the test sample can only be achieved when the entire database is used.

Not all electrodes of the EEG recording were equally important for the classification. According to the SHAP values, the most important region for the model was T7, located in the temporal region (see Fig 5). In order of importance, this region was followed by FC1, Fp1, P5, and Fz, located between frontal and central, frontal and parietal, parietal and frontal, respectively (see Fig 6A). In addition, Fig 6B shows details of the impact of each feature on the model. Positive SHAP values are shown when the presence of ayahuasca is detected, and negative SHAP values are shown when the absence of ayahuasca is detected. The colors indicate whether the feature value was low (blue) or high (red). Since the feature consists of the amplitudes of the EEG time series, it can be seen that for T7, the low amplitudes (blue dots) were important to detect the absence of ayahuasca (negative SHAP values), and the high amplitudes (red dots) were important to detect the presence of ayahuasca (positive SHAP values).

Fig 5. Feature importance ranking for SVM classifier being the brain regions ranked in descending order of importance.

Fig 5

Brain region T7 is most important to classify the effect of ayahuasca. A) Feature ranking based on the average of absolute SHAP values over all subjects considering both classes (gray:without ayahuasca, cyan: with ayahuasca). B) Same as A) but additionally showing details of the impact of each feature on the model.

Fig 6. The five most important brain regions considering EEG time series as input data.

Fig 6

A)—Sagittal left plane showing the brain region for the channel T7 and P5. B) Axial dorsal plane showing the brain regions Fz, Fp1 and FC1. The brain plot was made using Braph tool [119], based on the coordinates in [120, 121].

3.2 Connectivity matrices

For the connectivity matrices, the test sample performance was a mean AUC of 0.88, mean accuracy of 0.92, mean F1 score of 0.90, mean recall of 0.88, and mean precision of 0.94.

Similar to the previous subsection 3.1 EEG time series, the precision measure was higher than the recall measure and therefore the model can better detect the presence of ayahuasca. In Fig 7, the confusion matrix (Fig 7A), the learning curve (Fig 7B), and the ROC curve (Fig 7C)are plotted. Similar to EEG time series, the learning curve for the connectivity matrices shows that the highest accuracy in the test sample can only be achieved when the entire database is used.

Fig 7. Machine learning results using the connectivity matrices as input data.

Fig 7

A) Confusion matrix indicating a true negative rate of 75% (orange according to the color bar) and a true positive of 100% (blue according to the color bar). B) Learning curve for the training accuracy (blue) and for test accuracy (green). C) ROC curve of class 0 (without ayahuasca) and class 1 (with ayahuasca). The gray dotted curve is the macro-average accuracy (area under curve = 0.88) and the pink one the random classifier.

In order to reveal the importance of the brain connections, the SHAP values were used as in the preview subsection 3.1 EEG time series. The results are shown in Fig 8. From that the most important connection was between F3 (frontal region) and PO4 (between parietal and occipital region). In addition, in Fig 8B it can be seen that for the connection between F3 and PO4, low values of correlation (blue dots) were important for detecting the absence of ayahuasca (negative SHAP values), and high values of correlation (red dots) were important for detecting the presence of ayahuasca (positive SHAP values).

Fig 8. Feature importance ranking for SVM classifier being the connections of brain regions ranked in descending order of importance.

Fig 8

The connection between the regions PO4 and F3 is the most important to classify the effect of ayahuasca. A) Feature ranking based on the average of absolute SHAP values over all subjects considering both classes (gray: without ayahuasca, cyan: with ayahuasca). B) Same as A) but additionally showing details of the impact of each feature on the model.

The location in the brain can be seen in Fig 9.

Fig 9. The most important connection of brain regions considering connectivity matrices as input data.

Fig 9

Axial dorsal plane showing the brain regions connection between F3 and PO4. The brain plot was made using Braph tool [119], based on the coordinates in [120, 121].

3.3 Complex network measures

The test sample performance using the complex network measures was a mean AUC of 0.75, mean accuracy of 0.83, mean F1 score of 0.78, mean recall of 0.75, and mean precision of 0.90.

Similar to the previous subsections 3.1 EEG time series and 3.2 Connectivity matrices, the precision measure was higher than the recall measure, and therefore the model can better detect the presence of ayahuasca.

In Fig 10, the confusion matrix (Fig 10A), the learning curve (Fig 10B), and the ROC curve (Fig 10C) are plotted. Again, the entire database is necessary in order to get the highest accuracy.

Fig 10. Machine learning results using the complex network measures as input data.

Fig 10

A) Confusion matrix indicating a true negative rate of 50% (orange according to the color bar) and a true positive rate of 100% (blue according to the color bar). B) Learning curve for the training accuracy (blue) and for test accuracy (green). C) ROC curve of class 0 (without ayahuasca) and class 1 (with ayahuasca). The gray dotted curve is the macro-average accuracy (area under curve = 0.75) and the pink one the random classifier.

From the SHAP values in Fig 11 it can be seen that the most important measure for the model was the CC, followed by assortativity, and the newly introduced measures ASC and ASPC. In addition, in Fig 11B can be seen that for the CC measure, low values of this metric (blue dots) were important for detecting the absence of ayahuasca (negative SHAP values), and high values of this metric (red dots) were important for detecting the presence of ayahuasca (positive SHAP values).

Fig 11. Feature importance ranking for SVM classifier being the features ranked in descending order of importance.

Fig 11

The CC measure is the most important to classify the effect of ayahuasca. A) Feature ranking based on the average of absolute SHAP values over all subjects considering both classes (gray: without ayahuasca, cyan: with ayahuasca). B) Same as A) but additionally showing details of the impact of each feature on the model.

4 Discussion

In this paper, we aimed to answer the question if it is possible to automatically detect brain activity changes due to ayahuasca using machine learning and which features are most important and could act as biomarkers.

Our results show that it is possible to automatically detect the changes due to ayahuasca. The classification accuracy was above 75% for all three data abstraction levels. The classification accuracy of connectivity matrices was higher than the raw EEG time series, suggesting that connection changes are more important between brain regions than within brain regions. This result is important since the connectivity matrices improved the accuracy and produced efficiency gains, such as reduced data storage and faster machine learning training. This would be especially useful for larger datasets, where raw time series may be very costly, for example, in hospital diagnosis systems.

4.1 EEG time series

The raw EEG time series analysis revealed that the frontal and the temporal lobe were the most affected brain regions. In line with that, studies using single photon emission computed tomography (SPECT) have reported that ayahuasca increases blood perfusion in the frontal regions of the brain, more specifically, the insula, left nucleus accumbens, left amygdala, parahippocampal gyrus, and left the subgenual area [16, 122]. Furthermore, works using functional magnetic resonance imaging have observed activation in the brain’s occipital, temporal, and frontal areas [10, 123]. These regions are related to introspection, emotional processing, and the therapeutic effects of traditional antidepressants [124] and most interestingly, it may also affect motor and cognitive functions in other neurological disorders, such as Parkinson’s disease and Alzheimer’s disease, respectively [125, 126].

4.2 Connectivity matrices

The correlation between the left frontal cortex (F3) and right parietal-occipital (PO4) was most important in terms of brain connections.

[127] showed that synchronization in the gamma band between the parietal-occipital and frontal cortices was present during face recognition tasks. Since the EEG time series data used in this work only contained the gamma band, the P04-F3 connection could point to similar cognitive processes in the subjects during ayahuasca-mediated visual hallucinations.

4.3 Complex network measures

The most important complex network measure was CC. CC is a centrality measure that can be defined as the inverse of the average length of the shortest path from one node to all other nodes in the network [128]. The idea is that important nodes participate in many shortest paths within a network and, therefore, play an important role in the flow of information in the brain [93]. The CC was also the most important measure in other papers related to the differentiation of patients with AD [129132]. In these papers, CC was shown to decrease due to AD disease, while ayahuasca ingestion increased the median value of this measure (see Fig 12).

Fig 12. Boxplot of the closeness centrality and assortativity measures.

Fig 12

These measures were calculated for all subjects in the first, second and third windows (respectively in pink, green and blue). It can be seen that the median of the closeness centrality measure (central bar in the boxplot) increased with the use of ayahuasca. The median of the assortativity, in contrast, decreased with the use of ayahuasca.

The second most important complex network measure was assortativity. This measure refers to the resilience of networks [90]. A positive assortativity coefficient indicates a network with a resilient core due to the interconnected nodes of high degree [128]. This measure was also associated with AD in several works [133, 134] whose results showed an increase in the assortativity value in contrast to what was found here, where with the use of ayahuasca, the assortativity value (median) decreased (see on Fig 12). It should be noted that although the median value decreased, the upper confidence interval of the distribution increased.

In summary, the results suggest a possible relationship between ayahuasca and AD in terms of the brain network, indicating a therapeutic potential. Indeed, a possible mechanism of how ayahuasca acts against AD was described in [19]. According to this, the ayahuasca compound dimethyltryptamine (DMT) agonizes the sigma 1 receptor (Sig-1R) and thereby regulates endoplasmic reticulum (ER) stress and Unfolded Protein Response (UPR), which are thought to play a crucial role in neuropsychiatric diseases such as AD.

The seven measures developed here concerning community detection are ranked among the twenty most important measures for classification, with ALC ranking third (see Fig 11). ALC is associated with the size of the largest community found by the leading eigenvector community (LC) detection algorithm. This metric shows increased values (compared to controls) in communities with larger path lengths after the use of ayahuasca (Fig 11B), indicating communities with larger paths after using this psychedelic. Larger brain communities were also found in [135] after the use of ayahuasca. There are two contrasting concepts in the brains of large vertebrates: functional segregation (or specialization) and integration (or distributed processes) [136, 137]. Larger communities also indicate that the balance between functional segregation and integration in the brain was disrupted. This suggests that the distribution of information is slower.

Overall, the classification was successful by considering the complete set of measures rather than just one single measure. As shown in Fig 12, even the most important measures CC and assortativity, did not show much difference between the first window (without ayahuasca) and the other windows (with ayahuasca). Together with the other less important measures, however, the machine learning method was able to distinguish both classes successfully. This leads to the conclusion that a single feature is insufficient as a biomarker, while the different features used in this work may serve as a biomarker.

5 Conclusion

In summary, the results obtained in our study demonstrated that the application of machine learning methods was able to detect changes in brain connectivity during ayahuasca use automatically. Additionally, we demonstrated that the connectivity matrices are the best abstraction level to detect brain changes caused by this psychedelic.

At level abstraction A, our findings suggest that this substance affects important brain regions related to cognitive, psychiatric, and motor functions. These effects may alleviate different symptoms of diseases affecting the brain.

At level abstraction B, the connection between F3 and PO4 is the most important while using ayahuasca according to our classifier model, a significant discovery in psychedelic literature. This connection may point to a cognitive process similar to face recognition in individuals during ayahuasca-mediated visual hallucinations.

Concerning the complex network measures at level abstraction C, CC, assortativity, and one of the new measures developed here, ALC, capture the best brain changes caused by ayahuasca. The new ALC measure inferred that larger communities are associated with this psychedelic and the opposite in its absence. Larger communities suggest that the distribution of information is slower with the use of this substance. Therefore, the present study’s findings support that cortical brain activity becomes more entropic under psychoactive substances. [138140]. There is, however, evidence that psychedelics do not simply make the brain more random, but after the typical organization of the brain is disrupted, strong and topologically far-reaching functional connections emerge which are not present in the natural state of mind.

While our methodology has proven effective, it is focused on the acute evaluation of psychedelics. Consequently, more research is necessary to determine how psychedelics affect the functional connectivity of the brain over the long term using our workflow.

In summary, we have developed a robust computational workflow that provides insights into the mechanism of action of ayahuasca and the interpretability of how it modifies brain networks.

Finally, the same methodology applied here may help interpret EEG time series from patients who consumed other psychedelic drugs, such as pure DMT [141]. In future work, we aim to apply this workflow to recordings from our laboratory using in vitro neuronal networks on microelectrode arrays to study the effects of psychedelics at a single network level. Thus, regardless of the equipment used to collect the data, we would like to verify whether the same method used here can detect changes due to different psychedelics.

Supporting information

S1 Appendix

(PDF)

Data Availability

The data used in this work may be obtained here: Ekman Schenberg, Eduardo, 2015, "Acute Biphasic effects of ayahuasca", https://doi.org/10.7910/DVN/VVE6QC, Harvard Dataverse, V1 This information may be found here: Schenberg EE, Alexandre JFM, Filev R, Cravo AM, Sato JR, Muthukumaraswamy SD, et al. (2015) Acute Biphasic Effects of Ayahuasca. PLoS ONE 10(9): e0137202. https://doi.org/10.1371/journal.pone.0137202 doi: 10.1371/journal.pone.0137202 We also uploaded the Pearson connectivity matrix from the original data in the following Figshare repositories here: Pearson’s connection matrix of the EEG experiments of subjects who ingested Ayahuasca at the time after the psychedelic activation time can be found here: Alves, Caroline (2022): With-ayahuasca. Figshare repository. Dataset. https://doi.org/10.6084/m9.figshare.21082513.v1 Pearson’s connection matrix of the EEG experiments of subjects who ingested Ayahuasca at the time before the psychedelic activation time: Alves, Caroline (2022): No-ayahuasca. Figshare repository. Dataset. https://doi.org/10.6084/m9.figshare.21082531.v1.

Funding Statement

This study was financially supported by Conselho Nacional de Desenvolvimento Científico e Tecnológico (CNPq) in the form of a grant awarded to FAR (309266/2019-0). This study was also financially supported by Fundação de Amparo à Pesquisa do Estado de São Paulo (FAPESP) in the form of grants awarded to FAR (19/23293-0), AMP (2019/22277-0) and KR (2019/26595-7). The funders had no role in study design, data collection and analysis, decision to publish, or manuscript preparation.

References

  • 1. Metzner R. Hallucinogenic drugs and plants in psychotherapy and shamanism. Journal of psychoactive drugs. 1998;30(4):333–341. doi: 10.1080/02791072.1998.10399709 [DOI] [PubMed] [Google Scholar]
  • 2. de Araújo DB. Evidence for the therapeutic effects of Ayahuasca. Advances in psychedelic medicine State-of-the-art therapeutic applications. 2019; p. 103–23. [Google Scholar]
  • 3. Bouso JC, Riba J. Ayahuasca and the treatment of drug addiction. In: The therapeutic use of ayahuasca. Springer; 2014. p. 95–109. [Google Scholar]
  • 4. Fernández X, Fábregas JM. Experience of treatment with ayahuasca for drug addiction in the Brazilian Amazon. In: The therapeutic use of ayahuasca. Springer; 2014. p. 161–182. [Google Scholar]
  • 5. Giovannetti C, Garcia Arce S, Rush B, Mendive F. Pilot evaluation of a residential drug addiction treatment combining traditional Amazonian medicine, ayahuasca and psychotherapy on depression and anxiety. Journal of Psychoactive Drugs. 2020;52(5):472–481. doi: 10.1080/02791072.2020.1789247 [DOI] [PubMed] [Google Scholar]
  • 6. Serrano-Dueñas M, Cardozo-Pelaez F, Sánchez-Ramos JR. Effects of Banisteriopsis caapi extract on Parkinson’s disease. The Scientific Review of Alternative Medicine. 2001;5(3):127–132. [Google Scholar]
  • 7. Wang YH, Samoylenko V, Tekwani BL, Khan IA, Miller LS, Chaurasiya ND, et al. Composition, standardization and chemical profiling of Banisteriopsis caapi, a plant for the treatment of neurodegenerative disorders relevant to Parkinson’s disease. Journal of ethnopharmacology. 2010;128(3):662–671. doi: 10.1016/j.jep.2010.02.013 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8. Katchborian-Neto A, Santos WT, Nicácio KJ, Corrêa JO, Murgu M, Martins TM, et al. Neuroprotective potential of Ayahuasca and untargeted metabolomics analyses: applicability to Parkinson’s disease. Journal of ethnopharmacology. 2020;255:112743. doi: 10.1016/j.jep.2020.112743 [DOI] [PubMed] [Google Scholar]
  • 9. Brierley DI, Davidson C. Developments in harmine pharmacology—Implications for ayahuasca use and drug-dependence treatment. Progress in neuro-psychopharmacology and biological psychiatry. 2012;39(2):263–272. doi: 10.1016/j.pnpbp.2012.06.001 [DOI] [PubMed] [Google Scholar]
  • 10. Jiménez-Garrido DF, Gémez-Sousa M, Ona G, Dos Santos RG, Hallak JE, Alcázar-Cércoles Mé, et al. Effects of ayahuasca on mental health and quality of life in naïve users: A longitudinal and cross-sectional study combination. Scientific reports. 2020;10(1):1–12. doi: 10.1038/s41598-020-61169-x [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 11. Palhano-Fontes F, Barreto D, Onias H, Andrade KC, Novaes MM, Pessoa JA, et al. Rapid antidepressant effects of the psychedelic ayahuasca in treatment-resistant depression: a randomized placebo-controlled trial. Psychological medicine. 2019;49(4):655–663. doi: 10.1017/S0033291718001356 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 12. Sanches RF, de Lima Osério F, Dos Santos RG, Macedo LR, Maia-de Oliveira JP, Wichert-Ana L, et al. Antidepressant effects of a single dose of ayahuasca in patients with recurrent depression: a SPECT study. Journal of clinical psychopharmacology. 2016;36(1):77–81. doi: 10.1097/JCP.0000000000000436 [DOI] [PubMed] [Google Scholar]
  • 13. Palhano-Fontes F, Mota-Rolim S, Lobão-Soares B, Galvão-Coelho N, Maia-Oliveira JP, Araújo DB. Recent Evidence on the Antidepressant Effects of Ayahuasca. Ayahuasca Healing and Science. 2021; p. 21. doi: 10.1007/978-3-030-55688-4_2 [DOI] [Google Scholar]
  • 14. de Lima Osério F, de Macedo LRH, de Sousa JPM, Pinto JP, Quevedo J, de Souza Crippa JA, et al. The therapeutic potential of harmine and ayahuasca in depression: Evidence from exploratory animal and human studies. The ethnopharmacology of ayahuasca. 2011;75:85. [Google Scholar]
  • 15. Frood A. Ayahuasca psychedelic tested for depression. Nature News. 2015;. doi: 10.1038/nature.2015.17252 [DOI] [Google Scholar]
  • 16. Dos Santos RG, Osério FL, Crippa JAS, Riba J, Zuardi AW, Hallak JE. Antidepressive, anxiolytic, and antiaddictive effects of ayahuasca, psilocybin and lysergic acid diethylamide (LSD): a systematic review of clinical trials published in the last 25 years. Therapeutic advances in psychopharmacology. 2016;6(3):193–213. doi: 10.1177/2045125316638008 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 17. Morales-García JA, de la Fuente Revenga M, Alonso-Gil S, Rodríguez-Franco MI, Feilding A, Perez-Castillo A, et al. The alkaloids of Banisteriopsis caapi, the plant source of the Amazonian hallucinogen Ayahuasca, stimulate adult neurogenesis in vitro. Scientific reports. 2017;7(1):1–13. doi: 10.1038/s41598-017-05407-9 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 18. da Silva MG, Daros GC, de Bitencourt RM. Anti-inflammatory activity of ayahuasca and its implications for the treatment of neurological and psychiatric diseases. Behavioural Brain Research. 2020; p. 113003. [DOI] [PubMed] [Google Scholar]
  • 19. Frecska E, Bokor P, Winkelman M. The therapeutic potentials of ayahuasca: possible effects against various diseases of civilization. Frontiers in pharmacology. 2016;7:35. doi: 10.3389/fphar.2016.00035 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 20. Dos Santos RG, Hallak JE. Effects of the natural β-carboline alkaloid harmine, a main constituent of ayahuasca, in memory and in the hippocampus: A systematic literature review of preclinical studies. Journal of psychoactive drugs. 2017;49(1):1–10. doi: 10.1080/02791072.2016.1260189 [DOI] [PubMed] [Google Scholar]
  • 21. Schenberg EE, Alexandre JFM, Filev R, Cravo AM, Sato JR, Muthukumaraswamy SD, et al. Acute biphasic effects of ayahuasca. PloS one. 2015;10(9):e0137202. doi: 10.1371/journal.pone.0137202 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 22. Bassett DS, Gazzaniga MS. Understanding complexity in the human brain. Trends in cognitive sciences. 2011;15(5):200–209. doi: 10.1016/j.tics.2011.03.006 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 23. Pineda AM, Ramos FM, Betting LE, Campanharo AS. Quantile graphs for EEG-based diagnosis of Alzheimer’s disease. Plos one. 2020;15(6):e0231169. doi: 10.1371/journal.pone.0231169 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 24. Sporns O. Graph theory methods: applications in brain networks. Dialogues in clinical neuroscience. 2018;20(2):111. doi: 10.31887/DCNS.2018.20.2/osporns [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25. Bassett DS, Zurn P, Gold JI. On the nature and use of models in network neuroscience. Nature Reviews Neuroscience. 2018;19(9):566–578. doi: 10.1038/s41583-018-0038-8 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 26. Hayashida M, Akutsu T. Complex network-based approaches to biomarker discovery. Biomarkers in medicine. 2016;10(6):621–632. doi: 10.2217/bmm-2015-0047 [DOI] [PubMed] [Google Scholar]
  • 27. Fekete T, Zach N, Mujica-Parodi LR, Turner MR. Multiple kernel learning captures a systems-level functional connectivity biomarker signature in amyotrophic lateral sclerosis. PloS one. 2013;8(12):e85190. doi: 10.1371/journal.pone.0085190 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 28. Newman ME. Communities, modules and large-scale structure in networks. Nature physics. 2012;8(1):25–31. doi: 10.1038/nphys2162 [DOI] [Google Scholar]
  • 29. Kim J, Lee JG. Community detection in multi-layer graphs: A survey. ACM SIGMOD Record. 2015;44(3):37–48. doi: 10.1145/2854006.2854013 [DOI] [Google Scholar]
  • 30. Zhao X, Liang J, Wang J. A community detection algorithm based on graph compression for large-scale social networks. Information Sciences. 2021;551:358–372. doi: 10.1016/j.ins.2020.10.057 [DOI] [Google Scholar]
  • 31.Lung RI, Suciu M, Meszlényi R, Buza K, Gaské N. Community structure detection for the functional connectivity networks of the brain. In: International Conference on Parallel Problem Solving from Nature. Springer; 2016. p. 633–643.
  • 32. Khajehpour H, Makkiabadi B, Ekhtiari H, Bakht S, Noroozi A, Mohagheghian F. Disrupted resting-state brain functional network in methamphetamine abusers: A brain source space study by EEG. PloS one. 2019;14(12):e0226249. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 33. Varley TF, Craig M, Adapa R, Finoia P, Williams G, Allanson J, et al. Fractal dimension of cortical functional connectivity networks & severity of disorders of consciousness. PLoS One. 2020;15(2):e0223812. doi: 10.1371/journal.pone.0223812 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 34. Song CW, Jung H, Chung K. Development of a medical big-data mining process using topic modeling. Cluster Computing. 2019;22(1):1949–1958. doi: 10.1007/s10586-017-0942-0 [DOI] [Google Scholar]
  • 35. Mozaffarinya M, Shahriyari AR, Bahadori MK, Ghazvini A, Athari SS, Vahedi G. A data-mining algorithm to assess key factors in asthma diagnosis. Revue Française d’Allergologie. 2019;. [Google Scholar]
  • 36. Ilyasova N, Kupriyanov A, Paringer R, Kirsh D. Particular use of BIG DATA in medical diagnostic tasks. Pattern Recognition and Image Analysis. 2018;28(1):114–121. doi: 10.1134/S1054661818010066 [DOI] [Google Scholar]
  • 37. Li RC, Asch SM, Shah NH. Developing a delivery science for artificial intelligence in healthcare. NPJ digital medicine. 2020;3(1):1–3. doi: 10.1038/s41746-020-00318-y [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 38. Bellazzi R, Zupan B. Predictive data mining in clinical medicine: current issues and guidelines. International journal of medical informatics. 2008;77(2):81–97. doi: 10.1016/j.ijmedinf.2006.11.006 [DOI] [PubMed] [Google Scholar]
  • 39. Buza K. Asterics: Projection-based classification of eeg with asymmetric loss linear regression and genetic algorithm. In: 2020 IEEE 14th International Symposium on Applied Computational Intelligence and Informatics (SACI). IEEE; 2020. p. 000035–000040. [Google Scholar]
  • 40. Abel JH, Badgeley MA, Meschede-Krasa B, Schamberg G, Garwood IC, Lecamwasam K, et al. Machine learning of EEG spectra classifies unconsciousness during GABAergic anesthesia. Plos one. 2021;16(5):e0246165. doi: 10.1371/journal.pone.0246165 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 41. Alves CL, Pineda AM, Roster K, Thielemann C, Rodrigues FA. EEG functional connectivity and deep learning for automatic diagnosis of brain disorders: Alzheimer’s disease and schizophrenia. Journal of Physics: Complexity. 2022;3(2):025001. [Google Scholar]
  • 42. Jayarathne I, Cohen M, Amarakeerthi S. Person identification from EEG using various machine learning techniques with inter-hemispheric amplitude ratio. PloS one. 2020;15(9):e0238872. doi: 10.1371/journal.pone.0238872 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 43.Bowen D, Ungar L. Generalized SHAP: Generating multiple types of explanations in machine learning. arXiv preprint arXiv:200607155. 2020;.
  • 44. Rodríguez-Pérez R, Bajorath J. Interpretation of compound activity predictions from complex machine learning models using local approximations and shapley values. Journal of Medicinal Chemistry. 2019;63(16):8761–8777. [DOI] [PubMed] [Google Scholar]
  • 45. Spadon G, de Carvalho AC, Rodrigues-Jr JF, Alves LG. Reconstructing commuters network using machine learning and urban indicators. Scientific reports. 2019;9(1):1–13. doi: 10.1038/s41598-019-48295-x [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 46. Johnson MW, Richards WA, Griffiths RR. Human hallucinogen research: guidelines for safety. Journal of psychopharmacology. 2008;22(6):603–620. doi: 10.1177/0269881108093587 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 47. Bottou L, Lin CJ. Support vector machine solvers. Large scale kernel machines. 2007;3(1):301–320. [Google Scholar]
  • 48. Mazrooyisebdani M, Nair VA, Garcia-Ramos C, Mohanty R, Meyerand E, Hermann B, et al. Graph theory analysis of functional connectivity combined with machine learning approaches demonstrates widespread network differences and predicts clinical variables in temporal lobe epilepsy. Brain connectivity. 2020;10(1):39–50. doi: 10.1089/brain.2019.0702 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 49. Diykh M, Li Y, Wen P. Classify epileptic EEG signals using weighted complex networks based community structure detection. Expert Systems with Applications. 2017;90:87–100. doi: 10.1016/j.eswa.2017.08.012 [DOI] [Google Scholar]
  • 50. Dey S, Rao AR, Shah M. Attributed graph distance measure for automatic detection of attention deficit hyperactive disordered subjects. Frontiers in neural circuits. 2014;8:64. doi: 10.3389/fncir.2014.00064 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 51. Breiman L. Random forests. Machine learning. 2001;45(1):5–32. doi: 10.1023/A:1010933404324 [DOI] [Google Scholar]
  • 52. Friedman N, Geiger D, Goldszmidt M. Bayesian network classifiers. Machine learning. 1997;29(2):131–163. doi: 10.1023/A:1007465528199 [DOI] [Google Scholar]
  • 53. Hinton G, Rumelhart D, Williams R. Learning internal representations by error propagation. Parallel distributed processing. 1986;1:318–362. [Google Scholar]
  • 54.Zhang T. Solving large scale linear prediction problems using stochastic gradient descent algorithms. In: Proceedings of the twenty-first international conference on Machine learning; 2004. p. 116.
  • 55. Tolles J, Meurer WJ. Logistic regression: relating patient characteristics to outcomes. Jama. 2016;316(5):533–534. doi: 10.1001/jama.2016.7653 [DOI] [PubMed] [Google Scholar]
  • 56. Friedman JH. Greedy function approximation: a gradient boosting machine. Annals of statistics. 2001; p. 1189–1232. [Google Scholar]
  • 57. Refaeilzadeh P, Tang L, Liu H. Cross-validation. Encyclopedia of database systems. 2009;5:532–538. doi: 10.1007/978-0-387-39940-9_565 [DOI] [Google Scholar]
  • 58.Berrar D. Cross-Validation.; 2019.
  • 59. Bengio Y, Grandvalet Y. No unbiased estimator of the variance of k-fold cross-validation. Journal of machine learning research. 2004;5(Sep):1089–1105. [Google Scholar]
  • 60. Shah AA, Khan YD. Identification of 4-carboxyglutamate residue sites based on position based statistical feature and multiple classification. Scientific Reports. 2020;10(1):1–10. doi: 10.1038/s41598-020-73107-y [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 61. Kawamoto T, Kabashima Y. Cross-validation estimate of the number of clusters in a network. Scientific reports. 2017;7(1):1–17. doi: 10.1038/s41598-017-03623-x [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 62. Chan J, Rea T, Gollakota S, Sunshine JE. Contactless cardiac arrest detection using smart devices. NPJ digital medicine. 2019;2(1):1–8. doi: 10.1038/s41746-019-0128-7 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 63. Sato M, Morimoto K, Kajihara S, Tateishi R, Shiina S, Koike K, et al. Machine-learning approach for the development of a novel predictive model for the diagnosis of hepatocellular carcinoma. Scientific reports. 2019;9(1):1–7. doi: 10.1038/s41598-019-44022-8 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 64. Zhong Z, Yuan X, Liu S, Yang Y, Liu F. Machine learning prediction models for prognosis of critically ill patients after open-heart surgery. Scientific Reports. 2021;11(1):1–10. doi: 10.1038/s41598-021-83020-7 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 65. Arcadu F, Benmansour F, Maunz A, Willis J, Haskova Z, Prunotto M. Author Correction: Deep learning algorithm predicts diabetic retinopathy progression in individual patients. NPJ digital medicine. 2020;3(1):1–6. doi: 10.1038/s41746-020-00365-5 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 66. Krittanawong C, Virk HUH, Kumar A, Aydar M, Wang Z, Stewart MP, et al. Machine learning and deep learning to predict mortality in patients with spontaneous coronary artery dissection. Scientific reports. 2021;11(1):1–10. doi: 10.1038/s41598-021-88172-0 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 67. Rashidi HH, Sen S, Palmieri TL, Blackmon T, Wajda J, Tran NK. Early recognition of burn-and trauma-related acute kidney injury: a pilot comparison of machine learning techniques. Scientific reports. 2020;10(1):1–9. doi: 10.1038/s41598-019-57083-6 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 68. Mincholé A, Rodriguez B. Artificial intelligence for the electrocardiogram. Nature medicine. 2019;25(1):22–23. doi: 10.1038/s41591-018-0306-1 [DOI] [PubMed] [Google Scholar]
  • 69. Tolkach Y, Dohmgörgen T, Toma M, Kristiansen G. High-accuracy prostate cancer pathology using deep learning. Nature Machine Intelligence. 2020;2(7):411–418. doi: 10.1038/s42256-020-0200-7 [DOI] [Google Scholar]
  • 70. Dukart J, Weis S, Genon S, Eickhoff SB. Towards increasing the clinical applicability of machine learning biomarkers in psychiatry. Nature Human Behaviour. 2021;5(4):431–432. doi: 10.1038/s41562-021-01085-w [DOI] [PubMed] [Google Scholar]
  • 71. Park Y, Kellis M. Deep learning for regulatory genomics. Nature biotechnology. 2015;33(8):825–826. doi: 10.1038/nbt.3313 [DOI] [PubMed] [Google Scholar]
  • 72. Ito Y, Unagami M, Yamabe F, Mitsui Y, Nakajima K, Nagao K, et al. A method for utilizing automated machine learning for histopathological classification of testis based on Johnsen scores. Scientific reports. 2021;11(1):1–11. doi: 10.1038/s41598-021-89369-z [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 73. Kim J, Lee J, Park E, Han J. A deep learning model for detecting mental illness from user content on social media. Scientific reports. 2020;10(1):1–6. doi: 10.1038/s41598-020-68764-y [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 74. Li Y, Nowak CM, Pham U, Nguyen K, Bleris L. Cell morphology-based machine learning models for human cell state classification. NPJ systems biology and applications. 2021;7(1):1–9. doi: 10.1038/s41540-021-00180-y [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 75. Yu X, Pang W, Xu Q, Liang M. Mammographic image classification with deep fusion learning. Scientific Reports. 2020;10(1):1–11. doi: 10.1038/s41598-020-71431-x [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 76. Berryman S, Matthews K, Lee JH, Duffy SP, Ma H. Image-based phenotyping of disaggregated cells using deep learning. Communications Biology. 2020;3(1):1–9. doi: 10.1038/s42003-020-01399-x [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 77. Yang S, Kweon J, Roh JH, Lee JH, Kang H, Park LJ, et al. Deep learning segmentation of major vessels in X-ray coronary angiography. Scientific reports. 2019;9(1):1–11. doi: 10.1038/s41598-019-53254-7 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 78. Hannun AY, Rajpurkar P, Haghpanahi M, Tison GH, Bourn C, Turakhia MP, et al. Cardiologist-level arrhythmia detection and classification in ambulatory electrocardiograms using a deep neural network. Nature medicine. 2019;25(1):65–69. doi: 10.1038/s41591-018-0268-3 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 79. Bracher-Smith M, Crawford K, Escott-Price V. Machine learning for genetic prediction of psychiatric disorders: a systematic review. Molecular Psychiatry. 2021;26(1):70–79. doi: 10.1038/s41380-020-0825-2 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 80. Patel D, Kher V, Desai B, Lei X, Cen S, Nanda N, et al. Machine learning based predictors for COVID-19 disease severity. Scientific Reports. 2021;11(1):1–7. doi: 10.1038/s41598-021-83967-7 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 81.Lundberg SM, Lee SI. A unified approach to interpreting model predictions. In: Proceedings of the 31st international conference on neural information processing systems; 2017. p. 4768–4777.
  • 82. Cerqueira V, Torgo L, Mozetič I. Evaluating time series forecasting models: An empirical study on performance estimation methods. Machine Learning. 2020;109(11):1997–2028. doi: 10.1007/s10994-020-05910-7 [DOI] [Google Scholar]
  • 83. Bouktif S, Fiaz A, Ouni A, Serhani MA. Optimal deep learning lstm model for electric load forecasting using feature selection and genetic algorithm: Comparison with machine learning approaches. Energies. 2018;11(7):1636. doi: 10.3390/en11071636 [DOI] [Google Scholar]
  • 84. Rojas GM, Alvarez C, Montoya CE, de la Iglesia-Vayá M, Cisternas JE, Gálvez M. Study of resting-state functional connectivity networks using EEG electrodes position as seed. Frontiers in neuroscience. 2018;12:235. doi: 10.3389/fnins.2018.00235 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 85. Wang L, Wang W, Yan T, Song J, Yang W, Wang B, et al. Beta-band functional connectivity influences audiovisual integration in older age: an EEG study. Frontiers in aging neuroscience. 2017;9:239. doi: 10.3389/fnagi.2017.00239 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 86. Jalili M. Functional brain networks: does the choice of dependency estimator and binarization method matter? Scientific reports. 2016;6(1):1–12. doi: 10.1038/srep29780 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 87. Han C, Sun X, Yang Y, Che Y, Qin Y. Brain complex network characteristic analysis of fatigue during simulated driving based on electroencephalogram signals. Entropy. 2019;21(4):353. doi: 10.3390/e21040353 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 88. Tokariev A, Roberts JA, Zalesky A, Zhao X, Vanhatalo S, Breakspear M, et al. Large-scale brain modes reorganize between infant sleep states and carry prognostic information for preterms. Nature communications. 2019;10(1):1–9. doi: 10.1038/s41467-019-10467-8 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 89. Newman ME. The structure and function of complex networks. SIAM review. 2003;45(2):167–256. doi: 10.1137/S003614450342480 [DOI] [Google Scholar]
  • 90. Newman ME. Assortative mixing in networks. Physical review letters. 2002;89(20):208701. doi: 10.1103/PhysRevLett.89.208701 [DOI] [PubMed] [Google Scholar]
  • 91. Albert R, Barabási AL. Statistical mechanics of complex networks. Reviews of modern physics. 2002;74(1):47. doi: 10.1103/RevModPhys.74.47 [DOI] [Google Scholar]
  • 92. Freeman LC. A set of measures of centrality based on betweenness. Sociometry. 1977; p. 35–41. doi: 10.2307/3033543 [DOI] [Google Scholar]
  • 93. Freeman LC. Centrality in social networks conceptual clarification. Social networks. 1978;1(3):215–239. doi: 10.1016/0378-8733(78)90021-7 [DOI] [Google Scholar]
  • 94. Bonacich P. Power and centrality: A family of measures. American journal of sociology. 1987;92(5):1170–1182. doi: 10.1086/228631 [DOI] [Google Scholar]
  • 95. Albert R, Jeong H, Barabási AL. Diameter of the world-wide web. nature. 1999;401(6749):130–131. doi: 10.1038/43601 [DOI] [Google Scholar]
  • 96. Kleinberg JM. Hubs, authorities, and communities. ACM computing surveys (CSUR). 1999;31(4es):5–es. [Google Scholar]
  • 97. Eppstein D, Paterson MS, Yao FF. On nearest-neighbor graphs. Discrete & Computational Geometry. 1997;17(3):263–282. doi: 10.1007/PL00009293 [DOI] [Google Scholar]
  • 98. Doyle J, Graver J. Mean distance in a graph. Discrete Mathematics. 1977;17(2):147–154. doi: 10.1016/0012-365X(77)90144-3 [DOI] [Google Scholar]
  • 99. Snijders TA. The degree variance: an index of graph heterogeneity. Social networks. 1981;3(3):163–174. doi: 10.1016/0378-8733(81)90014-9 [DOI] [Google Scholar]
  • 100. Dehmer M, Mowshowitz A. A history of graph entropy measures. Information Sciences. 2011;181(1):57–78. doi: 10.1016/j.ins.2010.08.041 [DOI] [Google Scholar]
  • 101. Watts DJ, Strogatz SH. Collective dynamics of ‘small-world’networks. Nature. 1998;393(6684):440–442. doi: 10.1038/30918 [DOI] [PubMed] [Google Scholar]
  • 102. Newman ME, Watts DJ, Strogatz SH. Random graph models of social networks. Proceedings of the National Academy of Sciences. 2002;99(suppl 1):2566–2572. doi: 10.1073/pnas.012582999 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 103. Seidman SB. Network structure and minimum degree. Social networks. 1983;5(3):269–287. doi: 10.1016/0378-8733(83)90028-X [DOI] [Google Scholar]
  • 104. Newman M. Networks: an introduction. Oxford university press; 2010. [Google Scholar]
  • 105. Hage P, Harary F. Eccentricity and centrality in networks. Social networks. 1995;17(1):57–63. doi: 10.1016/0378-8733(94)00248-9 [DOI] [Google Scholar]
  • 106. Anderson BS, Butts C, Carley K. The interaction of size and density with graph-level indices. Social networks. 1999;21(3):239–267. doi: 10.1016/S0378-8733(99)00011-8 [DOI] [Google Scholar]
  • 107. Latora V, Marchiori M. Economic small-world behavior in weighted networks. The European Physical Journal B-Condensed Matter and Complex Systems. 2003;32(2):249–263. doi: 10.1140/epjb/e2003-00095-5 [DOI] [Google Scholar]
  • 108. Clauset A, Newman ME, Moore C. Finding community structure in very large networks. Physical review E. 2004;70(6):066111. doi: 10.1103/PhysRevE.70.066111 [DOI] [PubMed] [Google Scholar]
  • 109. Girvan M, Newman ME. Community structure in social and biological networks. Proceedings of the national academy of sciences. 2002;99(12):7821–7826. doi: 10.1073/pnas.122653799 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 110. Rosvall M, Axelsson D, Bergstrom CT. The map equation. The European Physical Journal Special Topics. 2009;178(1):13–23. doi: 10.1140/epjst/e2010-01179-1 [DOI] [Google Scholar]
  • 111. Huffman DA. A method for the construction of minimum-redundancy codes. Proceedings of the IRE. 1952;40(9):1098–1101. doi: 10.1109/JRPROC.1952.273898 [DOI] [Google Scholar]
  • 112. Newman ME. Finding community structure in networks using the eigenvectors of matrices. Physical review E. 2006;74(3):036104. doi: 10.1103/PhysRevE.74.036104 [DOI] [PubMed] [Google Scholar]
  • 113. Raghavan UN, Albert R, Kumara S. Near linear time algorithm to detect community structures in large-scale networks. Physical review E. 2007;76(3):036106. doi: 10.1103/PhysRevE.76.036106 [DOI] [PubMed] [Google Scholar]
  • 114. Barber MJ, Clark JW. Detecting network communities by propagating labels under constraints. Physical Review E. 2009;80(2):026129. doi: 10.1103/PhysRevE.80.026129 [DOI] [PubMed] [Google Scholar]
  • 115. Li H, Zhang R, Zhao Z, Liu X. LPA-MNI: an improved label propagation algorithm based on modularity and node importance for community detection. Entropy. 2021;23(5):497. doi: 10.3390/e23050497 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 116. Reichardt J, Bornholdt S. Statistical mechanics of community detection. Physical review E. 2006;74(1):016110. doi: 10.1103/PhysRevE.74.016110 [DOI] [PubMed] [Google Scholar]
  • 117.Chejara P, Godfrey WW. Comparative analysis of community detection algorithms. In: 2017 Conference on Information and Communication Technology (CICT). IEEE; 2017. p. 1–5.
  • 118. Blondel VD, Guillaume JL, Lambiotte R, Lefebvre E. Fast unfolding of communities in large networks. Journal of statistical mechanics: theory and experiment. 2008;2008(10):P10008. doi: 10.1088/1742-5468/2008/10/P10008 [DOI] [Google Scholar]
  • 119. Mijalkov M, Kakaei E, Pereira JB, Westman E, Volpe G, Initiative ADN. BRAPH: a graph theory software for the analysis of brain connectivity. PloS one. 2017;12(8):e0178798. doi: 10.1371/journal.pone.0178798 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 120. Michel CM, Brunet D. EEG source imaging: a practical review of the analysis steps. Frontiers in neurology. 2019;10:325. doi: 10.3389/fneur.2019.00325 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 121. Asher EE, Plotnik M, Gčnther M, Moshel S, Levy O, Havlin S, et al. Connectivity of EEG synchronization networks increases for Parkinson’s disease patients with freezing of gait. Communications biology. 2021;4(1):1–10. doi: 10.1038/s42003-021-02544-w [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 122. Riba J, Romero S, Grasa E, Mena E, Carrié I, Barbanoj MJ. Increased frontal and paralimbic activation following ayahuasca, the pan-Amazonian inebriant. Psychopharmacology. 2006;186(1):93–98. doi: 10.1007/s00213-006-0358-7 [DOI] [PubMed] [Google Scholar]
  • 123. de Araujo DB, Ribeiro S, Cecchi GA, Carvalho FM, Sanchez TA, Pinto JP, et al. Seeing with the eyes shut: Neural basis of enhanced imagery following ayahuasca ingestion. Human brain mapping. 2012;33(11):2550–2560. doi: 10.1002/hbm.21381 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 124. Dos Santos RG, Hallak JEC. Ayahuasca, an ancient substance with traditional and contemporary use in neuropsychiatry and neuroscience. Epilepsy & Behavior. 2021;121:106300. doi: 10.1016/j.yebeh.2019.04.053 [DOI] [PubMed] [Google Scholar]
  • 125. Aarsland D, Creese B, Politis M, Chaudhuri KR, Weintraub D, Ballard C, et al. Cognitive decline in Parkinson disease. Nature Reviews Neurology. 2017;13(4):217–231. doi: 10.1038/nrneurol.2017.27 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 126. Smith R, Schöll M, Londos E, Ohlsson T, Hansson O. 18 F-AV-1451 in Parkinson’s Disease with and without dementia and in Dementia with Lewy Bodies. Scientific reports. 2018;8(1):1–6. doi: 10.1038/s41598-018-23041-x [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 127. Rodriguez E, George N, Lachaux JP, Martinerie J, Renault B, Varela FJ. Perception’s shadow: long-distance synchronization of human brain activity. Nature. 1999;397(6718):430–433. doi: 10.1038/17120 [DOI] [PubMed] [Google Scholar]
  • 128. Rubinov M, Sporns O. Complex network measures of brain connectivity: uses and interpretations. Neuroimage. 2010;52(3):1059–1069. doi: 10.1016/j.neuroimage.2009.10.003 [DOI] [PubMed] [Google Scholar]
  • 129. Cope TE, Rittman T, Borchert RJ, Jones PS, Vatansever D, Allinson K, et al. Tau burden and the functional connectome in Alzheimer’s disease and progressive supranuclear palsy. Brain. 2018;141(2):550–567. doi: 10.1093/brain/awx347 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 130. Peraza LR, Díaz-Parra A, Kennion O, Moratal D, Taylor JP, Kaiser M, et al. Structural connectivity centrality changes mark the path toward Alzheimer’s disease. Alzheimer’s & Dementia: Diagnosis, Assessment & Disease Monitoring. 2019;11:98–107. doi: 10.1016/j.dadm.2018.12.004 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 131. Ebadi A, Dalboni da Rocha JL, Nagaraju DB, Tovar-Moll F, Bramati I, Coutinho G, et al. Ensemble classification of Alzheimer’s disease and mild cognitive impairment based on complex graph measures from diffusion tensor images. Frontiers in neuroscience. 2017;11:56. doi: 10.3389/fnins.2017.00056 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 132. Pereira JB, Mijalkov M, Kakaei E, Mecocci P, Vellas B, Tsolaki M, et al. Disrupted network topology in patients with stable and progressive mild cognitive impairment and Alzheimer’s disease. Cerebral Cortex. 2016;26(8):3476–3493. doi: 10.1093/cercor/bhw128 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 133. Coninck JC, Ferrari FA, Reis AS, Iarosz KC, Caldas IL, Batista AM, et al. Network properties of healthy and Alzheimer brains. Physica A: Statistical Mechanics and its Applications. 2020;547:124475. doi: 10.1016/j.physa.2020.124475 [DOI] [Google Scholar]
  • 134. Luo Y, Sun T, Ma C, Zhang X, Ji Y, Fu X, et al. Alterations of Brain Networks in Alzheimer’s Disease and Mild Cognitive Impairment: A Resting State fMRI Study Based on a Population-specific Brain Template. Neuroscience. 2021;452:192–207. doi: 10.1016/j.neuroscience.2020.10.023 [DOI] [PubMed] [Google Scholar]
  • 135. Viol A, Palhano-Fontes F, Onias H, de Araujo DB, Viswanathan G. Shannon entropy of brain functional complex networks under the influence of the psychedelic Ayahuasca. Scientific reports. 2017;7(1):1–13. doi: 10.1038/s41598-017-06854-0 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 136. Tononi G, Sporns O, Edelman GM. A measure for brain complexity: relating functional segregation and integration in the nervous system. Proceedings of the National Academy of Sciences. 1994;91(11):5033–5037. doi: 10.1073/pnas.91.11.5033 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 137. Sporns O. Network analysis, complexity, and brain function. Complexity. 2002;8(1):56–60. doi: 10.1002/cplx.10047 [DOI] [Google Scholar]
  • 138. Carhart-Harris RL, Leech R, Hellyer PJ, Shanahan M, Feilding A, Tagliazucchi E, et al. The entropic brain: a theory of conscious states informed by neuroimaging research with psychedelic drugs. Frontiers in human neuroscience. 2014; p. 20. doi: 10.3389/fnhum.2014.00020 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 139. Carhart-Harris RL. The entropic brain-revisited. Neuropharmacology. 2018;142:167–178. doi: 10.1016/j.neuropharm.2018.03.010 [DOI] [PubMed] [Google Scholar]
  • 140. Papo D. Commentary: The entropic brain: a theory of conscious states informed by neuroimaging research with psychedelic drugs. Frontiers in human neuroscience. 2016; p. 423. doi: 10.3389/fnhum.2016.00423 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 141. Pallavicini C, Cavanna F, Zamberlan F, de la Fuente LA, Arias M, Romero MC, et al. Neural and subjective effects of inhaled DMT in natural settings. bioRxiv. 2020;. [DOI] [PubMed] [Google Scholar]

Decision Letter 0

Yiming Tang

26 Aug 2022

PONE-D-22-21178Application of machine learning and complex networkmeasures to an EEG dataset from ayahuasca experimentsPLOS ONE

Dear Dr. Alves,

Thank you for submitting your manuscript to PLOS ONE. After careful consideration, we feel that it has merit but does not fully meet PLOS ONE’s publication criteria as it currently stands. Therefore, we invite you to submit a revised version of the manuscript that addresses the points raised during the review process.

Please submit your revised manuscript by Oct 10 2022 11:59PM. If you will need more time than this to complete your revisions, please reply to this message or contact the journal office at plosone@plos.org. When you're ready to submit your revision, log on to https://www.editorialmanager.com/pone/ and select the 'Submissions Needing Revision' folder to locate your manuscript file.

Please include the following items when submitting your revised manuscript:

  • A rebuttal letter that responds to each point raised by the academic editor and reviewer(s). You should upload this letter as a separate file labeled 'Response to Reviewers'.

  • A marked-up copy of your manuscript that highlights changes made to the original version. You should upload this as a separate file labeled 'Revised Manuscript with Track Changes'.

  • An unmarked version of your revised paper without tracked changes. You should upload this as a separate file labeled 'Manuscript'.

If you would like to make changes to your financial disclosure, please include your updated statement in your cover letter. Guidelines for resubmitting your figure files are available below the reviewer comments at the end of this letter.

If applicable, we recommend that you deposit your laboratory protocols in protocols.io to enhance the reproducibility of your results. Protocols.io assigns your protocol its own identifier (DOI) so that it can be cited independently in the future. For instructions see: https://journals.plos.org/plosone/s/submission-guidelines#loc-laboratory-protocols. Additionally, PLOS ONE offers an option for publishing peer-reviewed Lab Protocol articles, which describe protocols hosted on protocols.io. Read more information on sharing protocols at https://plos.org/protocols?utm_medium=editorial-email&utm_source=authorletters&utm_campaign=protocols.

We look forward to receiving your revised manuscript.

Kind regards,

Yiming Tang, Ph.D.

Academic Editor

PLOS ONE

Journal Requirements:

When submitting your revision, we need you to address these additional requirements.

1. Please ensure that your manuscript meets PLOS ONE's style requirements, including those for file naming. The PLOS ONE style templates can be found at 

https://journals.plos.org/plosone/s/file?id=wjVg/PLOSOne_formatting_sample_main_body.pdf and 

https://journals.plos.org/plosone/s/file?id=ba62/PLOSOne_formatting_sample_title_authors_affiliations.pdf

2. Please ensure that you have specified (1) whether consent was informed and (2) what type you obtained (for instance, written or verbal, and if verbal, how it was documented and witnessed). If your study included minors, state whether you obtained consent from parents or guardians. If the need for consent was waived by the ethics committee, please include this information.

3. Thank you for stating the following financial disclosure: 

"No"

At this time, please address the following queries:

a) Please clarify the sources of funding (financial or material support) for your study. List the grants or organizations that supported your study, including funding received from your institution. 

b) State what role the funders took in the study. If the funders had no role in your study, please state: “The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.”

c) If any authors received a salary from any of your funders, please state which authors and which funders.

d) If you did not receive any funding for this study, please state: “The authors received no specific funding for this work.”

Please include your amended statements within your cover letter; we will change the online submission form on your behalf.

4. Thank you for stating the following in your Competing Interests section:  

"NO authors have competing interests"

Please complete your Competing Interests on the online submission form to state any Competing Interests. If you have no competing interests, please state "The authors have declared that no competing interests exist.", as detailed online in our guide for authors at http://journals.plos.org/plosone/s/submit-now 

 This information should be included in your cover letter; we will change the online submission form on your behalf.

5. Please include your full ethics statement in the ‘Methods’ section of your manuscript file. In your statement, please include the full name of the IRB or ethics committee who approved or waived your study, as well as whether or not you obtained informed written or verbal consent. If consent was waived for your study, please include this information in your statement as well. 

[Note: HTML markup is below. Please do not edit.]

Reviewers' comments:

Reviewer's Responses to Questions

Comments to the Author

1. Is the manuscript technically sound, and do the data support the conclusions?

The manuscript must describe a technically sound piece of scientific research with data that supports the conclusions. Experiments must have been conducted rigorously, with appropriate controls, replication, and sample sizes. The conclusions must be drawn appropriately based on the data presented.

Reviewer #1: Partly

Reviewer #2: Yes

Reviewer #3: Partly

Reviewer #4: Yes

**********

2. Has the statistical analysis been performed appropriately and rigorously?

Reviewer #1: Yes

Reviewer #2: N/A

Reviewer #3: Yes

Reviewer #4: Yes

**********

3. Have the authors made all data underlying the findings in their manuscript fully available?

The PLOS Data policy requires authors to make all data underlying the findings described in their manuscript fully available without restriction, with rare exception (please refer to the Data Availability Statement in the manuscript PDF file). The data should be provided as part of the manuscript or its supporting information, or deposited to a public repository. For example, in addition to summary statistics, the data points behind means, medians and variance measures should be available. If there are restrictions on publicly sharing data—e.g. participant privacy or use of data from a third party—those must be specified.

Reviewer #1: Yes

Reviewer #2: No

Reviewer #3: Yes

Reviewer #4: Yes

**********

4. Is the manuscript presented in an intelligible fashion and written in standard English?

PLOS ONE does not copyedit accepted manuscripts, so the language in submitted articles must be clear, correct, and unambiguous. Any typographical or grammatical errors should be corrected at revision, so please note any specific errors here.

Reviewer #1: Yes

Reviewer #2: Yes

Reviewer #3: Yes

Reviewer #4: Yes

**********

5. Review Comments to the Author

Please use the space provided to explain your answers to the questions above. You may also include additional comments for the author, including concerns about dual publication, research ethics, or publication ethics. (Please upload your review as an attachment if it exceeds 20,000 characters)

Reviewer #1: The Authors analyse a publicly available EEG dataset with various machine learning techniques in order to describe the effect of a drug called "ayahuasca" on functional connectivity networks of the brain. Overall, the findings are interesting: they indicate the potential therapeutic use of ayahuasca.

My major concern, because of which I answered the question about technical soundness with "partially" is that in order to assist reproduction and independent validation of the results, and to promote the use of the same methodology in other studies, I think the Authors should publish their implementation of the methods, including preprocessing steps (i.e., source codes of the software they implemented during their research work).

As for the language, the Authors should keep in mind that PLOS ONE does not copyedit manuscripts, therefore they should proofread their work carefully. For example, special attention should be payed to references, both references to subsections (that are often broken in the current version of the manuscript) and references to the literature. See for example: "...known from schenberg2015acute" (third line in Section 3.1.1).

As for the methodology, while I understand that the Authors used standard machine learning methods, both for classification of the data, as well as for the other subtasks, such as community detection, it would be worth to discuss recent approaches that were designed to deal with brain activity data. See, for example:

http://biointelligence.hu/pdf/saci2020_5_buza.pdf

https://link.springer.com/chapter/10.1007/978-3-319-45823-6_59

Reviewer #2: The paper can be considered for publication if it is improved,

- the current version is not at the journal level.

- difficult to understand.

-In the related work section, the authors have added short comments to new references; among these, more details of the method proposed in the above-cited paper have to be reported. Should be better explained to outline the limitations of the approaches.

-In the Literature review section, the authors should find out the difference between the proposed model and the existing methods should be further described.

-The paper's presentation should be improved. It is difficult to understand.

-Your abstract does not highlight the specifics of your research or findings.

-The introduction should be rewritten to clarify its message. Drawbacks of former proposals should be clearly indicated and innovations and new ideas highlighted.

-Problem statement and objective are not clear. The authors should give a more accurate description of the existing methods.

-Tables & figures present a lot of statistics but need a more detailed explanation (which is missing in the text).

-I feel that more explanation would be needed on how the proposed method is performed

-If no one has proposed a method like the proposed algorithm, this claim should be highlighted much more. Else, it should be indicated who has done this, and it should be indicated what the innovations of the current paper are.

- Improve text formatting.

-why have not been used other DL based methods

-Please, also provide a paragraph with three to five clear positive impacts of your method.

- the authors should further detail the preparation of the dataset.

-the figures must be in better format & resolution

-How to set the parameters of DL algorithms.

-There are no real insightful conclusions drawn from the study and no suggestions for practical use of the results. Therefore, the conclusion section should be totally rewritten in order to:

- You must more clearly highlight the theoretical and practical implications of your research

-Discuss research contributions, Indicate practical advantages, and discuss research limitations.

-supply solid and insightful future research suggestions, and references must be updated.

Reviewer #3: The authors studied brain activity changes under ayahuasca by using machine learning and complex network features and showed the high performance of SVM to predict the brain activity change. The research topic is interesting, and the manuscript is written well. However, I have major concerns about the method and results.

Major comments

- Is this the first study to investigate brain activity under ayahuasca? If not so, the authors should introduce them in Introduction section. Even if so, other previous studies on relationship between brain characteristics (e.g., brain activity, functional connectivity) and medical herbs should be cited in Introduction. Moreover, the authors should describe what kind of results would be expected based on the previous studies.

- Why did some ML methods fail to predict test data? For example, XGBoost had remarkably low performance for test dataset.

- The authors did not analyze control experiment data. I’m wondering if the result can be obtained even in without-drug conditions. For example, the authors cannot exclude a possibility that the prediction was based on the characteristics along time (e.g., change due to tiredness).

Minor comments

- 3.2.1: LG -> LR

- Abstract: remove new lines

Reviewer #4: Thank you for providing opportunity to review this manuscript. Outcome of the study is interesting. The general impression of this manuscript should follow proper order. Such as:

1. In introduction(page2), it would be nice the research questions are in sentences not in bullet form.

2. Data (page2) should move to the Material and Methods (in page3).

3. The biggest concern is that methodology of the data collection utilized. 16 healthy makes and females patients were selected for the study. How were these healthy patients selected? 32 patients were appropriate number? what criteria was used to decide healthy patients? What method of sampling used to select patients?

4. What about the ethical consideration of this study? Though it is mentioned in the Ethics Statement, it would be nice to declare in the manuscript.

5. Figures are shown after the references, which is troublesome for the reader. I would advise authors to keep some important figures body of the writing and remaining should go to the bottom of the manuscript.

**********

6. PLOS authors have the option to publish the peer review history of their article (what does this mean?). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review? For information about this choice, including consent withdrawal, please see our Privacy Policy.

Reviewer #1: No

Reviewer #2: No

Reviewer #3: No

Reviewer #4: No

**********

[NOTE: If reviewer comments were submitted as an attachment file, they will be attached to this email and accessible via the submission site. Please log into your account, locate the manuscript record, and check for the action link "View Attachments". If this link does not appear, there are no attachment files.]

While revising your submission, please upload your figure files to the Preflight Analysis and Conversion Engine (PACE) digital diagnostic tool, https://pacev2.apexcovantage.com/. PACE helps ensure that figures meet PLOS requirements. To use PACE, you must first register as a user. Registration is free. Then, login and navigate to the UPLOAD tab, where you will find detailed instructions on how to use the tool. If you encounter any issues or have any questions when using PACE, please email PLOS at figures@plos.org. Please note that Supporting Information files do not need this step.

PLoS One. 2022 Dec 16;17(12):e0277257. doi: 10.1371/journal.pone.0277257.r002

Author response to Decision Letter 0


7 Oct 2022

Dear all,

We would like to thank the reviewer for their careful consideration of our manuscript and recommendation

for acceptance after major revision. The comments have been very useful and have helped us improve the analysis and clarity of explanation in the manuscript. We provide point-by-point responses to each comment

in the 'Response to Reviewers' file.

Best regards,

Caroline L. Alves

Attachment

Submitted filename: Author_response_to_review_comments_ayahuasca_paper_FINAL.pdf

Decision Letter 1

Yiming Tang

24 Oct 2022

Application of machine learning and complex network

measures to an EEG dataset from ayahuasca experiments

PONE-D-22-21178R1

Dear Dr. Alves,

We’re pleased to inform you that your manuscript has been judged scientifically suitable for publication and will be formally accepted for publication once it meets all outstanding technical requirements.

Within one week, you’ll receive an e-mail detailing the required amendments. When these have been addressed, you’ll receive a formal acceptance letter and your manuscript will be scheduled for publication.

An invoice for payment will follow shortly after the formal acceptance. To ensure an efficient process, please log into Editorial Manager at http://www.editorialmanager.com/pone/, click the 'Update My Information' link at the top of the page, and double check that your user information is up-to-date. If you have any billing related questions, please contact our Author Billing department directly at authorbilling@plos.org.

If your institution or institutions have a press office, please notify them about your upcoming paper to help maximize its impact. If they’ll be preparing press materials, please inform our press team as soon as possible -- no later than 48 hours after receiving the formal acceptance. Your manuscript will remain under strict press embargo until 2 pm Eastern Time on the date of publication. For more information, please contact onepress@plos.org.

Kind regards,

Yiming Tang, Ph.D.

Academic Editor

PLOS ONE

Additional Editor Comments (optional):

Reviewers' comments:

Reviewer's Responses to Questions

Comments to the Author

1. If the authors have adequately addressed your comments raised in a previous round of review and you feel that this manuscript is now acceptable for publication, you may indicate that here to bypass the “Comments to the Author” section, enter your conflict of interest statement in the “Confidential to Editor” section, and submit your "Accept" recommendation.

Reviewer #1: All comments have been addressed

Reviewer #2: All comments have been addressed

Reviewer #3: All comments have been addressed

Reviewer #4: All comments have been addressed

**********

2. Is the manuscript technically sound, and do the data support the conclusions?

The manuscript must describe a technically sound piece of scientific research with data that supports the conclusions. Experiments must have been conducted rigorously, with appropriate controls, replication, and sample sizes. The conclusions must be drawn appropriately based on the data presented.

Reviewer #1: Yes

Reviewer #2: Yes

Reviewer #3: Yes

Reviewer #4: Yes

**********

3. Has the statistical analysis been performed appropriately and rigorously?

Reviewer #1: Yes

Reviewer #2: Yes

Reviewer #3: Yes

Reviewer #4: Yes

**********

4. Have the authors made all data underlying the findings in their manuscript fully available?

The PLOS Data policy requires authors to make all data underlying the findings described in their manuscript fully available without restriction, with rare exception (please refer to the Data Availability Statement in the manuscript PDF file). The data should be provided as part of the manuscript or its supporting information, or deposited to a public repository. For example, in addition to summary statistics, the data points behind means, medians and variance measures should be available. If there are restrictions on publicly sharing data—e.g. participant privacy or use of data from a third party—those must be specified.

Reviewer #1: Yes

Reviewer #2: No

Reviewer #3: Yes

Reviewer #4: Yes

**********

5. Is the manuscript presented in an intelligible fashion and written in standard English?

PLOS ONE does not copyedit accepted manuscripts, so the language in submitted articles must be clear, correct, and unambiguous. Any typographical or grammatical errors should be corrected at revision, so please note any specific errors here.

Reviewer #1: Yes

Reviewer #2: Yes

Reviewer #3: Yes

Reviewer #4: Yes

**********

6. Review Comments to the Author

Please use the space provided to explain your answers to the questions above. You may also include additional comments for the author, including concerns about dual publication, research ethics, or publication ethics. (Please upload your review as an attachment if it exceeds 20,000 characters)

Reviewer #1: The Authors addressed my concernes adequately.

Please double check the manuscript for typos (e.g. "avaiable" instead of "available" in footnote 1).

Reviewer #2: thanks for improving the paper based on the comments.

the current version can be considered for publication.

Reviewer #3: (No Response)

Reviewer #4: Most of the comments addressed by the author. This manuscript is ready for the publication. I have a request that it would be nice if title Data of introduction moved to 3. material and methods.

**********

7. PLOS authors have the option to publish the peer review history of their article (what does this mean?). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review? For information about this choice, including consent withdrawal, please see our Privacy Policy.

Reviewer #1: No

Reviewer #2: No

Reviewer #3: No

Reviewer #4: Yes: Shreedhar Acharya

**********

Associated Data

    This section collects any data citations, data availability statements, or supplementary materials included in this article.

    Supplementary Materials

    S1 Appendix

    (PDF)

    Attachment

    Submitted filename: Author_response_to_review_comments_ayahuasca_paper_FINAL.pdf

    Data Availability Statement

    The data used in this work may be obtained here: Ekman Schenberg, Eduardo, 2015, "Acute Biphasic effects of ayahuasca", https://doi.org/10.7910/DVN/VVE6QC, Harvard Dataverse, V1 This information may be found here: Schenberg EE, Alexandre JFM, Filev R, Cravo AM, Sato JR, Muthukumaraswamy SD, et al. (2015) Acute Biphasic Effects of Ayahuasca. PLoS ONE 10(9): e0137202. https://doi.org/10.1371/journal.pone.0137202 doi: 10.1371/journal.pone.0137202 We also uploaded the Pearson connectivity matrix from the original data in the following Figshare repositories here: Pearson’s connection matrix of the EEG experiments of subjects who ingested Ayahuasca at the time after the psychedelic activation time can be found here: Alves, Caroline (2022): With-ayahuasca. Figshare repository. Dataset. https://doi.org/10.6084/m9.figshare.21082513.v1 Pearson’s connection matrix of the EEG experiments of subjects who ingested Ayahuasca at the time before the psychedelic activation time: Alves, Caroline (2022): No-ayahuasca. Figshare repository. Dataset. https://doi.org/10.6084/m9.figshare.21082531.v1.


    Articles from PLOS ONE are provided here courtesy of PLOS

    RESOURCES