Skip to main content

Library for time series subsequence search

Project description

license py3 status

Time Series Subsequence Search Library

Intuitive time series subsequence search

This repository hosts the TSSEARCH - Time Series Subsequence Search Python package. TSSEARCH assists researchers in exploratory analysis for query search and time series segmentation without requiring significant programming effort.

Functionalities

  • Search: We provide methods for time series query search and segmentation
  • Weights: The relative contribution of each point of the query to the overall distance can be expressed using a user-defined weight vector.
  • Visualization: We provide visualizations to present the results of the segmentation and query search
  • Unit tested: we provide unit tests for each feature
  • Easily extended: adding new distances is easy, and we encourage you to contribute with your custom distances or search methods

Get started

The code below segments a 10 s electrocardiography record:

import tssearch

# Load the query, (optional) weight vector and sequence  
query, weights, sequence = tssearch.examples.get_ecg_example_data()

# Selects the Dynamic Time Warping (DTW) as the distance for the segmentation
cfg = tssearch.get_distance_dict(["Dynamic Time Warping"])

# Performs the segmentation
out = tssearch.time_series_segment(cfg, query, sequence, weights)

Available distances

Lockstep
Lp Distances
Pearson Correlation Distance
Short Time Series Distance (STS)
Elastic
Dynamic Time Warping (DTW)
Longest Common Subsequence (LCSS)
Time Warp Edit Distance (TWED)
Time
Time Alignment Measurement (TAM)

Acknowledgements

This work was supported by the project Geolocation non-Assisted by GPS for Mobile Networks in Indoor and Outdoor Environment (GARMIO), co-funded by Portugal 2020, framed through the COMPETE 2020 (Operational Programme Competitiveness and Internationalization) and European Regional Development Fund (ERDF) from European Union (EU) under Grant POCI-01-0247-FEDER-033479.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tssearch-0.1.0.tar.gz (17.2 kB view details)

Uploaded Source

File details

Details for the file tssearch-0.1.0.tar.gz.

File metadata

  • Download URL: tssearch-0.1.0.tar.gz
  • Upload date:
  • Size: 17.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.10

File hashes

Hashes for tssearch-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1861b521c15f43a1b6b72cab2b2aec2d625b5ce5e6fbfcc80cdfceaf1ea7f903
MD5 8f91ec053e4d296bef1bc09c3d754eb8
BLAKE2b-256 9a0ab53c02936f1426b7c13a5de1b06e1fdfbc78520876e52e006a7518d9a719

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page