AFPD-DTW: an adaptive flex power detection method for post-processing and real-time applications | Synapse