Interesting stuff.

The summary below is from

*Discover*, then the whole article, which is open access, is also included below.

## This Is Your Brain on Psychedelic Drugs

By Ben Thomas | October 29, 2014 4:16 pm

Left, the stable brain activity in a normal brain. Right, under the influence of psilocybin, diverse brain regions not normally in communication become strongly linked.

Psychedelic substances can change a user’s mindset in profound ways — a fact that’s relevant even to those who’ve never touched the stuff, because such altered states of consciousness give scientists a window into how our brains give rise to our normal mental states. But neuroscientists are only beginning to understand how and why those mental changes occur.

Now some mathematicians have jumped into the fray, using a new mathematical technique to analyze the brains of people on magic mushrooms.

Psychedelic Puzzles

Scientists have known for decades that many of psychedelic drugs’ most famous effects — visual hallucinations, heightened sensory and emotional sensitivity, etc. — are linked to elevated levels of the neurotransmitter serotonin.

But increasingly neuroscience researchers are interested not just in single chemicals but also in overall brain activity, because the most complicated brain functions arise from lots of different regions working together. Over the last several years, a branch of mathematics known as network theory has been applied to study this phenomenon.

Paul Expert, a complexity researcher at the Imperial College London, and his team took this approach to analyzing fMRI data from people who’d taken psilocybin, the psychedelic chemical in magic mushrooms. The team had recently been working on a new technique for network modeling — one designed to highlight small but unusual patterns in network connectivity.

Brains on Drugs

The team used fMRI data from a previous study, in which 15 healthy people rested inside an fMRI scanner for 12 minutes on two separate occasions. The volunteers received a placebo in one of those sessions, and a mild dose of psilocybin during the other, but they weren’t told which was which.

The investigators crunched the data, specifically studying the brain’s functional connectivity — the amount of active communication among different brain areas.

They found two main effects of the psilocybin. First, most brain connections were fleeting. New connectivity patterns tended to disperse more quickly under the influence of psilocybin than under placebo. But, intriguingly, the second effect was in the opposite direction: a few select connectivity patterns were surprisingly stable, and very different from the normal brain’s stable connections.

This indicates “that the brain does not simply become a random system after psilocybin injection, but instead retains some organizational features, albeit different from the normal state,” the authors write in their paper in theJournal of the Royal Society Interface.

Far Out

The findings seem to explain some of the psychological experiences of a psilocybin trip. Linear thinking and planning become extremely difficult, but nonlinear “out of the box” thinking explodes in all directions. By the same token, it can become difficult to tell fantasy apart from reality during a psilocybin trip; but focusing on a certain thought or image — real or imagined — often greatly amplifies that thought’s intensity and vividness.

The authors suggest that effects like these may be rooted in the two connectivity traits they spotted, since the connectivity patterns that rapidly disperse may reflect unorganized thinking, while the stable inter-regional connections may reflect information from one sensory domain “bleeding” into other areas of sensory experience. In fact, the researchers also suggest that synesthesia — the sensory blurring that causes users of psychedelics to experience sounds as colors, for example — may be a result of these connectivity changes too.

The researchers hope that the patterns they’ve found will provide neuroscientists with new approaches for studying the brain on psychedelic drugs, and therefore better understand the strange psychological effects their users report.

* * * * *

**Full Citation:**

Petri, G, Expert, P, Turkheimer, F, Carhart-Harris, R, Nutt, D, Hellyer, PJ, and Vaccarino, F. (2014, Oct 29). Homological scaffolds of brain functional networks.

*J. R. Soc. Interface*;

**11**(101). doi: 10.1098/rsif.2014.0873 [Print: 6 December 2014]

## Homological scaffolds of brain functional networks

G. Petri [1], P. Expert [2], F. Turkheimer [2], R. Carhart-Harris [3], D. Nutt [3], P. J. Hellyer [4] and

F. Vaccarino [1,5]

1. ISI Foundation, Via Alassio 11/c, 10126 Torino, Italy

2. Centre for Neuroimaging Sciences, Institute of Psychiatry, Kings College London, De Crespigny Park, London SE5 8AF, UK

3. Centre for Neuropsychopharmacology, Imperial College London, London W12 0NN, UK

