Skip to main content
. 2023 Oct 15;23(20):8477. doi: 10.3390/s23208477
Algorithm 2: Obtaining neural network-based features from projected data on the PCs
The feature matrix F = (f1 f2  fK)
  • S1: Build an MLP network with one hidden layer and P hidden nodes (neuron).

  • S2: Start training the network for classifying the examples represented by the rows of F.

  • S3: Halt training in early iterations.

  • S4: Calculate the outputs of the hidden layer
    hi = sigmoid(FW+b) 

    where, W is the weight matrix between input and hidden layers and i = 1, , P

  • S5: Construct the hidden layer output matrix H = (h1 h2  hP) whose size is NxP. Although the algorithm ends in this step, the following step demonstrates the effectiveness of the generated features.

  • S6: Train a classifier (such as SVM or MDC) by the rows of the matrix H.