PathSpan Docs

 How to use the app.

The PathSpan instructions contain information on how to access the collected data as well as configure the app.

The Corsi Block Tapping Test (Berch, Krikorian, & Huha, 1998) has become fairly popular as a visual-spatial measure of short-term memory span. It may also used as an index of working memory ability. Performance on this task improves with age. There are many computerized versions of the Corsi Test for adults. The PathSpan app is designed for use by adults and children. It is modelled on a laptop computer version of the test developed for the Count Me In longitudinal study, and was used with over 500 children.

Run a PathSpan Participant

Enter Participant Information

This is the first screen when the app is started. There are 3 fields for the experimenter to fill which will identify the participant's trials in the output file:

  1. ID CODE Enter the participant's ID code.
    • This code can be any mix of numbers, letters or characters (except commas). It is assumed that you have assigned the code elsewhere and that you will keep track of the code and match it with the participant name in a separate confidential file. There is no control over these ID codes in the app - if you use the same code as has been used previously, both sets of data for the same code, with the time and date of the session, will appear in the data output file.
  2. GENDER Touch either the Male or Female button for the participant's gender. The selected button will be highlighted.
  3. BIRTH DATE Spin the month, day and year to view and select the participant's birthdate (the birthdate should end up in the center highlighted panel). This is a useful back-up to the participant ID code.
  4. Once you have entered and made your selection, press the "Go" button on the keyboard.

Provide Participant Instructions

This screen displays the default set of instructions. Have the participant read it or read it aloud to them. Press the Continue button once the instructions have been understood.

Customizing the participant instructions

Conduct Experimental Trials

The experiment opens with the set of path buttons on the screen. To start the first sequence, touch Play (in green in the bottom control panel). The buttons will flash to show the first pattern then "Your turn!" will be displayed in the control panel. At this point, the participant (or experimenter, if the default demonstration trial is being used) can now try to repeat the sequence by touching the buttons in the same sequence and then press the Done buton. The process then repeats until the configurable stopping point has been reached. By default, there are three patterns of each sequence length.The default stopping point is after all sequences of a particular length have been copied incorrectly by the participant.

A small 'R' button is provided at the bottom right to RETRY a trial. This feature was added for the experimenter following pilot testing with very young childen, who occasionally looked away while a sequence flashed.

Note: While the path sequence is playing, none of the buttons will not respond to being touched. Children usually need a reminder that patterns will increase in length, so they should wait until the red Done button lights up and the 'Your Turn; message appears before they attempt to copy the pattern.

View Scores - Start Next Participant

Once the stopping point has been reached, the buttons are removed and the word 'Done' is displayed. At this point, the iPad should be retrieved from the participant.

You can then press the View Scores button to see the results that have been saved into the data_v4.csv file. The results are displayed in groups of trials of a particular length, with the number of correct trials for each group, independent of whether the group was displayed or not.

At this point, you can start a new participant via the button at the bottom of the screen or use another app by clicking the Home button on the iPad. Don't worry about 'closing' the PathSpan apps. Apps are normally left running - the concept of 'opening' and 'closing' is not applicable to apps.

PathSpan Method: Trial Sequences

For each PathSpan trial, 9 buttons are displayed in a static layout. The participant initiates the trial by touching the green PLAY button. One button at a time flashes (the button 'lights up' for 1 second in 1 second intervals) in a sequence of pre-determined length. All buttons are disabled while the sequence is flashed. At the end of the sequence,all of the buttons become touchable, the 'Your turn!' message is displayed at the bottom, and the red DONE button becomes active. The participant would then touch on the the buttons in the same order as they flashed and then touch the DONE button.

The Count Me In study did not employ practice trials. Instead the first trial was a demonstration trial, where the experimenter watched the sequence and then clicked on the two locations that had flashed. Experimenters were trained to talk about their actions as they demonstrated (eg. "Now I'll copy the pattern."). After the demonstration trial, the mouse was handed to the child, and the child commenced their first trial. In pilot tests of the PathSpan app, the experimenter hands the iPad to the child after the demonstration trial.

