RAP: a computer program for exploring similarities in behavior sequences using random projections
Related Experiment Video
Updated: Jul 5, 2026

RBDT: A Computerized Task System based in Transposition for the Continuous Analysis of Relational Behavior Dynamics in Humans
Published on: July 17, 2021
1Departamento de Metodología de las Ciencias del Comportamiento, Universidad de Barcelona, Barcelona, Spain. vquera@ub.edu
Abstract:
A computer program (RAP, for random projection) for exploring similarities between and within sequences of behavior is presented. Given a time window of a sequence, the program calculates a signature, a real-valued vector that is a random projection of the contents of the window (i.e., the codes occurring within it and their relative location, or onset and offset times) into an arbitrary K-dimensional space. Then, given two different time windows from the same sequence or from different sequences, their similarity is computed as an inverse function of the Euclidean distance between their respective signatures. By defining moving (overlapped or not overlapped) windows along each sequence and calculating similarities between every pair of windows from the two sequences, a map of similarities or possible recurrent patterns is obtained; the RAP program represents them as gray-level lattices, which are displayed as mouse-sensitive images in an HTML file. Computation of similarities is based on the random projection method, as presented by Mannila and Seppänen (2001), for the analysis of sequences of events. The program reads sequence data files in Sequential Data Interchange Standard (SDIS) format (Bakeman Quera, 1992,1995a).
Related Concept Videos
Wald-Wolfowitz Runs Test I
The test works...
Evolutionary Relationships through Genome Comparisons
RNA-seq
Before the discovery of RNA-seq, microarray-based methods and Sanger sequencing were used for transcriptome analysis. However, while microarray-based...
Random Sampling Method

