The authors have previously described a method for ectopic beat detection in the electrocardiogram using an auto-associative neural network. Here they present a method that utilises principal component analysis to optimse the complexity of the neural network and uses singular value decomposition to determine the initial values for the weights.