The button layout in PathSpan is described in the Methods section of the Child Development paper below from the Count Me In study (LeFevre et al., 2010). The layout of nine buttons is based on an original design by Diana DeStefano (DeStefano, D. & LeFevre, J. 2003).

The PathSpan app has been field-tested in a study of young children in daycare settings conducted by Jo-Anne LeFevre of Carleton University in October-November 2011. Experimenters in the study reported that the children enjoyed using the iPad and had no trouble touching the buttons. Some children in the study were already familiar with the iPad from home use. Data from the Count Me In study indicated that children 5 and under tend to perform poorly on this measure. In order to optimize variability, a third trial at each length was designed and added to the PathSpan app. These sequences are configured as the default set of sequences for the PathSpan app. The 2-per-group set of sequences used in the Count Me In study can be selected via configuration instructions below.

Default Stimuli Sequences

Two stimuli files are built into the PathSpan App: 3_per-group and 2_per_group. The 3_per_group file is in place as the default when the app is first downloaded. The first two trials at each length in the files are identical. The 3-per-group file has an additional sequence (in italics below) at each sequence length. The2 trials per group file was used in the Count Me In study. Internal consistency and test-retest correlation across years for the default set of 2 per length patterns and layout are described in the Methods section of LeFevre et al., 2010.

  • Demonstration trial by experimenter: 6,2
  • Group Length 2: 4,7 - 8,1 - 6, 3
  • Group Length 3: 1,9,3 - 2,6,3 - 1, 2, 8
  • Group Length 4: 7,2,5,1 - 4,8,5,1 - 3,6, 9, 2
  • Group Length 5: 3,6,2,1,4 - 7,4,3,1,6 - 6, 5, 2, 1, 9
  • Group Length 6: 9,2,5,1,7,3 - 4,7,6,2,5,1 - 9, 5, 1, 7, 2, 6
  • Group Length 7: 5,1,2,6,4,3,7 - 7,4,6,3,2,5,1 - 8, 9, 1, 3, 6, 4, 7
  • Group Length 8: 6,5,7,9,3,2,8,4 - 3,4,1,5,2,7,6,9 - 7, 2, 8, 5, 3, 4, 9, 1

See below for instructions on how to customize sequence files to switch between the two default files or to use a file of your own design.

ReferenceLinks:

Retrieve and Analyse Output Data

Retrieving Collected Data

To access the data file:
  1. Open iTunes on your computer.
  2. Connect the PathSpan iPad to the computer.
  3. Select the iPad in the "Devices" list.
  4. Go to the "Apps" tab using the tab bar at the top.
  5. Scroll down to the "File Sharing" section.
  6. Select the PathSpan app from the list.
  7. Select the data_v4.csv file in the file list.
  8. Now:
    • To download the data file from the iPad:
      Press the "save to..." button and select a location to save the file.
    • To clear existing data and start a new data file:
      With the data file selected, press the delete key on your keyboard.
      Press the delete button in the dialog that appears.
The File Sharing screen in iTunes:

Screenshot of iTunes.

Data File Format

The session data is stored the file named data_v4.csv. Pathspan uses csv-format, with colmn headers on the first line, to allow for easy interoperation with programs like Excel and SPSS. Each row in the output file stores the data for one trial.

Information contained in the columns:

ColumnContains
idthe participant id
gendergender, either m or f
birthyearyear of birth
birthmonthbirth month
birthdaybirth day
trialtimeThe time that the session ended. In the format "dd-mm-yyyy hh:mm"
trialThe number of the trial (the line number in the sequence file.)
length The number of flashes in the correct sequence for the trial.
tapsCorrect The number of buttons in the sequence that were correctly pressed.
trialCorrect Code of 0 for incorrect trial and 1 for a correct trial.

Please note: A trial may be coded as incorrect (0) even if tapsCorrect is the same as the sequence length, if the participant enters the correct sequence and then presses more buttons before pressing the Done button.

Example Output File:

