/TOFL

submited to TNNLS

Primary LanguagePython

Trend and Order Features for Semi-supervised Time Series Classification via Multi-task Learning

Authors: Rongjun chen, Xuanhui Yan, Guobao Xiao, Yi Hou, Shilin Zhou

Overview

Multitask learning with pretext task has excelled in time series classification task lacking labeled data. The key to multitask learning is to build a pretext task and learn the most representative feature from raw time series. In this paper, we propose Trend and Order Features for semi-supervised time series classification via multitask Learning (TOFL). Specially, we propose a simple but effective pretext task --- self-sequence order prediction (SOP) --- to discover the order relation.In addition, we design a Gradual Trend Fusion block concatenating different trend features as the shared backbone network basis element to obtain high quality trend features for SOP task. Finally, we not only theoretically analyze the uniform stability and generalization error of TOFL, but also evaluate the results compared with state-of-the-art (SOTA) supervised and semi-supervised methods on the 128 UCR datasets and three real-world datasets. TOFL demonstrates a high level of competitiveness and, in most cases, closely matches or even surpasses SOTA methods in terms of accuracy.

Setups

1. Requirements

Install Pytorch2.0+ and the required packages.

pip install -r requirements.txt

2. Prepare data

You can access the well pre-processed datasets from [Baidu Drive], then place the downloaded contents under ./datasets

3. Quick Demos

You can run the command as follow:

python main.py --dataset_name CricketX --model_name TOFL

Acknowledgement

This codebase is built based on the SemiTime. Thanks!

yfan/SemiTime). Thanks!