In the picture, there are data and a target in the time series. The data is padded until it reaches the max length. The target is marked by humans. It pins down the starting point and stopping point of the pulse.
The first idea is to encode the time series to be a text-like DNA sequence and then apply machine translation to it. My inspiration comes from English and German translation (aka word replacement).
Update 27 May 2021:
I found a similar experiment in the kaggle
Suppose I use seq2seq neural network train on this dataset. Later on, I test with the same data but shift the time to the right-hand side 1000 points. Will it be able to detect new starting points and new stopping points?
Can a neural network detect the starting point and stopping point?