id gender birthyear birthmonth birthday trialtime trial length tapsCorrect trialCorrect
BobSmith-Day1-OrAnyOtherID m 2011 10 20 20-10-2011 20:31 1 2 2 1
BobSmith-Day1-OrAnyOtherID m 2011 10 20 20-10-2011 20:31 2 2 2 1
BobSmith-Day1-OrAnyOtherID m 2011 10 20 20-10-2011 20:31 3 2 2 1
BobSmith-Day1-OrAnyOtherID m 2011 10 20 20-10-2011 20:31 4 2 2 1
BobSmith-Day1-OrAnyOtherID m 2011 10 20 20-10-2011 20:31 5 3 2 0
BobSmith-Day1-OrAnyOtherID m 2011 10 20 20-10-2011 20:31 6 3 2 0
BobSmith-Day1-OrAnyOtherID m 2011 10 20 20-10-2011 20:31 7 3 2 0
AParticipant-May-Study f 1966 6 15 20-10-2011 20:34 1 2 2 1
AParticipant-May-Study f 1966 6 15 20-10-2011 20:34 2 2 2 1
AParticipant-May-Study f 1966 6 15 20-10-2011 20:34 3 2 2 1
AParticipant-May-Study f 1966 6 15 20-10-2011 20:34 4 2 2 1
AParticipant-May-Study f 1966 6 15 20-10-2011 20:34 5 3 3 1
AParticipant-May-Study f 1966 6 15 20-10-2011 20:34 6 3 3 1
AParticipant-May-Study f 1966 6 15 20-10-2011 20:34 7 3 3 1
AParticipant-May-Study f 1966 6 15 20-10-2011 20:34 8 4 4 1
AParticipant-May-Study f 1966 6 15 20-10-2011 20:34 9 4 1 0
AParticipant-May-Study f 1966 6 15 20-10-2011 20:34 10 4 0 0
AParticipant-May-Study f 1966 6 15 20-10-2011 20:34 11 5 1 0
AParticipant-May-Study f 1966 6 15 20-10-2011 20:34 12 5 0 0
AParticipant-May-Study f 1966 6 15 20-10-2011 20:34 13 5 0 0

Customization Options for the PathSpan App

Pathspan uses csv-format files for both input and output of the data. Once the app has been run at least once, the default configuration files become available in the iTunes file sharing section. Via iTunes, the default files can be saved to a computer, modified and then put back on the iPad, as described below.

Configurable Options in PathSpan:

  • Button position
  • Beginning instructions
  • Prompts ("Done","Play","Your Turn!", etc...)
  • Button flash times
  • Button size
  • Button images
  • Flash sequences
  • How many times a participant has to get a certain pattern length wrong before they are stopped

Steps to modify a configuration file:

Getting Configuration Files On and Off the iPad

Note: Due to a quirk in the iTunes process, you must have run the PathSpan app at least once before the files become available via this method.

  1. Open iTunes.
  2. Connect the PathSpan iPad.
  3. Select the iPad in the "Devices" list.
  4. Go to the "Apps" tab using the tab bar at the top.
  5. Scroll down to the "File Sharing" section.
  6. Select the PathSpan app from the list.
  7. Now:
    • To retrieve a default configuration file from the iPad so you can modify it:
      1. Select the configuration file you want to retrieve
      2. Press the "save to..." button and select a location to save the file.
    • To replace a default configuration file with one on your computer:
      1. Press the "Add..." button.
      2. Select the configuration file on your computer that you want to put on the iPad.
      3. Click "Replace" in the dialog that appears
    • To replace a modified configuration file on the iPad with the default:
      1. With the configuration file selected, press the delete key on your keyboard.
      2. Press the delete button in the dialog that appears.

Main Config File Format

The config.txt file is a list of keys and values separated by colons. In the following format:

option1:value1
option2:value2

The keys have the following default settings:

