Skip to main content
. 2024 Feb 26;24(5):1522. doi: 10.3390/s24051522
Algorithm 1: The training stage of the proposed method

Require: Original dataset MS; Number epochs N

Initialized embedding vector u, Gat Gat(·),Gru Gru(·), short time series forecasting SF(·), Encoder E(·), Decoder D(·), and fully connected layer fθ(·)

Wu

n1

Repeat

   for each SiMS do:

      XGru(Gat(Si,W))

      S^KSF(X)

      LossS=S^kSk2

      XtokenE(X)

      Xde=Concat(Xtoken,X0)

      S^jD(Xde)

      LossL=S^jSj2

      S^i=fθ(Concat(S^k,S^j))

      Lossz=S^iSi2

      Loss=λLosss+κLossL+τLossz

      u,Gat(·),Gru(·),E(·),D(·)update weights using Loss

   end for

nn+1

until  n=N