Python Forum
Keras: Time series classification
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!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Help: Conversion of Electricity Data into Time Series Data SmallGuy 3 1,158 Oct-04-2023, 03:31 PM
Last Post: deanhystad
  Time Series Production Process Problem Mzarour 1 2,100 Feb-28-2023, 12:25 PM
Last Post: get2sid
  1st layer tf.keras output shape set at multiple - need help! Afrodizzyjack 0 1,786 Jun-07-2022, 04:53 PM
Last Post: Afrodizzyjack
  reduce time series based on sum condition amdi40 0 1,079 Apr-06-2022, 09:09 AM
Last Post: amdi40
  How to accumulate volume of time series amdi40 3 2,260 Feb-15-2022, 02:23 PM
Last Post: amdi40
  issue displaying summary of whole keras CNN model on TensorFlow with python Afrodizzyjack 0 1,620 Oct-27-2021, 04:07 PM
Last Post: Afrodizzyjack
Sad Miss-Classification problem with shuffled batch Faebs94 0 1,528 Sep-02-2021, 11:55 AM
Last Post: Faebs94
  Probabilities of binary classification problem Troublesome1996 0 2,398 Apr-19-2021, 06:40 PM
Last Post: Troublesome1996
  GridSearchCV for multi-label classification mapypy 0 3,648 Mar-29-2021, 01:58 AM
Last Post: mapypy
  Understanding Keras and TensorFlow and how to use them bytecrunch 1 2,056 Mar-11-2021, 02:40 PM
Last Post: jefsummers

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020