OptionDefault ValueDescription
delay0.5 The delay in seconds between button flashes.
flashlength0.6 The length in seconds of each button flash.
buttonsize150 The size in pixels of the buttons. Normally the size of the button images.
imageupcircle-button-green-up.png The name of the image file with the image of the button up (flashing). You can replace this image file with an alternative in the same format and size.
imagedowncircle-button-green-down.png The name of the image file containing an image of the button down. You can also upload your own image to use.
buttonsbuttons.csv The name of the file containing the button positions.
groups groups.csv The name of the file defining the sequence groups. This should be changed to 'groups_2.csv' if the sequences file is changed. This will automatically load in the groups_2.csv file next time the app is launched.
sequences sequences.csv The name of the file containing the sequence instructions (which buttons to flash in which order). This can be changed to 'sequences_2.csv' to use the alternative default file with only 2 sequences per group of trials of the same length. This will automatically load in the sequences_2.csv file next time the app is launched.
instructionsinstructions.txt The name of the text file with the instructions to the participant. These are shown to the participant before they start.
text-doneDone The text to show on the Done button.
text-playPlay The text to show on the Play button.
text-promptYour turn! The text to show when the the sequence has been completed to prompt the participant to copy the sequence.

Changing the Sequences and Stopping Points.

The sequence file is the list of sequences for the app to play. Each line is a comma-separated list of button numbers to flash (1 is the first button in the buttons file…). The two default sequence files are described above.

Note: 2 sequences per length is not recommended for children aged 5 and under - there will be too little variability due to the difficulty of the trials.

To switch between using 3 sequences per length to 2 sequences per length :

  1. Change the file name in config.txt for the Sequences key to 'sequences_2.csv'
  2. Change the file name in config.txt for the Groups key to 'groups_2.csv'

To use a completely new set of sequences:

  1. Create a new sequences file in csv format (use the existing file as a model for the format)
  2. Move it onto the iPad via iTunes it as described in"Getting Configuration Files On and Off the iPad"
  3. Change the file name of the sequences key in the config.txt file to the new name
  4. If you have changed the number of sequences for each length, follow the same process for the Groups file to set the stopping points to match the new sequences.
  5. Move the new config.txt file onto the iPad.

Groups File Format

Groups represent sequences of the same lengths (i.e. one group would be for sequences that are 3 flashes long, one for 4 flashes long, etc...). It enables you to have the app end the trials for the participant if they get certain numbers of trials wrong - strike trials. The default is set to groups of 3 sequences and 3strikes: the participant is stopped if and only if they get all 3 of the sequences incorrect.

There are two columns in the format: length,strikes. Each row describes one group of sequences:
The length column contains the number of sequences that are contained in that group.
The strikes column contains the number of sequences in the group that the participant can get wrong until it stops them.

The default file has a single demonstration sequence without a stoppping condition. The sequence file then is ordered to shows 3 sequences of increasing lengths up to length 8. The app ends the session for the participant if they get all three of the sequences incorrect - thus for each group, length is set to 3, and strikes is set to 3, as shown below:

length,strikes
1,2  *setting the strikes to greater than the length ensures that the participant will not be stopped 
3,3
3,3
3,3 ... and so on up to length 8. 
			

Removing the stopping point: If you want every participant to do all 20 of your trials, and never be stopped,set the file to:

 20,21. 
Setting the strikes to a value greater than the length ensures that the participant will not be stopped.

Example: Customizing the Instructions

Customizing the instructions shown at the beginning of the task can be done simply by uploading a text file containing your instructions.

  1. Create a file named instructions.txt
    • Note: You may wish to download the original default instructions first so that you have a copy available.
  2. Navigate to the file sharing screen as detailed in the "Getting Configuration Files On and Off the iPad" section.
  3. Press the "Add" button
  4. Select the instructions.txt file to upload it and replace the existing instructions file.

The Buttons File: Button Numbers and Locations

Default button positions.
Default button positions and numbers

The buttons file is a csv file with labeled columns. It describes the positions of all the buttons.There are two columns in the format: x,y

The x column contains the percentage from the left side of the screen to place the middle of the button. The y column contains the percentage from the top of the screen to place the middle of the button.

NOTE: The percentages are a percentage of the entire screen! You may have to bump up the y values to acount for the bar at the bottom. The file that comes with the app is already properly positioned.

Examples:

To display 1 button in the middle of the screen:

x,y
50,50

To display 1 button in the top left and 1 butotn the top right. Note how numbers with a decimal are supported:

x,y
10,10
96.6,10