Notes

← Back to home

A collection of fragments of understanding in the pursuit of deeper questions.

ETH - Introduction to Neuroinformatics - Lecture Notes

Introduction to Neuroinformatics

Lecturer: Giacomo Indiveri

What is this course about?

  • Information processing in the brain: neurons, synapses, nervous system organization
  • Analytical descriptions of neural computations
  • Learning and Plasticity
  • Encoding information in the brain
  • Theoretical neural network models
  • Engineering brain-like computers

The Human Brain The average human brain: 1.5kg weight, 1.1 - 1.2l volume.

We have a brain because we can move and interact with the world.

image2

For example, the "Sea squirt" to the right has a brain in the early stages (few hours) of its life, but once it finds a rock to stick to, it digest its brain as it is no more needed for movements and would represent a high-consuming energy organ.

image1

Producing Behaviour Our brain is fundamentally needed to interpret sensory data, take decisions and actions. It is needed to act in the environment.

Neurons and Brains Human brains are large, but by far not the largest (elephant, whales, ...). The cells (neurons) that make up brains are very similar between species.

image3 image4

Brain Evolution The size and density of the brain have been constantly increasing over time during evolution.

image5

A very brief History of Neuroscience

  • 1839 - Theodore Schwann proposes that biological tissue of organisms is composed of cells.
  • 1873 - Camillo Golgi develops a method to stain nervous tissue ("La Reazione Nera").
  • 1887 - Santiago Ramón y Cajal reports of individual nerve cells in birds brains.
  • 1936 - Sir Henry Dale and Otto Loewi are awarded the Nobel prize for discovering the principles of synaptic transmission.
  • 1949 - Donald Hebb postulates theory of "Hebbian" learning.
  • 1952 - Hodgkin and Huxley propose their model of action potential generation.

Synapses In 1897 Charles Sherrington introduced the term synapse to describe the specialized structure at the zone of contact between neurons as the point in which one neuron communicates with another.

EPSC and EPSP

  • Superimposed excitatory post-synaptic currents (EPSCs) recorded in a neuron at different membrane potentials.
  • Excitatory post-synaptic potential (EPSP) in response to multiple pre-synaptic spikes.
image6

Spike Generating Mechanism If the membrane voltage increases above a certain threshold, a spike-generating mechanism is activated and an action potential is initiated.

Spike Properties and the F-I Curve

image7 image8

The First Models of Neurons - Warren McCulloch and Walter Pitts (1943)

image9 image10

"A logical calculus of the ideas immanent in nervous activity" The McCulloch&Pitts model quickly became extremely popular, and dominated the Artificial Neural Network scene for decades. Why? Isomorphism with calculus of logical propositions. In the hand of John von Neumann, the McCulloch & Pitts model became the basis for the logical design of digital computers.

image11

The Turing Machine It is an universal computing machine, through a binary state machine all the logical operations could be performed.

image12

Artificial vs Natural Intelligence How is the brain different from a computer?

Hard and Easy Problems "The main lesson of thirty-five years of AI research is that the hard problems are easy and the easy problems are hard" - Steve Pinker "It is comparatively easy to make computer exhibit adult level performance on intelligence tests or playing checkers, and difficult or impossible to give them the skills of a one-year-old when it comes to perception and mobility" - Hans Moravec

Artificial vs Real Neural Networks

image13

Artificial Intelligence: The Deep Network Revolution

  • Although the first successes of ANNs were first demonstrated in the 1980's they only started to outperform classical optimization and engineering approaches from 2009 on.
  • In 2011 CNNs trained using back-propagation on GPUs achieved 0.56% error rate in a visual pattern recognition contents, outperforming for the first time humans (by a factor of 2x) and non-neural state-of-the-art algorithms (by a fact of 6x).

Deep Networks Galore

  • As CNNs and DNNs outperformed classical approaches, many research groups started to extend and optimize them.
  • The AI field is now (mostly) dominated by attempts to improve accuracy on standard benchmarks, by scaling up network size and parameter count.

Deep Networks Computing Power Demands

  • GPT-3 is a network with 175-billion parameters, with a memory size exceeding 350GB.
  • According to conservative estimate, training GPT-3 required over $4.6 million.
  • Google's energy consumption usage has more than quadrupled from the advent of GPU use of DNN training.

Problems and Limitations of Artificial Intelligence

image14

Neuromorphic Intelligence

image15 image16

Design Principles for Emulating Natural Intelligence

  • Clock Speed: brains outperform faster computing systems in many sensory processing tasks, at lower speeds and with less power.
  • The Hardware is the Algorithm: the brain uses the time evolution of the physical system to implement its computations. Neural circuits compute by exploiting the dynamics and the natural time evolution of the physical hardware substrate.
  • Animal brains:
    • Slow, noisy and variable processing elements.
    • Local connectivity, small world networks.
    • Massively parallel distributed computation.
    • Closed-loop interaction with the environment.
    • Real-time spatio-temporal signal processing.
    • Continual always-on learning.
image17

Brain-Inspired Principles: a Radical Paradigm Shift Exploit Physical Space

  • Use parallel arrays of spiking neurons.
  • Maximize fine grain parallelism (no time-multiplexing).
  • To co-localize memory and computation.
  • Use dynamic synapse circuits, event-driven, and passive.
  • Exploit all the properties of transistors and memristors. Let Time Represent Itself
  • For interacting with the environment in real-time.
  • To match the circuit time constants to the input signal dynamics.
  • For inherently synchronizing with the real-world natural events.
  • To process sensory signals efficiently.

The Neuromorphic Computing Approach

  • Highly interdisciplinary research rooted on neuroscience, non-linear dynamical systems theory, physics, microelectronics, ...
  • Exploit the physics of silicon and emerging nano-technologies in electronic circuits to reproduce the bio-physics of neural systems.
  • Design spiking neural network processing chips using mixed signal analog/digital circuits and technologies.
  • Build real-time autonomous robotic agents able to interact with the environment in real-time and exhibit intelligent behaviors and cognitive abilities.

Edge-Computing Application Specific Tasks Technology Transfer and Applications We are now entering the era of neuromorphic intelligence in which dedicated cognitive chiplets will be used to provide intelligence to a multitude of extreme edge-computing use cases.

On-going research: Mind-Brain-Body Iterative Refinement

  • We study the principles of computation of real cortical circuits and validate them on neuromorphic systems that interact intelligently with the environment.
  • We exploit progress in technology to develop mixed-signal neuromorphic electronic circuits for emulating neural dynamics and learning in real-time.
  • We build analog/digital neural processing systems interfaced to sensors and robotic platforms that can learn to exhibit cognitive abilities.

Organization of the Brain

Lecturer: Wolfger Von Der Behrens

Types of Neurons Morphology and electrical properties are what characterize neurons.

image18 image19 image20

Terminology

  • Axon
  • Boutons
  • Cleft (gap between two neurons)
  • Dendritic spines
  • Postsynaptic membrane
  • Vesicles (small zones filled with neurotransmitters)
  • Transmitter
  • Receptors
image21

Axon

image22

Vescicles Lyposomes release the contained neurotransmitter when the action potential arrives.

image24 image25 image23

Neurotransmitter Many different types, the most commons are the Glutamate (excitatory) and GABA (inhibitory). One neuron typically releases just one type of neurotransmitter.

image26 image27

Post-Synaptic Receptor There are two major classes of receptors: Ligand-Gated Ion Channels and G-Protein-Coupled Receptors (neurotransmitters bind to the receptor, which activates the G-Protein that modulates Effector protein) then depending on the ions flowing in, it can depolarize or hyperpolarize.

image28

Dendrites The neuron depolarizes when Glutamate is released, such that it reaches the threshold to generate an action potential. On the other side, if the neuron is hyperpolarized by the release of GABA and Glutamate is released at the same time, we have a mediated effect (orange line) which is probably not reaching the threshold to generate an action potential.

image29 image30

Sequence of Events

  1. Neurotransmitter release.
  2. Receptor binding.
  3. Ion channels open or close.
  4. Conductance change causes current flow.
  5. Postsynaptic potential changes.
  6. Postsynaptic cells excited or inhibited.
  7. Summation determines whether or not an action potential occurs.

Central Nervous System (CNS) vs Peripheral Nervous System (PNS) + Enteric Nervous System (ENS). Among the CNS we subdivide in Sympathetic ("Fight or Flight") and Parasympathetic Nervous System ("Feed & Breed").

Gross Anatomy: Protection and Sustenance of the Brain The brain is floating in the cerebrospinal fluid inside the skull.

image31

The Meninges are three layers of tissues: Dura Mater (Hard structure, mechanical protection), Arachnoid Mater (Soft structure) and the Pia Mater.

image33

Ventricular System

image32

Navigating the Central Nervous System

image34 image35 image36

Direction of Orientation in the CNS

  • Anterior: toward the front or front-end
  • Posterior: toward the back or back-end
  • Inferior: toward the bottom of the body, or below
  • Superior: toward the top of the head/body, or above
  • Medial: toward the middle/midline
  • Lateral: away from the middle/midline, toward the side
  • Rostral: toward the nose
  • Caudal: toward the tail/rear
  • Proximal: near the trunk or center
  • Ventral: toward the belly
  • Ipsilateral: on the same side
  • Contralateral: on the opposite side
  • Bilateral: on both sides
  • Unilateral: on one side.

Neural Development image40 image39 image38 image37

Major Divisions of the Brain

image42 image41

Cranial Nerves

image43 image44

The Limbic System It was named by Brocas, he hypothesized that it is involved in emotional processing and reactions. Hippocampus is one of the main memory forming structures.

image46

Papez Circuit

image45 image47

Amygdala is strictly connected with the generation and processing of fear.

  • Broca's "limbic lobe"
  • Papez (1937) more precisely defined it.
  • Structure:
    • Structures on medial and basal surfaces of cerebral hemispheres.
    • Cingulate gyrus + parahippocampal gyrus + hippocampal formation + fornix + amygdala + septum + mammillary bodies.
    • Anatomic circuits include basolateral circuit and the Papez circuit.
  • Function:
    • Emotional expression.
    • Memory acquisition.
    • Fear conditioning.
    • Violence and aggression.
image48

Hypothalamus and Thalamus On top we have the Thalamus, while the Hypothalamus sits below. The first one is the input structure into the cortex. Most of the sensory inputs are gated into the cortex by the Thalamus. It does not only relay information, but it also performs a processing of information. The Hypothalamus is more part of the endocrine nervous system, it has the control of the epituary gland.

image49

Thalamus Upper Brain Stem: Diencephalon

Thalamus:

  • Structure:
    • Relatively large.
    • Two symmetric large nuclei.
    • All thalamic nuclei receive ascending and descending input.
    • Many projections.
  • Function:
    • Relay station
    • Domain-specific information processing.

Hypothalamus:

  • Structure:
    • Very small.
    • Contains an important collection of nuclei.
  • Function:
    • Controls autonomic mechanisms.
    • Link to endocrine system.

Basal Ganglia

image50

It sits below the forebrain, it is strongly interconnected with the cortex and the Thalamus. It is highly involved in movements. In the case of Parkinson's disease we assist at a loss of dopaminergic neurons.

image51

