Coder Social home page Coder Social logo

syyunn / aaltd18 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hfawaz/aaltd18

0.0 1.0 0.0 251 KB

Data augmentation using synthetic data for time series classification with deep residual networks

License: GNU General Public License v3.0

Python 99.48% Shell 0.52%

aaltd18's Introduction

Data augmentation using synthetic data for time series classification with deep residual networks

This is the companion repository for our paper titled "Data augmentation using synthetic data for time series classification with deep residual networks". This paper has been accepted for an oral presentation at the Workshop on Advanced Analytics and Learning on Temporal Data (AALTD) 2018 in the European Conference on Machine Learning and Principles and Practice of Knowledge Discovery in Databases (ECML/PKDD) 2018.

architecture resnet

Data

The data used in this project comes from the UCR archive, which contains the 85 univariate time series datasets we used in our experiements.

Code

The code is divided as follows:

  • The distance folder contains the DTW distance in Cython instead of pure python in order to reduce the running time.
  • The dba.py file contains the DBA algorithm.
  • The utils folder contains the necessary functions to read the datasets and visualize the plots.
  • The knn.py file contains the K nearest neighbor algorithm which is mainly used when computing the weights for the data augmentation technique.
  • The resnet.py file contains the keras and tesnorflow code to define the architecture and train the deep learning model.
  • The augment.py file contains the method that generates the random weights (Average Selected) with a function that does the actual augmentation for a given training set of time series.

Prerequisites

All python packages needed are listed in utils/pip-requirements.txt file and can be installed simply using the pip command for python3.6.

Results

The main contribution of a data augmentation technique is to improve the performance (accuracy) of a deep learning model especially for time series datasets with small training sets such as the DiatomSizeReduction (the smallest in the UCR archive) where we managed to increase the model's accuracy from 30% (without data augmentation) to 96% with data augmentation for a residual network architecture.

Meat DiatomSizeReduction
plot-meat-dataset plot-diatomsizereduction-dataset

Reference

If you re-use this work, please cite:

@InProceedings{IsmailFawaz2018,
  Title                    = {Data augmentation using synthetic data for time series classification with deep residual networks},
  Author                   = {Ismail Fawaz, Hassan and Forestier, Germain and Weber, Jonathan and Idoumghar, Lhassane and Muller, Pierre-Alain},
  Booktitle                = {International Workshop on Advanced Analytics and Learning on Temporal Data, {ECML} {PKDD}},
  Year                     = {2018}
}

Acknowledgement

We would like to thank NVIDIA Corporation for the Quadro P6000 grant and the Mésocentre of Strasbourg for providing access to the cluster.

aaltd18's People

Contributors

forestier avatar hfawaz avatar

Watchers

 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.