4. Computational, Cognitive and Clinical Neuroimaging Laboratory, Division of Brain Sciences, Imperial College London, London W12 0NN, UK

5. Dipartimento di Scienze Matematiche, Politecnico di Torino, C.so Duca degli Abruzzi no 24, Torino 10129, ItalyAbstract

Networks, as efficient representations of complex systems, have appealed to scientists for a long time and now permeate many areas of science, including neuroimaging (Bullmore and Sporns 2009 Nat. Rev. Neurosci. 10, 186–198. (doi:10.1038/nrn2618)). Traditionally, the structure of complex networks has been studied through their statistical properties and metrics concerned with node and link properties, e.g. degree-distribution, node centrality and modularity. Here, we study the characteristics of functional brain networks at the mesoscopic level from a novel perspective that highlights the role of inhomogeneities in the fabric of functional connections. This can be done by focusing on the features of a set of topological objects—homological cycles—associated with the weighted functional network. We leverage the detected topological information to define the homological scaffolds, a new set of objects designed to represent compactly the homological features of the correlation network and simultaneously make their homological properties amenable to networks theoretical methods. As a proof of principle, we apply these tools to compare resting-state functional brain activity in 15 healthy volunteers after intravenous infusion of placebo and psilocybin—the main psychoactive component of magic mushrooms. The results show that the homological structure of the brain's functional patterns undergoes a dramatic change post-psilocybin, characterized by the appearance of many transient structures of low stability and of a small number of persistent ones that are not observed in the case of placebo.

1. Motivation

The understanding of global brain organization and its large-scale integration remains a challenge for modern neurosciences. Network theory is an elegant framework to approach these questions, thanks to its simplicity and versatility [1]. Indeed, in recent years, networks have become a prominent tool to analyse and understand neuroimaging data coming from very diverse sources, such as functional magnetic resonance imaging (fMRI), electroencephalography and magnetoencephalography [2,3], also showing potential for clinical applications [4,5].A natural way of approaching these datasets is to devise a measure of dynamical similarity between the microscopic constituents and interpret it as the strength of the link between those elements. In the case of brain functional activity, this often implies the use of similarity measures such as (partial) correlations or coherence [6–8], which generally yield fully connected, weighted and possibly signed adjacency matrices. Despite the fact that most network metrics can be extended to the weighted case [9–13], the combined effect of complete connectedness and edge weights makes the interpretation of functional networks significantly harder and motivates the widespread use ofad hocthresholding methods [7,14–18]. However, neglecting weak links incurs the dangers of a trade-off between information completeness and clarity. In fact, it risks overlooking the role that weak links might have, as shown for example in the cases of resting-state dynamics [19,20], cognitive control [21] and correlated network states [22].In order to overcome these limits, Rubinov & Sporn [13,23,24] recently introduced a set of generalized network and community metrics for functional networks that among others were used to uncover the contrasting dynamics underlying recollection [25] and the physiology of functional hubs [26].In this paper, we present an alternative route to the analysis of brain functional networks. We focus on the combined structure of connections and weights as captured by the homology of the network. A summary of all the keywords and concepts introduced in this paper can be found in table 1.2. From networks to topological spaces and homology

