Neural network and Machine learning for image shape recognition