A machine learning approach for gesture recognition with a lensless smart sensor system