A computer software product for identifying ablation target locations, including a non-transitory computer readable storage medium in which computer program instructions are stored, which instructions, when executed by a computer, cause the computer to perform the steps of:
- measuring electrogram (EGM) signals;
- performing three-dimensional mapping of the EGM signals by creating a potential duration map (PDM), the PDM being created by:
- defining a window of interest (WOI) having a detected heartbeat cycle length,
- finding a potential duration start for the WOI including at least:
- (a) determining whether two consecutive peaks have a same sign and a same peak absolute value less than a predetermined threshold, (b) comparing the peak absolute value to the predetermined threshold, and (c) marking the potential duration start based at least on steps (a) and (b),
- finding a potential duration end for the WOI including at least:
- (d) comparing a duration of the two consecutive peaks to a first predetermined duration and a second predetermined duration, (e) determining whether the two consecutive peaks have the same sign and comparing the duration of the two consecutive peaks to the first predetermined duration and the second predetermined duration, and (f) marking the potential duration end based at least on steps (d) and (e),
- calculating a potential duration value as a difference between the potential duration start and the potential duration end, and
- creating the PDM based on the potential duration value;
- and
- identifying ablation target locations based on the PDM.