Through Deep Brain Stimulation, i.e., an electrical stimulation of the deep brain tissues, it is possible to reduce the symptoms related to diseases affecting Basal Ganglia and Substantia Nigra.

  • Structure:
    • Collection of nuclei embedded deep within cortex.
    • Partially surround the Thalamus.
    • Sensory projection to cerebrum.
    • Efferents to other nervous system structures.
    • Caudate nucleus + putamen + globus pallidus + substantia nigra + subthalamic nucleus.
  • Function:
    • Regulate voluntary movement.
    • Integrative or just a relay station?
  • Pathology:
    • Movement disorders (e.g., Parkinson's).

Lobes of Cerebral Cortex

image52

Cytoarchitecture The cells are organized in a very systematic and consistent structure made of 6 layers. In the first layer there are mostly projections, very few cells. Cell bodies are stained with Golgi technique even today and in the following picture cell bodies and their projections are shown in the layers 2 - 6. The 2 - 6 layers structure can change depending on the brain cortical area and the functions that they perform.

image53

Cortical Areas

  • Frenology
  • Phineas Gage (1823 - 1860):
    • Accident in 1848 destroyed the left frontal lobe.
    • "The equilibrium or balance, so to speak, between his intellectual faculties and animal propensities, seems to have been destroyed".

Brodmann's Areas (BA) The cytoarchitecture is not consistent throughout the cortex, Brodmann looked at the composition of layers in different areas in the brain. Hence, he defined a map of the brain based on the histological differences. The map has still some similarities with the actual knowledge of the brain areas, however it was not saying anything about the functions of the various regions.

image54

Extracellular recordings Tungsten microelectrode for recording from single units: an electrode has been developed to fill the need for an easily made, sturdy device capable of resolving single-neuron action potentials at least as well as the commonly used micropipette.

image55

Circuits The basic cortical circuits are either Feedforward or Feedback. In particular, layer 4 of the cortex is the "input layer" of the cortex.

image56

Resting Potentials

Lecturer: Valerio Mante

Levels of Description Typical of biology to have multiple levels of description, and we don't know if each of them matter or not. Can we ignore some of these details and still get the same outcome when we try to replicate such a complex structure? No one can answer as of now.

image57

Goal: create an artificial intelligent agent

  • What is the essence of neural computations?
  • What details can we ignore?
  • What can we abstract?

Why study single neurons?

  1. The computational unit of the brain constrains network computations.
  2. Emulate in neuromorphic hardware.
  3. Basis of experimental methods.

Neurons are Diverse Neurons are specialized to do some specific computations.

Two approaches to understanding neural computations:

  • Biologically realistic simulations (Blue Brain Project).
  • Simplify and Abstract.

Single Neuron Computations These kind of phenomena, such as transmission delays, dendritic computations and back-propagating action potentials, are not describable when the "point-neuron" model is used.

image58

Neuromorphic Implementation

  • Emulate biology
  • Different substrate

Experimental Procedures

  • Measure activity, e.g., calcium imaging.
  • Perturb activity, e.g., optogenetic.

The Resting Potential Why do cells have membrane potential? It is a way to store energy. Neurons invest energy to perform concentration differences.

  • Intracellular space, V = -70 mV.
  • Extracellular space, V = 0 mV.

The Basic Ingredients

  • The cell membrane (a barrier between inside and outside).
  • Concentration gradients in vs. out (due to ionic pumps, they use energy to move ions in/out of the cell).
  • Selective ionic channels (they are proteins, green channels in the pic, selective to specific ion types).
image59

A thought Experiments The previous 3 ingredients give rise to action potentials. We are going to perform a thought experiment, the box to the left simulates a cell environment. At t = 0, the molecules are only inside the cell. At t = 0, the concentration inside is higher than outside. After some time t inf, the concentration reaches an equilibrium at a macroscopic level, even though at a microscopic level small exchanges continue to happen through the channels.

image61 image60

Now, we are going to assume more complex molecules, i.e., ions with a charge. Furthermore, the ionic channels are going to be selective, which allow only the passage of positive ions. What do we expect now at t inf? In this setting we do not reach the same equilibrium as before, indeed the inside starts to turn negatively charged every time a positive charge io goes outside the cell. But then, for every positive ion that goes out, the inside becomes more negative and attracts more the remaining positive ion channels, reducing the chances that further positive ions "escape".

image64 image63 image62

The Cell Membrane This is essentially how things look like at the equilibrium.

image65

Selective Ionic Channels & Ionic Flux There is asymmetry in the ionic flux, indeed, when one positive ion hits the channel from the outside, it will be dragged inside from the electric field. On the other side, a positive ion would need to have a kinetic energy bigger than qVeqqV_{eq} to be able to cross the ionic channel from the inside.

image67 image66

The Boltzmann Factor The Boltzmann Factor is a statistical quantity that describes the probability of a system being in a certain energy state at thermal equilibrium. It is given by the following formula:

p(Ekinetic>qVeq) = eqVeqkBT= eEkBTp(E_{kinetic} > \left| qV_{eq} \right|)\ = \ e^{\frac{qV_{eq}}{k_{B}T}} = \mathbf{\ }\mathbf{e}^{\frac{\mathbf{- E}}{\mathbf{k}_{\mathbf{B}}\mathbf{T}}}

where E=EnergyE = Energy,  kB=Boltzmann constant = 1.38 × 1023 JK1\ k_{B} = Boltzmann\ constant\ = \ 1.38\ \times \ 10^{- 23}\ JK^{- 1} and T=Temperature (K)T = Temperature\ (K).

image68

On the y-axis, eqV kBTe^{\frac{qV_{\ }}{k_{B}T}}, represents the percentage of the ions having enough energy to cross the ionic channel.

The Nernst Equation The Nernst Equation is an equation that describes the relationship between the electrical potential of a cell and the concentration of ions in the cell. It describes dependencies in equilibrium potential, which also take the name of reversal potentials

image69 image70

What about the assumptions? We assumed fixed concentration.

image71

The Reversal Potential

image73 image72 image74

Two Channel-Types The equilibrium is reached when the net current is 0.

image75 image76 image77

Goldman-Hodgkin-Katz Equation

image78

Energy Consumption in the brain

image79

Passive Membrane

Lecturer: Valerio Mante

image81 image80

Ohmic Conductances

image82

Current through the membrane passes through a particular channel type as a function of the voltage across the membrane. The slope in the following graph is the conductance through this channel. We say conductance is ohmic when we have passive properties, thus, I = g  VI\ = \ g\ \bullet \ V. Different channel types have different resting potentials (as shown below). Example active conductances (mammals, approx. 37C degrees)

  • Triggered by neurotransmitter, voltage, ...
  • Time-dependent
image83

Synaptic Currents Synapses are injecting (external) current. Assume dendrite are passive cables that just conduct current. The dendrites tend to have much less active conductances respect to the axons. This way, we have three models:

  • Single Compartment Model: voltage has only temporal dependency V = V(t)V\ = \ V(t).
  • Cable Equation: depends on time and location (analytical solutions) V = V(x,t)V\ = \ V(x,t).
  • Multicompartment Model: (numerical solutions) V = V(x, t)V\ = \ V(x,\ t). These approaches offer a trade-off between realism and complexity.
image85 image84

Development of the Cable Equation The key formalism that was used successfully to justify what is happening is the cable equation. The cable equation was derived by Thomson and had practical relevance for transatlantic telegraph cable. In our discussion, we will consider cables as good approximations of dendrites.

We want to find an expression for V = V(x, t)V\ = \ V(x,\ t), i.e., we want to derive the equation for the voltage of the cell as a function of time and spatial dimension. We will use two steps:

  • Single-Compartment Model (iso-potential): V = V(t)V\ = \ V(t).
  • Cable equation: V = V(x, t)V\ = \ V(x,\ t).

Single-Compartment Model It is a very simple model of a neuron.

image87 image86

The capacitive current might end on the surface of the membrane and increase/decrease the charges on the membrane. Otherwise, it could flow out as leak current. What would happen? In the beginning (if it is positive) will charge the inside of the membrane, so the potential will increase, as the potential increases and gets more different from the resting potential will eventually lead to a new equilibrium in which the cells is more depolarized, to the point that the current flowing out of the membrane is balanced with the current flowing in.

image92 image90 image91 image88

Deriving V(t)

image93

Steady-State Solution We inject a current and the membrane potential will increase to an asymptote, which can be derived as shown below. Assuming that we will continue to inject the current constantly. If we double the current, we double the voltage difference that we get and the height of the asymptote, will depend on the properties of the resistance. Hence VinfV_{inf} will increase if RmR_m increases (less leak) or IeI_e increases (more input).

image94

Input Resistance Two neurons with the same concentration of channels, differing only regarding the size: the smaller neuron will have more resistance, thus, for the same amount of injected current it will have smaller voltage change. Furthermore, two neurons, one myelinated and another unmyelinated. The myelinated has less resistance thus it needs less current input to achieve the same voltage change. Also, you will need a larger current to create a certain amount of depolarization in a neuron with more channels compared with one of the same dimensions but with fewer channels.

image95

General Solution τm\tau_{m} is the memory of cell approx. 10 to 100 ms, Neuron forgets after τ\tau. Longer memory requires few mechanisms, for example, charge in synapse or recurrency. In general, we will have a time dependency, so the potential as a function of time will be given by:

V(t)=V+(V(0)V)e ττm V(t) = V_{\infty} + (V(0) - V_{\infty}) \bullet e^{- \frac{\ \tau}{\tau_{m}\ }}

Where V(0)=V(t=0)=initial conditionV(0) = V(t = 0) = initial\ condition, V=RmIe+EmV_{\infty} = R_{m}I_{e} + E_{m} and τm 10 to 100 ms\tau_{m} \approx \ 10\ to\ 100\ ms.

image96

Implications Time constant τm\mathbf{\tau}_{\mathbf{m}}:

  • Typically τm 10 to 100 ms\tau_{m} \approx \ 10\ to\ 100\ ms, i.e., if current is injected in a cell, the neuron will forget about it quickly.
  • The time-scale of change in the cell (slow compared to a computer).
  • The short-term "memory" of the cell (short compared to an organism).
  • Activity "forgotten" after τm\tau_{m}.
  • Longer memory: other mechanisms (e.g., plasticity, ...)
  • Slower response: recurrent connectivity ("reverberating activity").

Spatial and Temporal Summation

  • Spatial Summation: what happens if two synapses open at the same time? We derive the spatial summation. Simultaneous inputs (δt=0)(\delta t = 0) sum linearly. If Ie  kIeI_{e}\ \rightarrow \ k \bullet I_{e} then V kVV_{\infty} \rightarrow \ k \bullet V_{\infty}. It is a linear equation, which means that when currents come from different parts of the dendrites, they will sum in the soma. So, the overall effect will be the sum of single inputs. These are only effects before the threshold for an AP is reached, then something non-linear happens.
  • Temporal Summation: biological neurons, since they are laggish/slow and it takes time, currents injected subsequently in time, can still sum up. Sequential inputs sum if δt<τm\delta t < \tau_{m}.
image97

Integrate and Fire Neurons When an Integrate and Fire neuron achieve the threshold, it generates an action potential and right after, reset it.

image98

Idealized synapse: If Ie>0I_{e} > 0 then V>EmV > E_{m} leading to EPSP (depolarization). If Ie<0I_{e} < 0 then V<EmV < E_{m} leading to IPSP (hyperpolarization).

Equivalent Circuits We can draw the electric circuit that captures the basic properties of neurons.

image99

Then we add a synapse to the circuit:

image100 image101

Deriving the Cable Equation So far, ions flow (in out) to achieve Erest. But, what if V=V(t)ErestV = V(t) \neq E_{rest} most of the time?

Longitudinal current In the cable equation we use the same variables as before but we need to express ILI_L: longitudinal current. Now, we have a current that flows inside the membrane (for instance, from left to right).

image103 image102
image104 image106 image105

So cable equation derives from conservation of energy and conservation of charge.

image107 image108

Case 1: Infinite Cable & Constant Current

image109

Case 2: Infinite Cable & Current Pulse

image110 image111

Passive Currents in a Branching Neuron

image112

The Big Picture

image113

Action Potential

Lecturer: Valerio Mante

An Action Potential is a depolarization that starts driving down the axon, which is then followed by hyperpolarization.

  • Occurs in axons: travels away from soma.
  • Lasts 1-2 ms.
  • All-or-none, i.e., stereotyped, if IeI_e increases it will lead to an AP initiated sooner, but with the same shape. It is non-linear, unlike passive membrane.
  • Stimulus intensity encoded as AP rate (rAPr_{AP}).
  • Several phases:
    • No input: V=VrestV = V_{rest}
    • Current IeVVexp(tτ)I_{e} \rightarrow V - V_{\infty}\sim exp\left( - \frac{t}{\tau} \right)
    • V rapid increase in V
    • Peak at V > 0
    • Rapid decrease in V
    • Undershoot: V<VrestV < V_{rest}
image114

How to explain these properties of the AP

  • Why only in axon?
  • Why all-or-none?
  • Why that shape?

Answer: g = g(V, t): voltage-dependent channels in the axon. They open and close dependent on the voltage that they experience on the membrane. Hodgkin-Huxley: Nobel Prize Medicine Physiology in 1963. Everything they did was before the existence of ion-channels (membrane channels) were known.

image115

During an AP we see channels opening and pulling V towards E. The hypotheses is that in the rising phase of AP the sodium and calcium conductances increase (gNa and gCa), and in the decaying phase of AP the sodium and calcium conductances decrease or potassium and chloride conductances increase. All as function of V. For testing these hypotheses, we need to measure gNag_{Na}, GKG_K, etc... We can use the IV-relation: measuring INaI_{Na}, IKI_K, etc... for different V then infer gNag_{Na}, GKG_K, etc... To do this, we can use a voltage clamp.

image116

Squid Giant Axon

image117

Voltage Clamp A new technique invented by Hodgkin and Huxley. Previously, current IeI_e was injected and voltage V was measured, now we set V and measure IeI_e required to keep VmeasuredV_{measured} = VsetV_{set}. It measures the current required to clamp the membrane voltage. Fast feedback system to fix V and measure I. IeI_e has the opposite sign, i.e., is positive if from outside to inside. But to keep ΔV\mathrm{\Delta}V constant, it is necessary to inject a current opposite to the ionic current. In the end, the current injected can be read as the ionic current (in the ionic current convention).

Space Clamp

image118

It makes the axon isopotential, do not have an AP but it is the same mechanism. The giant axon in squid has approximately 1mm of diameter and it is like a long wire, making the axon isopotential.

Voltage Clamp Experiment

image119 image120
  • Command voltage is set by the experimenter, the feedback circuit holds the voltage constant.
  • The voltage clamp allows the membrane voltage to be manipulated independently of ionic currents, allowing the current-voltage relationships of membrane channels to be studied.
  • With negative feedback circuit, the Na+ current is auto-catalytic. An increase in the voltage increases conductance, which increases the Na+ current, which increases the voltage again.
  • The threshold for action potential initiation is where the inward Na+ current exactly balances the outward K+ current.
image121

Identifying the Currents

  • Hodgkin & Huxley approach: remove Na concentration gradients (Na+ free seawater eliminates INaI_{Na}).
image122
  • Later: pharmacological blockade of specific channels
    • TTX: poison in pufferfish, it eliminates INaI_{Na}.
    • TEA: Tetraethylammonium eliminates IKI_{K}.
image124 image123

Voltage and time-dependent conductances for gNag_{Na}, gKg_K: gNag_{Na} increases quickly (fast activation), but then inactivation kicks in and it decreases again (fast inactivation). gKg_K increases more slowly (slow activation), and only decreases once the voltage has decreased (no inactivation).

Towards a Mechanistic Model They proposed an hypothesis of what might be causing voltage and time-dependence, which is going to be formalized in the lines of the previous image. The white dots is what they measured and the models estimate the lines. How to explain voltage and time-dependence in gNag_{Na} and gKg_K?

Two possibilities:

  • Single channels have variable (continuous) permeability (analog).
  • Single channels are either open or closed whereby p(open) = f(V) (digital).

Today we know that the second possibility is correct:

  • Patch clamp: record IsinglechannelI_{singlechannel} (Nobel 1991, Erwin Neher & Bart Sakmann)
    • It allows the study of currents across single channels of membranes.
    • Hodgkin & Huxley: inferred the patch clamp from their voltage clamp data.
    • Individual channels are probabilistic devices that are opened or closed. The conductance is measured by the average of all channels.
image125

Single Channel Current

image126

There are two types of voltage-dependent conductances:

  • Persistent Conductance Type, it has two stages: deactivated (closed) and activated (opened). The channel opens and stay opened when the cell is depolarized. For example, gKg_K in AP.
  • Transient Conductance Type, it has three stages: deactivated, activated and inactivated. Here we have two gating variables that describe the opening and closing of the channel. Activation and Inactivation are two processes that work in opposite directions. The channel opens but then it closes while the cell is stil depolarized. For example, gNag_{Na} in AP.

Hodgkin & Huxley formalism is used for active conductances in general: gi=giPig_{i} = \overline{g_{i}} \bullet P_{i} where gig_{i} is the overall conductance of channels of type i; gi\overline{g_{i}} is the maximal conductance (if all channels were open); and PiP_{i} is the probability of the channel to be open (or the fraction of channels that are open).

image127

Persistent Conductances Assuming that k events (independents and identical) are necessary to open a single channel, then P =nkP_{\ } = n^{k}. n is a gating/activation variable: the probability of a subunit gate to be open, and it is voltage and time-dependent. k is the number of subunits necessary to open each channel. According to Hodgkin & Huxley gK=gKPKPK=n4=nnnng_{K} = \overline{g_{K}} \bullet P_{K} \rightarrow P_{K} = n^{4} = n \bullet n \bullet n \bullet n (it is necessary 4 subunits to open the channel). When k was fitted to data it leaded to corrected predictions for K+ channels.

image128

Gating-Variables: Time-Dependence

image129 image130

Persistent and Transient Conductances Transient conductance includes inactivation:

PNa=m3hP_{Na} = m^{3} \bullet h

Where m3m^{3} is the activation variable and hh is the inactivation variable, which also represents the probability that the channel is not blocked by the inactivation gate.

image131

Gating-Variables: Voltage-Dependence

image132 image133 image134
image135

The Hodgkin and Huxley Model It is the model that describes how action potentials in neurons are initiated and propagated.

  • The model parameters are fit to gNa(V,t)g_{Na}(V,t) and gK(V,t)g_{K}(V,t) from voltage clamp.
  • n and m are probabilities for a gate to be open.
  • h is the probability that an open channel is not blocked.
  • The gating variable have a voltage dependence.
  • g \overline{g_{\ }} values are the maximum conductance possible.
  • There is no inactivation for potassium, only for sodium.
  • The membrane does not get locked at positive values.
  • gL\overline{g_{L}} stands for some generic leak.
  • The functions n(V)n_{\infty}(V), m(V)m_{\infty}(V) and h(V)h_{\infty}(V) determine whether gates serve to activate channels (with depolarization) or inactivate the channel (close with depolarization). τm\tau_{m}, τh\tau_{h} and τn\tau_{n} are time constants.
image137 image136

Fitting the Hodgkin and Huxley Model

image140 image138 image139

{width="3.884027777777778in" height="0.4263888888888889in"}

Model Predictions

  • Potassium Channel: the number of subunits (4) in K channel was verified much later with structural studies.
  • Action Potential Shape
  • Action Potential Threshold
image141
  • Refractory Period: it is harder (requires larger current injection) to generate AP immediately after an AP. The reason is that gKg_K is still activated and gNag_{Na} is still inactivated.
  • Action Potential Propagation in Unmyelinated axon
  • Action Potential Propagation in Myelinated axon: in the myelinated part of the axon we have passive AP propagation (small capacitance and large resistance), but in the nodes of ranvier, we have active AP regeneration. Compared to unmyelinated:
    • Faster AP propagation.
    • Smaller current.
    • Faster VAPV_{AP} increase with axon radius.
  • Action Potential Collision: Action Potential propagates in one direction along axon. Reason: refractory period, gNag_{Na} still inactivated in the wake of AP. Either direction is possible in principle. From soma to axon terminal: orthodromic. In the opposite direction: antidromic. In the brain we do not have usually antidromic AP. Antidromic AP can be generated artificially also during collision experiments, i.e., both antidromic and orthodromic AP are initiated, none achieve the other end, they annihilate each other in the center.
  • Action Potential Not Reflected at Axon Terminal: at the end of the cable, there is no AP reflected because of refractory period.
  • Why Action Potential Only in the Axon: AP does not usually propagate in dendrites because gNag_{Na} & gKg_K are missing. However, in a few cell types gNag_{Na} & gKg_K are present also in dendrites. It is not sufficient to generate an AP, but can propagate AP from soma into dendrite to some extent: axon backpropagation.

Single Neuron Computations

image143

Synapses I

Lecturer: Daniel Kiper

Discovery of Synaptic Transmission

  • Cajal's Golgi staining methods suggested the presence of contacts between cells that were used for communication approx. 1900's.
  • Sherrington proposed the term "synapse" meaning to clasp to describe the structure, 1890's.

"So far as our present knowledge goes, we are led to think that the tip of a twig of the arborescence is not continuous with but merely in contact with the substance of the dendrite or cell body on which it impinges. Such a special connection of one nerve cell with another might be called a synapse". "Such a surface might restrain diffusion, bank up osmotic pressure, restrict the movement of ions, accumulate electric charges, support a double electric layer, alter in shape and surface tension with changes in difference of potential ... or intervene as a membrane between dilute solutions of electrolytes of different concentration or colloidal suspensions with different sign of charge".

Soup vs Spark Controversy about Synaptic Transmission - Chemical or Electrical? Is Synaptic Transmission mediated chemically or by direct electrical transfer of charge? Evidence for chemical transmission at the Neuro Muscular Junction (NMJ) was widely accepted by Neuropharmacologists. Some of the physiologists thought that certain aspects were too fast to be mediated chemically. Chemical synapses is the predominant way of communication between neurons, but there are some electrical synapses. In the retina, we have large networks of photoreceptors: rods and cones. Rods are connected to each other via electrical synapses.

Otto Loewi, Chemical Transmitter

  • 1936 Nobel Prize for Medicine.
  • Showed that vagus nerve stimulation liberates a diffusible transmitter.
  • Vagus nerve is one of the cranial nerves that leaves the cranial stem carrying parasympathetic information to other parts of the body.
  • Perfusate from one stimulated frog heart could be transferred to another and have an effect on beat frequency.
image144

The picture above represents Otto Loewi vagus nerve experiment. Stimulating the vagus nerve slows down the heart beat, it has an inhibitory function. In the experiment, two solutions are connected, one heart in each. After stimulation of one of them, the other one, after a short time, has the same effect. Ringers solution is a mixture of chemicals in which the heart can continue beating. When switching the solution with one that has been used with an activated vagus nerve, the heart will slow down. It was found that the "Vagusstoff" is acetylcholine (Ach). The synapses are receptive for nicotine, muscarine and acetylcholine, because of Ach-receptors. This makes certain substances very addictive. Residual Ach has to be cleared and removed immediately. This happens with Ach esterase enzymes.

Chemical Synaptic Transmission

image145

Communication between cells which involves the rapid release and diffusion of a substance to another cell where it binds to a receptor (at a localized site) resulting in a change in the postsynaptic cell properties.

  • Contrary to electrical transmission multiple steps are required to release transmitter chemicals and for them to act on postsynaptic receptors, resulting in a time delay (can be as short as 0.2ms, from Ca2+ entry to secretion).
  • Directional, select localization of release machinery to presynaptic terminal and receptors to postsynaptic specializations.
  • Can change sign by release of inhibitory transmitter.
  • Highly modulatable as it has many steps presynaptic terminal and at the postsynaptic sites.

A hall-mark of chemical transmission is a delay between presynaptic Ca2+ elevation and secretion. The delay can be as short as 0.2 ms, but is usually longer due to a variety of factors.

  • Synaptic cleft: 20 to 40nm.
  • Vesicles in presynaptic terminal.
  • Neurotransmitters (>1000 per vesicle)
  • Neurotransmitters released by depolarization, Ca2+ dependent.
  • Vesicles are released by exocytose in the active zone (specialized site in presynaptic neuron for release).
  • Diffusion
  • Binding to receptors
  • Channel opening
  • Amplification
  • Multiple steps are required to release transmitter chemicals and for them to act on postsynaptic receptors, resulting in a time delay (can be as short as 0.2ms, from Ca2+ entry to secretion).
  • Directional, select localization of release machinery to presynaptic terminals and receptors to postsynaptic specializations.
  • Can change sign by release of inhibitory transmitter.

Steps to Chemical Synaptic Transmission

  • First need to bring the presynaptic neuron to threshold at axon hillock.
  • Conduction down axon, length, R*C dependent.
  • Opening of voltage gated Ca2+ channels.
  • Diffusion and action of Ca2+ at release machinery.
  • Exocytosis and diffusion of transmitter in cleft.
  • Activation of postsynaptic receptors.
image147 image146

Criteria that Define a Neurotransmitter

  1. Must be present at presynaptic terminal.
  2. Must be released by depolarization, Ca2+-dependent.
  3. Specific receptors must be present
image148

Neurotransmitters may be either small molecules or peptides.

Mechanisms and Sites of synthesis are different

  • Small molecule transmitters are synthesized at terminals, packaged into small clear-core vesicles (often referred to as "synaptic vesicles").
  • Peptides, or neuropeptides are synthesized in the endoplasmic reticulum and transported to the synapse, sometimes they are processed along the way. Neuropeptides are packaged in large dense-core vesicles.

Model of Synaptic Transmission (Standard Katz Quantal Model) This theory has been developed by looking at the amplitude of EPP. Neurotransmitters are released in discrete packages, or quanta.

  • One packet of neurotransmitter = One quantum.
  • AP transiently increases the probability of releasing NX quanta.
  • Several quanta are available to be released at any given time.
  • Each quantum gives approximately the same postsynaptic response called the "Quantal Amplitude".
  • The average number of quanta released, m = np.
    • Where n = the number of quanta available for release.
    • P = their average release probability.

Failure analysis reveals that neurons release many quanta of neurotransmitter when stimulated, that all contribute to the response.

  • Quantal content = the number of quanta released by stimulation of the neuron.
  • Quantal size = the size of the individual quanta.
image149

If the probability of a single unit responding is "p", and if each unit has an independent and equal "p", then the mean number of units responding to each stimulus is given by: "np" where n is the total number of available quanta.

Then, the probability that x-units successfully contributing is given by the binomial distribution: P(success=x)=(nx)px(1p)nxP(success = x) = \begin{pmatrix} n \\ x \end{pmatrix}p^{x}(1 - p)^{n - x}.

Quanta correspond to release of individual synaptic vesicles. EM images and biochemistry suggest that a MEPP could be caused by a single vesicle. EM studies revealed correlation between fusion of vesicles with plasma membrane and size of postsynaptic response.

image150

CNS Synapses and Quanta At CNS there are fewer release sites in the synapses than in the NMJ, hence if we have only one synapse it is unlikely that it will lead above-threshold the postsynaptic site. So, we will need many synapses to be active at the same time. That implies that multiple cells connected to the neuron have to release simultaneously to drive a postsynaptic AP.

  • At CNS synapses with only a single release site, changing the probability of release (i.e., changing the calcium concentration) does not effect the amplitude of the response (as only zero or one vesicle is released in theory).
  • At CNS synapses with multiple release sites, changing release probability can change the postsynaptic response amplitude as more transmitter is released (graded quantal levels).
  • At the NMJ a single nerve can elicit a postsynaptic AP given multiquantal release, while at the CNS synapse (with low numbers of release sites) multiple synapses must cooperate, forces a network.

CNS Synapses and Miniature Release

  • Miniature release is produced in the absence of action potential stimulation.
  • Thought to reflect the release of single vesicles or transmitter quanta.
  • Can be stimulated by calcium entry, but may not necessarily require calcium for release.
  • Commonly studied to gain insight into changes in receptors or release probability during synaptic plasticity experiments, although can be difficult to interpret.

Docked Synaptic Vesicles It is an expression that indicates the population of vesicles in the presynaptic site that are ready to release. It defines the number of readily releasable vesicles a synapse has available. A consequence of having a limited number is depletion at high stimulus frequency, CNS synapses may have only a small number of docked vesicles on the order of 5-10 vesicles for a hippocampal CA1 synapse.

image151

Calcium influx is Necessary and Sufficient for Neurotransmitter release. In the following pictures, Calcium is artificially injected in the cell which results in the postsynaptic membrane potential to show a response. In this experiment, the injection results in an increase in the postsynaptic potential, while using a calcium buffer (absorbs the calcium) we can show a reduction in the postsynaptic potential.

image153 image152 image154

Summing Up:

  • Only vesicles which are already on the postsynaptic membrane (docked) will be released after the AP, not all of them.
  • One singe synapse produces only a small potential. More are needed for an actual action potential.
  • Release of neurotransmitters is calcium dependent.
  • Probabilistic release of neurotransmitter:
    • In the CNS, most of the time only one vesicle is released with probability 0.2 to 0.4. An amplitude histogram shows poisson distribution, which gives the probability of firing. The action potential (probability of firing of synapses, probability of postsynaptic receptors to bind neurotransmitter) give the plasticity (overall probability of passing action potential to postsynaptic neuritic changes).
  • Single activated synapse is usually not enough, EPSP is about 0.1 mV.
  • The current-voltage lines have bio-measured sigmoid-curves, because channels open with a probability.
  • Four types of synapse: axodendritic, axosomatic, axoaxonic, and dendrodendritic.

The Synaptic Vesicle Cycle

image155

Synaptic Vesicle Release Consists of Three Principal Steps

  • Docking: Docked vesicles lie close to plasm membrane (within30nm).
  • Priming: Primed vesicles can be induced to fuse with the plasma membrane by sustained depolarization, high K+, elevated Ca2+, hypertonic sucrose treatment.
  • Fusion: Vesicles fuse with the plasma membrane to release transmitter. Physiologically this occurs near calcium channels, but can be induced experimentally over larger area. The "active zone" is the site of physiological release, and can sometimes be recognized as an electron-dense structure.
image156

Priming Vesicles in the reserve pool undergo priming to enter the readily-releasable pool. At a molecular level, priming corresponds to the assembly of the SNARE complex.

The SNARE Complex

image157

Endocytosis retrieves synaptic vesicles membrane and protein from the plasma membrane following fusion

image158

Synapses II

Lecturer: Daniel Kiper

Post-Synaptic Receptors Neurotransmitters cross synaptic-cleft and can bind to two types of receptors:

  • Ionotropic (Ligand-Gated Ion Channels, LGIC)
  • Metabotropic (G-Protein Coupled Receptors, GPCR).
image159 image160

Ionotropic Receptors

  • Contains a ligand-binding site, i.e., a site where the neurotransmitter can bind to the neuroreceptor.
  • A normally-closed ion channel that opens after binding with the neurotransmitter.
  • Contribute to fast changes in the membrane potential.
  • Glutamate uses ionotropic receptors, which are usually among the fastest.

Metabotropic

  • G-protein coupled receptor.
  • Secondary messenger involved.
  • Slow postsynaptic processes (plays a role in synaptic plasticity).
  • The binding of the neurotransmitter to the receptor induces a biochemical reaction which involves the G-protein, which will in turn affect a ion-channel allowing the flow of ions.
image162 image161

NMDA Receptor One of the best known receptor because it is involved in synaptic plasticity. It is voltage-dependent and this peculiarity allows it to have a high flexibility in terms of behaviour to different conditions of current and neurotransmitters.

image163

Two Principal Kinds of Synapses: Electrical and Chemical

image165 image166 image164

Gap Junctions are Formed where Hexameric Pores called Connexons Connect with one Between Cells.

image167

Electrical Synapses are Built for Speed The delay between the onset of the depolarization in the pre- and post- synaptic neurons is very small. Electrical Coupling is a Way to Synchronize Neurons with One Another Mechanisms for how the neurons code information.

image168 image169

Electrical vs. Chemical Synapse

image170

Modelling Synapses The following plots depict the results of an experiment where they patch-clamped a piece of membrane containing a synapse. In the left picture, we see the post-synaptic potential that is elicited when the pre-synaptic neuron was stimulated. Since a voltage clamp is negative when we have an excitatory post-synaptic potential. Depending when and at what level we clamp the membrane, it will produce different sizes of post-synaptic potentials. On the right, the plotting of the previously measured post-synaptic potentials shows the proportionality between potential and current. Hence, we can conclude that synaptic input is well-captured by Ohm's Law.

image172 image171

Equivalent Circuit of a Fast Chemical Synapse

image173

Modified membrane patch equation with a synapse:

image174

Rewriting, we get:

image175

Alpha Function Synaptic input is usually approximated by an "Alpha Function" of the form:

image176

You will need to add synapses in parallel with the RC circuit to create additional synaptic components. In the following way:

image177 image178

Plasticity

  • Hebb's Law: Neurons that fire together wire together.

Imagine two neurons embedded in a complex network and they have a synapse that connects neuron A to neuron B, if such synapse occur with high probability, as soon as neuron A is active then also neuron B is also active, then this synapse will become stronger.

Spike-Time Dependent Plasticity

  • Long-Term Potentiation (LTP) & Long-Term Depotentiation (LTD)
image179

To the left of the dashed line the presynaptic neuron fired before the postsynaptic, while to the right we have the opposite. When the presynaptic neuron reliably fires before the postsynaptic one, we have LTP. However, the firing of the pre- and post-synaptic neurons have to be correlated and happen with a very small delay, indeed, if the time-span between the two AP is too large it either induces LTD (the synapse becomes weaker) or no LTP happens at all.

The Neural Code

Lecturer: Benjamin Grewe

From temporal to rate coding, and single neurons to networks. How does the brain represent what we perceive? Perkel & Bullock (1968): The problem of neural coding is to elucidate "the representation and transformation of information in the nervous system".

image180

Representation and Transformation of Information The simplest organism that uses spikes is the Paramecium (a "Swimming Neuron"), which represents some of the experience it has about the world. It can use such Action Potentials for movements.

image181

The Coding Metaphor Considering three elements: Correspondence, Representation & Causality:

  • The technical sense of a code is a correspondence between two domains, e.g., visual signals and spike trains. We call this relation a code to mean that spike trains specify the visual signals, as in a cipher: one can theoretically reconstruct the original message (visual signals) from the encoded message (spike trains) with some accuracy, a process called decoding.
  • Not all cases of correlations in nature are considered instances of coding. Climate scientists, for example, rarely ask how rain encodes atmospheric pressure.
  • Finally, we would not say that visual signals encode retinal spike trains, even though this would comply with the technical sense. The reason is the communication metaphor implicitly assumes a causal relation between the original message and the encoded message; here, spike trains result from visual signals by a causal process (transduction).

Encoding and Decoding of Information

  • Encoding: How does a stimulus cause a pattern of responses?
    • Building an approximate mechanistic model of the world.
    • P(response|stimulus) = Encoding.
  • Decoding: What do the responses tell us about the stimulus?
    • How can we reconstruct the stimulus?
    • P(stimulus|response) = Encoding
    • By recording neuronal responses in the cat visual cortex, we identify that the visual cortex encodes the orientation of a moving stimulus and has an orientation-specific organization. In rats, spatial information is coded via hippocampal place cells.

In general:

  • Information is encoded by firing of single neurons and firing of populations of neurons.
  • A neuron encodes information, fires to stimuli.
  • Firing rate and spike timing encodes information.
  • Spatial/temporal resolution of different measurement techniques tell us about the neural code.
  • It is an issue to record from many neurons simultaneously.
  • There is not much information in the slope of a spike.
  • By recording neuronal responses from a stimuli, we can "see" how the brain encodes the stimuli.

Finding the Stimulus-Response Relation

image182

Encoding Motor Output in Primates One of the first experiments investigating how is a motor command in arm reachment encoded by neurons's in the motor cortex. (Georgopoulus et. al., 1982).

Recording Neuronal Responses in Cat VI

image183

Hubel & Wiesel wanted initially to find a neuron that was responsive to the black dot, they accidentally found the reaction to the edge of the paper onto which the black dot was depicted.

Orientation and Direction Selective Neurons in VI Neurons have a receptive field and they show direction selectivity to the stimuli.

Edge Filters in Primate Visual Cortex Edge filters constitute a way to represent in low-dimensional manner natural images, indeed with just a couple hundreds neurons you can reconstruct complex images through edges.

Paper: "Spatial Structure of Neuronal Receptive Field in Awake Monkey Secondary Visual Cortex (V2)".

image184 image185

Encoding Complex Stimuli in Primate V4 They proved the activity in V4 and figured out a way to design an experiment to understand what type of features maximally excite neurons in V4. Paper: "Neural Population Control Via Deep Image Synthesis".

Encoding Visual Stimuli in the Human Brain (Area MTL) They measured MTL neurons activity, they showed pics of people and measured that this patient had neurons responding to Jennifer Aniston's pictures. Hence, at MTL we have an high-representation of concepts, such as the Jennifer Aniston's character.

Encoding Spatial Information in Rata Hippocampus O'Keefe, M. B. Moser and E. Moser Nobel prize. It is possible to reconstruct the position of the mouse along the track based on the decoding of information encoded by spines. (Ziv and Schnitzer, 2013).

image186 image189 image188 image187

Which Features of the Spike Trains are the Signal? Rate Coding refers to information being carried by the firing rate. It is often argued, or assumed, that firing rate captures essentially all relevant information. (rate code means that I have a certain variable, which could be intensity or orientation, then I have a tuning curve and the more I tweak this variable the more I have a continuous reflection of my out-of-world variable and the spiking frequency of this neuron.) Temporal Coding may refer to several quite different ideas:

  • Much of the information may be transmitted by a neuron during certain small intervals of time.
  • Synchronous, or what one could call quasi-synchronous, firing of neurons within and across ensembles may carry important information.
  • The precise timing, or pattern, of spikes may carry information.
image190

Temporal vs Rate Code

  • Rate Code
    • Rate = Average over time, single neuron, single run.
    • Definition of the mean firing rate via temporal average.
    • Neuronal gain function (curve). The output spike rate is given as a function of the total somatic input current I0.
    • Easy to understand, but no timing effects and misleading as more than one stimulus might be encoded.
    • It takes time to compute a temporal average and behavioral response time is shorter than integration time.
  • Temporal Code
    • Phase Coding, when does the spike occur with respect to a background oscillatory cycle (phase delay of a spike).
    • Synchrony, when does the spike occur with respect to all the other spikes in the network? How synchronized is the activity?
    • Time to first spike, you have some stimulus and you measure the time until the neuron spikes. (short time - highly activated).
image191 image192

Phase Coding in Hippocampus Different cells responding to different stimuli encountered during the "trail". When the mouse is sleeping he replays the sequence faster but in the same order.

image193

Hence, in the Hippocampus the information is mostly rate coded, but phase delay information (temporal coding) is also relevant. Indeed, the phase delay of spikes, with respect to the background oscillations, gives position cues that can be used to decode the position of the mouse.

image194

Sound Localization by Measuring the Interaural Time Difference (ITD) The precise timing of spikes is directly used to hear and code the position of a prey (Barn Owl vs Mouse). The temporal delay between left and right ear is combined through delay lines. These neurons in the middle only activate when the stimuli arrive simultaneously.

image195

How to Investigate the Stimulus Encoding of a Neuron? The same stimulus can be encoded very differently by different neurons. On the right we can see the factors that may cause such encoding differences.

image197 image196

In the cortex, most of the inputs for each neuron is not coming from the outside, but rather from neighboring neurons. In the cortex, approx. 4% of synaptic inputs are actually coming from the Thalamus and the Retina. Hence, the cortex is highly recurrent and the brain has a certain state that changes all the time, i.e., what we think. Depending on what we think, we might have different stimuli in the visual cortex.

What is the simplest possible relation between stimuli and encoded signals?

image198

r(t)=f[s(t)][fs(tτ)]\mathbf{r}\left( \mathbf{t} \right)\mathbf{= f}\left\lbrack \mathbf{s}\left( \mathbf{t} \right) \right\rbrack\mathbf{\rightarrow}\left\lbrack \mathbf{f \bullet s}\left( \mathbf{t -}\tau \right) \right\rbrack

Linear Filter: r(t)=k=0nstkfk\mathbf{Linear\ Filter:\ r(t) =}\sum_{\mathbf{k = 0}}^{\mathbf{n}}{\mathbf{s}_{\mathbf{t - k}}\mathbf{\bullet}\mathbf{f}_{\mathbf{k}}}

The Neuron as a Temporal Filter

image199

Linear Temporal Filter:

Discrete Form: r(t)=k=0nstkfkDiscrete\ Form:\ r(t) = \sum_{\mathbf{k = 0}}^{\mathbf{n}}{\mathbf{s}_{\mathbf{t - k}}\mathbf{\bullet}\mathbf{f}_{\mathbf{k}}}

Continuous Form: r(t) = tdτ s(tτ)f(τ)Continuous\ Form:\ r(t)\ = \ \int_{- \infty}^{t}{d\tau\ s(t - \tau) \bullet f(\tau)}

The Running Average Filter In this filter we take N time points and we average them.

image200

Linear Temporal Filter:

Discrete Form: r(t)=k=0nstkfkDiscrete\ Form:\ r(t) = \sum_{\mathbf{k = 0}}^{\mathbf{n}}{\mathbf{s}_{\mathbf{t - k}}\mathbf{\bullet}\mathbf{f}_{\mathbf{k}}}

Continuous Form: r(t) = tdτ s(tτ)f(τ)Continuous\ Form:\ r(t)\ = \ \int_{- \infty}^{t}{d\tau\ s(t - \tau) \bullet f(\tau)}

The Leaky Average Filter

image201

Linear Temporal Filter:

Discrete Form: r(t)=k=0nstkfkDiscrete\ Form:\ r(t) = \sum_{\mathbf{k = 0}}^{\mathbf{n}}{\mathbf{s}_{\mathbf{t - k}}\mathbf{\bullet}\mathbf{f}_{\mathbf{k}}}

Continuous Form: r(t) = tdτ s(tτ)f(τ)Continuous\ Form:\ r(t)\ = \ \int_{- \infty}^{t}{d\tau\ s(t - \tau) \bullet f(\tau)}

Basic Model of Linear Spatial Filtering (against the previous temporal filtering) This filter is local in space. The center is weighted positively, while the surround is weighted negatively (On/Off).

image202 image203
image204 image205 image206

Combining Temporal and Spatial Filtering This is most likely what the brain is doing, i.e., integrate not only across space but also across time.

image207 image208

Combining Filtering with a Nonlinearity

image209

Problems:

  • Can spike rates be negative? (No)
  • What happens if the stimulus becomes stronger and stronger?
  • Can firing rates increase indefinitely? (No) How can we refine our fitting/modelling to be more biologically-plausible? The downside of this fitting is that I lose information relative to the dynamic range of encoding.

Linear Filter + Nonlinearity: r(t) = g(  dτ s(tτ)f(τ))r(t)\ = \ g(\int_{\ }^{\ }{d\tau\ s(t - \tau) \bullet f(\tau))}

Taking into Account Spatio-temporal Features

image212 image213 image214
image210 image211

To Measure Population Activity in vivo it is possible to use Electrodes and Ca2+ Imaging. Now, we want to repeatedly sample the responses to a variety of stimuli so that we can characterize what feature combination triggers a spike or a behavior.

P(response|stimulus)=P(response|s1,s2,s3,,sn)P\left( response \middle| stimulus \right) = P\left( response \middle| s_{1},s_{2},s_{3},\ldots,s_{n} \right)

After collecting data, if we don't have any labels for the stimuli, we use an unsupervised/clustering approach, otherwise a supervised approach to identify the characteristics that trigger a behavior.

Population coding refers to information available from ensembles that goes beyond simple summation of individual signals. It is often associated with the method of Georgopoulos et. al. (1996), but many scientists have also asked what an "ideal observer" could learn from a population of neurons.

  • Different cells encode different ranges of the stimulus.
  • Averaging over a population is often meaningless.
  • Allows accurate reconstruction of the signal, also interpolated between peaks.
  • Sparse coding: only few cells are activated.
  • Retina as an example: different cells for different light wavelengths.
  • A neuron encodes a stimulus, a neuronal population encodes behavior.

Finding the Single Neuron Response Vector & Projecting Stimuli in the direction of Neuronal Response (Encoding/Filtering)

image215 image216

Finding the I/O Function for a Single Neuron

image217

The I/O function is:

P(spike|stimulus)=P(spike|s1)P\left( spike \middle| stimulus \right) = P\left( spike \middle| s_{1} \right)

Where s1s_{1} as identified by our linear filter.

The I/O function can be found from data using the Bayes' rule: P(spike|s1)=P(s1|spike)P(spike)P(s1)P\left( spike \middle| s_{1} \right) = \frac{P\left( s_{1} \middle| spike \right)P(spike)}{P\left( s_{1} \right)}

image218 image222 image220 image221 image219

Population Distance Metrics

image223

Plasticity and Learning

Lecturer: Benjamin Grewe

Content of this lecture

  • Plasticity in Neuronal Networks

    • Why do we need plasticity/learning?
    • Defining Plasticity/Learning
    • Relevant temporal scales for learning
  • Substrates of Neural Plasticity

    • Network and Systems Plasticity
    • Cellular Plasticity, the Perceptron
    • Synaptic Plasticity, the Hebbian Synapse
  • Synaptic Plasticity

  • The Hippocampus as a Model System to Study Neural Plasticity

  • Non-Synaptic Plasticity

  • ETH/ETH - Introduction to Neuroscience/Extracted Topics - ETH Introduction to Neuroscience/Learning in Artificial & Biological Neural Networks/The Perceptron

The Perceptron

Lecturer: Matthew Cook

When we look inside the brain, we see a bunch of neurons and a mess of connectivities. It's really hard to identify the connections among neurons, and with this information to understand how the brain works. We don't learn how the brain works by studying neurons, the same way that just by studying transistors we do not know how a computer works. We know the brain does processing but we don't know how it works. The bottleneck to understand brain is probably that we do not have the right abstractions to understand it. McCulloch and Pitts developed a computational model of a biological neuron in 1943. The McCulloch-Pitts neural model is also known as linear threshold unit/gate. It models a neuron with a set of inputs and one output.

McCulloch-Pitts Neurons vs Biological Neurons

  • Similarities
    • Both can be active or inactive.
    • The input/output is directed.
    • The activation of a neuron is dependent on a weighted function of other neurons.
  • Differences
    • Real neurons exist in continuous time, whereas McCulloch-Pitts neurons operate in discrete time.
    • Real neurons have degrees of activation, not just on/off.
    • The activation as a function of the inputs of real neuron is typically not linear or threshold linear.

(Basic) Digital Logic Gates are processing units. They are functions that evaluate the inputs. Each input has a 0/1 value that can be seen as a false/true in digital logic. There are different types of gates, each type is represented by a shape, but we can also just use their names to refer to them. We use gates to help us to understand the computation that might be happening in the brain. Neurons and axons do not behave as wires, but this is the tool we have available. And while neurons do not have 0s and 1s, they can be active/inactive, what gives us a good approximation. Circuits are a combination of gates.

  • AND: returns 1 when both inputs are 1.
  • OR: returns 1 when at least one input is 1.
  • NOT: returns the opposite value of the input.
  • XOR or Exclusive OR: returns 1 when the number of inputs = 1 is odd.
  • Equality: returns 1 when the inputs are equal.
image269

Linear Threshold Unit/Gates (Perceptron) The picture represents a neuron with inputs x's and one output y. Weights w determine the influence of the inputs. f is a function determining the output: if the influence of all the inputs combined crosses a threshold, then the neuron becomes active. Active state: i (wixi)θ\sum_{i}^{\ }{\left( w_{i} \bullet x_{i} \right) \geq \theta}. Otherwise, the neuron is inactive.

image270

We add a bias input as – θ–\ \theta so that w0 +i (wixi)0w_{0}\ + \sum_{i}^{\ }{\left( w_{i} \bullet x_{i} \right) \geq 0} activates the neuron. As a digital abstraction, we consider that the activity of a neuron can be described as 0 or 1. Where 0 is inactive and 1 is active. Neurons can learn by adjusting their weights, they can have thousand of inputs. For a desired behavior there are many possible weight vectors that can work (if any can work).

This model can create AND/OR/NOT-gates. The function that a McCulloch-Pitts neuron can represent are only the linearly separable functions. Hence, this model is not capable of computing XOR and Equality Gates. Indeed, XOR is not a linear combination of the inputs. And the perceptron uses a line to separate classes, i.e., all the points in the same side of the line will have the same output. Although these units can't model the XOR, they are still powerful. You can't calculate it with a single unit, but with a combination of them, it is possible. The same way one cannot compute the XOR function using one single OR, NOT or AND gate. In fact, we need three gates to compute the XOR function. In the end, these model of neuron units are more efficient than digital logic gates, however, these new analog units run into precision problems. For implementing the XOR function, McCulloch and Pitts units allow exponentially smaller circuits.

We can find the weights that make the unit produce certain desired outputs through the Perceptron Learning Algorithm.

Perceptron Learning Algorithm This algorithm is called a learning algorithm because we use it to the define the weights of the neuron. This learning is just a definition of parameters, and can be seen as an optimization, where we have some guess and we want to improve it.

Supervised Error-Correcting Rules We start with an initial guess of weights, we compare the output in response to the input with the desired output and then we change the weights to improve the performance. Consider the mapping of the table shown before. Can we set w0, w1, w2 (bias term, and the weights of each input) so that this unit computes the f from the table? Learning happens by changing synaptic weights. How can we change the synaptic weights of a unit to make it behave as desired? Let's start with random weights, let's say all zero. With these weights, doesn't matter the values of x1 and x2, the result will always be 1. And for the second case (x1=0,x2=1,f=0)x_{1} = 0,x_{2} = 1,f = 0) we produce a wrong output. So, we reduce w0w_0 and w2w_2 because they contribute to the sum (0×w1+1×w2+w0)0 \times w_{1} + 1 \times w_{2} + w_{0}). We reduce the weights if the sum should go down and we increase the weights if the sum should go up. We iterate this step until convergence. We can consider the bias as a weight with input value always one (x0=1)x_{0} = 1), thus, we can write:

image271

Convergence These single units can separate two classes if they are linearly separable (i.e., if a solution exists). The Perceptron Learning Algorithm must converge, i.e., it will update the weights a finite number of times.

Class Discussion: If there is some weight vector that implements the desired (partial) function, then the Perceptron learning Algorithm (PLA) will terminate, with the unit correctly implementing the (partial) function. Why? Because of two facts:

  1. The weight vector has to grow linearly in magnitude in the long run.
  2. The square magnitude of w\overrightarrow{w} grows at most linearly. As long as the PLA has not terminated these facts are true and they are not compatible in the long run.

Proof 1 Suppose there is a solution w{\overrightarrow{w}}^{*}, i.e., the data is linearly separable. The weights of the perceptron units can be seen as the components of a normal vector to the hyperplane that separates the classes (1 and 0). In fact, the length of the normal vector doesn't matter, we are looking for its direction. Pick any solution w\overrightarrow{w}, for instance, starting with all weights as zero, if this solution already satisfies our conditions, we are done. Otherwise, we pick an arbitrary misclassified point and update w\overrightarrow{w}. Each step makes progress in the w{\overrightarrow{w}}^{*}direction, because additions to w\overrightarrow{w} are always 90 deg.\leq 90\ deg. The magnitude of w×w{\overrightarrow{w}}^{*} \times \overrightarrow{w} increases linearly. Since w{\overrightarrow{w}}^{*} doesn't change, there is a maximum growth from w\overrightarrow{w} to achieve the solution. By contradiction in the limit of infinite steps, we can say that the algorithm converges, i.e., if there is a solution and it takes infinite steps to achieve it, this is a contradiction.

image272 image273

Algorithm

  • Choose random initial weights.
  • Calculate output for given input.
  • If the output is not the expected value, then e = d -- c, where d is the desired output and c the current output.
  • Change the weight of inputs and bias by Δwi=eαxi\Delta w_{i} = e \bullet \alpha \bullet x_{i}. For the bias, always use x = 1.

Hopfield Networks

Lecturer: Matthew Cook

The Hopfield Network, or Hopfield Model, was proposed by John Hopfield in the early 80s. He was trying to understand what neural networks do. When we look into the brain and how neurons are connected to each other, we do not see always a clear pathway, i.e., it is hard to think about the connections in the brain in terms of input-output. He thought about connecting units to each other in an all-to-all pattern and see what would happen.

Characteristics of Hopfield Networks

  • Every node is connected to every other node but not to itself.
  • Connection weights are symmetric (bidirectional).
  • xiwi<0\sum_{}^{}{x_{i}w_{i} < 0} represents an inactive unit, xiwi0\sum_{}^{}{x_{i}w_{i} \geq 0} is active, when using a zero threshold.
  • The entire network is in some state at any time. Set of active units of the entire network is important.
  • Some states are stable and some are not. While in an unstable state, updating the network leads to a state change.
  • Stable state is a local minimum.
  • Bias is an unit that is always on.
  • Weight symmetry of a connection is correlated to the frequency of neurons firing together (following Hebbian learning).

Hopfield and Memory We are used to think about computation as a process that receives an input, does something and generates an output. However, this is not what we "see" in the memory process, for instance. It seems our memory works with Pattern Completion, also known as Content Addressable Memory or Associative Memory. This memory has no input-output relation: given any piece of it, we can recover the rest. An example is when certain smell can bring us a memory, even though the smell is only part of the memory. Hopfield Networks can be used to give us insights about how the memory works by having a highly connected network that computes with no input-output, but with states. The Hopfield Network is dynamic and moves from one state to another until it arrives to a stable state (also known as an attractor). Having stable states help the network to recover information giving partial inputs.

  • A Hopfield Network is an associative type of memory. Information is stored in the stable states as local minima.
  • It is important that information is distinct.
  • Associative memory has room for error but is still recognizable. Convergence to nearby stable states.
  • If some units are retrievable and all others are set randomly, the correct units will eventually set the wrong units right.
image274

In the figure: Model of a Hopfield Network. Red units are inactive, green units are active, blue unit is the bias node that is always active.

Updates and State Dynamics Hopfield found that these networks always converge to a stable state. Idea: Consider the sum of weights between active units (Q). The update rule is equivalent to always increase Q i.e., we turn an unit active if xiwiθ\sum_{}^{}{x_{i}w_{i} \geq}\theta, where xix_{i} is the value of the state of each unit, wiw_{i} is the weight between the units and θ\theta is the threshold, thus maximizing Q (weight between active units) by updating the output of one unit at time. In this setup, the update algorithm of Hopfield Networks can be seen as a greedy algorithm to find the MAX-CLIQUE. We update all the units but the bias node (bias node are always active and do not change their state). Remember, inactive neurons with zero threshold don't send inhibitory signal, instead they do not take part in the activation of other neurons.

image275

Consider the network presented in the above figure: states are in the table on the right. In the beginning A and D are active, the sum of the active weights (Q) is 1. Now, we look at B and we sum the weights of the active units linked to B (D and A). Q is (103=7010 - 3 = 7 \geq 0). If Q0Q \geq 0 we put the unit on the top part (active unit), otherwise we put the unit on the bottom (inactive unit). If B becomes active, Q increases (sum=1+7)sum = 1 + 7). If B becomes inactive, Q does not change (sum = 1). After updating C, the network achieves a stable state, i.e., updating any unit does not change its output.

