{'fraction_non_alphanumeric': 0.031173092698933553, 'fraction_numerical': 0.013633345052541115, 'mean_word_length': 4.672501661865721, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
The balanced and introspective brain

Transfers of large-scale neural activity into, within and between corticothalamic neural populations and brain hemispheres are analysed using time-integrated transfer functions and state parameters obtained from neural field theory for a variety of arousal states. It is shown that the great majority of activity results from feedbacks within the corticothalamic system, including significant transfer between hemispheres, but only a small minority arises via net input from the external world, with the brain thus in a near-critical, highly introspective state. Notably, the total excitatory and inhibitory influences on cortical neurons are balanced to within a few per cent across arousal states. Strong negative intrahemispheric feedforward exists to the cortex, and even larger interhemispheric positive feedforward, but these are modified by feedback loops to yield near-critical positive overall gain. The results underline the utility of transfer functions for the analysis of brain activity.


Introduction
Work over the last two decades has shown that the great majority of spikes that reach a given cortical neuron are not the result of direct input, nor even a direct chain of feedforward relays from the outside world, but are largely the outcome of recirculation of activity within the brain that leads to a near-critical state in humans, as confirmed by electroencephalography (EEG) of up to 1500 subjects and by functional magnetic resonance imaging (fMRI) [1][2][3][4][5][6][7][8][9][10][11]. Similar signs of criticality have been seen in spike avalanches in neural cell cultures [12] and non-human animals [13]. Excitatory and inhibitory gains have also been widely argued to be in approximate balance on theoretical grounds that such a state should enhance sensitivity to incoming signals [14], improve the efficiency of neural coding at the microscale [15,16] and enable complex dynamics [17]. Notably, near balance of excitation and inhibition can only occur near a critical point if the time-integrated (positive) excitatory and (negative) inhibitory gains for activity reaching cortical neurons are large in magnitude and sum to approximately unity.
Physiologically based neural field theory (NFT) is well suited to analysis of large-scale brain dynamics, including inference of gains. In particular, it has yielded gain values for a range of arousal states through fits of its predictions to experimental EEG spectra [1][2][3]7] and fits of its predictions of activity eigenmodes and eigenvalues to fMRI data [6,8]. For example, more than a decade ago it was estimated that in the alert eyes-open state cortical excitatory neurons have net positive gains of approximately þ6.8 from others of the same type, þ2.2 via thalamus and 28.1 from inhibitory cortical neurons, implying near balance at a near-critical state with an overall net gain of around þ0.9 [1]. Our various studies since estimated net gains of 0.84-0.88, based on a variety of EEG and fMRI studies [1][2][3]5,8]. Our recent fMRI-based studies of the bihemispheric brain have yielded parameters consistent with these values, showing net gains of approximately 0.73 from intrahemispheric influences and 0.15 from interhemispheric connections (0.88 total), and 0.12 feedforward from outside the corticothalamic system [6,8].
The aim of this work is to further quantify overall balance and criticality in the corticothalamic system in various states of arousal, which provide the background against which finer-scale dynamic processes occur to support cognition and motor outputs, for example. Balance and criticality have not been brought together systematically, although fitted parameters have been published that enable the present analysis. Nor has there been a systematic study from this perspective of how influences propagate through feedforward, feedback and internal loops in the corticothalamic system that is responsible for most EEG, MEG and fMRI signals studied in neuroimaging. Hence, in §2 we use transfer functions to explore how activity propagates through the bihemispheric corticothalamic system, from external inputs to various populations, along both direct and indirect paths. This allows us to obtain expressions for feedforward and total gains in the system. In §3, we use transfer functions to analyse criticality and balance in various arousal states whose physiological parameters have been previously estimated. The implications of the results for balance, criticality and introspection in normal brain states are summarized and discussed in §4.

