An Introduction to the COGENT Modelling Environment 27 th International Conference of the Cognitive...

37
An Introduction to the COGENT Modelling Environment 27 th International Conference of the Cognitive Science Society July 20 th , 2005 Stresa, Italy

Transcript of An Introduction to the COGENT Modelling Environment 27 th International Conference of the Cognitive...

Page 1: An Introduction to the COGENT Modelling Environment 27 th International Conference of the Cognitive Science Society July 20 th, 2005 Stresa, Italy.

An Introduction to the COGENT Modelling Environment

27th International Conference of theCognitive Science Society

July 20th, 2005

Stresa, Italy

Page 2: An Introduction to the COGENT Modelling Environment 27 th International Conference of the Cognitive Science Society July 20 th, 2005 Stresa, Italy.

Tutorial Overview

• COGENT: Principal Features

• The COGENT ‘Modal Model’ Model– The free recall task– Task infrastructure within COGENT– Building the Short-Term Store– Adding the Long-Term Store– Decay, time and rehearsal

• Some advanced COGENT Features

Page 3: An Introduction to the COGENT Modelling Environment 27 th International Conference of the Cognitive Science Society July 20 th, 2005 Stresa, Italy.

COGENT: Principal Features

• A visual programming environment;

• A range of standard functional components;

• An expressive rule-based modelling language;

• Automated data visualisation tools;

• A powerful model testing environment; and

• Research programme management tools

Page 4: An Introduction to the COGENT Modelling Environment 27 th International Conference of the Cognitive Science Society July 20 th, 2005 Stresa, Italy.

Visual Programming in COGENT

Page 5: An Introduction to the COGENT Modelling Environment 27 th International Conference of the Cognitive Science Society July 20 th, 2005 Stresa, Italy.

Standard Functional Components

• A library of standard configurable components:– Memory buffers– Rule-based processes– Simple connectionist networks– Data input/output devices– TCP/IP sockets for inter-process communication– Inter-module communication links

• Components are configured and “wired-up” for different applications via a graphical model design editor

Page 6: An Introduction to the COGENT Modelling Environment 27 th International Conference of the Cognitive Science Society July 20 th, 2005 Stresa, Italy.

Rule-Based Modelling Language: I

Processes may contain rules such as:

IF operator(Move, possible) is in Possible Operatorsevaluate_operator(Move, Value)

THEN delete operator(Move, possible) from Possible Operators

add operator(Move, value(Value)) to Possible Operators

Page 7: An Introduction to the COGENT Modelling Environment 27 th International Conference of the Cognitive Science Society July 20 th, 2005 Stresa, Italy.

Rule-Based Modelling Language: II

COGENT’s representation language is based on Prolog:

IF operator(Move, possible) is in Possible Operatorsevaluate_operator(Move, Value)

THEN delete operator(Move, possible) from Possible Operators

add operator(Move, value(Value)) to Possible Operators

Page 8: An Introduction to the COGENT Modelling Environment 27 th International Conference of the Cognitive Science Society July 20 th, 2005 Stresa, Italy.

Rule-Based Modelling Language: III

Page 9: An Introduction to the COGENT Modelling Environment 27 th International Conference of the Cognitive Science Society July 20 th, 2005 Stresa, Italy.

Data Visualisation Tools: Tables

Page 10: An Introduction to the COGENT Modelling Environment 27 th International Conference of the Cognitive Science Society July 20 th, 2005 Stresa, Italy.

Data Visualisation Tools: Graphs

Page 11: An Introduction to the COGENT Modelling Environment 27 th International Conference of the Cognitive Science Society July 20 th, 2005 Stresa, Italy.

Data Visualisation Tools: Pictures

Page 12: An Introduction to the COGENT Modelling Environment 27 th International Conference of the Cognitive Science Society July 20 th, 2005 Stresa, Italy.

The Model Testing Environment

• Dynamically updated visualisation tools allow a model’s functioning to be examined while the model runs

• Inter-component communication may be traced

• A flexible “scripting” environment allows:– models to be run over multiple blocks of trials;

– multiple “subjects” to be run over multiple blocks;

– automated parameter varying “meta-experiments”.

Page 13: An Introduction to the COGENT Modelling Environment 27 th International Conference of the Cognitive Science Society July 20 th, 2005 Stresa, Italy.

Research Programme Management

Page 14: An Introduction to the COGENT Modelling Environment 27 th International Conference of the Cognitive Science Society July 20 th, 2005 Stresa, Italy.

The Tutorial Task: Free Recall

• On each trial, the subject is presented with a list of 25 words

• The subject is told to try to memorise the words

• After an interval, the subject must recall as many words as possible

(e.g., Glanzer & Cunitz, 1966)

Page 15: An Introduction to the COGENT Modelling Environment 27 th International Conference of the Cognitive Science Society July 20 th, 2005 Stresa, Italy.

Free Recall: Empirical Findings

Page 16: An Introduction to the COGENT Modelling Environment 27 th International Conference of the Cognitive Science Society July 20 th, 2005 Stresa, Italy.

The Modal Model: Top Level

Page 17: An Introduction to the COGENT Modelling Environment 27 th International Conference of the Cognitive Science Society July 20 th, 2005 Stresa, Italy.
Page 18: An Introduction to the COGENT Modelling Environment 27 th International Conference of the Cognitive Science Society July 20 th, 2005 Stresa, Italy.
Page 19: An Introduction to the COGENT Modelling Environment 27 th International Conference of the Cognitive Science Society July 20 th, 2005 Stresa, Italy.
Page 20: An Introduction to the COGENT Modelling Environment 27 th International Conference of the Cognitive Science Society July 20 th, 2005 Stresa, Italy.