Homology is a topological invariant that characterizes a topological spaceXby counting its holes and their dimensions. By hole, we mean a hollow region bounded by the parts of that space. The dimension of a hole is directly related to the dimension of its boundary. The boundary of a two-dimensional hole is a one-dimensional loop; the three-dimensional inner part of a doughnut, where the filling goes, is bounded by two-dimensional surface; for dimensions higher than 2, it becomes difficult to have a mental representation of a hole, butk-dimensional holes are still bounded by (k− 1) dimensional faces. In our work, we start with a network and from it construct a topological space. We now use figure 1 to show how we proceed and make rigorous what we mean by boundaries and holes.In a network like that of figure 1a, we want the ring of nodes (a,b,c,d) to be a good candidate for a one-dimensional boundary, whereas the other rings of three nodes should not constitute interesting holes. The reason for this choice comes from the formalization of the notion of hole. One way to formalize this is by opposition that is we define what we mean by a dense subnetwork in order to highlight regions of reduced connectivity, i.e. holes. The most natural and conservative definition we can adopt for a dense subnetwork is that ofclique, a completely connected subgraph [27]. Moreover, cliques have the crucial property, which will be important later, of being nested, i.e. a clique of dimensionk(k-clique) contains all them-cliques defined by its nodes withm<k. Using this definition andfilling inall the maximal cliques, the network in figure 1acan be represented as in figure 1b: 3-cliques are filled in, becoming tiles, and the only interesting structure left is the square (a,b,c,d). It is important at this point to note that ak-clique can be seen as ak− 1 simplex, i.e. as the convex hull ofk-points. Our representation of a network can thus be seen as a topological space formed by a finite set of simplices that by construction satisfy the condition that defines the type of topological spaces called abstract simplicial complexes [28]: each element of the space is a simplex, and each of its faces (or subset in the case of cliques) is also a simplex.This condition is satisfied, because each clique is a simplex, and subsets of cliques are cliques themselves, and the intersection of two cliques is still a clique.The situation with weighted networks becomes more complicated. In the context of a weighted network, the holes can be thought of as representing regions of reduced connectivity with respect to the surrounding structure.Consider, for example, the case depicted in figure 2a: the network is almost the same as figure 1 with the two exceptions that it now has weighted edges and has an additional very weak edge between nodesaandc. The edges in the cycle [a,b,c,d] are all much stronger than the link (a,c) that closes the hole by making (a,b,d) and (b,c,d) cliques and therefore fills them. The loop (e,f,g,h,i) has a similar situation, but the difference in edge weights between the links along the cycle and those crossing, is not as large as in the previous case. It would be therefore useful to be able to generalize the approach exposed earlier for binary networks to the case of weighted networks in such a way as to be able to measure the difference between the two cases (a,b,c,d) and (e,f,g,h,i). As shown by figure 2b, this problem can be intuitively thought of as a stratigraphy in the link-weight fabric of the network, where the aim is to detect the holes, measure their depth and when they appear as we scan across the weights' range.From figure 2b, it becomes clear that the added value of this method over conventional network techniques lies in its capability to describe mesoscopic patterns that coexist over different intensity scales, and hence to complement the information about the community structure of brain functional networks. A way to quantify the relevance of holes is given bypersistent homology. We describe it and its application to the case of weighted networks in full detail in §3.3. A persistent homology of weighted networks

The method that we adopt was introduced in references [29,30] and relies on an extension of the metrical persistent homology theory originally introduced by references [31,32]. Technical details about the theory of persistent homology and how the computation is performed can be found in the works of Carlsson, Zomorodian and Edelsbrunner [28,31–35]. Persistent homology is a recent technique in computational topology developed for shape recognition and the analysis of high dimensional datasets [36,37]. It has been used in very diverse fields, ranging from biology [38,39] and sensor network coverage [40] to cosmology [41]. Similar approaches to brain data [42,43], collaboration data [44] and network structure [45] also exist. The central idea is the construction of a sequence of successive approximations of the original dataset seen as a topological spaceX. This sequence of topological spacesX_{0},X_{1}, … ,X=_{N}Xis such that wheneveri<jand is called thefiltration. Choosing how to construct a filtration from the data is equivalent to choosing the type of goggles one wears to analyse the data.In our case, we sort the edge weights in descending order and use the ranks as indices for the subspaces. More specifically, denote by the functional network with verticesV, edgesEand weights . We then consider the family of binary graphsG= (_{ω}V,E), where an edge_{ω}e ∈ Eis also included inGif its weight_{ω}ωis larger than_{e}ω().To each of theG, we associate its_{ω}clique, orflag complex K, that is the simplicial complex that contains the_{ω}k-simplex [n_{0},n_{1},n_{2}, …n_{k}_{− 1}] whenever the nodesn_{0},n_{1},n_{2}, …n_{k}_{−1}define a clique inG[27]. As subsets of cliques and intersections of cliques are cliques themselves, as we pointed out in §2, our clique complex is thus a particular case of a simplicial complex._{ω}The family of complexes {K} defines a filtration, because we have for_{ω}ω>ω′. At each step, the simplices inKinherit their configuration from the underlying network structure and, because the filtration swipes across all weight scales in descending order, the holes among these units constitute mesoscopic regions of reduced functional connectivity._{ω}Moreover, this approach also highlights how network properties evolve along the filtration, providing insights about where and when lower connectivity regions emerge. This information is available, because it is possible to keep track of eachk-dimensional cycle in the homology groupH. A generator uniquely identifies a hole by its constituting elements at each step of the filtration process. The importance of a hole is encoded in the form of ‘time-stamps' recording its birth_{k}βand death_{g}δalong the filtration {_{g}K} [31]. These two time-stamps can be combined to define the_{ω}persistence π=_{g}δ−_{g}βof a hole, which gives a notion of its importance in terms of it lifespan. Continuing the analogy with stratigraphy,_{g}βand_{g}δcorrespond, respectively, to the top and the bottom of a hole and_{g}πwould be its depth. As we said above, a generator , or hole, of the_{g}kth homology groupHis identified by its birth and death along the filtration. Therefore, is described by the point . A standard way to summarize the information about the whole_{k}kth persistent homology group is then to consider the diagram obtained plotting the points corresponding to the set of generators. The (multi)set {(β,_{g}δ} is called the persistence diagram of_{g}H. In figure 2_{k}c, we show the persistence diagram for the network shown in figure 2aforH_{1}. Axes are labelled by weights in decreasing order. It is easy to check that the coordinates correspond exactly to the appearance and disappearance of generators. The green vertical bars highlight the persistence of a generator along the filtration. The further a point is from the diagonal (vertically), the more persistent the generator is. In §4, we introduce two objects, the persistence and the frequency homological scaffolds, designed to summarize the topological information about the system.4. Homological scaffolds