image276

When we update a unit and change its value (active or inactive), then Q increases or stays the same (if we are making units active). When we make units inactive, Q doesn't change. We can also consider active units as having a value of "+1" and inactive units as "-1". In this new representation, the Hopfield Network dynamic is equivalent to a graph min-cut, i.e., we want to minimize the sum of weights that link active and inactive units.

Asynchronous Updates When we update one unit at time, we are using an asynchronous method. Asynchronous Hopfield Networks always converge to a stable state, regardless of the update order, however, to which stable state is dependent on the update order.

image277

Considering a Hopfield Network with two units connected with weight = 2, threshold zero and a bias unit of -1. Starting in a state with 1 active and 2 inactive, we can see how the order of update can lead to different stable states. By updating first unit 1 then unit 2, the stable state is with both units inactive. However, updating unit 2 then unit, we arrive to a stable state where both units are active.

Synchronous Updates Let's now consider a synchronous case, i.e., when we update all units at the same time: for this, active units for time t+1t + 1 are computed based on active units at time t. In this case, the system becomes a deterministic system because it doesn't depend on the order of updates anymore. Consider the network in the figure to the right, starting with units 1 and 2 active, in the next step of update (after all units), unit 3 and 4 should be active. It may be confusing to see this by updating one unit per time, let's say we update units in the order 1,2,3,4: after updating unit 3 it will become active but, when updating unit 4, we shouldn't consider unit 3, yet.

