Automatic classification of heartbeats using neural network classifier based on a bayesian framework