Once one has calculated the generators of thekth persistent homology groupH, the corresponding persistence diagram contains a wealth of information that can be used, for example, to highlight differences between two datasets. It would be instructive to obtain a synthetic description of the uncovered topological features in order to interpret the observed differences in terms of the microscopic components, at least for low dimensions_{k}k. Here, we present a scheme to obtain such a description by using the information associated with the generators during the filtration process. As each generator, is associated with a whole equivalence class, rather than to a single chain of simplices, we need to choose a representative for each class, we use the representative that is returned by thejavapleximplementation [46] of the persistent homology algorithm [47]. For the sake of simplicity in the following, we use the same symbol to refer to a generator and its representative cycle.We exploit this to define two new objects, thepersistenceand thefrequency homological scaffoldsand of a graphG. Thepersistence homological scaffoldis the network composed of all the cycle paths corresponding to generators weighted by their persistence. If an edgeebelongs to multiple cyclesg_{0},g_{1}, … ,g, its weight is defined as the sum of the generators' persistence:_{s}4.1Similarly, we define thefrequency homological scaffoldas the network composed of all the cycle paths corresponding to generators, where this time, an edgeeis weighted by the number of different cycles it belongs to4.2where is the indicator function for the set of edges composingg. By definition, the two scaffolds have the same edge set, although differently weighted._{i}The construction of these two scaffolds therefore highlights the role of links which are part of many and/or long persistence cycles, isolating the different roles of edges within the functional connectivity network. The persistence scaffolds encodes the overall persistence of a link through the filtration process: the weight in the persistence scaffold of a link belonging to a certain set of generators is equal to the sum of the persistence of those cycles. The frequency scaffold instead highlights the number of cycles to which a link belongs, thus giving another measure of the importance of that edge during the filtration. The combined information given by the two scaffolds then enables us to decipher the nature of the role different links have regarding the homological properties of the system. A large total persistence for a link in the persistence scaffold implies that the local structure around that link is very weak when compared with the weight of the link, highlighting the link as a locally strong bridge. We remark that the definition of scaffolds we gave depends on the choice of a specific basis of the homology group, and the choice of a consistent basis is an open problem in itself, therefore the scaffolds are not topological invariants. Moreover, it is possible for an edge to be added to a cycle shortly after the cycle's birth in such a way that it creates a triangle with the two edges composing the cycle. In this way, the new edge would be part of the shortest cycle, but the scaffold persistence value would be misattributed to the two other edges. This can be checked, for example, by monitoring the clustering coefficient of the cycle's subgraph as edges are added to it. We checked for this effect and found that in over 80% of the cases the edges do not create triangles that would imply the error, but instead new cycles are created, whose contribution to the scaffold is then accounted for by the new cycle. Finally, we note also that, when a new triangle inside the cycle is created, the two choices of generator differ for a path through a third strongly connected node, owing to the properties of boundary operators. Despite this ambiguity, we show in the following that they can be useful to gain an understanding of what the topological differences detected by the persistent homology actually mean in terms of the system under study.5. Results from fMRI networks

