ALL Metrics
-
Views
-
Downloads
Get PDF
Get XML
Cite
Export
Track
Software Tool Article
Revised

TicTimer software for measuring tic suppression

[version 2; peer review: 2 approved]
PUBLISHED 22 Dec 2017
Author details Author details
OPEN PEER REVIEW
REVIEWER STATUS

This article is included in the Tics collection.

Abstract

Woods and Himle developed a standardized tic suppression paradigm (TSP) for the experimental setting, to quantify the effects of intentional tic suppression in Tourette syndrome. The present article describes a Java program that automates record keeping and reward dispensing during the several experimental conditions of the TSP. The software can optionally be connected to a commercial reward token dispenser to further automate reward delivery to the participant. The timing of all tics, 10-second tic-free intervals, and dispensed rewards is recorded in plain text files for later analysis. Expected applications include research on Tourette syndrome and related disorders.

Keywords

tic disorders,Tourette syndrome, reward, reinforcement, psychology, software

Revised Amendments from Version 1

This revision addresses questions raised by the reviewers. The introduction is expanded to clarify that the software does not detect the tics; rather, it facilitates an observer’s recording their timing. The introduction and conclusion also clarify that the intended use of the software is primarily for research in the office setting. Future adaptations of the software for clinical utility are possible, and discussed in conclusions. Finally, we now provide in the implementation section a direct link to the GitHub page for the python script that can be used to parse the log files.

See the authors' detailed response to the review by Patrick Haggard
See the authors' detailed response to the review by Danielle C. Cath

Introduction

Woods and Himle developed a tic suppression paradigm (TSP) that could be used in the experimental setting to demonstrate and quantify the effects of intentional tic suppression on tic rate in Tourette syndrome (TS) and other tic disorders15. In this paradigm, each participant is observed during several experimental conditions, baseline and differential reinforcement of zero-rate ticcing (DRO), and sometimes also verbal instruction to suppress tics and/or noncontingent reinforcement (NCR).

In the course of conducting a longitudinal study of children with Provisional Tic Disorder6, we found that tic suppression is seen within the first few months after a child’s first tic7. We also found that the TSP required substantial investigator effort, and we started writing software with the following goals:

  • automated tic counting, timing and record-keeping;

  • automated reward delivery in the DRO condition;

  • automated reward delivery in the NCR condition.

The overall motivations included not only convenience but also improvement in accuracy. Note that “automated tic counting” here refers to minimizing an expert observer’s record-keeping (simply pushing a button for each tic observed), not to machine detection of the tics. This software, and optional connection to hardware, were intended for use in the research session with the TSP as described above; later in Conclusions we describe possible adaptations for other settings. We present the software here to facilitate its use by others.

Methods

Implementation

TicTimer first has the user set up the details for a session, then it runs a clock for the specified session time while writing significant events to a log file. The program writes a line to the log file for each of the following events: session started and ended, tic detected, ten seconds passed without tics, and reward dispensed. Each line includes the time of the event. By parsing through each line in a log file, a python script (also available on GitHub) can extract and summarize the key data.

The hardware allows reward tokens to be dispensed automatically to the study participant. One end of the long cable enters the token dispenser and its two wires attach to the two pins in the Passive Connection Panel that, when shorted, trigger release of a reward token. The Student Trainer Interface box provides power to the token dispenser box and a remote pushbutton for manually triggering token release. The other end of the long cable connects to the two normally open pins on the relay inside of the small plastic box. The USB to TTL serial cable attaches to the input pins on the relay, with the USB end of the cable leaving the box to attach to the computer running TicTimer. Figure 1 shows the final assembly.

25ec8ffb-19a9-4677-88d0-35638fa44da5_figure1.gif

Figure 1. From left to right: Token dispenser box, Student Trainer Interface with external pushbutton, box containing relay module, connected via USB cable to laptop running TicTrainer.

Parts list:

Operation

System software requirements are Java 8 and RXTX for Java, a library for serial port communication. Binaries for Windows and Linux are provided by fizzed.com. Python 3 was used for the log file reader script.

The program can be run with or without the relay and USB cable. If the hardware is set up and connected to the computer, the program can start in “link mode.” Otherwise, TicTimer can still be run in “button mode,” in which the automatic reward system is replaced by a human who presses the push button attached to the Student Trainer Interface when prompted by a beep and a red flash on the computer screen.

