Method and apparatus for detection of signal time sequences with independent of signal variations learning