We start from the processed fMRI time series (see Methods for details). The linear correlations between regional time series were calculated after covarying out the variance owing to all other regions and the residual motion variance represented by the 24 rigid motion parameters obtained from the pre-processing, yielding a partial-correlation matrixχfor each subject. The matrices^{α}χwere then analysed with the algorithm described in the previous sections. We calculated the generators of the first homological group^{α}H_{1}along the filtration. As mentioned before, each of these generators identifies a lack of mesoscopic connectivity in the form of a one-dimensional cycle and can be represented in a persistence diagram. We aggregate together the persistence diagrams of subjects belonging to each group and compute an associated persistence probability density (figure 3). These probability density functions constitute the statistical signature of the groups'H_{1}features.We find that, although the number of cycles in the groups are comparable, the two probability densities strongly differ (Kolmogorov–Smirnov statistics: 0.22,p-value less than 10^{−10}).The placebo group displays generators appearing and persisting over a limited interval of the filtration. On the contrary, most of the generators for the psilocybin group are situated in a well-defined peak at small birth indices, indicating a shorter average cycle persistence. However, the psilocybin distribution is also endowed with a longer tail implying the existence of a few cycles that are longer-lived compared with the placebo condition and that influences the weight distribution of the psilocybin persistence scaffold. The difference in behaviour of the two groups is made explicit when looking at the probability distribution functions for the persistence and the birth of generators (figure 4), which are both found to be significantly different (Kolmogorov–Smirnov statistics: 0.13,p-value < 10^{−30}for persistence and Kolmogorov–Smirnov statistics: 0.14,p-value < 10^{−35}for births). In order to better interpret and understand the differences between the two groups, we use the two secondary networks described in §4, and for the placebo group and and for the psilocybin group. The weight of the edges in these secondary networks is proportional to the total number of cycles an edge is part of, and the total persistence of those cycles, respectively. They complement the information given by the persistence density distribution, where the focus is on the entire cycle's behaviour, with information on single links. In fact, individual edges belonging to many and long persistence cycles represent functionally stable ‘hub’ links. As with the persistence density distribution, the scaffolds are obtained at a group level by aggregating the information about all subjects in each group. These networks are slightly sparser than the original completeχnetworks^{α}5.1and 5.2and have comparable densities. A first difference between the two groups becomes evident when we look at the distributions for the edge weights (figure 5a). In particular, the weights of display a cut-off for large weights, whereas the weights of have a broader tail (Kolmogorov–Smirnov statistics: 0.06,p-value < 10^{−20}; figure 5a). Interestingly, the frequency scaffold weights probability density functions cannot be distinguished from each other figure 5a(inset) (Kolmogorov–Smirnov statistics: 0.008,p-value = 0.72). Taken together, these two results imply that while edges statistically belong to the same number of cycles, in the psilocybin scaffold, there exist very strong, persistent links.The difference between the two sets of homological scaffolds for the two groups becomes even more evident when one compares the weights between the frequency and persistence scaffolds of the same group. Figure 5bis a scatter plot of between the weights of edges from both scaffolds for the two groups. The placebo group has a linear relationship between the two quantities meaning that edges that are persistent also belongs to many cycles (R^{2}= 0.95, slope = 0.23). Although the linear relationship is still a reasonable fit for the psilocybin group (R^{2}= 0.9, slope = 0.3), the data in this case display a larger dispersion. In particular, it shows that edges in can be much more persistent/longer-lived than in but still appear in the same number of cycles, i.e. the frequency of a link is not predictive of its persistence or simply put: some connections are much more persistent in the psychedelic state. Moreover, the slopes of linear fits of the two clouds are statistically different (p-value < 10^{−}^{20},n_{pla}= 13 200 andn_{psi}= 13 275 [48]) pointing to a starkly different local functional structure in the two conditions.The results from the persistent homology analysis and the insights provided by the homological scaffolds imply that although the mesoscopic structures, i.e. cycles, in the psilocybin condition are less stable than in the placebo group, their constituent edges are more stable.6. Discussion

