Figure 3 Image recognition task with TiOx memristor-based neural network simulation in NeuroPack (A) Binary handwritten digits from MNIST dataset cropped to 22 x 22. Dark blue and yellow represent weights 0 and | respectively. (B) - (D) Conductance sets before training (B), after 2000 epochs (C) and after 10000 epochs (D). Conductance spans from 0.0000869S to 0.0004416S, indicating final memristor RSs ranging from around 2264 ohms to 11507 ohms. (E) Concept diagram of spiking neural network used in this image recognition task. In practice the network is fully connected. 22 x 22 -pixel images are unrolled to 484-bit input sending to 484 input neurons correspondingly as input spikes. In this task, a two-layer network with 484 input neurons and 10 output neurons is applied. (F) Accuracy curves over the training process for both memristor version and non-memristor version. Minibatch size of 100 are used to calculate the accuracy changes during the training. Provided 2000 images from a separated test set memristor version and non-memristor version achieved accuracy of 82.00% and 83.55% respectively.