Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Keras: Time series classification
#1
Hi!

I am designing a Neural Network for a classification of time series. I have 4 classes of functions and around 50000 samples for each class. The functions have a length of about 500 points normalized so that max(abs(f(t)))=1. The 4 classes are roughly speaking 'continuous', 'discontinuous', 'in-between' and 'trash'.

What Neural Network design would you use for this particular problem?

The design I'm using currently is a CNN.

model = Sequential()
model.add(Conv1D(16, 8,input_shape=(500,1)))
model.add(BatchNormalization())
model.add(Activation("relu"))
model.add(Conv1D(8, 5))
model.add(BatchNormalization())
model.add(Activation("relu"))
model.add(Conv1D(8, 3))
model.add(BatchNormalization())
model.add(Activation("relu"))
model.add(GlobalAveragePooling1D())
model.add(Dense(4, activation='softmax'))
model.compile(optimizer='adam', loss='categorical_crossentropy', metrics=['accuracy'])
I'm open to all suggestions. The Network is not performing very well (85% accuracy).

Thank you for your help!
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Keras.Predict into Dataframe Finpyth 12 285 Mar-15-2020, 06:22 PM
Last Post: Finpyth
  Using shift to compute the percent change in a time series new_to_python 6 439 Mar-03-2020, 07:50 PM
Last Post: new_to_python
  Keras + Matplotlib causing crash spearced 3 770 Feb-06-2020, 04:54 PM
Last Post: zljt3216
  Linear Regression on Time Series karlito 5 221 Jan-28-2020, 10:02 AM
Last Post: buran
  IDE for Finance TIME SERIES Data Trader2013 2 178 Jan-19-2020, 04:44 PM
Last Post: danielgoldfarb
  Keras Dense layer with wrong input d1r4c 0 149 Jan-02-2020, 02:35 PM
Last Post: d1r4c
  Classification of Request PythonLearner703 8 413 Dec-09-2019, 08:56 PM
Last Post: micseydel
  Time Series Production Process Problem Mzarour 0 188 Dec-06-2019, 06:44 PM
Last Post: Mzarour
  CNN Speech Classification Mitchie87 0 166 Dec-06-2019, 06:17 PM
Last Post: Mitchie87
  Keras. ModuleNotFoundError: No module named 'error' agatte 1 2,666 Sep-18-2019, 12:27 PM
Last Post: shivani

Forum Jump:


Users browsing this thread: 1 Guest(s)