Skip to main content
. 2023 Jul 11;23(14):6302. doi: 10.3390/s23146302
Algorithm 1 Pseudo-code of CNN-LSTM
  • 1:

    Input the trained data as a CSV file from datasets.

  • 2:

    Scaling and transforming all the data features for learning.

  • 3:

    Scaling and transforming all features of the testing data.

  • 4:

    Using SMOTE for data balancing.

  • 5:

    Definition of the CNN-LSTM model:

  • 6:

    | The body of the model (layers)

  • 7:

    Return model

  • 8:

     ModelCNNLSTM()Model

  • 9:

    Fitting function

  • 10:

    Valuation calculation