Coder Social home page Coder Social logo

tokaka22 / time_series_backdoor_attack Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yujingmarkjiang/time_series_backdoor_attack

0.0 0.0 0.0 37 KB

SaTML'23 paper "Backdoor Attacks on Time Series: A Generative Approach" by Yujing Jiang, Xingjun Ma, Sarah Monazam Erfani, and James Bailey.

Python 100.00%

time_series_backdoor_attack's Introduction

TSBA: Time Series Backdoor Attack

This is the code for the SaTML'23 paper "Backdoor Attacks on Time Series: A Generative Approach" by Yujing Jiang, Xingjun Ma, Sarah Monazam Erfani, and James Bailey.

Prerequisites

  • Python (3.9.7)
  • Pytorch (1.10.0)
  • CUDA (with 4 GPUs)

Data

The data used in this project comes from two sources:

  • The UCR/UEA archive, which contains the 85 univariate time series datasets.
  • The MTS archive, which contains the 13 multivariate time series datasets.

How to run

To run the clean model:

python main.py run_baseline

To run the vanilla backdoor method:

python main.py run_backdoor vanilla

To run the static noise backdoor method:

python main.py run_backdoor powerline

To run our proposed TSBA:

python main.py run_backdoor generator

To test the generator from trained TSBA model:

python main.py run_backdoor generative_test

Reference

For technical details and full experimental results, please check the paper.

@inproceedings{xxxxx,
  title={Backdoor Attacks on Time Series: A Generative Approach},
  author={Jiang, Yujing and Ma, Xingjun and Erfani, Sarah Monazam and Bailey, James},
}

time_series_backdoor_attack's People

Contributors

yujingmarkjiang avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.