Building the Short Term Store: I

Page 21: An Introduction to the COGENT Modelling Environment 27 th International Conference of the Cognitive Science Society July 20 th, 2005 Stresa, Italy.

Building the Short Term Store: II

Page 22: An Introduction to the COGENT Modelling Environment 27 th International Conference of the Cognitive Science Society July 20 th, 2005 Stresa, Italy.

Building the Short Term Store: IIIThe rule to transfer words to STS:

Page 23: An Introduction to the COGENT Modelling Environment 27 th International Conference of the Cognitive Science Society July 20 th, 2005 Stresa, Italy.

Building the Short Term Store: IV

Page 24: An Introduction to the COGENT Modelling Environment 27 th International Conference of the Cognitive Science Society July 20 th, 2005 Stresa, Italy.

Building the Short Term Store: V

The rule to recall from STS:

Page 25: An Introduction to the COGENT Modelling Environment 27 th International Conference of the Cognitive Science Society July 20 th, 2005 Stresa, Italy.

Building the Short Term Store: VI

Page 26: An Introduction to the COGENT Modelling Environment 27 th International Conference of the Cognitive Science Society July 20 th, 2005 Stresa, Italy.

Building the Short Term Store: VII

• Run more trials. What happens to the curve?

• Change the On Excess property of STS. What happens to the shape of the graph when you run a few trials?

• Watch the Messages view of Input/Output. What happens there now when you run (or single-step) through a trial?

Page 27: An Introduction to the COGENT Modelling Environment 27 th International Conference of the Cognitive Science Society July 20 th, 2005 Stresa, Italy.

Adding the Long Term Store: I

The Modal Model also includes:

• a long term store (LTS);

• a rehearsal process to transfer information from STS to LTS; and

• the possibility to recall from either STS or LTS

Page 28: An Introduction to the COGENT Modelling Environment 27 th International Conference of the Cognitive Science Society July 20 th, 2005 Stresa, Italy.

Adding the Long Term Store: II

Page 29: An Introduction to the COGENT Modelling Environment 27 th International Conference of the Cognitive Science Society July 20 th, 2005 Stresa, Italy.

Adding the Long Term Store: III

The rehearsal rule:

Page 30: An Introduction to the COGENT Modelling Environment 27 th International Conference of the Cognitive Science Society July 20 th, 2005 Stresa, Italy.

Adding the Long Term Store: IV

Recalling from either STS or LTS:

Page 31: An Introduction to the COGENT Modelling Environment 27 th International Conference of the Cognitive Science Society July 20 th, 2005 Stresa, Italy.

Adding the Long Term Store: V

Page 32: An Introduction to the COGENT Modelling Environment 27 th International Conference of the Cognitive Science Society July 20 th, 2005 Stresa, Italy.

Adding the Long Term Store: VI

• What causes the primacy effect arise?

• Monitor the Input/Output box’s Messages view. Why does the model sometimes recalls the same word twice in the same trial.

• The serial position curve still doesn’t look like the one in the introduction. Characterise any differences. Can you account for them?

Page 33: An Introduction to the COGENT Modelling Environment 27 th International Conference of the Cognitive Science Society July 20 th, 2005 Stresa, Italy.

Decay, Time & Rehearsal: I

• Add decay to LTS. Explore different decay rates.

• Change the rehearsal rate by adding a copy of the rehearsal rule.

• All memorised words are currently recalled in parallel. Make the recall process serial.

Page 34: An Introduction to the COGENT Modelling Environment 27 th International Conference of the Cognitive Science Society July 20 th, 2005 Stresa, Italy.

Decay, Time & Rehearsal: II

The serial recall rule:

Page 35: An Introduction to the COGENT Modelling Environment 27 th International Conference of the Cognitive Science Society July 20 th, 2005 Stresa, Italy.

Decay, Time & Rehearsal: III

• Explore the effect of the Buffer Access property of each buffer. Play with these (and other) parameters to see how they affect the model’s behaviour.

• The Experimenter system is written using standard COGENT. Try to discover how it works.

• Find a principled solution to the problem of stopping rehearsal when recall commences

Page 36: An Introduction to the COGENT Modelling Environment 27 th International Conference of the Cognitive Science Society July 20 th, 2005 Stresa, Italy.

Advanced COGENT Features:Experiment Scripting

Page 37: An Introduction to the COGENT Modelling Environment 27 th International Conference of the Cognitive Science Society July 20 th, 2005 Stresa, Italy.

Selected References

Atkinson, R. C., & Shiffrin, R. M. (1968). Human memory: A proposed system and its control processes. In Spence, K. W., & Spence, J. T. (Eds.), The psychology of learning and motivation: Advances in research and theory. Academic Press, Orlando, FL.

Atkinson, R. C., & Shiffrin, R. M. (1971). The control of short term memory. Scientific American, 225, 82–90.

Cooper, R. (2002). Modelling High-Level Cognitive Processes. With contributions from Peter Yule, John Fox and David W. Glasspool. Lawrence Erlbaum Associates, Mahwah, NJ.

Cooper, R., & Fox, J. (1998). COGENT: A visual design environment for cognitive modelling. Behavior Research Methods, Instruments, & Computers, 30(4), 553–564.

Glanzer, M., & Cunitz, A. R. (1966). Two storage mechanisms in free recall. Journal of Verbal Learning and Verbal Behavior, 5, 351–360.

Miller, G. A. (1956). The magical number seven, plus or minus two: Some limits on our capacity for processing information. Psychological Review, 63, 81–97.

Postman, L. & Phillips, L. W. (1965). Short-term temporal changes in free recall. Quarterly Journal of Experimental Psychology, 17, 132–138.