1. Introduction
Reservoir Computing (RC) is an emerging machine-learning paradigm that originated in the early 2000s [
1] and leverages high-dimensional dynamical systems (reservoirs) for nonlinear transformations [
2] to learn spatiotemporal features and patterns in complex time series [
3]. It is built on three levels: an Input layer, a Reservoir layer, and a Readout layer. The Input layer maps the input data into the reservoir via sparse, randomly weighted connections [
4]. It is responsible for preprocessing data and ensuring that incoming signals activate the reservoir properly [
5]. The Reservoir layer is the computational core of this model, as it is responsible for transforming the input into a high-dimensional representation, also referred to as states, where complex patterns and relationships are more easily discernible [
6]. It comprises many interconnected neurons (computational units) with fixed-weight synapses (or connections). By this definition, the reservoir can be considered a type of Artificial Neural Network (ANN), specifically a Recurrent Neural Network (RNN), which allows the reservoir to preserve historical information [
2]. Finally, the Readout layer serves as the output segment of the model, mapping the states produced by the Reservoir layer into a lower number of desired outputs [
6]. Typically, a simple linear model, such as the Perceptron [
7], is sufficient as a Readout function, and this is the only part of the model that requires a training process, which makes the RC a highly computationally efficient approach [
8] when compared with Deep Learning (DL) algorithms. This is depicted in
Figure 1.
Historically, two main RC representatives have been independently developed: the Echo State Network (ESN) [
4] and the Liquid State Machine (LSM) [
2]. The principal difference between them is that ESN uses a traditional RNN as a reservoir, where the neurons are continuous-valued units with traditional activation functions, such as the Rectified Linear Unit (ReLU). In contrast, LSM uses reservoirs, often referred to in this context as Liquids, of Recurrent Spiking Neural Networks (R-SNN) with biologically inspired spiking neurons. While ESN effectively models continuous-valued temporal signals, LSM enables precise spike timing and millisecond-scale temporal resolution. Moreover, experimental comparisons have shown that the performance of reservoir computing models depends strongly on reservoir dynamics and connectivity [
9].
Although deep recurrent architectures such as Long Short-Term Memory (LSTM), Gated Recurrent Unit (GRU), and Transformer-based models have achieved remarkable performance on temporal tasks, they require full backpropagation through time, large labeled datasets, and substantial computational resources. In contrast, LSMs decouple the nonlinear temporal representation (reservoir) from the learning process (readout), thereby enabling efficient training while preserving rich dynamical representations and reducing computational cost [
10]. Moreover, when dealing with event-based or spike-driven data, spiking reservoirs naturally preserve temporal precision without requiring continuous-valued approximations, making LSMs suitable for resource-constrained environments, such as embedded systems, edge devices, and neuromorphic hardware platforms, where memory capacity, energy consumption, and processing power are limited [
11,
12]. Therefore, rather than competing directly with fully trained deep architectures, this work focuses on enhancing the internal dynamics of LSM reservoirs to improve performance while preserving computational efficiency.
Spiking neuron models aim to capture the temporal dynamics of biological neurons by representing information through discrete spikes. Among the models proposed in the literature, the Hodgkin–Huxley model [
13] provides a detailed biophysical description of neuronal activity but requires significant computational resources. For this reason, simplified models such as the Leaky Integrate-and-Fire (LIF) [
14] neuron are commonly used in large-scale simulations, as they preserve the essential temporal dynamics while maintaining computational efficiency. In this work, we adopt the LIF model implemented in the NEST simulator [
15].
Despite the LIF model’s simplicity, which makes it less plausible, its neuron parameters can encapsulate different temporal dynamics. In turn, this contributes to the proficiency of LSM in several areas, such as speech recognition [
16,
17,
18], image and vision recognition [
19,
20,
21], biomedical applications [
22], robotics and control [
23,
24], among others. The possibility of avoiding explicit training is especially advantageous when using LSM since the synaptic plasticity mechanisms of R-SNNs require complex and computationally demanding training algorithms [
25,
26,
27].
Since their formal introduction, LSMs have been associated with two cardinal attributes: the Separation Property (SP) and the Approximation Property (AP). In the context of classification tasks, SP measures the liquid’s ability to distinguish inputs belonging to different classes, whereas AP relates to the similarities in the liquid’s representation of two inputs belonging to the same class [
28]; in other words, SP ensures that different inputs produce different liquid states and AP ensures that similar inputs produce similar liquid states.
Both of these metrics depend, to different degrees, on the internal complexity and dynamics of the liquid; consequently, the overall performance of an LMS is strongly influenced by its reservoir configuration. In its original formulation, Maass et al. [
23] proposed that a randomly generated liquid would suffice to achieve adequate performance for a given task. That is, classical LSMs assume a fixed, untrained reservoir. However, this approach does not offer any solid support or assurance for complex tasks.
Later, Norton & Ventura [
29,
30,
31] introduced an unsupervised adaptation mechanism known as Separation Driven Synaptic Modification (SDSM). Their method iteratively improves the SP by modifying synaptic weights using Hebbian Learning, while keeping the neuron model and parameters unchanged. This approximation introduces a form of reservoir training that remains unsupervised and self-organized. They tested their implementation using synthetic datasets proposed as frequency and pattern recognition tasks.
In contrast, recent approaches treat the liquid not as a fixed reservoir but as a trainable R-SNN, thereby relaxing the canonical LSM definition. This relaxation enables the enhancement of the liquid either through training-adaptation processes or by optimization techniques. Notably, R-SNNs have been successfully applied to temporal pattern recognition and decision-making tasks using learning rules such as Spike-Time Dependent Plasticity (STDP) and surrogate gradient methods [
26,
27,
32,
33]. However, these approaches typically involve computationally expensive training processes and require careful parameter tuning, which limits their scalability and practical applicability.
Among optimization strategies, metaheuristics such as Evolutionary Computation (EC) have shown promising results. EC encompasses various subfields, with Evolutionary Algorithms (EAs) and Swarm Intelligence (SI) algorithms being two of the most prominent. Generally, these methods take a set of potential solutions (or individuals) for a given problem, where a fitness function measures the aptitude of each individual. This way, the individuals are ranked according to a criterion. Therefore, through this competition, individuals are combined, eliminated, and substituted by new ones in every execution (generation or epoch) of the algorithm.
Figure 2 depicts the general elements that most EA techniques follow. These algorithms are well-suited to LSM and R-SNN optimization due to their ability to explore high-dimensional spaces without relying on gradient information [
32].
Moreover, Neuroevolution (NE) utilizes EC methods to optimize ANNs by searching the space of potential solutions of architectures and other parameters, such as weights [
35], for a given task. Yaqoob & Wróbel [
36] used a Genetic Algorithm (GA) to optimize the weights and connections in an R-SNN. The task was to detect a temporal pattern in the form of consecutive symbols in a continuous input stream. To achieve this, each symbol generated a temporal activation, delivered by the input neurons, that was then propagated throughout the rest of the network. They found that very small SNNs (with only a few neurons) could accurately recognize the pattern. As a neural model, they used AdEx neurons, an adaptation of the LIF model, with fixed parameters. Although the representation allowed for unlimited connections and nodes, it limited the number of interneurons to two.
Recent research has explored hierarchical extensions of reservoir computing, where multiple reservoirs are stacked to increase representational capacity [
37]. Tian et al. [
38] proposed an NE framework for designing a Multi-Liquid State Machine (MLSM); different liquids are disposed of in a layer-like structure. The authors propose a three-stage search strategy: first, a random architecture is optimized by moving liquids from one layer to another. Second, the number of neurons in each liquid of the LSM of the past stage is optimized while preserving the total number of neurons. Third, the framework optimizes the liquids’ internal parameters of the last LSM, such as the percentage of connectivity and excitatory neuron ratio. Each optimization step uses a Simulated Annealing (SA) algorithm. The framework is evaluated on two real-world benchmark datasets: the image dataset N-MNIST and the Free Spoken Digit Dataset (FSDD). The results show that the proposed framework can effectively search for high-performance LSM architectures while reducing the computational cost compared to manual search. Nevertheless, they rely on a complex structure comprised of 1000 spiking neurons and only consider connectivity in a limited manner (e.g., as a connectivity percentage), without exploring neuron configurations.
Zhou et al. [
39] presented a framework named Generative Liquid State Machine (GLSM). The paper proposes a Cooperative Co-Evolutionary (CCE) algorithm for designing the reservoir architecture of LSMs using a Random Forest Surrogate (RFS) model. The algorithm treats the reservoir as a modular structure comprising subnetworks, utilizing the RFS model to minimize the computational cost of evaluating candidate architectures. A GA is used to evolve structures, the number of neurons, neuron thresholds, and neuron delays, while a learning algorithm is used to modify synaptic weights and delays. The results demonstrate that the proposed method effectively optimizes the LSM reservoir architecture. Nevertheless, this approach contemplates a fixed set of subnetworks and sub-reservoir configurations, limiting the neuron’s possibilities. Although they optimize the number of neurons, the exact number used in their implementations is not clearly specified. Modular GLSM-based reservoirs have also been explored for multi-task learning [
40], where shared reservoir structures are used to address multiple tasks within a single framework.
Most recently, Alvarez-Canchila et al. [
41] employed Particle Swarm Optimization (PSO), an SI approach, to optimize the SP. Each particle (solution) contained the synaptic weights of all connections in a liquid built with 64 neurons, predefined before every PSO run. They test it using the same tasks as Norton & Ventura [
31], achieving accuracy levels comparable to those reported previously.
In summary, LSMs present several advantages for spatiotemporal learning tasks compared to conventional machine learning models. Their event-driven computation allows neurons to process information only when spikes occur [
2,
3], thereby reducing unnecessary operations and making them particularly suitable for implementation on neuromorphic hardware, where energy consumption can be significantly lower than in traditional deep learning architectures [
11,
12]. Moreover, the reservoir computing paradigm simplifies training by decoupling the dynamic transformation performed by the reservoir from the learning stage performed by the readout [
3,
10]. However, most works focus primarily on optimizing synaptic weights [
31,
41] or on predefined architectural structures [
38,
39], while neuron configuration and neuron positions in the liquid have received limited attention. In particular:
Weight-based optimization methods (PSO, GA over synapses) assume a fixed neuron model and topology.
Multi-liquid approaches optimize macro-architecture but do not explore intra-liquid neuronal diversity.
Modular approaches constrain the search space to predefined substructures.
Consequently, the joint optimization of neuron configurations and spatial positions remains unexplored.
In this work, a GA method is proposed as an NE approach to optimize liquid performance. The decision to employ a GA is based on its simplicity, proven effectiveness, and modular structure. Its population-based nature enables broad exploration of the search space, while its straightforward operators enable flexible adaptation to the neuroevolutionary context. This optimization process targets two key aspects of the liquid: the neuron configuration and the neuron positions within it. By allowing each neuron to operate under distinct parameter configurations, the resulting liquid can exhibit neuronal heterogeneity, meaning that individual neurons follow different dynamical regimes. Such heterogeneity has been suggested to enrich the computational dynamics of spiking neural networks and reservoir systems [
42].
Neuron positions, in turn, contribute to establishing spatial diversity that shapes the reservoir’s topological structure and connectivity. By determining the spatial arrangement of neurons, neuron positions shape inter-neuronal distances, which in turn affect both the probability of connections and the strength of synaptic interactions, thereby impacting the overall liquid dynamics. Unlike some approaches that primarily optimize synaptic weights, this work focuses on evolving neuron-specific configurations and spatial organization within the liquid. This design keeps the dimensionality of the encoding proportional to the number of neurons, which helps control the size of the search space and makes the optimization tractable even for larger reservoirs.
In previous work [
43], an ablation analysis evaluated the impact of neuron configurations and positions. The results showed that evolving neuron configurations alone achieved performance comparable to using configurations together with spatial positions, with no statistically significant difference between these variants. In contrast, evolving only the neuron positions yielded lower performance. These findings suggest that neuron configurations play the primary role, while spatial positions provide complementary structural diversity.
To validate the proposed method, we evaluate it on four synthetic classification tasks, similar to Norton & Ventura [
31] and Alvarez-Canchila et al. [
41], and on two classical real-world datasets, N-MNIST and FSDD.
The contributions of this work are as follows:
We introduce a GA-based neuroevolution framework that optimizes both neuron configurations and spatial placement within LSM reservoirs, in contrast to previous approaches that primarily optimize synaptic weights or connectivity structures.
We demonstrate that evolving neuron configurations and spatial positions lead to improved classification performance, highlighting neuron parameter configurations and spatial organization as effective optimization targets in LSM design without requiring direct optimization of synaptic weights.
We propose a compact encoding scheme that enables indirect optimization of connectivity and synaptic interactions, achieving a linear scaling of the encoding size compared to the quadratic growth of direct weight-based representations.
We show that competitive performance can be achieved with compact reservoirs composed of a small number of neurons, providing a more stable and efficient alternative to existing approaches that rely on substantially larger reservoirs.
The rest of this paper is organized as follows:
Section 2 presents the materials and methods used in this study, beginning with a description of the datasets employed (
Section 2.1), followed by an overview of the LSM model (
Section 2.2) and the GA utilized for optimization (
Section 2.3). The section concludes with a detailed explanation of the overall methodology (
Section 2.4).
Section 3 reports the experimental results, including performance metrics and comparative evaluations. In
Section 4, we analyze and interpret the outcomes, highlighting the implications of the proposed approach. Finally, we outline directions for future work.
4. Discussion & Conclusions
The LSM model, an RC approach that combines R-SNN with simple linear classification methods, excels in several spatiotemporal applications. Among their qualities, LSMs harness the complexity of neuron models, such as the LIF model, to learn spatiotemporal features and patterns in complex time series. Although the traditional LSM formulation assumes a fixed, untrained liquid (reservoir), recent research has relaxed this constraint by introducing training or optimization strategies for the R-SNN, thereby enhancing the liquid capabilities. Moreover, most state-of-the-art (SOTA) methods do not exploit the neuron parameters available, such as the refractory period (), the membrane time constant (), and the spike threshold (), to optimize the performance of the liquid and reside entirely on the synaptic connections.
In this work, a novel NE approach for optimizing LSM based on a GA encoding neuron configurations and position was presented. To validate the method, two different approaches were used. First, four synthetic classification tasks, namely a Frequency Recognition task with five classes (FR5) and three Pattern Recognition tasks with 4 (PR4), 8 (PR8), and 12 (PR12) classes. Results were compared with two similar approaches: the SDSM learning technique introduced by Norton & Ventura [
31] and a PSO metaheuristic method proposed by Alvarez-Canchila et al. [
41]. Second, two classical datasets were utilized, N-MNIST and FSDD, and the results were compared against SOTA methods proposed by Tian et al. [
38] and Zhou et al. [
39]. To manage computational cost, the size of the liquid was limited to 20 LIF neurons for the synthetic datasets and 300 LIF neurons for the N-MNIST and the FSDD.
The method achieved SOTA results in the synthetic tasks, with mean accuracies of in FR5, in PR4, in PR8, and in PR12. Furthermore, our approach yielded better results across all statistical metrics investigated, with significant differences proven by the Kruskal–Wallis test, except for PR12. Further examination of the PR12 case revealed that the PSO method achieved higher top-end performance while exhibiting several suboptimal runs (e.g., the worst value of compared to for our GA approach). The number of neurons was increased to match the 64 neurons from the PSO proposal, resulting in a mean accuracy of in PR12 with no significant difference.
Our results suggest that, while PSO was capable of reaching competitive results, our NE GA-based approach yielded more stable performance across runs, showing a more robust and generalizable approach. Incorporating neuron configurations into the optimization process proved to be an efficient strategy, as it enabled the exploration of diverse and dynamic regimes within the liquid, leading to improved task-specific performance without increasing the network size.
The method achieved SOTA results in the synthetic tasks, with mean accuracies of in FR5, in PR4, in PR8, and in PR12. Furthermore, our approach yielded better results across all statistical metrics investigated, with significant differences confirmed by the Kruskal–Wallis test, except for PR12. Further analysis of this case revealed that, although the PSO method exhibited greater variability across runs, including several suboptimal results (e.g., a worst value of compared to for our GA approach). Increasing the number of neurons to 64, matching the PSO configuration, improved the mean accuracy to with no statistically significant difference. Both approaches achieve comparable performance; however, PSO presents a wider distribution with more frequent low-performing outliers, whereas the proposed GA-based method demonstrates more stable and consistent behavior across runs. These results suggest that, while PSO is capable of achieving competitive performance, incorporating neuron configurations into the optimization process enables a more robust and generalizable search, promoting stable solutions without increasing the network size.
The evaluation on N-MNIST and FSDD demonstrated the proposed method’s capacity to be applied beyond synthetic tasks. Although our method did not surpass SOTA accuracy on these datasets, the achieved accuracies of 90.65% on N-MNIST and 81.47% on FSDD remain within close range of reported results. Furthermore, these results were achieved using significantly fewer neurons (300 vs. 1000 in Tian et al. [
38]). Since the computational cost of spiking neural network simulations increases with the number of neurons and synaptic interactions, this reduction suggests improved computational efficiency. This characteristic is particularly relevant for resource-constrained scenarios, where memory, energy consumption, and computational capacity are limited. In such contexts, achieving competitive performance with smaller reservoirs becomes highly advantageous, as it reduces simulation cost while maintaining strong classification capabilities.
The performance improvements observed across several tasks may be related to the heterogeneous nature of the evolved reservoirs. By allowing neurons to operate under different parameter configurations, the proposed encoding enables diverse temporal responses within the liquid. This diversity can enrich the internal dynamics of the reservoir and facilitate improved separation of input patterns in the liquid state space. Similar observations regarding the benefits of neuronal heterogeneity for learning efficiency in spiking neural networks have been reported in previous studies [
42].
Regarding the parameters found during the optimization process, a reduction in the original ranges was observed for the neuron configurations, suggesting that the evolutionary process tends to converge toward more effective regions of the search space. This insight could help guide the search toward more suitable parameter values in future applications. In this context, an additional aspect worth considering is the potential impact of different neuron configurations on neuromorphic hardware implementations. Modern neuromorphic platforms, such as Intel Loihi and SpiNNaker, support configurable neuron parameters, allowing different thresholds, time constants, and refractory periods to be specified for individual neurons [
11,
12]. Therefore, the neuron configurations produced by the evolutionary process may help generate richer reservoir dynamics while remaining compatible with such hardware. However, neuromorphic systems often rely on discrete values or architectural constraints that limit the range of neuron types that can be deployed. Exploring the interaction between evolved neuron configurations and hardware constraints is therefore an interesting direction for future work.
Another key novelty of our proposal lies in the ability to influence the R-SNN’s connectivity indirectly through the spatial arrangement of neurons in the liquid, without explicitly encoding all synaptic connections. In this formulation, neuron positions determine inter-neuronal distances, which in turn affect both the probability of connection and synaptic weights through a Gaussian distance-based rule. Consequently, the encoding shapes the connectivity structure of the reservoir and modulates spike propagation dynamics.
Table 8 presents a comparison between the proposed encoding and a direct weight-encoding approach. In our method, each neuron is represented by a small set of parameters (four configuration values and two spatial coordinates), yielding an encoding size that scales linearly with the number of neurons. In contrast, weight-based approaches must account for all possible synaptic connections, leading to a quadratic growth in dimensionality. Additionally, while such approaches rely entirely on continuous parameters, our encoding combines continuous (five parameters) and binary (polarity) variables, further reducing the effective search space. Although no explicit spatial patterns were observed in the evolved neuron positions, spatial encoding remains a key structural component, enabling the emergence of meaningful connectivity patterns consistent with biological principles such as Peter’s rule [
48].
While the proposed approach demonstrates strong performance across synthetic and real-world tasks, several limitations affect its broader applicability. First, the computational cost of evolving the liquid becomes nontrivial, particularly as the number of neurons increases or when evaluating larger datasets, which constrained the number of trials on N-MNIST and FSDD. Second, although the method achieved competitive performance, it did not surpass SOTA results on real-world benchmarks, suggesting further methodological improvements are needed. Lastly, while neuron configurations led to observable improvements, the contribution of spatial neuron placement remains inconclusive and warrants further analysis.
Future work will focus on extending the experimental evaluation and the optimization framework proposed in this study. This includes testing the approach on additional tasks and more diverse datasets to further validate its generalization capabilities, exploring alternative evolutionary operators, incorporating additional neuron or synaptic parameters (such as external currents) into the encoding, probing the use of surrogate models to approximate the fitness function and reduce evaluation time, and scaling the liquid to larger reservoir sizes.