1. A method of reconstructing a signal encoded with a time encoding machine (TEM) using a recurrent neural network, comprising: a. receiving a TEM-encoded signal; b. processing the TEM-encoded signal for input into a recurrent neural network; c. reconstructing the TEM-encoded signal with the recurrent neural network, comprising: d. formulating the reconstruction into a variational problem having a solution equal to the series of sums of a sequence of functions multiplied by a sequence of coefficients, wherein the coefficients can be obtained by solving a quadratic problem; e. solving the quadratic problem with a recurrent neural network, by integrating time derivatives and providing the outputs back to the recurrent neural network, thereby generating the coefficients for the solution; and f. reconstructing the signal with the coefficients.