Skip to main content
. 2025 Apr 4;25(7):2293. doi: 10.3390/s25072293
Algorithm 1: Training Procedure of the RC-SEI method.

Require:

  • K: Number of training iterations;
  • N: Number of training samples;
  • C: Number of batches;
  • B: Number of Batchsize;
  • w,wSF: Parameters of neural network and sparse parameters;
  • z,zSF: Original features and sparse features;
  • η: Learning rate;
  • μ: Coefficient of momentum;
  • λSF: Sparse factor;
  • Trainingon{xi,yi}i=1N

  • for k=1 to K do

  •    for c=1 to C do

  •      [Forward propagation]:

  •      Sampling a batch of training samples {xi,yi}i=1B

  •      Initialize wSF={1,1,…,1}

  •      Extracting the Original features: z

  •      Pruning the Original features: zSF=wSF⊙z

  •      Obtaining the artificial labels:

  •      for b=1 to B do

  •         y^=argmaxy∈Yf(yi|xi;zSF)

  •      end for

  •      Calculating the loss: L=LCE+R(wSF)

  •      [Backward propagation]:

  •      Updating w by Adam algorithm:

  •      wk=wk−1−η·m^k−1v^k−1+ϵ

  •      Updating wSF by APGD-NAG algorithm:

  •      Jk=wSF′k−1−η∇LCEwSF′k−1vk=SηλSFJk−wSF′k−1+μ·vk−1wSF′k−1=SηλSFJk+μ·vk−1k=1,2,3,…,K

  •    end for

  • end for