The dual convolutional layers before the pooling layers improved the model, to an accuracy of 99.19% over the test set.

Structure 3: LeNet-5

Our next model will be based on LeNet-5 architecture. This structure was proposed by Yann LeCun, in 1989, and was one of the earliest convolutional neural networks. Since the model was designed for 32x32 input data and ours is 28x28, we will apply padding to the first layer. This model applies the hyperbolic tangent activation function and uses strides for average-pooling.