The following procedure applies to both reward modes. First, the user presses “Setup” to choose which type of session is being run and to specify where the session log should be saved. For the NCR condition, the user is also prompted to identify the log file from a previously completed DRO session in the same subject (which provides the timing for the rewards dispensed in the NCR condition). Once setup is completed, the session can be started. During a session, the person observing the subject records tics by clicking the “Tic Detected” button or by pressing “T” or the space bar. If the session type includes rewards (DRO and NCR), they are dispensed appropriately. The session ends when the predetermined time elapses or when the user ends it manually by pressing “End Session” or by closing the window.

If a session is ended manually and restarted, the new session log will be appended to the old one unless a new file was chosen in setup. If a log file contains multiple sessions, only the last session will be used by the NCR mode (which requires a DRO session file in setup) and the data reader script.

To summarize the data from a TicTimer log file, run the accompanying python script (TT_Data.py) with one or more log files as arguments. For each log file given, the script reports the length of the session and the number of tics, 10-second tic-free intervals, and rewards dispensed during the session. The choice of 10 seconds as the duration of rewarded tic-free intervals was made to replicate Woods and Himle’s (2004) original methods, and because we have used that duration in all of our own studies.

Use cases

We have provided 8 sample session log files as Supplementary Files (Supplementary files 1Supplementary file 8) (subject100_session*_TicTimer_log.txt). These are examples of the files that TicTimer creates during a session. Each line in a log file contains an event and the time at which it occurred. Log files are written in plain English, so they can be read directly if desired. These sample data originated from a participant in the study described by Greene et al.7, but all identifying data were removed and these files no longer comprise human subjects data.

The file TT_Data_output.txt (Supplementary file 9) contains output from the python script, summarizing those session files. This output is again in plain text, reporting the session length and the number of each type of event recorded for each log file.

Conclusions

The TicTimer program, now connected to the reward token dispenser, has simplified implementing the TSP and improved the accuracy of reward delivery (given inevitable limitations of human attention and response time in button mode). The software, while designed for our purposes in tic disorder research, may find other uses. The most obvious of these may be for research on traditional habit disorders; for instance, hair pulling and skin picking appear in the “Obsessive-compulsive and related disorders” section of DSM-58. The most obvious application to the clinical setting may be in documenting suppression ability in the office, before and after treatment. However, we have created loosely related web-based software designed for a potential clinical application10. Another potential future modification would be to add machine detection of tics, e.g. by online video analysis or accelerometry; such an improvement would be quite welcome but is difficult to reduce to practice.

Software availability

The source code is available on GitHub under a BSD 3-clause license.

The current release is available on Zenodo, at DOI 10.5281/zenodo.837884.

Comments on this article Comments (0)

Version 2
VERSION 2 PUBLISHED 24 Aug 2017
Comment
Author details Author details
Competing interests
Grant information
Copyright
Download
 
