Machine Learning (ML) Building a Convolution Neural Network (CNN) for handwritten digit recognition in Python using Keras We built a Convolution Neural Network (CNN) for handwritten digit recognition from scratch in python. We will be using Keras API with TensorFlow backend and use handwritten digits dataset from Kaggle.