A robust modular spiking neural networks training methodology for time-series datasets