In this paper, we first described a variation of persistent homology that allows us to deal with weighted and signed networks. We then introduced two new objects, the homological scaffolds, to go beyond the picture given by persistent homology to represent and summarize information about individual links. The homological scaffolds represent a new measure of topological importance of edges in the original system in terms of how frequently they are part of the generators of the persistent homology groups and how persistent are the generators to which they belong to. We applied this method to an fMRI dataset comprising a group of subjects injected with a placebo and another injected with psilocybin.By focusing on the second homology groupH_{1}, we found that the stability of mesoscopic association cycles is reduced by the action of psilocybin, as shown by the difference in the probability density function of the generators ofH_{1}(figure 3).It is here that the importance of the insight given by the homological scaffolds in the persistent homology procedure becomes apparent. A simple reading of this result would be that the effect of psilocybin is to relax the constraints on brain function, ascribing cognition a more flexible quality, but when looking at the edge level, the picture becomes more complex. The analysis of the homological scaffolds reveals the existence of a set of edges that are predominant in terms of their persistence although they are statistically part of the same number of cycles in the two conditions (figure 5). In other words, these functional connections support cycles that are especially stable and are only present in the psychedelic state. This further implies that the brain does not simply become a random system after psilocybin injection, but instead retains some organizational features, albeit different from the normal state, as suggested by the first part of the analysis. Further work is required to identify the exact functional significance of these edges. Nonetheless, it is interesting to look at the community structure of the persistence homological scaffolds in figure 6. The two pictures are simplified cartoons of the placebo (figure 6a) and psilocybin (figure 6b) scaffolds. In figure 6a,b, the nodes are organized and coloured according to their community membership in the placebo scaffold (obtained with the Louvain algorithm for maximal modularity and resolution 1 [50]). This is done in order to highlight the striking difference in connectivity structure in the two cases. When considering the edges in the tail of the distribution, weight greater than or equal to 80, in figure 5a, only 29 of the 374 edges present in the truncated psilocybin scaffold are shared with the truncated placebo scaffold (165 edges). Of these 374 edges, 217 are between placebo communities and are observed to mostly connect cortical regions. This supports our idea that psilocybin disrupts the normal organization of the brain with the emergence of strong, topologically long-range functional connections that are not present in a normal state.

Figure 6. Simplified visualization of the persistence homological scaffolds.The persistence homological scaffolds (a) and (b) are shown for comparison. For ease of visualization, only the links heavier than 80 (the weight at which the distributions in figure 5a bifurcate) are shown. This value is slightly smaller than the bifurcation point of the weights distributions in figure 5a. In both networks, colours represent communities obtained by modularity [49] optimization on the placebo persistence scaffold using the Louvain method [50] and are used to show the departure of the psilocybin connectivity structure from the placebo baseline. The width of the links is proportional to their weight and the size of the nodes is proportional to their strength. Note that the proportion of heavy links between communities is much higher (and very different) in the psilocybin group, suggesting greater integration. A labelled version of the two scaffolds is available as GEXF graph files as the electronic supplementary material. (Online version in colour.)The two key results of the analysis of the homological scaffolds can therefore be summarized as follows (i) there is an increased integration between cortical regions in the psilocybin state and (ii) this integration is supported by a persistent scaffold of a set of edges that support cross modular connectivity probably as a result of the stimulation of the 5HT2A receptors in the cortex [51].We can speculate on the implications of such an organization. One possible by-product of this greater communication across the whole brain is the phenomenon of synaesthesia which is often reported in conjunction with the psychedelic state. Synaesthesia is described as an inducer-concurrent pairing, where the inducer could be a grapheme or a visual stimulus that generates a secondary sensory output—like a colour for example. Drug-induced synaesthesia often leads to chain of associations, pointing to dynamic causes rather than fixed structural ones as may be the case for acquired synaesthesia [52]. Broadly consistent with this, it has been reported that subjects under the influence of psilocybin have objectively worse colour perception performance despite subjectively intensified colour experience [53].To summarize, we presented a new method to analyse fully connected, weighted and signed networks and applied it to a unique fMRI dataset of subjects under the influence of mushrooms. We find that the psychedelic state is associated with a less constrained and more intercommunicative mode of brain function, which is consistent with descriptions of the nature of consciousness in the psychedelic state.7. Methods