Theory
In this work, we assume that the normal dynamics of the brain at scales of around 1 mm and above involve approximately linear perturbations from a fixed point, an approximation that has yielded numerous experimentally validated predictions via NFT (see [2,18,19] and references cited therein). Using NFT, we derive expressions for the time-integrated transfer functions between populations that express the total influence without regard to timing. This is the appropriate measure for overall brain states and stability, although frequency-dependent transfer functions will be of interest in future work, as outlined in §5.
If we consider the bihemispheric corticothalamic system shown in figure 1 [8,9] and denote left-and right-hemisphere quantities by lower and upper case subscripts, respectively, the various populations have firing rate perturbations Q a relative to their steady-state levels, where a denotes excitatory cortical (e, E), inhibitory cortical (i, I ), thalamic reticular (r, R), thalamic relay (s, S) and external (x, X ) populations. The rate Q a generates a field f a of axonal pulses that propagates to other populations, as shown in the figure. Each firing rate perturbation Q a is then given in terms of the input Q x from an external population x by where T ax is the linear transfer function, or propagator, that relates the activity at r and t to the input at r 0 and t 0 , subject to causality (the propagator is zero for t , t 0 ). External populations are those that never correspond to the first subscript of any transfer function T ab ; i.e. that have no feedback to them. If we are concerned with the total time-integrated effect of an input at t ¼ 0, we must calculate where v is the angular frequency and the quantity on the right of (2.2) is the zero-frequency component of the temporal Fourier transform of T ax .
From this point on, we are only interested in overall effects, not time variations, so we consider only timeintegrated transfer functions and spatially averaged activity. In this case, the transfer function to population a from population b is a real number that does not depend on position, so we omit arguments of transfer functions from here on.
The transfer function T ax can be represented diagrammatically by the arrow in figure 2a. Robinson showed that this represents a dressed propagator that is the sum total of effects that travel along both direct and indirect paths [5,6]. One can split this propagator into two parts, as shown in figure 2b [20]; these represent direct (monosynaptic) propagation to a from all directly linked populations b, which follows dressed propagation from x to the population b that contains the final synapse prior to reaching a. The direct propagator to a from b is just the gain G ab , which represents the additional activity in population a due to each additional unit of activity afferent from b when this link is considered by itself. We thus have One can interpret the transfer function T ax as being the additional activity generated at a for each additional unit of activity incoming from x. The form (2.3) expresses the total transfer of activity to a from x in terms of a direct gain G ax plus terms that arise via populations that immediately neighbour a. Direct multistep feedforward gains are of the form G ab G bc . . . G zx , where there are no intermediate loops.
From equation (2.3), the total magnitude of the influences reaching a via various b is We define the balance parameter to capture how finely the influences on a from x are balanced; at perfect balance B ax ¼ 0.

Analysis of the bihemispheric corticothalamic system
In previous work, we have applied NFT to the bihemispheric corticothalamic system shown schematically in figure 1 [8].
Here we analyse its large-scale average transfer, balance and criticality properties, as defined in §2. If we assume symmetry between the hemispheres, we find the following equations for the axonally propagated activity fields f a generated by population a in the lowfrequency limit, where all fields are viewed as perturbations from steady-state values: ð3:1Þ Here all coefficients have been written in terms of lefthemisphere quantities via symmetry. In the case of spatially uniform mean values, as considered here, f a ¼ Q a for all populations [2,8].
If we assume the random connectivity approximation that intracortical connections are made with e and i axonal sources and targets in proportion to the numbers of neurons, we find G ie ¼ G ee , G ii ¼ G ei , G is ¼ G es and G iE ¼ G eE [4,17,19]. Hence, f i ¼ f e and f I ¼ f E . Solution of the above equations then yields 14Þ with corresponding equations for the right hemisphere. When there is no interhemispheric coupling, G eE ¼ 0, T eX ¼ 0 and T ex ¼ C/A, which accords with previous work [2,9]. Instabilities of the system occur when one or other transfer function in (3.9)-(3.14) diverges; i.e. when G sr G rs ¼ 1 or when A + G eE ¼ 0. The condition G sr G rs ¼ 1 cannot be fulfilled for the v ¼ 0 case considered here because G sr , 0 and G rs . 0 on physiological grounds. The remaining instability criterion, A + G eE ¼ 0, can be written as: 18Þ where Y is the corticothalamic loop gain [9] and X e and X E generalize the corticocortical loop gain of [9] to allow for separate intrahemispheric and interhemispheric contributions, respectively. In (3.17), the upper sign corresponds to f E ¼ f e and the lower to f E ¼ 2f e [8]. These symmetric and antisymmetric solutions are excited by correspondingly symmetric and antisymmetric combinations of inputs with f X ¼ +f x , respectively; these can be linearly combined to represent asymmetric inputs. It was recently found that the symmetric solutions have higher Xþ Y than antisymmetric ones for G eE . 0, and are thus are less stable [8], and tend to have higher amplitudes and dominate activity.
The condition X e þ X E þ Y ¼ 1 corresponds to criticality, where the least stable mode of the system has unit gain [8]. In (3.17) - (3.20), X e þ X E þ Y is the fraction of activity regenerated within the brain, X e þ Y is the fraction regenerated within the ipsilateral hemisphere, X E is the fraction regenerated in the contralateral hemisphere and 1 2 X e 2 X E 2 Y is the fraction that enters the corticothalamic system from outside to sustain constant mean activity [4,8,9].
Direct feedforward gains correspond to the paths that lead to a given structure from an external activity source without loops. The resulting gains can be expressed as where we have used the random connectivity approximation and symmetry between the hemispheres to simplify these expressions.

