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
  Differencing Time series and Inverse after Training donnertrud 0 87 May-27-2020, 06:11 AM
Last Post: donnertrud
  Classification and Regression tree (CART) kumarants 2 248 May-26-2020, 11:04 AM
Last Post: Larz60+
  Error when import Keras Azadfalah 1 197 Apr-29-2020, 04:45 AM
Last Post: buran
  How can I convert time-series data in rows into column srvmig 0 143 Apr-11-2020, 05:40 AM
Last Post: srvmig
  Keras.Predict into Dataframe Finpyth 12 439 Mar-15-2020, 06:22 PM
Last Post: Finpyth
  Using shift to compute the percent change in a time series new_to_python 6 539 Mar-03-2020, 07:50 PM
Last Post: new_to_python
  Keras + Matplotlib causing crash spearced 3 879 Feb-06-2020, 04:54 PM
Last Post: zljt3216
  Linear Regression on Time Series karlito 5 328 Jan-28-2020, 10:02 AM
Last Post: buran
  IDE for Finance TIME SERIES Data Trader2013 2 272 Jan-19-2020, 04:44 PM
Last Post: danielgoldfarb
  Keras Dense layer with wrong input d1r4c 0 205 Jan-02-2020, 02:35 PM
Last Post: d1r4c

Forum Jump:


Users browsing this thread: 1 Guest(s)