# Temporally aligned segmentation and clustering (TASC) framework for behavior time series analysis

**Authors:** Ekaterina Zinkovskaia, Orel Tahary, Yocheved Loewenstern, Noa Benaroya-Milshtein, Izhar Bar-Gad

PMC · DOI: 10.1038/s41598-024-63669-6 · 2024-06-28

## TL;DR

The TASC framework improves the analysis of behavior time series by accurately segmenting and clustering complex spatiotemporal behavior data.

## Contribution

A novel iterative framework for time series analysis that combines temporal alignment with segmentation and clustering.

## Key findings

- TASC demonstrates enhanced segmentation and clustering of behavior motifs in both synthetic and real-world data.
- The alternating-step process improves precision in identifying non-overlapping behavior segments.
- The framework is generalizable and can be applied to other domains requiring high-precision time series analysis.

## Abstract

Behavior exhibits a complex spatiotemporal structure consisting of discrete sub-behaviors, or motifs. Continuous behavior data requires segmentation and clustering to reveal these embedded motifs. The popularity of automatic behavior quantification is growing, but existing solutions are often tailored to specific needs and are not designed for the time scale and precision required in many experimental and clinical settings. Here we propose a generalized framework with an iterative approach to refine both segmentation and clustering. Temporally aligned segmentation and clustering (TASC) uses temporal linear alignment to compute distances between and align the recurring behavior motifs in a multidimensional time series, enabling precise segmentation and clustering. We introduce an alternating-step process: evaluation of temporal neighbors against current cluster centroids using linear alignment, alternating with selecting the best non-overlapping segments and their subsequent re-clustering. The framework is evaluated on semi-synthetic and real-world experimental and clinical data, demonstrating enhanced segmentation and clustering, offering a better foundation for consequent research. The framework may be used to extend existing tools in the field of behavior research and may be applied to other domains requiring high precision of time series segmentation.

## Full-text entities

- **Diseases:** eye tics (MESH:D020323), HAS (MESH:C537538), Tourette syndrome (MESH:D005879)
- **Chemicals:** DBA (-)
- **Species:** Rattus norvegicus (brown rat, species) [taxon 10116], Mus musculus (house mouse, species) [taxon 10090], Diptera (flies, order) [taxon 7147], Homo sapiens (human, species) [taxon 9606]

## Figures

8 figures with captions in the complete paper: https://tomesphere.com/paper/PMC11213853/full.md

---
Source: https://tomesphere.com/paper/PMC11213853