Home

Awesome

Deep Neural Network Ensembles for Time Series Classification

This is the companion repository for our paper also available on ArXiv titled "Deep Neural Network Ensembles for Time Series Classification". This paper has been accepted at the IEEE International Joint Conference on Neural Networks (IJCNN) 2019.

Approach

ensemble

Data

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

Code

The code is divided as follows:

To run a model on all datasets you should issue the following command:

python3 main.py

To control which datasets and which individual/ensemble classifiers to run see the options in constants.py.

You can control which algorithms to include in the ensemble by changing this line of code.

Prerequisites

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

Results

The following table shows the results of four ensembles, the raw results can be found here.

Fine-tuned FCNsNNEALLResNets
50words66.8180.0080.0077.14
Adiac85.1785.1783.3883.63
ArrowHead84.0086.2986.2986.86
Beef76.6776.6780.0076.67
BeetleFly90.0085.0085.0085.00
BirdChicken90.0095.0085.0090.00
CBF99.7899.4498.5699.78
Car91.6795.0086.6793.33
ChlorineConcentration82.4285.0583.9885.49
CinC_ECG_torso85.8789.7192.9083.55
Coffee100.00100.00100.00100.00
Computers83.2083.6071.6083.60
Cricket_X78.9782.0577.9581.54
Cricket_Y79.2384.3678.7282.05
Cricket_Z82.0583.8579.4982.05
DiatomSizeReduction30.0730.0788.5630.07
DistalPhalanxOutlineAgeGroup71.9472.6676.2673.38
DistalPhalanxOutlineCorrect77.5477.9077.9078.99
DistalPhalanxTW71.2265.4767.6366.19
ECG20089.0089.0092.0088.00
ECG500094.1694.4294.5193.67
ECGFiveDays99.5499.8899.6598.61
Earthquakes71.9474.8274.8272.66
ElectricDevices71.7474.3973.0374.22
FISH96.0097.7193.7198.29
FaceAll92.8486.3983.9184.02
FaceFour93.1895.4592.0595.45
FacesUCR93.9595.7695.5195.90
FordA90.6793.7094.2292.56
FordB88.0492.9092.3392.16
Gun_Point100.00100.0099.3399.33
Ham74.2975.2474.2978.10
HandOutlines92.7095.1493.7893.78
Haptics50.6552.6050.9753.25
Herring65.6260.9462.5060.94
InlineSkate40.5538.3638.0038.55
InsectWingbeatSound39.4959.7565.9152.73
ItalyPowerDemand96.1196.5096.8996.40
LargeKitchenAppliances89.6090.9383.2089.60
Lighting280.3380.3377.0578.69
Lighting789.0490.4183.5683.56
MALLAT96.9396.9395.4497.40
Meat91.6795.0093.3396.67
MedicalImages78.2979.7480.1378.42
MiddlePhalanxOutlineAgeGroup53.9059.0960.3959.09
MiddlePhalanxOutlineCorrect81.1083.5183.8583.51
MiddlePhalanxTW51.9551.9555.1949.35
MoteStrain93.3793.9393.4593.05
NonInvasiveFatalECG_Thorax196.4496.3995.8895.01
NonInvasiveFatalECG_Thorax295.7396.1896.5495.01
OSULeaf97.5298.7678.5198.35
OliveOil86.6786.6786.6786.67
PhalangesOutlinesCorrect83.5784.2783.5784.97
Phoneme32.6535.1330.9134.81
Plane100.00100.0099.05100.00
ProximalPhalanxOutlineAgeGroup84.3984.8885.8585.37
ProximalPhalanxOutlineCorrect92.1091.7590.3892.10
ProximalPhalanxTW79.5177.5680.9878.54
RefrigerationDevices50.4053.0753.3352.80
ScreenType65.0762.1352.2762.13
ShapeletSim86.1181.1170.5693.89
ShapesAll90.0092.8389.1792.00
SmallKitchenAppliances79.4782.1377.6078.93
SonyAIBORobotSurface95.8494.6878.0496.17
SonyAIBORobotSurfaceII98.2297.6988.8898.11
StarLightCurves96.7897.9297.7997.38
Strawberry97.8498.1197.5798.11
SwedishLeaf97.2897.2896.1696.48
Symbols95.6895.8891.0691.56
ToeSegmentation196.4998.2581.5896.05
ToeSegmentation290.7792.3193.0891.54
Trace100.00100.0098.00100.00
TwoLeadECG99.91100.0097.72100.00
Two_Patterns87.62100.00100.00100.00
UWaveGestureLibraryAll82.8692.2796.2687.16
Wine77.7887.0490.7483.33
WordsSynonyms55.9666.9368.9762.85
Worms76.6281.8262.3483.12
WormsTwoClass74.0377.9263.6477.92
synthetic_control98.67100.00100.00100.00
uWaveGestureLibrary_X76.1382.1083.2879.51
uWaveGestureLibrary_Y64.8273.2075.3868.68
uWaveGestureLibrary_Z73.1278.0377.4176.19
wafer99.6199.8499.8199.90
yoga87.1089.3388.5788.17
Wins18382927

Critical difference diagrams

If you would like to generate these diagrams, take a look at this code!

cd-diagram-resnets cd-diagram-all cd-diagram-nne

Reference

If you re-use this work, please cite:

@InProceedings{IsmailFawaz2019deep,
  Title                    = {Deep Neural Network Ensembles for Time Series Classification},
  Author                   = {Ismail Fawaz, Hassan and Forestier, Germain and Weber, Jonathan and Idoumghar, Lhassane and Muller, Pierre-Alain},
  booktitle                = {IEEE International Joint Conference on Neural Networks},
  Year                     = {2019}
}

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.