Skip to main content
. 2026 Sep 9;26(18):5739. doi: 10.3390/s26185739
Algorithm 1: TF-SCN
Input: Training dataset D={(xi,yi)}; Lmax is the maximum number of nodes in the hidden layer across both branches; maximum candidate trials Tmax; residual tolerance E=[e1,e2,⋯,eC]; tolerable error σ; regularization coefficient λ; random parameter bound η.
Output: Temporal parameters ΘT, frequency-sensitive parameters ΘF, output weight β, and prediction results.
1. Initialize HT = ∅, HF = ∅, ΘT = ∅, ΘF = ∅, LT = 1, LF = 1.
2. while (LT < Lmax or LF < Lmax) and ||E|| > σ do:
3.       Initialize candidate set Φ = ∅, Ω = ∅, t = 0;
4.       while (ΘT and ΘF are empty) and t < Tmax do:
5.          Generate a random number r on the interval [0, 1];
6.          Solve the sequence value: μL=(1−r)/(1+LT+LF);
7.          Generate wtT, btT randomly in [−η, η];
8.          Generate wtF, btF randomly in [−η, η];
9.          Construct temporal feature representation for the candidate node according to Equation (2);
10.           Construct frequency feature representation for the candidate node according to Equation (3);
11.           Calculate εqT and εqF according to Equation (8);
12.           if min(ε1T,ε2T,⋯,εCT)>0:
13.             Append (wtT,btT) to the set Φ;
14.             LT = LT + 1;
15.           end if
16.           if min(ε1F,ε2F,⋯,εCF)>0:
17.             Append (wtF,btF) to the set Ω;
18.             LF = LF + 1;
19.           end if
20.           t = t + 1
21.      end while
22.   Add (wtT,btT) and (wtF,btF) into ΘT, ΘF;
23.   Solve β according to Equation (7);
24.   Update residual matrix based on Equation (6);
25.end while