Export To
metrics
Views Downloads
F1000Research - -
PubMed Central
Data from PMC are received and updated monthly.
- -
Citations
CITE
how to cite this article
Black JK, Koller JM and Black KJ. TicTimer software for measuring tic suppression [version 2; peer review: 2 approved] F1000Research 2017, 6:1560 (https://doi.org/10.12688/f1000research.12327.2)
NOTE: it is important to ensure the information in square brackets after the title is included in all citations of this article.
track
receive updates on this article
Track an article to receive email alerts on any updates to this article.

Open Peer Review

Current Reviewer Status: ?
Key to Reviewer Statuses VIEW
ApprovedThe paper is scientifically sound in its current form and only minor, if any, improvements are suggested
Approved with reservations A number of small changes, sometimes more significant revisions are required to address specific details and improve the papers academic merit.
Not approvedFundamental flaws in the paper seriously undermine the findings and conclusions
Version 2
VERSION 2
PUBLISHED 22 Dec 2017
Revised
Views
4
Cite
Reviewer Report 12 Jan 2018
Danielle C. Cath, Department of Psychiatry, University Medical Centre Groningen, Groningen, The Netherlands 
Approved
VIEWS 4
I went through the revision and responses by the authors to my ... Continue reading
CITE
CITE
HOW TO CITE THIS REPORT
Cath DC. Reviewer Report For: TicTimer software for measuring tic suppression [version 2; peer review: 2 approved]. F1000Research 2017, 6:1560 (https://doi.org/10.5256/f1000research.14702.r29268)
NOTE: it is important to ensure the information in square brackets after the title is included in all citations of this article.
Version 1
VERSION 1
PUBLISHED 24 Aug 2017
Views
8
Cite
Reviewer Report 06 Nov 2017
Patrick Haggard, Institute of Cognitive Neuroscience & Department of Psychology, University College London, London, WC1N 3AR, UK 
Approved
VIEWS 8
This is a simple but functional piece of software for logging tics, and automating a reward schedule based on them.
 
The hardware/software combination will be useful for researchers and possibly for behavioural analysis/clinical training – though this ... Continue reading
CITE
CITE
HOW TO CITE THIS REPORT
Haggard P. Reviewer Report For: TicTimer software for measuring tic suppression [version 2; peer review: 2 approved]. F1000Research 2017, 6:1560 (https://doi.org/10.5256/f1000research.13345.r26009)
NOTE: it is important to ensure the information in square brackets after the title is included in all citations of this article.
  • Author Response (F1000Research Advisory Board Member) 22 Dec 2017
    Kevin J Black, Department of Neuroscience, Washington University School of Medicine, St. Louis, 63110, USA
    22 Dec 2017
    Author Response F1000Research Advisory Board Member
    We are grateful for the careful attention and thoughtful suggestions of Prof. Haggard. Here we reply to each point in his review of version 1.
    • The software doesn't
    ... Continue reading
COMMENTS ON THIS REPORT
  • Author Response (F1000Research Advisory Board Member) 22 Dec 2017
    Kevin J Black, Department of Neuroscience, Washington University School of Medicine, St. Louis, 63110, USA
    22 Dec 2017
    Author Response F1000Research Advisory Board Member
    We are grateful for the careful attention and thoughtful suggestions of Prof. Haggard. Here we reply to each point in his review of version 1.
    • The software doesn't
    ... Continue reading
Views
9
Cite
Reviewer Report 30 Oct 2017
Danielle C. Cath, Department of Psychiatry, University Medical Centre Groningen, Groningen, The Netherlands 
Approved with Reservations
VIEWS 9
This tool might be very useful in clinical practice to make tic suppression more objectively measured, and to substantiate the direct results of tic suppression practicing. It is potentially a useful addition to current practice of CBT in tic suppression, ... Continue reading
CITE
CITE
HOW TO CITE THIS REPORT
Cath DC. Reviewer Report For: TicTimer software for measuring tic suppression [version 2; peer review: 2 approved]. F1000Research 2017, 6:1560 (https://doi.org/10.5256/f1000research.13345.r27424)
NOTE: it is important to ensure the information in square brackets after the title is included in all citations of this article.
  • Author Response (F1000Research Advisory Board Member) 22 Dec 2017
    Kevin J Black, Department of Neuroscience, Washington University School of Medicine, St. Louis, 63110, USA
    22 Dec 2017
    Author Response F1000Research Advisory Board Member
    We thank Prof. Cath for her thoughtful comments. We failed to clarify adequately the primary purpose of this software tool. It was designed rather narrowly for use in a standardized Tic ... Continue reading
COMMENTS ON THIS REPORT
  • Author Response (F1000Research Advisory Board Member) 22 Dec 2017
    Kevin J Black, Department of Neuroscience, Washington University School of Medicine, St. Louis, 63110, USA
    22 Dec 2017
    Author Response F1000Research Advisory Board Member
    We thank Prof. Cath for her thoughtful comments. We failed to clarify adequately the primary purpose of this software tool. It was designed rather narrowly for use in a standardized Tic ... Continue reading

Comments on this article Comments (0)

Version 2
VERSION 2 PUBLISHED 24 Aug 2017
Comment
Alongside their report, reviewers assign a status to the article:
Approved - the paper is scientifically sound in its current form and only minor, if any, improvements are suggested
Approved with reservations - A number of small changes, sometimes more significant revisions are required to address specific details and improve the papers academic merit.
Not approved - fundamental flaws in the paper seriously undermine the findings and conclusions
Sign In
If you've forgotten your password, please enter your email address below and we'll send you instructions on how to reset your password.

The email address should be the one you originally registered with F1000.

Email address not valid, please try again

You registered with F1000 via Google, so we cannot reset your password.

To sign in, please click here.

If you still need help with your Google account password, please click here.

You registered with F1000 via Facebook, so we cannot reset your password.

To sign in, please click here.

If you still need help with your Facebook account password, please click here.

Code not correct, please try again
Email us for further assistance.
Server error, please try again.