Specific cases
In this section, we examine the balance and criticality of the corticothalamic system for gains obtained from experimental data in our earlier works [1,3,8], allowing for the second hemisphere by splitting the original unihemispheric gains G ee in a 1 : 5 interhemispheric to intrahemispheric ratio consistent with [6].

Unihemispheric alert waking state
We begin by considering transfer functions and related quantities for the alert waking state parameters from the column headed HBM in table 1, which omit the bihemispheric structure of the brain.
The second row in table 2 shows the feedforward gains to structures labelled a in the first row from equations (3.21) -(3.28), all normalized by dividing by G sx to remove the effects of differing levels of input. The normalized feedforward to s is exactly unity because it only has one input, G sx itself, as seen in figure 1. The other structures have large negative gains, which arise because G ei G is þ G es ¼ G es (1 þ G ei ) is negative, so the net feedforward effect of s on e ( partly via i) is negative, and this further propagates to r. Hence, in the absence of feedbacks within the cortex (G ee , G ii ), thalamus (G sr ) and from cortex to thalamic relay nuclei (G se ), the net effect of external inputs is highly inhibitory. This strong inhibition may help to explain the existence of coma when certain feedback paths are damaged.
In contrast with pure feedforward gains, the overall normalized transfer functions in the third row of table 2 are all close to unity, indicating that external activity is transferred with little overall amplification or attenuation other than by G sx . This is accomplished by large, near-balanced gains to the cortex, in Table 1. Gains G ab in various states of arousal without allowing explicitly for bihemispheric structure. Here HBM denotes the eyes open state from [1]; the other states are from [3]: eyes open (EO), eyes closed (EC), sleep stage 1 (S1), sleep stage 2 (S2), sleep spindle (S2s), slow wave sleep (SWS) and rapid eye movement sleep (REM). Note that [1] used an estimate f x ¼ 16 s 21 , whereas [3] assumed an arbitrary value of f x ¼ 1 s 21 on the grounds that only the product G sx f x is relevant. This explains the large difference between the values of G sx in the first two columns; however, G sx f x is nearly identical in these cases, and the ordering of the other quantities is the same. particular, as seen from the next five rows in table 2, which sum to give the third row. Notably, excitatory and inhibitory cortical gains are almost an order of magnitude larger than the total transfer function to these structures; intrathalamic gains are smaller, especially in the case of r, which has only positive inputs in this model (an inhibitory rr connection exists but is omitted here because all the gain estimates in prior work were made without including this connection). These findings are reflected in the normalized total transfer magnitudes M ax / G sx from equation (2.6). Except in the case of r, where all input gains have the same sign, these magnitudes are far larger than the individual, near-balanced terms. The degree of balance is seen in the second last row of table 2, which shows that the cortex, in particular, is only a few per cent away from exact balance. This accords with longstanding arguments that near balance makes the system more sensitive to external stimuli, improves precision of neural coding and facilitates complex dynamics [14,15,17]. The final row in table 2 shows that the system is close to the critical point where its fixed point becomes unstable to a saddle -node bifurcation at C ¼ 1. The criticality parameter of 0.83 implies that 83% of net activity is regenerated within the brain, 75% within the cortex and 8% via net corticothalamic feedback, while 17% is provided by external inputs, consistent with our prior NFT cortical and corticothalamic models [1,4,9]. More recently, equivalent behaviour was seen in a variety of EEG and fMRI experiments on up to 1500 subjects. In functional connectivity simulations [2,3,[5][6][7]10,19] artificial cell culture experiments saw related avalanche behaviour [12], and other authors have argued for slightly subcritical dynamics on the basis of spiking avalanches observed in animals [13].

