A system and a method of analyzing an electrophysiological signal, wherein the system comprises an acquisition device for acquiring a test electrophysiological signal associated with an anatomical part of a patient and a processor configured to divide a cycle of the test electrophysiological signal into test time windows, compare a test signal value of each of the test time windows with a reference signal value of reference time windows of the reference segments of respective representations representing respective predetermined morphological classes to obtain a difference, define grid points associated with respective test time windows, respective reference time windows and respective differences, obtain a warping path using the grid points non-linearly in a predetermined order, sum differences along the grid points of each of the warping paths to obtain a cumulative distance for each of the warping paths, and classify the test electrophysiological signal into one of the respective predetermined morphological classes corresponding to the warping path of the respective representation having the least cumulative distance.