Signal translation with Seq2Seq model
I am skeptical that machine learning is the right tool for this problem.  I would look for a more direct solution, perhaps using peak detection or changepoint detection, or some other form of classical method for time-series analysis.
If you do use machine learning, cross-entropy loss is not the right loss for your problem, and you will definitely need to change that.