Bihemispheric alert waking state
In this section, we explore the effects of the bihemispheric structure on the transfer functions. This is done by dividing the unihemispheric gain G ee into parts that come from the ipsilateral G ee and contralateral G eE hemispheres, keeping the total equal to the original value. We use a 5 : 1 ratio between these two contributions, in accord with the split inferred from eigenfunction analysis of fMRI data [6,8], and assume symmetry of the parameters between the two hemispheres. Table 2 summarizes the resulting transfer measures.
The second row of table 3 shows that intrahemispheric feedforward gains are large, negative (except to s, as discussed above) and very similar to those in the unihemispheric case. Feedforward gains from the contralateral hemisphere are even larger, but positive, because they pass through two sets of strong cortical gains, and are twice inverted in sign. Despite the 1 : 5 ratio of interhemispheric to intrahemispheric gains, the interhemispheric feedforward effects would overwhelm intrahemispheric inhibition if only feedforward gains were present. Hence, damage that changes intracerebral gains could drive the brain into either coma or seizure, depending on exactly which connections are affected.
The third and fourth rows in table 3 show that internal feedbacks are able to moderate the huge feedforward gains to produce total transfer functions whose sum is almost identical to those in table 2. However, the effect of feedbacks means that the ratios of the intra-and interhemispheric contributions T ax /T aX are not 5 : 1; instead 10-30% of input to various populations arises from the contralateral hemisphere, on the assumption of equal external inputs to both hemispheres. Notably, cortical structures have the largest fractional input from the contralateral hemisphere, to which they are directly connected, whereas thalamic ones have less.
The total influences M ax /G sx and balance parameters B ax in the second last row of table 3 are similar to the unihemispheric values. The second last row shows B aX ¼ T aX /M ax , which measures how large an equal contralateral input's influence would be relative to the ipsilateral total. Again, we see that the system is closely balanced with the net transfer function from the ipsilateral hemisphere being only a few per cent of influence on the cortex, while the transfer from the contralateral hemisphere would be only around 2% for the same external input.
The final row in table 3 shows that the stability parameter is unchanged, a result that follows from the way we have partitioned the unihemispheric G ee into G ee and G eE . However, we see that the total net influence is 17% external, 8% from corticothalamic feedbacks, 13% from the contralateral hemisphere and 62% from intracortical feedbacks [6].

