1. An apparatus for detecting repeating patterns of anomalous Intramyocardial electrical activity in the heart of a patient, comprising: (a) means for obtaining data on an electrical potential that includes a cardiac component and a respiratory component; (b) means for obtaining respiratory data from the body; and (c) processor electrically associated with the means for obtaining electrical potential data and with the means for obtaining respiratory data, the processor regressing the electrical potential data on the respiratory data to estimate the respiratory component in the electrical potential, said processor aligning the electrical potential data by heart beats and statistically modeling the respiratory data with the electrical potential data in alignment across multiple heart beats the processor also determining whether anomalous Intramyocardial activity is present by finding the difference between the electrical potential data and the estimated respiratory component.