## 7.1. Dataset

A pharmacological MRI dataset of 15 healthy controls was used for a proof-of-principle test of the methodology [54]. Each subject was scanned on two separate occasions, 14 days apart. Each scan consisted of a structural MRI image (T1-weighted), followed by a 12 min eyes-close resting-state blood oxygen-level-dependent (BOLD) fMRI scan which lasted for 12 min. Placebo (10 ml saline, intravenous injection) was given on one occasion and psilocybin (2 mg dissolved in 10 ml saline) on the other. Injections were given manually by a study doctor situated within the scanning suite. Injections began exactly 6 min after the start of the 12-min scans, and continued for 60 s.7.1.1. Scanning parameters

The BOLD fMRI data were acquired using standard gradient-echo EPI sequences, reported in detail in reference [54]. The volume repetition time was 3000 ms, resulting in a total of 240 volumes acquired during each 12 min resting-state scan (120 pre- and 120 post-injection of placebo/psilocybin).7.1.2. Image pre-processing

fMRI images were corrected for subject motion within individual resting-state acquisitions, by registering all volumes of the functional data to the middle volume of the acquisition using the FMRIB linear registration motion correction tool, generating a six-dimension parameter time course [55]. Recent work demonstrates that the six parameter motion model is insufficient to correct for motion-induced artefact within functional data, instead a Volterra expansion of these parameters to form a 24 parameter model is favoured as a trade-off between artefact correction and lost degrees of freedom as a result of regressing motion away from functional time courses [56]. fMRI data were pre-processed according to standard protocols using a high-pass filter with a cut-off of 300 s.

Structural MRI images were segmented inton= 194 cortical and subcortical regions, including white matter cerebrospinal fluid (CSF) compartments, using Freesurfer (http://surfer.nmr.mgh.harvard.edu/), according to the Destrieux anatomical atlas [57]. In order to extract mean-functional time courses from the BOLD fMRI, segmented T1 images were registered to the middle volume of the motion-corrected fMRI data, using boundary-based registration [58], once in functional space mean time-courses were extracted for each of then= 194 regions in native fMRI space.7.1.3. Functional connectivity

For each of the 194 regions, alongside the 24 parameter motion model time courses, partial correlations were calculated between all couples of time courses (i,j), non-neural time courses (CSF, white matter and motion) were discarded from the resulting functional connectivity matrices, resulting in a 169 region cortical/subcortical functional connectivity corrected for motion and additional non-neural signals (white matter/CSF).## 7.2. Persistent homology computation

For each subject in the two groups, we have a set of persistence diagrams relative to the persistent homology groupsH. In this paper, we use the_{n}H_{1}persistence diagrams of each group to construct the corresponding persistence probability densities forH_{1}cycles.Filtrations were obtained from the raw partial-correlation matrices through the Python packageHolesand fed tojavaplex[46] via a Jython subroutine in order to extract the persistence intervals and the representative cycles. The details of the implementation can be found in reference [30], and the software is available at Holes [59].Funding statement

G.P. and F.V. are supported by the TOPDRIM project supported by the Future and Emerging Technologies programme of the European Commission under Contract IST-318121. I.D. P.E. and F.T. are supported by a PET methodology programme grant from the Medical Research Council UK (ref no. G1100809/1). The authors acknowledge support of Amanda Feilding and the Beckley Foundation and the anonymous referees for their critical and constructive contribution to this paper.© 2014 The Authors. Published by the Royal Society under the terms of the Creative Commons Attribution License http://creativecommons.org/licenses/by/4.0/, which permits unrestricted use, provided the original author and source are credited.References at the Journal of the Royal Society Interface site