Cognative Tests

n-Back test.


Under repository\n_back\About\N-Back Test.pdf is useful information about the project. We suggest you read it before embarking on the rest of the assignment.


The chosen software for this application is Python, using version 3.3.1

Modules used for the project where:

- PySide, for menus activities. Using Qt. (not a major issue so not included currently, revise later)
- PyAudio, for audio activities.
- PyGame, for the visual activities

Some configurations were applied to fit the screen according to the paper this experiment is based on.
The screen is a DELL: 1905fp - series [approx 41.5x41.5 ]

In order to convert we assume the following:
  • Box in degrees 1.8 x 2.3
  • Distance from screen: 0.6 m
  • Box: 1.88 x 2.44 cm*
  • Using "" we get
  • Pixels: 71 x 91

/* The calculations are: size = 2*(length from screen)* sin[(given angle)/2]</b>

How to run

Through the repository go to n_back and download the "" file.

After downloading unzip. Open the N-Back folder and find the file "blackBox.exe" and run.

How it works

After running the file to start the program (see: "How to run") you are prompted to enter subject number from 1-99.
The program then checks if the name is taken, if not taken it creates a directory in the same directory you keep the the program. If the number is taken the program prompts a question to ask if you want to overwrite the folder, choose "y" for yes and "n" for no. If "n" is chosen then the program will exit.

Assuming that you have a legit file name and the directory has been created the test will begin.

First we have a black screen with text preparing the subject for the coming test.
Press space to start the first part of the test.

There are 3 test parts each composed of 6x20 figures running time approx 7.30 min - total running time for experiment > 22. min.
A time marker is added to a log for the following actions * Recording Start * Test starts * box shown on screen
These markers are saved in a file for the subject.

Between tests there is a prompt screen asking for space to continue. Each time space is pressed the recording starts and a marker is added.

When the test is finished the markers are all put in one file.



The stroop test was designed and implemented by dr. Jón Guðnason, and is currently under evaluation and changes in the hands of the developers.


The program was written in Python and is operated in windows. The program is a revised version of the Matlab stroop test, with changes requested by the Sálfræði experts.

The program executes a total of 5 runs, with each run consisting of a category of emotional words being displayed in random colors. An audio recording is saved for each run. A time log text file is also recorded, keeping record of all events in the program such as the time of the start of recording and the time of each word displayed. This allows for calculating the subject's response time.



Main reading subject was through " ", secondary reading was done through, referencing EMG, mental stress.

Several studies suggested that using the trapezoid and the neck was most efficient for our premise.
The location of the EMG sensors are shown on kine's homepage:
" "

Updated by Davíð Örn Jóhannesson over 10 years ago · 27 revisions