Text this: Convolutional neural networks and deep belief networks for analysing imbalanced class issue in handwritten dataset