Comparison of states
In this section, we use gain data for a variety of vigilance states [1,3] to examine and compare the transfer, influence, balance Table 3. Normalized transfer functions and related measures for the HBM eyes open state in table 1, with G ee divided between G ee and G eE in a 5 : 1 ratio; entries are normalized where necessary by dividing by G sx to remove the effects of differing levels of input. The first row lists the structures a ¼ e, i, r, s. The second and third rows show the corresponding feedforward gains F ax /G sx and F aX /G sx from equations (3.21) -(3.28). The fourth and fifth rows show the total transfer functions T ax /G sx , which is the sum of row 6 -11 aside from numerical round-off error. The final four row show total gain magnitude M ax /G sx from (2.6), the balance parameter B ax from (2.7), B aX ¼ T aX /M ax and the criticality parameter from (3.17)  and criticality parameters for conditions ranging from alert waking to deep sleep in both unihemispheric and bihemispheric cases. This has the potential to reveal trends and key differences in the relative orientation of the brain towards internal and external sources of activity. The alert waking data from the previous subsection (HBM) [1] are used, along with data from a more recent study that included alert waking (EO), eyes closed waking (EC), sleep stage 1 (S1), sleep state 2 (S2), slow-wave sleep (SWS), rapid eye movement sleep (REM) and sleep stage 2 with prominent approximately 14 Hz sleep spindles (S2s) [3]. All the gains were inferred from fits of our neural field model to EEG spectra. Table 4 shows the transfer functions to the cortical excitatory (and inhibitory) population, and the corresponding balance and criticality parameters for a unihemispheric brain, using the parameters from table 1. Key features that are observed, and some comments regarding their potential roles, are as follows. (i) All states are slightly subcritical with C ¼ 0.79 2 0.92. (ii) The states furthest from criticality (i.e. the most stable) are S1 and REM. We speculate that S1 has enhanced stability because it results from a sudden reduction of corticothalamic feedback from a positive value in wake to a negative one in sleep, prior to the cortex fully increasing its internal feedback to deeper-sleep values. This temporal ordering tends to protect the brain from instability, which could well result if the order were reversed. (iii) Largely because of being more stable, S1 and REM also have the lowest overall transfer functions, which indicates that they are the least affected at the cortical level by stimuli from the outside world. This may assist in reducing wakenings from these lighter-sleep states and thus help to stabilize the wake-tosleep transition. (iv) S1 and REM also have the lowest M ex / G sx and highest B ex parameters, indicating that they are the furthest from balance but have correspondingly low total input magnitudes to the e population. Again, it is possible that a reduction in the sizes of the near-balanced gains makes the system less susceptible to perturbations in light sleep. (v) The deeper sleep states S2 and SWS have the highest transfer functions and smallest balance parameters. This implies that, somewhat paradoxically, they are more influenced by activity that is induced in the relay nuclei than are other states. It is possible that this is an evolutionary adaptation to permit rapid awakening from deep sleep when necessary-small external inputs can produce large changes in cortical activity, and small resulting percentage shifts in individual gains can produce a large net gain. These features are consistent with the fact that evoked potentials in deep sleep-K complexes-are of very large amplitude relative to other normal EEG phenomena [21].
The results in table 5 are the bihemispheric generalizations of the unihemispheric ones in table 4. The results are generally very similar, except for the splitting between hemispheres which leaves total transfer functions unchanged when summed across both hemispheres. Notably, the balance parameter B eX ¼ T eX /M ex is only around 1-5%, indicating that contralateral inputs are a very small fraction of the total influence on excitatory (and inhibitory) cortical neurons. The loop gain Y and the criticality parameter C are unchanged from table 4, while X e and X E are simply split in the 5 : 1 ratio that we have assumed in this analysis.

Summary and discussion
We have used neural field transfer functions to analyse the transfer, stability and balance of large-scale, time-integrated activity into, within and between corticothalamic populations and hemispheres, using gain parameters found for various brain states in prior studies. Key aims were to determine criticality and introspection across states. The main outcomes are: (i) Time-integrated unihemispheric and bihemispheric NFT transfer functions for each corticothalamic population were derived in terms of gains. These were then used to define total-influence, balance and criticality parameters. In the case in which the brain is treated as a single entity without bihemispheric structure these results reproduced a number of previous analyses. (ii) Feedforward gains to the cortex are large and negative for intrahemispheric connections, and large and positive for interhemispheric ones, the latter resulting from two successive negative stages. However, overall normalized transfer functions are close to unity, implying that internal feedbacks strongly moderate the feedforward gains to produce little overall amplification or attenuation of activity induced in thalamic relay nuclei by external stimuli. This situation is maintained when the bihemispheric structure of the brain is taken into account. (iii) Following from point (ii), the total transfer function to the cortex is the sum of large excitatory and inhibitory contributions, balanced to within a few per cent of the Table 4. Unihemispheric cortical transfer functions and related measures for the states in table 1, normalized where necessary by dividing by G sx to remove the effects of differing levels of input. The first row lists the states from table 1. The second row shows the total transfer function T ex /G sx . The third and fourth rows show total gain magnitude M ex /G sx from (2.6) and the balance parameter B ex from (2.7). The final three rows show X e from (3.18), Y from (3.20), and the criticality parameter C from (3.17); these apply to all populations equally.  Table 5. Bihemispheric transfer functions and related measures for the states in table 1, with the unihemispheric G ee divided between G ee and G eE in a 5 : 1 ratio; entries are normalized where necessary by dividing by G sx to remove the effects of differing levels of input. The first row lists the states considered. The second and third rows show the total transfer functions T ex /G sx and T eX /G sx . The next row shows the parameter M ex /G sx from (2.6). The balance parameter B ex from (2.7) and B eX ¼ T eX /M ex are shown in rows 5 and 6. The final four rows show X e , X E and Y from (3.18) to (3.20), and the criticality parameter C from (3.17