2
$\begingroup$

enter image description here

Considering these are two signals over time, black and red.Following are some of the properties

  1. Every Second a new data point is added over time . There is no control on the generation of the signals/how the signals are generated. Cannot nail down the signal generation under any function or logic.
  2. Each of the signals has its own scale however the scale is always within 0-10 .
  3. On visualisation both the signals looks similar at times and dissimilar at times.

Question

  1. How to find out if the red signal is moving in-sync with the black signal or is out of sync.
    Note - The signals are realtime in nature , the look-back might be a maximum of 60 seconds.
  2. What is the correct approach to solve problems like this?
    I am looking for some direction here.


Edit - Use case

These are two bacterial growths over time . Once both the bacteria population are in sync or async is detected then some action is needed to be taken. This action has to be taken only within 60 seconds of their new movement else the experiment leads to certain implications. It might happen that in a span of 1 hour there are 200 actions taken , quite possible , but the timing of the action and instant when both bacteria's change their trend has to be within 60 seconds.

For example

sync detected - 11:20:36 , trend started- 11:19:47 action - decrease control temperature
async detected -12:31:22 trend started- 12:30:24 action -increase temperature

$\endgroup$
9
  • $\begingroup$ why are you so strongly restricting your look-back time? 60 points isn't much... $\endgroup$ – Marcus Müller Mar 30 '20 at 11:37
  • $\begingroup$ because these data points are coming from IOT sensors and based on the sync or out of sync capability decisions are taken and so as to operate another pump or not. Therefore the look back is restricted $\endgroup$ – Rai Bose Mar 30 '20 at 11:39
  • $\begingroup$ Don't quite follow – these sensors exist for more than 60s, don't they? $\endgroup$ – Marcus Müller Mar 30 '20 at 11:44
  • $\begingroup$ yes they do , let me explain the use case. These are two bacterial growths over time . Once both the bacteria population are in sync or async is detected then some action is needed to be taken. This action has to be taken only within 60 seconds of their new movement else the experiment leads to certain implications. It might happen that in a span of 1 hour there are 200 actions taken , quite possible , but the timing of the action and instant when both bacteria's change their trend has to be within 60 seconds $\endgroup$ – Rai Bose Mar 30 '20 at 11:51
  • $\begingroup$ For example sync detected - 11:20:36 , trend started- 11:19:47 action - decrease control temperature async detected -12:31:22 trend started- 12:30:24 action -increase temperature $\endgroup$ – Rai Bose Mar 30 '20 at 11:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.