1. At least one non-transitory computer readable storage medium having instructions encoded thereon that, when executed by one or more processors, result in the following operations for image segmentation, the operations comprising: quantizing pixels of a first image frame; performing a differencing operation between the quantized first image frame and a quantized second image frame to generate a sparse image frame; and applying a neural network to the sparse image frame to generate a segmented image, wherein the neural network is trained on a sparse training image frame generated by performing a differencing operation between a quantized first training image frame and a quantized second training image frame.