image278

Figure: Starting with 1 and 2 actives, in the next step 3 and 4 will be active. This network doesn't have a unique stable state but converges to a cycle between two states.

Trick for analysis: make a larger asynchronous network based on the network we want to analyze. Duplicate the units in two columns and only use non-zero weights between them.

image279

Figure: Starting with 1 and 2 actives, we will end up with 3 and 4 actives in the second column. First column represents t = 0, second t + 1. With synchronous updates, a Hopfield Network converges to a cycle of length 2 or to a stable state.

Summary

  • Nodes can be updated synchronously or asynchronously.
  • State: Set of units that are active, it can be seen as the activity vector.
  • Dynamics: Units update their activity level.
  • When a node is updated, weights are considered from all other active nodes, like with a perceptron.
  • Asynchronous updates (greedy algorithm) converge to a stable state (sequential), but the converged state can depend on update order.
  • Asynchronous is either in max-clique state if activity is in {0,1} or min-cut if activities are in {-1,1}.
  • Synchronous, parallel updates either also go to a stable state, just like asynchronous, or can get stuck in a pair of patterns (flipping or cyclic).

Feed-Forward Networks

Lecturer: Matthew Cook

Feed-Forward Networks (FFNs) are not like the networks in the brain. In the feed-forward networks, the information moves in only one direction (forward) from the input nodes, through the hidden nodes (if they exist), and to the output nodes. There are no cycles in this network. Usually, people are referring to feed-forward networks when they talk about Artificial Neural Networks (ANNs). General structure:

  • Multiple layers of neurons with a certain number of inputs and outputs.
  • Every layer of nodes feeds the next layer with inputs.
  • Each input in one layer is connected to all the inputs in the next layer.
  • There is an input and an output layer with hidden layers in between.
