Skip to main content
. 2021 Jul 19;21(14):4900. doi: 10.3390/s21144900
Algorithm 1. The dynamic spatiotemporal clustering algorithm at time point t of the unsupervised learning process.
Input: Input spike data sp, number of neurons in the SNN model N, number of input variables v, connection weights w[N,N], and parameter α, PSP, STDP, time t
Output: A vector of labelled neurons k, vector of spik events for each cluster
1: Procedure
2: [L V]=size(sp)
3: Fsrc  RN×v, A RN×N
4: For each time point t from the input stream data Do
5: Update w with STDP
6: S=D A D
7: F*=(IαS)1 Fsrc
8: k=arg maxj=1,v F*ij
9: Visualization of the clusters
10: Spatiotemporal rules within each cluster Do
11: If PSP(t)eventthreshold
12: Cluster fires as active event in time t.
13: End if
14: End for
15: Algorithms to generate a set of spatiotemporal rules
16: End of procedure