For example, LSTM is applicable to tasks such as unsegmented, connected handwriting recognition, speech recognition and anomaly detection in network traffic or IDSs (intrusion detection systems) . A common LSTM unit is composed of a cell, an input gate, an output gate and a forget gate.