ANNarchy 4.8.2
  • ANNarchy
  • Installation
  • Tutorial
  • Manual
  • Notebooks
  • Reference

  • Reference
  • Core components
    • Population
    • Projection
    • Neuron
    • Synapse
    • Monitor
    • PopulationView
    • Dendrite
    • Network
  • Configuration
    • setup
    • compile
    • clear
    • reset
    • set_seed
    • get_population
    • get_projection
    • populations
    • projections
    • monitors
  • Simulation
    • simulate
    • simulate_until
    • step
    • parallel_run
    • enable_learning
    • disable_learning
    • get_time
    • set_time
    • get_current_step
    • set_current_step
    • dt
  • Neuron models
    • LeakyIntegrator
    • Izhikevich
    • IF_curr_exp
    • IF_cond_exp
    • IF_curr_alpha
    • IF_cond_alpha
    • HH_cond_exp
    • EIF_cond_alpha_isfa_ista
    • EIF_cond_exp_isfa_ista
  • Synapse models
    • STP
    • STDP
    • Hebb
    • Oja
    • IBCM
  • Inputs
    • InputArray
    • TimedArray
    • PoissonPopulation
    • TimedPoissonPopulation
    • SpikeSourceArray
    • HomogeneousCorrelatedSpikeTrains
    • CurrentInjection
    • DecodingProjection
    • ImagePopulation
    • VideoPopulation
  • IO
    • save
    • load
    • save_parameters
    • load_parameters
  • Utilities
    • report
  • Random Distributions
    • Uniform
    • DiscreteUniform
    • Normal
    • LogNormal
    • Exponential
    • Gamma
    • Binomial
  • Functions and Constants
    • add_function
    • functions
    • Constant
    • get_constant
  • Plotting
    • raster_plot
    • histogram
    • inter_spike_interval
    • coefficient_of_variation
    • population_rate
    • smoothed_rate
  • Callbacks
    • every
    • callbacks_enabled
    • disable_callbacks
    • enable_callbacks
    • clear_all_callbacks
  • Convolution
    • Convolution
    • Pooling
    • Transpose
    • Copy
  • BOLD monitoring
    • BoldMonitor
    • BoldModel
    • balloon_RN
    • balloon_RL
    • balloon_CN
    • balloon_CL
    • balloon_maith2021
    • balloon_two_inputs
  • Tensorboard logging
    • Logger
  • ANN-to-SNN conversion
    • ANNtoSNNConverter

On this page

  • balloon_RL
    • Parameters

balloon_RL

extensions.bold.PredefinedModels.balloon_RL(
    self,
    phi=1.0,
    kappa=1 / 1.54,
    gamma=1 / 2.46,
    E_0=0.34,
    tau=0.98,
    alpha=0.33,
    V_0=0.02,
    v_0=40.3,
    TE=40 / 1000.0,
    epsilon=1.43,
    r_0=25,
)

A balloon model with revised coefficients and linear BOLD equation derived from Stephan et al. (2007).

Equivalent code:

balloon_RL = BoldModel(
    parameters = '''
        second    = 1000.0
        phi       = 1.0
        kappa     = 1/1.54
        gamma     = 1/2.46
        E_0       = 0.34
        tau       = 0.98
        alpha     = 0.33
        V_0       = 0.02
        v_0       = 40.3
        TE        = 40/1000.
        epsilon   = 1.43
        r_0       = 25.
    ''',
    equations = '''
        # Single input
        I_CBF          = sum(I_CBF)                                                : init=0
        ds/dt          = (phi * I_CBF - kappa * s - gamma * (f_in - 1))/second     : init=0
        df_in/dt       = s / second                                                : init=1, min=0.01

        E              = 1 - (1 - E_0)**(1 / f_in)                                 : init=0.3424
        dq/dt          = (f_in * E / E_0 - (q / v) * f_out)/(tau*second)           : init=1, min=0.01
        dv/dt          = (f_in - f_out)/(tau*second)                               : init=1, min=0.01
        f_out          = v**(1 / alpha)                                            : init=1, min=0.01

        # Revised coefficients
        k_1            = 4.3 * v_0 * E_0 * TE
        k_2            = epsilon * r_0 * E_0 * TE
        k_3            = 1.0 - epsilon

        # Linear equation
        BOLD           = V_0 * ((k_1 + k_2) * (1 - q) + (k_3 - k_2) * (1 - v))         : init=0
    ''',
    inputs="I_CBF",
)

Parameters

Name Type Description Default
phi input coefficient 1.0
kappa signal decay 1 / 1.54
gamma feedback regulation 1 / 2.46
E_0 oxygen extraction fraction at rest 0.34
tau time constant (in s!) 0.98
alpha vessel stiffness 0.33
V_0 resting venous blood volume fraction 0.02
v_0 frequency offset at the outer surface of the magnetized vessel for fully deoxygenated blood at 1.5 T 40.3
TE echo time 40 / 1000.0
epsilon ratio of intra- and extravascular signal 1.43
r_0 slope of the relation between the intravascular relaxation rate and oxygen saturation 25
balloon_RN
balloon_CN
 

Copyright Julien Vitay, Helge Ülo Dinkelbach, Fred Hamker