How to put marker on time series training set

My input is this picture

And I would like to put markers on it and use time series with markers as a label

Two picture are not scaled. Main point is I would like to train RNN classifier and let it be able to mark the starting points and stopping points.

More generalized examples

Question
What is the best function to be marker encoding function?

Topic recurrent-neural-network time-series

Category Data Science

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.