Sparse reconstruction of ordinary differential equations with inference