I'm currently working on an application that can be used to determine when a signal changes due to a server delay. Essentially, I have an API that is used to output data to a UI. However, for reasons I have yet to discover, there is the occasional lapse in server service, resulting in my API simply transmitting old data to the UI resulting in small intermittent flat-lines.
The above is a sample of one of the signals, where each color represents a days worth of data, and I'm getting a data point every 5 minutes. As you can see, in the middle, the data is being delayed. Note that all signal segments have the same number of data points; the data in the bad sections is simply repeated.
Does anybody know of an effective metric to distinguish between the bad and good signals? I need to be able to look at the data sample for a single day and determine if its bad or not. My first thought was to look at the frequency spectrum (Fourier Space) and see what the frequency distribution is like, but I cant seem to be able to isolate any one reliable metric.
Any Help is greatly appreciated!