image280

A single unit, like a perceptron, can be seen as a feed-forward network. We can write down the connections of a FNN as a matrix of weights, so wijw_{ij} is the weight from i to j. Why FNN are nice? Because we can think about functions that receive inputs and generate outputs. When we use FNN we know what we want to compute. We need to set the weights of the network in order to compute the function we want. The process of defining the weights is called learning or training. In feed-forward networks it is easy to evaluate each unit. The outputs are continuous functions of the input, which facilitates the optimization in case of wrong outputs. The training can be done using "training data": input/output pairs (xi,di)\left( x_{i},d_{i} \right). Where xix_{i} is the input value and did_{i} is the desired output. Then, we can define the error E=k(f(xk)dk)2E = \sum_{k}^{}\left( f\left( x_{k} \right) - d_{k} \right)^{2}, where f(xk)f\left( x_{k} \right) is the output of the network. Differently of Hopfield Networks, we don't need continuous updates and we do not reevaluate units. FNN have the idea of a pipeline (unlike the brain). If a node on layer n in a FNN is connected to layer n + i with i > 1, this is still a FNN, however the most common structure is to connect nodes on layer n to nodes on layer n + 1. How can we change the weights to reduce the error? We can use gradient descent. We calculate all the Ewi\frac{\partial E}{\partial w_{i}} in the network, easily, by starting at the end and then walking backwards. This is known as Backpropagation. Training Process

  1. Give an input to the network.
  2. Calculate all the values in the network to produce the output.
  3. Compare output with the desired output. This gives us the "error" for this input.
  4. Update the weights. For example, use gradient descent to optimize the parameters to minimize the error.

