How can I deal with a time series that contains missing data which means something?
So the value that is missing is not wrong. It's missing on purpose and imputing those missing values would mean a loss of information.
So, you can think of it as something like "measure x only if condition y was met". In my case a certain price is measured only if there are people interested in that on a given day. This leads to a time series with several thousands data points, of which around 40% contains no value.
I want to use a 1D-CNN as part of an anomaly detector in order to find errors in the data. The CNN delivers predictions which are compared to the actual data. If the difference between the prediction and the real data point is above a certain threshold I want to mark that as an anomaly. (the missing_values however are no anomaly)
I thought of using embeddings to deal with missing values but am not sure if this would be the correct way of handling this.