Figure 1.
(a) The LSTM many-to-many architecture for respiratory sequence prediction. The input vector is denoted by xt, the hidden layer vector is denoted by ht, and the output vector is denoted by yt. (b) A schematic diagram of a basic LSTM block as delineated in (a) by the red dash lines. The LSTM block consists of four parts: a memory cell st, an input gate it, a forget gate ft and an output gate ot. The updates of each part and the output of the LSTM block are illustrated in equations (1)–(6).