{"id":477,"date":"2022-05-05T11:54:00","date_gmt":"2022-05-05T11:54:00","guid":{"rendered":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/carla-pinkney\/?p=477"},"modified":"2022-05-06T09:01:41","modified_gmt":"2022-05-06T09:01:41","slug":"spectral-synchronicity-in-the-human-brain","status":"publish","type":"post","link":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/carla-pinkney\/2022\/05\/05\/spectral-synchronicity-in-the-human-brain\/","title":{"rendered":"Spectral Synchronicity in the Human Brain &#8211; Part 1"},"content":{"rendered":"\n<p>The human brain is arguably one of the most complex structures ever to exist, consisting of around 86 billion neurons on average.  Electrical activity in the brain is often the result of highly coordinated responses from a large number of neurons, both locally, within each brain region, and globally, across different regions. In this blog post, we investigate brain activity using Electroencephalograms (EEGs), which capture the oscillations produced by the coordinated activity of neurons.<\/p>\n\n\n\n<p>An EEG is a medical test during which small electrodes are attached to the scalp (see Figure 1 below). These electrodes detect electrical charges that result from neuronal activity. Importantly, EEGs can be used to help diagnose and monitor a number of conditions affecting the brain, including epilepsy.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/carla-pinkney\/wp-content\/uploads\/sites\/39\/2022\/05\/EEG-Picture-1024x683.jpg\" alt=\"\" class=\"wp-image-479\" width=\"429\" height=\"286\" srcset=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/carla-pinkney\/wp-content\/uploads\/sites\/39\/2022\/05\/EEG-Picture-1024x683.jpg 1024w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/carla-pinkney\/wp-content\/uploads\/sites\/39\/2022\/05\/EEG-Picture-300x200.jpg 300w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/carla-pinkney\/wp-content\/uploads\/sites\/39\/2022\/05\/EEG-Picture-768x512.jpg 768w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/carla-pinkney\/wp-content\/uploads\/sites\/39\/2022\/05\/EEG-Picture-1536x1024.jpg 1536w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/carla-pinkney\/wp-content\/uploads\/sites\/39\/2022\/05\/EEG-Picture-2048x1365.jpg 2048w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/carla-pinkney\/wp-content\/uploads\/sites\/39\/2022\/05\/EEG-Picture-930x620.jpg 930w\" sizes=\"(max-width: 429px) 100vw, 429px\" \/><figcaption>Figure 1: Visual representation of subject receiving an EEG test. <\/figcaption><\/figure><\/div>\n\n\n\n<p>Statistically, EEGs are multivariate time series recordings that can be viewed as mixtures of oscillations with differing amplitudes across locations on the scalp. That is, we can denote by <span class=\"wp-katex-eq\" data-display=\"false\"> X(t), t=1,\\dots, T<\/span> an EEG recording for one epoch at a single channel. Recall that a channel simply corresponds to the place at which an electrode is attached to the scalp. In the discussion that follows, we assume that the time series <span class=\"wp-katex-eq\" data-display=\"false\"> X(t) <\/span> is weakly stationary. <\/p>\n\n\n\n<p>Figure 2 provides a visual exemplification of what an EEG  recording at a given channel may look like. Highlighted in blue is a particular segment of the time series, this is what we refer to as an epoch in the paragraph above.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"797\" height=\"266\" src=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/carla-pinkney\/wp-content\/uploads\/sites\/39\/2022\/05\/Example-Recording.png\" alt=\"\" class=\"wp-image-480\" srcset=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/carla-pinkney\/wp-content\/uploads\/sites\/39\/2022\/05\/Example-Recording.png 797w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/carla-pinkney\/wp-content\/uploads\/sites\/39\/2022\/05\/Example-Recording-300x100.png 300w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/carla-pinkney\/wp-content\/uploads\/sites\/39\/2022\/05\/Example-Recording-768x256.png 768w\" sizes=\"(max-width: 797px) 100vw, 797px\" \/><figcaption>Figure 2: Visual representation of an EEG recording at a given channel.<\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">The Spectral Density<\/h2>\n\n\n\n<p>When looking at EEG recordings, we are often interested in determining their oscillatory content. This can be achieved by estimating the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Spectral_density\">spectral density<\/a>. In short, the spectral density is capable of characterising the oscillatory content of the EEG, and describes the distribution of the total variance (energy) across all frequencies. <\/p>\n\n\n\n<p>As you may have deduced from the previous paragraph, the spectral density is a concept specific to the frequency domain of time series analysis. For an introduction to the area, with specific content relating to the modelling of EEG recordings, I recommend <a href=\"https:\/\/www.routledgehandbooks.com\/doi\/10.1201\/9781315373652\">Chapter 20 of the Handbook of Neuroimaging Data analysis<\/a>. <\/p>\n\n\n\n<p>Rather than getting bogged down with the theory of spectral analysis, I have chosen to  present a simple motivating example using an AR(2) process. The intended purpose of which is to demonstrate how the spectral density relates to the signal observed in the time domain. <\/p>\n\n\n\n<p>Below are 3 realisations from an AR(2) process, each with spectral densities concentrated at different frequencies &#8211; namely 10Hz, 20Hz and 40Hz. Crucially, we see that time series with spectral densities concentrated around higher frequency values exhibit faster oscillations of the signal in the time domain, compared to those with spectral densities concentrated at  lower frequencies. <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img decoding=\"async\" src=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/carla-pinkney\/wp-content\/uploads\/sites\/39\/2022\/05\/AR2-Example-1024x434.png\" alt=\"\" class=\"wp-image-486\" width=\"779\" height=\"331\" srcset=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/carla-pinkney\/wp-content\/uploads\/sites\/39\/2022\/05\/AR2-Example-1024x434.png 1024w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/carla-pinkney\/wp-content\/uploads\/sites\/39\/2022\/05\/AR2-Example-300x127.png 300w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/carla-pinkney\/wp-content\/uploads\/sites\/39\/2022\/05\/AR2-Example-768x325.png 768w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/carla-pinkney\/wp-content\/uploads\/sites\/39\/2022\/05\/AR2-Example.png 1305w\" sizes=\"(max-width: 779px) 100vw, 779px\" \/><figcaption>Figure 3: Top: Spectral densities for AR(2) process concentrated at different frequencies. Bottom: Realisations from the corresponding AR(2) process.  <\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">The Hierarchical Spectral Merger Algorithm<\/h2>\n\n\n\n<p>Following on from my admittedly brief discussion of the spectral density, I now wish to discuss a way in which it can be used to identify a modular structure within the brain. More specifically, I am going to give a high level overview of a method called the <a href=\"https:\/\/arxiv.org\/abs\/1609.08569\">Hierarchical Spectral Merger Algorithm<\/a> (HSM). <\/p>\n\n\n\n<p>Put simply, this algorithm is a clustering technique, and the overall idea is to construct clusters of brain signals that &#8220;co-activate&#8221; in the frequency domain. That is, assuming that the spectral density encapsulates all the information regarding the signal recorded at each channel, the HSM algorithm will construct clusters of channels that have similar spectral densities.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Total Variation Distance (TVD)<\/h3>\n\n\n\n<p>As is the case for any clustering approach, we first need to identify a way in which to measure similarity between the objects of interest. As aforementioned, the spectral density is the key feature on which we base our classification. Therefore, we are interested in measuring the similarity between spectral densities. This is achieved via the total variation distance (TVD).<\/p>\n\n\n\n<p>We motivate the idea of TVD by considering two probability densities (see Figure 4 below). The main idea is to measure how similar two densities are by considering the common area below both densities, as depicted by the shaded region in Figure 4.  <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/carla-pinkney\/wp-content\/uploads\/sites\/39\/2022\/05\/TVD-with-Delta.png\" alt=\"\" class=\"wp-image-490\" width=\"466\" height=\"371\" srcset=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/carla-pinkney\/wp-content\/uploads\/sites\/39\/2022\/05\/TVD-with-Delta.png 392w, https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/carla-pinkney\/wp-content\/uploads\/sites\/39\/2022\/05\/TVD-with-Delta-300x239.png 300w\" sizes=\"(max-width: 466px) 100vw, 466px\" \/><figcaption>Figure 4: Graphical Representation of TVD. The shaded area is representative of the common area below both densities, denoted \u03b4.<\/figcaption><\/figure><\/div>\n\n\n\n<p>If we let this shaded region be denoted by <span class=\"wp-katex-eq\" data-display=\"false\"> \\delta <\/span>, then the TVD can be defined as<\/p>\n\n\n\n<p class=\"has-text-align-center\"><span class=\"wp-katex-eq\" data-display=\"false\"> d_{TV} = 1 - \\delta <\/span>.<\/p>\n\n\n\n<p>A desirable property of TVD as a similarity measure is that it is bounded on the interval [0, 1]. Consequently, the values obtained by this similarity measure are highly intuitive. More specifically, a value near 0 indicates that the densities are similar while a value near 1 indicates they are highly dissimilar. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">The HSM Algorithm<\/h3>\n\n\n\n<p>Now that we have defined our measure of similarity between spectral densities, we are ready to introduce the HSM algorithm itself. We begin by setting up some necessary notation. <\/p>\n\n\n\n<p>Let <span class=\"wp-katex-eq\" data-display=\"false\"> X_c = [X_c(1), \\dots, X_c(T)] <\/span> be the EEG recording at channel <span class=\"wp-katex-eq\" data-display=\"false\"> c, c = 1, \\dots, N. <\/span> The algorithm starts with a total of  <span class=\"wp-katex-eq\" data-display=\"false\"> N <\/span> clusters representative of the <span class=\"wp-katex-eq\" data-display=\"false\"> N <\/span> unique channels. The iterative steps of the algorithm are listed below.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Suppose there are  <span class=\"wp-katex-eq\" data-display=\"false\"> k <\/span> clusters. Estimate the spectral density for each cluster, and represent each cluster by a common normalised spectral density denoted by  <span class=\"wp-katex-eq\" data-display=\"false\"> \\hat{f}_j(\\omega),  <\/span> where <span class=\"wp-katex-eq\" data-display=\"false\">  \\\\ j=1,\\dots, k. <\/span><\/li><li>Compute the TVD between each pair of  <span class=\"wp-katex-eq\" data-display=\"false\"> k <\/span> spectral densities.<\/li><li>Identify the 2 clusters that have the smallest TVD (save this value).<\/li><li>Merge the time series in the 2 clusters with the smallest TVD. We will use this single combined cluster in subsequent steps.<\/li><li>Repeat steps 1 to 4 until there is only 1 cluster.<\/li><\/ol>\n\n\n\n<p>The first step of the algorithm involves estimating the spectral density for each EEG using something known as the smoothed periodogram. Many methods of estimation exist, however these are out with the scope of this blog post. If you are interested in finding out more about these estimators, then please see the further reading section below. Estimating the common spectral density used in subsequent repetitions of the algorithm (i.e. step 5 onwards) involves taking the weighted average over all the estimated spectral densities for each signal in the new cluster. This is highly intuitive since computing a new common spectral density will combine information across all the channels in a cluster, and thus will improve the quality of the spectral estimates.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Further Reading<\/h2>\n\n\n\n<p>This blog post has provided a brief insight into how we might go about analysing EEG recordings in the frequency domain of time series analysis. More specifically, it introduced the HSM method which constructs clusters of EEG channels exhibiting similar oscillatory content, as characterised by their spectral densities. In my next post, I will describe an application of this method to real EEG data and draw relevant conclusions.  Check it out here:<\/p>\n\n\n\n<p><a href=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/carla-pinkney\/2022\/05\/05\/spectral-synchronicity-in-the-human-brain-part-2\/\">Spectral Synchronicity in the Human Brain &#8211; Part 2<\/a><\/p>\n\n\n\n<p>More information regarding the statistical methods discussed in this blog can be found below:<\/p>\n\n\n\n<p><a href=\"https:\/\/www.routledgehandbooks.com\/doi\/10.1201\/9781315373652\">Chapter 20 of the Handbook of Neuroimaging Data analysis<\/a> &#8211; Hernando Ombao, Martin Lindquist, Wesley Thompson, John Aston<\/p>\n\n\n\n<p>T<a href=\"https:\/\/arxiv.org\/pdf\/1609.08569.pdf\">he Hierarchical Spectral Merger algorithm: A New Time Series Clustering Procedure<\/a> &#8211; Carolina Euan, Hernando Ombao , Joaqu\u0131n Ortega <\/p>\n\n\n\n<p><a href=\"https:\/\/onlinelibrary.wiley.com\/doi\/abs\/10.1002\/sim.7695?casa_token=08h2EnwI-C0AAAAA%3AXuI7HHjGUgFM89Se7RRZa74C_sXiU78tDrQkbEDwRZzAQkNV_3FAoaAwu3EY1aQCIv9VZMCHa_wtGm6Z\">Spectral synchronicity in brain signals<\/a> &#8211; Carolina Euan, Hernando Ombao , Joaqu\u0131n Ortega <\/p>\n","protected":false},"excerpt":{"rendered":"<p>The human brain is arguably one of the most complex structures ever to exist, consisting of around 86 billion neurons on average. Electrical activity in the brain is often the result of highly coordinated responses from a large number of neurons, both locally, within each brain region, and globally, across different regions. In this blog&hellip;&nbsp;<a href=\"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/carla-pinkney\/2022\/05\/05\/spectral-synchronicity-in-the-human-brain\/\" rel=\"bookmark\">Read More &raquo;<span class=\"screen-reader-text\">Spectral Synchronicity in the Human Brain &#8211; Part 1<\/span><\/a><\/p>\n","protected":false},"author":42,"featured_media":478,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","slim_seo":{"title":"Spectral Synchronicity in the Human Brain - Part 1 - Carla J. Pinkney","description":"The human brain is arguably one of the most complex structures ever to exist, consisting of around 86 billion neurons on average. Electrical activity in the bra"},"footnotes":""},"categories":[1],"tags":[],"class_list":["post-477","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/carla-pinkney\/wp-json\/wp\/v2\/posts\/477","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/carla-pinkney\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/carla-pinkney\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/carla-pinkney\/wp-json\/wp\/v2\/users\/42"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/carla-pinkney\/wp-json\/wp\/v2\/comments?post=477"}],"version-history":[{"count":24,"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/carla-pinkney\/wp-json\/wp\/v2\/posts\/477\/revisions"}],"predecessor-version":[{"id":520,"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/carla-pinkney\/wp-json\/wp\/v2\/posts\/477\/revisions\/520"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/carla-pinkney\/wp-json\/wp\/v2\/media\/478"}],"wp:attachment":[{"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/carla-pinkney\/wp-json\/wp\/v2\/media?parent=477"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/carla-pinkney\/wp-json\/wp\/v2\/categories?post=477"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lancaster.ac.uk\/stor-i-student-sites\/carla-pinkney\/wp-json\/wp\/v2\/tags?post=477"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}