Reward modulated STDP (Legenstein et al. 2008)

 Download zip file 
Help downloading and running models
"... This article provides tools for an analytic treatment of reward-modulated STDP, which allows us to predict under which conditions reward-modulated STDP will achieve a desired learning effect. These analytical results imply that neurons can learn through reward-modulated STDP to classify not only spatial but also temporal firing patterns of presynaptic neurons. They also can learn to respond to specific presynaptic firing patterns with particular spike patterns. Finally, the resulting learning theory predicts that even difficult credit-assignment problems, where it is very hard to tell which synaptic weights should be modified in order to increase the global reward for the system, can be solved in a self-organizing manner through reward-modulated STDP. This yields an explanation for a fundamental experimental result on biofeedback in monkeys by Fetz and Baker. In this experiment monkeys were rewarded for increasing the firing rate of a particular neuron in the cortex and were able to solve this extremely difficult credit assignment problem. ... In addition our model demonstrates that reward-modulated STDP can be applied to all synapses in a large recurrent neural network without endangering the stability of the network dynamics."
1 . Legenstein R, Pecevski D, Maass W (2008) A learning theory for reward-modulated spike-timing-dependent plasticity with application to biofeedback. PLoS Comput Biol 4:e1000180 [PubMed]
Model Information (Click on a link to find other models with that property)
Model Type: Realistic Network;
Brain Region(s)/Organism: Neocortex;
Cell Type(s):
Gap Junctions:
Simulation Environment: Python; PCSIM;
Model Concept(s): Pattern Recognition; Spatio-temporal Activity Patterns; Reinforcement Learning; STDP; Biofeedback; Reward-modulated STDP;
import matplotlib
import sys
import pypcsimplus as pcsim
from pyV1.dataformats import *

class StimulusModel(pcsim.Model):
    def defaultParameters(self):
        p = self.params
        p.nInputNeurons = 86
    def __init__(self, net, experParams, new_params = {}, depModels = pcsim.Dictionary(), stimulus = None):
        pcsim.Model.__init__(self, net, experParams, new_params, depModels)         
        self.stimulus = stimulus
    def setStimulus(self,stimulus):
        self.stimulus = stimulus
    def reset(self):
        p = self.params
        m = self.elements
        ep = self.expParams
        for i in range(p.nInputNeurons):
            if m.popul.object(i):

    def generate(self):
        p = self.params
        net =
        m = self.elements
        if not hasattr(m,'popul'):
            print "population created in input"
            m.popul = pcsim.SimObjectPopulation(net, pcsim.SpikingInputNeuron(), p.nInputNeurons)
        if self.stimulus:
            print "stimulus detected and filling population with stimulus"
            for i in range(len(
        return self.elements
    def scriptList(self):
        return [""]


Loading data, please wait...