I am currently trying to reproduce a 1D-CNN approach I have found in the literature (Ullah et al., 2022)
In that publication the following baseline modelstructure is given:.
For testing purposes I want to use that model for my data as well. Yet, I have trouble understanding the Keras documentation in regards to the Conv1D-layer. Could anyone help me to understand how to interpret the image (i.e., what does the 25x1x3 mean) and translate that to a Keras model?
My current code for the model looks something like this (not sure if any of that is right):
import keras
from keras.models import Sequential
from keras.layers import Dense, Conv1D
model = Sequential()
model.add(Conv1D(filters=25, kernel_size=3, activation='relu', input_shape=(12,1)))
model.add(Dense(25, activation='relu'))
model.add(Conv1D(50, 3, activation='relu'))
model.add(Conv1D(100, 3, activation='relu'))
model.add(Dense(2200, activation='relu'))
model.add(Dense(2, activation='relu'))
model.add(Dense(2, activation='softmax'))