Backpropagation and Error Function Backpropagation is the process of calculating the derivatives, using the chain rule, from the last layer (directly connected with the output, thus, with the loss function) to the first layer (connected with the inputs). This process can be seen as walking through the network in a backward manner.

  • The inputs and desired outputs are given as S=(x,d)1,,(x,d)lS = (x,d)^{1},\ldots,(x,d)^{l}.
  • The error function is given as E(S)=i12y(xi)xi2E(S) = \sum_{i}^{}{\frac{1}{2}\left\| y\left( x^{i} \right) - x^{i} \right\|^{2}}.
  • The output is a non-linear transformation y=f(a)y = f(a).
  • f(a)f(a) is the activation function, which is usually a sigmoid function.
  • The error function for a single training sample is E(S)=12(f(x1w1+x2w2+w0)d)2E(S) = \frac{1}{2}\left( f\left( x_{1}w_{1} + x_{2}w_{2} + w_{0} \right) - d \right)^{2}.
  • The output of a simple network is for example y(x1,x2,x3)=f(x1w21+f(x2w11+x3w12+w10)w22+w20)y\left( x_{1},x_{2},x_{3} \right) = f\left( x_{1}w_{21} + f\left( x_{2}w_{11} + x_{3}w_{12} + w_{10} \right)w_{22} + w_{20} \right).
  • E(w1,w2,w0)w1=(f(x1w1+x2w2+w0)d)f(x1w1+x2w2+w0)d)x1\frac{\partial E\left( w_{1},w_{2},w_{0} \right)}{\partial w_{1}} = (f(x_{1}w_{1} + x_{2}w_{2} + w_{0}) - d) \bullet f^{'}(x_{1}w_{1} + x_{2}w_{2} + w_{0}) - d) \bullet x_{1}.
  • E(w1,w2,w0)w2=(f(x1w1+x2w2+w0)d)f(x1w1+x2w2+w0)d)x2\frac{\partial E\left( w_{1},w_{2},w_{0} \right)}{\partial w_{2}} = (f(x_{1}w_{1} + x_{2}w_{2} + w_{0}) - d) \bullet f^{'}(x_{1}w_{1} + x_{2}w_{2} + w_{0}) - d) \bullet x_{2}.
  • E(w1,w2,w0)w0=(f(x1w1+x2w2+w0)d)f(x1w1+x2w2+w0)d)\frac{\partial E\left( w_{1},w_{2},w_{0} \right)}{\partial w_{0}} = (f(x_{1}w_{1} + x_{2}w_{2} + w_{0}) - d) \bullet f^{'}(x_{1}w_{1} + x_{2}w_{2} + w_{0}) - d).
  • The error terms travel backwards through the network and get multiplied with the derivative of the activation function of that input. Multiple error terms can just be added up.
  • The partial derivative of the error E term in relation to the weight w to be adjusted can be added to the weight in order to learn. An additional weighting factor can be added.

Gradient Descent Consider E=(fw(x)yi)2E = \sum_{}^{}\left( f_{w}(x) - y_{i} \right)^{2}, we want to adjust w\overrightarrow{w} (weights of the network) to minimize E. Gradient descent is the process of descending through the gradients (using the derivatives calculated with backpropagation), in this algorithm we try to reach the minimum of the loss function. This is an iterative process.

Generally, the iterative process is given by θinew=θi+Δθi\theta_{i_{new}} = \theta_{i} + \mathrm{\Delta}\theta_{i}, where Δθi=αJ(θ)θi\mathrm{\Delta}\theta_{i} = - \alpha\frac{\partial J(\theta)}{\partial\theta_{i}}.

image281

In the above picture: the left-most figure: fw0(x)=θ(wf+w),dfdw=0θf_{w_{0}}(x) = \theta(wf + w\ldots),\frac{df}{dw} = 0 \rightarrow \theta is not a good threshold function. To know in what direction we should move to find out minima, we need to use a threshold function that is continuous and differentiable, like the one in the center figure. Right figure: dfdw=θ\frac{df}{dw} = \theta'.

We haven't yet found biological mechanisms that would be similar to gradient descent in the brain.

Boltzmann Machines Boltzmann Machines were invented in 1985 but not by Boltzmann. The name is given because these units use a Boltzmann distribution in their sampling function. These units are similar to Hopfield Networks, however, they have a probability of being active. When updating a unit, we set its value to zero or one probabilistically, following a sampling function (see figure below). Boltzmann machines do not converge, they do not reach a stable state. It can be seen as a system for sampling. It's a way to do a random walking in the state space.

Sampling There are many types of distributions. When we want to get examples of these distributions, we need to sample from it. And giving some samples we can recover the distribution of the data.

image282

Figure: Representations of activation function for Hopfield Networks (HN) and Boltzmann Machines.

We want the units to forget previous states so the sampling is not biased, i.e., not similar to previous ones, thus really "random". While this sampling is nice, it is not useful as a memory, i.e., we don't want to sample things randomly from our memory.

We can define a network where the units have a real-valued activity level (ai[0,1])\left( a_{i} \in \lbrack 0,1\rbrack \right), and also we can make time continuous, so ait=θ( )ai\frac{\partial a_{i}}{\partial t} = \theta\left( \sum_{}^{}\ \right) - a_{i}. Using units like this, we can make a feed-forward network.

Interacting Neural Populations

Lecturer: Matthew Cook

We know how to think about units and their computation, but we don't exactly know how to think about how the information is processed. To try to understand it, we use engineering tools, but we don't know how the brain is doing it.

Neural Encoding of Information How the neurons encoding/process information? We would like to understand it in a mechanistic level. To understand the brain, we need to understand its structure and functionality (processes). Different areas in the brain are highly connected, practically from any area you can reach, virtually, any other area. Humans are capable to learn things we were not evolved for, for instance, to fly a drone. This is an inspiration for us. It seems to exist a general solution for solving problems: the brain. Neurons respond to combinations of properties, features, aspects of the situation, etc. Neurons are tuned to a set of values for the parameters they care about. For example, a neuron can be "tuned" to a moving bar at a certain angle in its receptive field. It also responds to a certain velocity, position (x,y), bar width, etc. Neurons response is called firing rates. Although neurons are tuned, they aren't super picky about the exact values. And, experimentally, neurons do not code a single attribute but a combination of them.

Population Code Information is encoded by a group (population) of neurons. A group includes all neurons in that area. The values are encoded by the pattern of activity. This code of information by population is our understanding of how neurons represent information, but this is not how we do it, typically, in an engineering process. Given a parameter, and looking at the neurons tuned to some value of this parameter, we can define tuning curves. In the figure (a) below, we see in the x-axis the parameter we are evaluating, and in the y-axis, the activity of one single neuron (firing response). Doing this process to many neurons, we can sort them regarding to the parameter we are looking for. In figure (b) all neurons were ordered accordingly to the response to a specific parameters. The read out of information given a population code is an easy way to figure out what the population is doing, it is robust to noise, however, require a lot of units.

image283

Consider now an example were we want to correlate the angle of the eye (E), the position of an object on retina (R) and the head-centered direction (A), as showed in figure (a) below. This is an example of processing that is not feed-forward. How can a relation like A = E + R be represented? Say R, A and E are encoded by population codes, i.e., by population of units, each tuned to a particular value of that variable. Considering these three variables, we can use units that are tuned to combinations of A, E and R. The set of (A, E, R) triple that satisfy the relation will be active. This can be seen in Figure (b): when certain neuron fires for a parameter in R, another one can fire for a parameter in E and this can result in the firing of neurons in E, after learning. Given any two information in this relation, the third one can be recovered. There is no obligatory order. R, A and E have the following relations:

  • R = A - E
  • A = E + R
  • E = A - R
image284

Summary

  • Neurons can represent information through population codes.
  • Neurons are tuned to preferred stimuli.
  • Information is represented by the pattern of activity in a neural population.
  • Each neuron has a preferred input, for example orientation, that it responds to. The neuron is tuned to that value.
  • Not every neuron shows clear tuning curves.
  • Neurons usually do not only respond to their preferred stimulus, but also with decaying strength to close ones.
  • Population encoding has an easy read-out value.
  • Population encoding is robust to noise.
  • Population encoding requires a lot of units.

Neuromorphic VLSI

Lecturer: Giacomo Indiveri

Content of the Lecture

  • Neuromorphic Engineering
  • Neuromorphic Electronic Circuits
    • The Differential Pair Circuit
    • Silicon Neurons
    • Differential Pair Integrator Circuit
  • Neuromorphic Processors
    • Learning
    • Computational Primitives
  • Conclusions

VLSI

  • Very Large Scale Integration Technology allows to fabricate chips and memory.
  • VLSI are usually digital, high power, not fault tolerant or robust, and clocked (synchronous), not massively parallel. The failure of one transistor is the failure of the computer.

The computer hardware had a radical paradigm shift when we looked to real brains. For instance, a bee brain is much smaller and consumes much less power (using neurons in a slow way), and offer real time interaction with the environment and complex behavior.

The Term "Neuromorphic" The term neuromorphic was coined by Carver Mead in the late '80s to describe VLSI systems containing electronic analog/digital circuits that exploit the physics of silicon to reproduce the bio-physics of neural circuits present in the nervous system. It is a discipline characterized by two main goals.

  • To understand the computational properties of biological neural systems using standard CMOS VLSI technology as a tool.
  • To exploit the known properties of biological systems to design and implement efficient devices for engineering applications.

New hardware different from conventional computers: radically different from Von Neumann architectures. Now, there are parallel elements with memory and computation co-localized, with continuous streaming data driven computation, no clock. The co-localization of memory and computation allows to have no I/O bottleneck and no memory bottleneck.

The INI Neuromorphic Engineering Mission Learn to build artificial neural processing systems that can interact intelligently with the physical world.

  • Combine multiple disciplines (neuroscience, physics, computer science, electrical engineering, ...).
  • Exploit device physics to directly emulate the biophysics of neural systems.
  • Let time represent itself.
  • Implement robust computation in autonomous agents that produce cognitive behavior.

Neuromorphic Computing vs Engineering Neuromorphic computing uses a dedicated VLSI hardware, high performance computing, it is application driven and uses conservative approaches. Neuromorphic engineering is a fundamental research, deeply rooted in biology. It emulates neural function in subthreshold analog and asynchronous digital.

Neuromorphic Electronic Circuits

  • Reproduce physics of neural computation using subthreshold analog circuits and asynchronous digital circuits.
  • Build autonomous learning behaving systems that can interact with the environment in real-time.
  • Best exploit for current and future VLSI technologies.
  • Suited for nano and emerging technologies.
  • Ideal tools for real- and accelerated-time modeling of neural systems.
  • Compact, low-power sensory processing devices.
  • Can interface directly with living systems.

Circuits Digital transistors operating only in the minimum and the maximum. Analog transistors use also intermediate amounts, thus transistors can emulate physical proteic channels. In biology, at high voltages, the fraction of the channels that are open approaches unity, causing a saturation. The same can be seen in a subthreshold regime. In subthreshold, the current is smaller than 1V, it increases exponentially, and after threshold currents change quadratically. It changes from pico to nano amps.

image285 image286

In Complementary Metal-Oxide Semiconductor (CMOS) technology, there are two types of MOS-FETs: n-FETs and p-FETs. There is no current going to transistors. In traditional CMOS circuits, all n-FETs have the common bulk potential VbV_{b} connected to ground (GND) and all p-FETs have a common bulk potential connected to the power supply rail (Vdd)\left( V_{dd} \right).

image287 image288
image290 image289

The current is defined to be positive if it flows from the drain to the source.

Diffusion and Saturation

image292 image291

Output Current versus VgsV_{gs} and VdsV_{ds} and Current Source

image293 image294

The Current Mirror

image295

The output current is a mirrored copy of the input current. If both MOSFETs are of the same size and have the same source voltage, they source the same current, which is why the device is called current mirror. The input current IinI_{in} through the diode-connected transistor M1M_1 sets the common gate voltage VgV_g and hence the output current IoutI_{out} of the second transistor M2M_2.

The output current can be scaled by choosing different transistor sizes, or by choosing different source potentials Vs1V_{s1} and Vs2V_{s2} for the two MOSFETs. If M2M_2 is in saturation:

Iout=e(Vs1Vs2)/UTIinI_{out} = e^{(V_{s1} - V_{s2})/U_{T}}I_{in}

The Differential - Pair

image296 image297

Note that in I2I_2 equation V1V_1 at the numerator is a mistake, should instead be V2V_2.

image298

To implement the difference of currents (I1I_1 - I2I_2) we can use the current-mirror circuit.

The Transconductance Amplifier For small differential voltages (e.g., V1V2<200mV\left| V_{1} - V_{2} \right| < 200mV), the tanh() relationship is approximately linear and the equation Iout=Ibtanh(k2UT(V1V2))I_{out} = I_{b}\tanh\left( \frac{k}{2U_{T}}\left( V_{1} - V_{2} \right) \right) can be reduced to: Ioutgm(V1V2)I_{out} \approx g_{m}\left( V_{1} - V_{2} \right) where gm=Ibk2UTg_{m} = \frac{I_{b}k}{2U_{T}}.

image300 image299

Spike Generating Mechanism If the membrane voltage increases above a certain threshold, a spike-generating mechanism is activated and an action potential is initiated.

image302 image303 image301

A Conductance-Based Silicon Neuron In 1991 Misha Mahowald and Rodney Douglas proposed a conductance-based silicon neuron and showed that it had properties remarkably similar to those of real cortical neurons.

image304

Neuron Models Traditionally there have been two main classes of neuron models:

  • Conductance-Based (R-C)
  • Integrate and Fire (I-C) But recently proposed models bridge the gap between the two:
  • Generalized Integrate and Fire This model can account for a very large set of behaviors captured by far more complicated Hodgkin-Huxley models. ddtumem=iinCmem+F(umem)\frac{d}{dt}u_{mem} = \frac{i_{in}}{C_{mem}} + F(u_{mem}) where F(umem)F(u_{mem}) is a non-linear function of umem(t)u_{mem}(t).
image305 image307 image306

Current-mode CMOS circuits operated in the subthreshold, or weak-inversion regime can be used to implement log-domain filters. An example of classical log-domain integrator is presented in the picture below. This circuit's linear transfer function can be easily derived by applying the translinear principle on the VgsV_{gs} loop highlighted by the arrows: given the exponential relationship between the subthreshold currents of the p-FETs and their VgsV_{gs} voltages, we can write: IthI1=I2IoutI_{th} \bullet I_{1} = I_{2} \bullet I_{out}. In subthreshold, the output n-FET MoutM_{out} produces a current that changes exponentially with its gate voltage VcV_{c}. Differentiating IoutI_{out} with respect to VcV_{c} and combining the result with the capacitor equation CddtVC=I2IτC\frac{d}{dt}V_{C} = I_{2} - I_{\tau} we obtain: τddtIout+Iout=IthIτIin\tau\frac{d}{dt}I_{out} + I_{out} = \frac{I_{th}}{I_{\tau}}I_{in}.

image308

The DPI is a CMOS current-mode circuit that operates in the subthreshold regime integrating voltage pulses. However, rather than using a single p-FET to generate the appropriate IwI_{w} current, via the triangular principle (Gilbert, 1975), it uses a differential pair in negative feedback configuration. This allows the circuit to achieve LPF functionality with tunable dynamic conductances: Input voltage pulses are integrated to produce an output current that has maximum amplitude set by VwV_{w}, VtV_{t} and VthrV_{thr}. (Silicon neuron circuits) It has additional advantages of providing a compact layout, better matching properties and lower power consumption. The differential - pair integrator is used to model synaptic dynamics. It comprises only 3 n-FETs, 2 p-FETs and 1 capacitor. The two current sources are implemented using two subthreshold MOSFETs: one n-FET for the IinI_{in} current and on p-FET for the ItI_{t} current. Following a similar derivation to the one used in the classical log-domain integrator, the characteristic equation is obtained as observed in the picture below.

image309

Additional circuits can be attached to the DPI synapse to extend the model with extra features typical of biological synapses and implement various types of plasticity. For example, by adding two extra transistors, we can implement voltage-gated channels that model NMDA synapse behavior. Similarly, by using two more transistors, we can extend the synaptic model to be conductance based. Furthermore, the DPI circuit is compatible with previously proposed circuits for implementing synaptic plasticity, on both short timescales with models of short-term depression (STD) and on larger timescales with spike-based learning mechanisms, such as spike timing-dependent plasticity (STDP). The DPI neuron circuit is a variant of the generalized IF neuron and is depicted in the following picture. The input DPI low-pass filter (yellow, ML1 - ML3) models the neuron's leak conductance. A spike event generation amplifier (red, MA1 - MA6) implements current-based positive feedback (modeling both sodium activation and inactivation conductances) and produces address-events at extremely low-power. The reset block (blue, MR1 - MR6) resets the neuron and keeps it in a reset state for a refractory period, set by the VrefV_{ref} bias voltage. An additional DPI filter integrates the spikes and produces a slow after hyper-polarizing current IgI_{g} responsible for spike-frequency adaptation (green, MG1 - MG6). By applying a current-mode analysis to both the input and the spike-frequency adaptation DPI circuits, it is possible to derive a simplified analytical solution:

τddtImem+ImemIthIinIτIg+f(Imem)\tau\frac{d}{dt}I_{mem} + I_{mem} \approx \frac{I_{th}I_{in}}{I_{\tau}} - I_{g} + f\left( I_{mem} \right)

τahpddtIg+Ig=IthrIahpIτahp\tau_{ahp}\frac{d}{dt}I_{g} + I_{g} = \frac{I_{thr}I_{ahp}}{I_{\tau_{ahp}}}

The state of the art version of this neuron circuit consumes one order of magnitude less power than the circuit described in the following figure and two orders of magnitude less power than the digital implementation of the I&F neuron. Given the exponential nature of the generalized IF neuro's non-linear term f(Imem)f\left( I_{mem} \right), the DPI-neuron implements an adaptive exponential IF model. This IF model has been shown to be able to reproduce a wide range of spiking behaviors, and explain a wide set of experimental measurements from pyramidal neurons.

image310

Neuromorphic Processors Typical spiking neural network chips have the elements described in the figure below. Multiple instances of these elements can be integrated onto single chips and connected among each other either with on-chip hard-wired connections or via off-chip reconfigurable connectivity infrastructures. The most relevant characteristics of processors build based on analog circuits working in subthreshold are:

  • Slow temporal, non-linear dynamics
  • Massively parallel operation
  • Inhomogeneous, imprecise and noisy
  • Adaptation and learning is done at multiple time-scales
  • Fault-tolerant and mismatch insensitive by design
  • Fast asynchronous digital routing circuits
  • Reprogrammable network topology and connectivity.
image311

Neuromorphic vs Conventional Processors

image312

Winner - Take - All Networks in Neuromorphic Hardware "Winner take all" (WTA) refers to a type of neural network architecture that is commonly used in neuromorphic hardware. In a WTA network, each neuron competes with other neurons to be the "winner" and output the highest value. This can be useful in situations where you want to identify the most active or strongest signal among a group of neurons. This architecture is inspired by the way the brain works where many neurons compete to fire.

Learning and Winner - Take - All Networks Memories can be formed in neuromorphic hardware using attractor networks, which are a type of recurrent neural network. An attractor network is composed of a group of neurons that are connected to each other through synapses. These synapses can be either excitatory, which increases the likelihood that a neuron will fire, or inhibitory, which decreases the likelihood that a neuron will fire. The network's dynamics are determined by the strengths of these connections, which can be modified through a process called synaptic plasticity. When the network is exposed to a specific input pattern, the neurons that are active will strengthen their connections to other active neurons, and inhibitory connections will form between active neurons and inactive neurons.This process creates a stable state, or an attractor, in the network. The attractor corresponds to the input pattern that was presented to the network, and the network will continue to settle to this attractor state even after the input pattern is removed. This behavior allows the network to "remember" the input pattern, and this process is called memory formation. The network can then be used to recall the stored information by providing a partial or noisy version of the input pattern.

Mechanisms operating at the network level can allow neural processing systems to form short-term memories, consolidate long-term ones, and carry out nonlinear processing functions such as selective amplification (e.g., to implement attention and decision making). An example of such a network-level mechanism is provided by "attractor networks". These are networks of neurons that are recurrently connected via excitatory synapses, and that can settle into stable patterns of firing even after the external stimulus is removed. Different stimuli can elicit different stable patterns, which consist of specific subsets of neurons firing at high rates. Each of the high-firing rate attractor states can represent a different memory. To make an analogy with conventional logic structures, a small attractor network with two stable states would be equivalent to a flip-flop gate in CMOS.

image313

A particularly interesting class of attractor networks is the one of soft winner-take-all (sWTA) neural networks. In these networks, groups of neurons both cooperate and compete with each other. Cooperation takes place between groups of neurons spatially close to each other, while competition is typically achieved through global recurrent patterns of inhibitory connections. When stimulated by external inputs, the neurons excite their neighbors and the ones with the highest response suppress all other neurons to win the competition. Thanks to these competition and cooperation mechanisms, the outputs of individual neurons depend on the activity of the whole network and not just on their individual inputs.

Conclusion

  • We study the principles of computation of cortical circuits and validate them on neuromorphic systems that interact intelligently with the environment.
  • We exploit progress in technology to develop mixed-signal neuromorphic electronic circuits for emulating neural dynamics and learning in real-time.
  • We build analog/digital neural processing systems interfaced to sensors and robotic platforms that can (learn to) produce intelligent behavior.