Introduction

The brain is an incredible computing system that has served as an inspiration for the construction of circuits for computational hardware and software1,2,3,4,5. Brain-inspired machine learning-based software techniques have accomplished various feats in terms of handling image, signal, and natural language-based challenges1,2, but they continue to suffer in terms of many orders of high energy consumption3. One key explanation for the computing hardware’s inadequacies in comparison to the brain is its architecture6,7. On the one hand, the brain uses a bottom-up strategy for construction, using biochemical ingredients in liquid and electrical activity, while existing software and hardware, on the other hand, use a top-down approach, in which all possible connections must be created before training, and their strengths are modulated during the training process, and weak connections are only precluded8,9. It results in several orders of magnitude higher energy consumption of existing hardware compared to the brain due to fully connected network training, and from a hardware standpoint, it is extremely difficult to create fully connected networks with a higher number of neurons due to space constraints for dense connectivity. Thus, the biological strategy of generating just relevant connections might be a valuable option for conserving resources, space, and energy usage in computer hardware6,7,10,11. With this inspiration, the materials engineering technique of electropolymerization12,13 has been explored to create electrical activity-driven connections15,16,17,18,19,20. Monomers present in the liquid phase polymerize on the electrodes based on electrical activity in these techniques12,13. The connection between the electrodes, in this case, maybe managed by electrical activity between the electrodes, which is important for neuromorphic applications. We recently demonstrated experimentally that signal parameters may be utilized to consistently generate diverse interconnected morphologies14. Koizumi et al. showed the electropolymerization of Poly(3,4-ethylenedioxythiophene) (PEDOT) derivatives and discovered that the propagation was in the form of fiber from the ends of Au bipolar electrodes (BPEs) in the parallel direction to the external electric field16. By adjusting the applied voltage, duty factor, and electrode spacing, Eickenscheidt et al. showed the formation of diverse polymeric forms17. Unlike previous neuromorphic options, the suggested technique is more closely related to biological circumstances and is created from monomers present in the liquid phase, similar to the constituents of neurotransmitters involved in synaptogenesis6,7,10,11. With these dendritic wires, the engineering path has opened up opportunities for neuromorphic computation, and several research groups are investigating electro-polymerization as a viable technique for neuromorphic computing. In this spirit, Akayi-Kasaya et al. demonstrated the suitability of conductive polymer wires derived by bipolar electro polymerization for neuromorphic applications, where the morphology's electro polymerization development is directly related to the learning process of artificial synapses18. Hagiwara et al. demonstrated long-term potentiation and short-term potentiation using the varied frequency of continuous pulses19. Ji et al. built organic electrochemical transistors (OECTs) based on bipolar electropolymerization, and the performance of the OECTs may be modified by adjusting the electropolymerization settings20. Recently, the technique has been explored for neuromorphic functions such as Hebbian learning and pattern recognition21. We have also recently demonstrated short-term and long-term memories for neuromorphic functions with electro-polymerized OECT dendrites22. The electopolymerized dendrite structures, controlled by the parameters can also be employed in several applications needing fractal electrodes such as super capacitors23 heat transfer24, fractal antennas25, fractal absorbers26, solar cells electrodes27, and electronic wire connections28 etc.

Since one can employ different conditions of chemical material type, experimental conditions, electrical parameters, and electrode geometry configurations, it is important to understand the phenomena, generic dependence of parameters, affecting their growth process to well tune their morphologies for desired connection types. In all of the preceding situations, the experimental investigations primarily highlight the growth and final pattern of dendritic structures under various electrical activities and experimental settings. Very recently, the potential generated in the process has been attempted to be mapped by electrochemiluminescence29. However, since the growth occurs from one specific composition of chemical species diluted or dispersed in the liquid phase, it is beyond the experimental and optical microscopy scope to see the motion and deposition of such ingredients forming a particular morphology and systematically predict it under various chemical compositions. There are currently no modeling methodologies available to describe the evolution of electro-polymerized structures under diverse electrical, chemical and geometrical settings. Ab-initio simulations based on atomic and molecular interactions are not capable of modelling structures with orders of magnitude larger than molecular sizes. Furthermore, the time-varying signal and evolving electrode (due to electro-polymerization on the electrodes) make such simulations challenging to run on a commercial tool. Taking these considerations into account, we present a mesoscale simulations model that incorporates particle interaction and mobility, based on the assumption that mesoscale dendritic morphologies are yielded by charged particle aggregation of oligomers preformed and dispersed in the electrolyte prior to seeding on the electrode. The modeling technique can be useful in understanding the influence of required elements on morphology and in establishing the link between electrical signals and dendrite-morphology. The modeling provided in the paper reflects the many forms of neurons and synapses that are regulated by a few factors such as growth area, pruning time scale, and spatial distribution of ‘neurotrophic particles’30. Apart from the neuromorphic engineering community, the investigation can be an important contribution to different domains of science interested in pattern formation. As an example, uniform to fractal-like atomic growth with growth conditions of Molecular Beam Epitaxy31, coffee ring effects32, based on liquid evaporation conditions and investigation of different morphologies with dc- electrodeposition33,34.

With this in perspective, we attempted to study how electrical factors may be utilized to program Conducting-Polymer Dendritic Interconnections and regulate their morphology. The modeling entails the spatiotemporal mapping of the electric field in the liquid as regulated by the electrical signal applied to the electrodes, motion of the constituent particles in the field, and electro-polymerization on both electrodes, resulting in variable morphologies under different conditions. The paper consists of three sections: (i) Proposed modeling methodology, (ii) Comparison of modeling results with experimental observations, and (iii) Modeling predictions.

Results and discussion

Proposed modeling methodology

Figure 1a represents the experimental setup of the electropolymerization technique, with a drop of aqueous electrolyte containing EDOT monomers, NaPSS electrolyte and benzoquinone oxidizing agent. Dendrites were grown by the bipolar alternating current with one electrode connected to time-varying signal and the other connected to the ground. Figure 1b depicts the morphology of PEDOT, with dendritic branches extending towards the opposite electrodes. Furthermore, imaging of the growing process reveals that particular particles may be traveling between the electrodes during the process. The characteristics of time-varying signals can be used to modulate the geometry of dendrites. One can achieve wire-like, fractal, engulfing nature of dendrites by playing with electrical parameters such as applied voltage, frequency, duty cycle and offset etc. 14 (see Fig. 1c,d for a few examples). From the experimental perspective, one can only perform the imaging of the deposited conducting polymer morphology occurring on the electrodes. In order to model the experimental phenomena, herein, we simulate a simplified version of the electrodeposition problem on the electrode considering the necessary ingredients. In the electropolymerization process, one can expect monomers to become oligomers and higher sizes, which can be carrying the charge and hence driven by the electric field. Alternatively, one can consider the motion of concentration limited PSS- moving with the electric field, activating the growth of PEDOT on the electrodes. Irrespective of the identity of charge carrier (which is not clearly known), one can consider generic charge carriers represented as charged moving particles in the simulations. Further, the arguments of the model would be valid for systems in which the nature of charge is opposite; in such a scenario, the deposition would occur on the opposite electrodes, maintaining similar morphologies. The advantage of the generic nature of the particles in the simulations makes the modeling applicable to electro-polymerized materials grown by different species. The parameters of the applied signals applied on the electrodes can control the potential in the liquid. Further, the particles in the liquid phase can be expected to have several particle- particle and particle–fluid forces affecting the motion. Thus, one needs to consider the following ingredients in the model (1) potential distribution variation in the liquid due to time varying signal, (2) motion of particles governed by electrical parameters and various fluid interactions, and (3) electro polymerization of the conducting polymer on the electrode.

Figure 1
figure 1

(a) Experimental setup for bipolar electro-polymerization of PEDOT consisting of an aqueous drop containing monomers of PEDOT (EDOT), benzoquinone (BQ) as an oxidizing agent, and sodium polystyrene sulfonate (NaPSS) as electrolyte and dopant for the dendritic microstructures. A specific periodic signal is applied on one of the Au wire electrodes, while the other Au wire electrode is at the ground. (b) Optical image of PEDOT morphology during the growth process (extracted from the video). The green circle region represents the particles movement between the electrodes. (c,d) Morphologies of polymerized materials formed for different electrical signals14. (e) Simulation geometry for electro-polymerization by considering motion and attachment of particles on the electrodes. The complete box represents the liquid, gray lines represent the electrodes connected to a specific signal, the white points represent the moving particles, and black points represent the polymerized particles on the electrodes. The spatiotemporal potential map is evaluated based on the applied waveform and modified electrode, simulation parameters are listed in Table 1. (f) The motion of a particle is driven by combined contribution of scattering and electric field motion. The particle is made to move in any direction with the probability based on effective forces. (g) Parameters of the signal applied on the electrodes. (h) With the voltage signal (shown in gray), the voltage experienced at the dielectric surface is calculated based on capacitive-resistance time scales (shown in blue and red).

Table 1 Simulation parameters used in the study compared with the corresponding experimental values.

For the electro-polymerization, the two electrodes are biased with AC signal, with \(2V_{P}\) being peak to peak voltage, D being duty cycle (0.5 for symmetrical pulse) and \(V_{off}\) being DC voltage offset. The potential map in the liquid can be calculated based on Laplace equation \(\nabla^{2} V = 0\) by defining the voltage signal as the boundary conditions on the electrodes. The particle motion located at x,y,z can be written in terms of electric drift, viscous stress and stochastic scattering as:

$$m \left( {\frac{{d^{2} x}}{{dt^{2} }} + \frac{{d^{2} y}}{{dt^{2} }} + \frac{{d^{2} z}}{{dt^{2} }}} \right) = - q\frac{{\partial V\left( {x,y,z,t} \right)}}{\partial x} + \frac{{\partial V\left( {x,y,z,t} \right)}}{\partial y} + \frac{{\partial V\left( {x,y,z,t} \right)}}{\partial z} - \frac{1}{\mu }\left( {\frac{dx}{{dt}} + \frac{dy}{{dt}} + \frac{dz}{{dt}}} \right) + \eta (t)$$
(1)

Here, \(q\) and m are respectively the charge and mass of the individual agglomerated particle. Based on Stock’s relation, the mobility of the particle (\(\mu\)) depends on particle radius, r and viscosity of liquid, \(\nu\) which are material specific parameters as \(\mu = ~\frac{1}{{6\pi \nu r}}\). The ƞ(t) has a Gaussian probability distribution with correlation function \(\left\langle {\eta_{i}\, \eta_{j} } \right\rangle\) = 2 \(\mu k_{B} T_p\) \(\delta _{{i,j}} ~\delta \left( {t - t^{\prime}} \right)\) with i and j being components, \(k_{B}\) as Boltzmann constant and Tp as the temperature35. The above equation can be used to compute the concentration C(x,y,z, t) of particles based on electric field and stochastic scattering. With NaPSS as electrolyte, electrochemical double layer (EDLA) is formed on the electrode with ions of PSS- on the anode and Na+ on the cathode with assumed R–C time constant of τ and voltage across double layer as \(V_{D}\). Consider \(V_{A}\) and \(V_{B}\) being the potential on the surface of dielectric double layer on which further deposition takes place. The variation in potential during a pulse, for different \(t' \) ∈ (0,T) can be written as:

For \(t' \)

$$V_{A} \left( t' \right) = V_{off} + V_{P} - V_{D} \left( {1 - e^{{ - \frac{t'}{\tau }}} } \right) .$$
(2)
$$V_{B} \left( t' \right) = V_{D} \left( {1 - e^{{ - \frac{t'}{\tau }}} } \right)$$
(3)

Consider a charged particle at location P(x,y,z) close to electrode A. The oxidation of this charge carrier depends on the voltage difference between the charge carrier, \(V\left( {x,y,z,t} \right)\) and the EDLA, \(V_{A}\) considering threshold voltage, \(V_{T}\). The sticking probability (S) in this case is represented as sigmoidal function with \(\alpha\) a material-electro polymerization specific parameter, controlling the increase in sticking per unit voltage difference. Further, the rate of sticking depends on the local concentration of charged EDOT oligomer particles near the electrodes.

$${\text{n EDOT }}\left( {{\text{aq}}.} \right)~\mathop \to \limits_{{nH^{ + } }}^{{ne^{ - } }} ~{\text{PEDOT }}({\text{electrode}})$$

The sticking probability,\(S_{A} (t')\) per particle can be written as

$$S_{A} (t') = \frac{1}{{1 + e^{{ - \alpha \left( {V_{A} \left( t' \right) - V\left( {x,y,z,t} \right) - V_{T} } \right)}} }}$$
(4)

Rate of growth, \(R_{A} \left( t \right)\) depends on the concentration of EDOT in the neighborhood of electrode \(C_{A}(t)\) and the sticking probability, \(S_{A}(t')\) as

$$R_{A} \left( t \right) = \frac{1}{{1 + e^{{ - \alpha \left( {V_{A}(t') - V\left( {x,y,z,t} \right) - V_{T} } \right)}} }}C_{A} \left( t \right)$$
(5)

With similar arguments, for \(t' > D\) the rate of deposition on electrode B, \(R_{B} \left( t \right)\) depends on potential at the dielectric layer.

$$V_{A} \left( t' \right) = V_{off} + V_{D} \left( {1 - e^{{ - \frac{t' - D}{\tau }}} } \right)$$
(6)
$$V_{B} \left( t' \right) = V_{p} - V_{D} \left( {1 - e^{{ - \frac{t' - D}{\tau }}} } \right)$$
(7)
$$S_{B} \left( t' \right) = \frac{1}{{1 + e^{{ - \alpha \left( {V_{B} \left( t' \right) - V\left( {x,y,z,t} \right) - V_{T} } \right)}} }}$$
(8)
$$R_{B}(t) = \frac{1}{{1 + e^{{ - \alpha \left( {V_{B}(t') - V\left( {x,y,z,t} \right) - V_{T} } \right)}} }}C_{B} \left( t \right)$$
(9)

As discussed, the formation of dendritic patterns is influenced by several parameters, including particle concentration, dielectric and charge properties, fluid–fluid and fluid-particle interactions, and chemical and thermodynamics influencing the electro-polymerization process. The majority of these important properties, however, cannot be measured directly during the experiments, and so their values cannot be plugged into the model. Furthermore, the experiments span a range of time and distance scales involving a growth time of ~ 100 s with a pulse width of ~ 1 ms and electrode spacing of ~ 240 µm with particle sizes of few nanometers. To have one to one mapping of the experimental problems, one might need to model the potential map of 3D box of mm dimension, containing Avogadro number of particles (10 mM monomer concentration), and studying the motion and sticking of individual particles for an order of \(10^{6}\) (1000 Hz for 500 s) duty cycles, which is not computationally feasible for parameters study. As a result, we evaluated a simplified version of the problem by inserting relevant components into the model and studying the evolution of dendritic morphology by altering the electrical and related parameters one at a time. For better readability, 100-simulation time steps is treated as 1 s, yielding (100 × Simulation time steps)-1 as \({\text{ f}}_{{0}}\). Thus, if the signal’s time-period is α simulation time units, the frequency of the signal is \(\frac{100}{\alpha }\) \({\text{f}}_{{0}}\). For further miniaturized experimental settings including submicrometer electrode spacing, which has yet to be experimentally explored, the modeling can be one to one mapped. As a result, the given generic model will aid in understanding the generality of the process as well as the qualitative nature of the type of morphological variation with individual parameter change. Figure 1e shows the proposed model with two bipolar metal electrodes shown in gray, and charge particles moving in the liquid shown in white. The codes are designed on python for convenience with the computational expensive function of potential calculation written in Fortran language utilizing F2PY interface. The electrodes are biased with the AC signal and spatiotemporal potential map based on the iterative solution of Laplace equation:

$$\begin{aligned} V\left( {x,y,t} \right) & = \frac{1}{8} \left[ {V\left( {x - 1,y - 1,t} \right) + V\left( {x - 1,y,t} \right) + V\left( {x - 1,y + 1,t} \right) + V\left( {x,y - 1,t} \right) + V\left( {x,y + 1,t} \right)} \right. \\&\quad \left. { + V\left( {x + 1,y - 1,t} \right) + { }V\left( {x + 1,y,t} \right) + V\left( {x + 1,y + 1,t} \right)} \right] \\ \end{aligned}$$
(10)

With voltage of electrodes as boundary conditions defined by the signal. The particles’ evolution is simulated based on a model that considers collective contributions of both field-effect electrodynamic drift and scattering (see Fig. 1f). Consider a particle is at O and it would be experiencing unequal electrical fields in all directions and stochastic force. At a short time scale, water can no longer be treated as a continuous fluid, and molecular motion due to thermal fluctuations influences the particle trajectory. To introduce this random value of force, stochastic term ƞ(t) is introduced into the treatment. The velocity-dependent viscosity drift is ignored for simplicity. For the modeling, we have used the noise values of arbitrary scale, accounting for the contribution of stochastic force on particles in contrast to electric field-based deterministic force. The force experienced by a particle at O towards X can be written as:

$$F_{~} \left( {O~ \to X} \right) = ~k\Delta V_{{O \to X}} + \eta *{\text{rand}}()$$
(11)

The constant, k is assumed unity as it depends on mass, charge, and spacing between the pixels which are constant throughout the experiments. Thus the particle would move in the direction where the collective drift based on both these effects (electrical-field assisted and thermally activated) would be higher. The probability of the motion is made proportional to the normalized value of drift along the direction with c being proportionality of constant.

$$P_{~} \left( {O \to X} \right) = ~c \times ~\frac{{\max \left( {F_{~} \left( {O~ \to X} \right)} \right)}}{{\mathop \sum \nolimits_{P}^{{}} F_{~} \left( {O \to X} \right)}}$$
(12)

Since particles would be attracted towards the anode, and repelled by the cathode, thus their transience between both electrodes is ensured by the time varying nature of the voltage signal, according to the time constant of the monitored phenomenon and the frequency range of the applied signal (see Fig. 1g). During the experimental conditions, 10 mM EDOT is utilized for 25 \(\mu L\) of solution accounting for ~ 35 \(\mu\)g of available EDOT, while the EDOT consumption (for dendrites obtained at 5 V) is ~ 9 \(\mu\)g. For simplicity, we have assumed constant particle density. In the simulations, particles that happen to leave the boundaries are made to enter from the opposite direction at random positions to maintain constant concentration conditions ensured in the experimental setup. During the motion of particles with the passage of time, the moving particles can happen to come near the electrode and once it comes near the electrode, it can polymerize and permanently attach to the electrode. Further, the potential value incorporates the drop in voltage at the double layer of the electrode with specific time constant as shown in Fig. 1h, with red and blue colors in contrast to the square signal shown with gray. The probability of particle-electrode attachment is made finite at a location where the particle electrode distance is < 2 pixels, enabling the contact from the straight and diagonal directions. Without enabling the diagonal direction motion, the morphology is seen to be having rectangular artifacts. Further, since the conducting polymer polymerization is enabled by oxidation only if the anode reach the given oxidation potential, particle’s potential shall be taken into account in the probability of attachment to the anode. This is experimentally evidenced, with dendritic growth occurring above 3.5 V as voltage amplitude, and the density of the morphology increases with the amplitude. To introduce voltage dependent oxidation, the attachment probability is made sigmoidal function, considering the voltage difference between the location of the particle and potential of double layer, higher the difference more is the attachment probability (representing oxidation). The stuck particles are made permanently attached to the electrode, as the polymerization process is irreversible. Since the polymerized particles on the electrode are conducting by nature, the deposited particles are considered integral part of the electrode with further oxidation (attachment) on the dielectric surface occurring on the modified electrode surface (no voltage drop across the dendritic structure is taken into account in the model). The potential is recalculated based on the modified electrode geometry, and time varying signal on the electrode. The remaining particles in the liquid are simulated to move in the modified spatial–temporal potential field with the possibility of attachment on the modified electrode with the passage of time, enabling further growth of the polymer morphology. The polymer growth sensitively depends on the motion trajectory and attachment process, both regulated by the electrical conditions. Thus, versatility in the morphology can be seen based on electrical parameters. Supporting Information represents the flow chart of the methodology employed. (Supplementary Figure S1) To quantify the dendritic growth, the density of the morphology is evaluated based on deposited area on both the electrodes. The completion time of the process is defined to quantify the kinetics of the growth and are considered when two dendrites are very close to each other. A term asymmetry is defined to compare dendrites’ morphologies originating from both the electrodes, with the value corresponding to the ratio of dendrite with high density to lower density. The minimum possible value of 1 corresponds to complete symmetrical structure. The error bars are calculated based on multiple simulations utilizing similar conditions and random seed values. The different random seed values changes the initial distribution of particles and random variable in the stochastic process. It should be noted that though in a real situation, the charge particles might be having negligible size as compared to the electrode spacing, and particle size may be variable, however, due to computational simplicity and cost restrictions, we assume the monomer or charge particle to have size of 1 pixel (1/20th of electrode spacing = 12 µm), and other length and time scale also based on simulation parameters. The present modeling parameters might be closer to the experimental system if one would be performing these experiments at much miniaturized conditions. Herein, we qualitatively, compare the model prediction with the experimental findings and predict the growth process in unexplored experimental conditions.

Comparison of modeling results with experimental observations

Figure 2a and Supplementary Video S1 show the growth process observed from modeling prospective with a low frequency of 2.5 f0 and 50% duty cycle and zero offset. The morphology advances towards the opposite electrode with several branches making a fractal structure. Figure 2b and Supplementary Video S2 represent a typical growth process obtained at experimental conditions of 5 V, 20 Hz, 50% duty cycle and zero voltage offset. The growth process takes 600 s, with initiation of growth in both the electrodes, followed by diameter growth and fractal-like morphology growing towards the counter electrode. Furthermore, we see particle motions between the electrodes in the experimental video, which is consistent with the modeling assumption of particles moving between the electrodes. However keeping the conditions same, and only increasing the signal frequency one ends up having wire like growth for increased signal frequency (25 f0). Growth starts from one end followed by growth from other electrode and moving towards each other. In the modeling, (Fig. 2c and Supplementary Video S3) we find that at increasing frequency, the particles tend to localize in the center of the electrodes vibrating minimally with low time period (high frequency) signal. The restricted particles’ motion forces the growth only at the extreme tip of the dendrite, rather than in any other location, offering wire like morphology with the passage of time. Figure 2d and Supplementary Video S4 show the experimental growth of dendrites at higher frequency (850 Hz) resembling the modeling growth process. Note that, the drastic change in fractal-to-wire-like growth cannot be trivially investigated in the experiments, given the distribution of moving particles in the liquid phase. Figure 2e illustrates the images of dendrites obtained for a range of frequencies (f0–50 f0), the morphology is fractal and dense for f0, the morphology becomes thin and less dense with increasing value of frequency, and becomes wire like at very high frequencies. The simulation well matches the experimental observations as shown in Fig. 2f, as morphologies are fractal-like and very dense at 20 Hz, become less branchy and less dense with increasing frequency till 300 Hz, and become wire-like thereafter (see 850 Hz and 900 Hz). In Fig. 2g, we plot the variation in the density of modeled dendrite morphologies obtained at different frequencies. One observes two regimes: (i) the decrease in density with increasing frequency from f0 to 4 f0, and (ii) saturation of density thereafter. In the experiments (Fig. 2h) as well, it is observed that density drops systematically from 20 to 300 Hz, while it saturates at a specific value from 300 to 900 Hz. It is observed that the completion time in modeling and experiments (Fig. 2i,j) both show similar nature; the completion time decreases with increase in frequency in regime I, while it increases in regime II. From the modeling we see that, in regime I, the increase in frequency helps in concentrating the particles near the center of electrodes. The high particle concentration increases the probability of dendrite growth and in turn decreases the completion time. However, in regime (ii) i.e. at very high frequency, the particles are dragged almost at the complete center of electrodes, vibrating minimally at low time-periods (high frequency). The restricted motion of these particles reduces the growth probability, and in turn slows down the process.

Figure 2
figure 2

(a) Simulated images of dendrites growth process for signal frequency of 2.5 f0 (low frequency). (b) Experimental time lapse images of dendrite structure with signal voltage of 5 V and a low signal- frequency of 20 Hz. (c) Simulated images of dendrite morphology at signal frequency of 25 f0 (high frequency) (d) Time lapse images of dendrites obtained from experiments at a high frequency value of 850 Hz. (e) The dendrite morphologies based on modeling for signal frequencies, f0–50 f0, here f0 is defined in terms of simulation time steps of 100. (f) The microscopic binary images of dendrites morphologies obtained under variable frequency conditions ranging from 20 to 900 Hz14. (g) Variation in the density values of modeled morphologies at different electrical signal frequencies. (h) Variation in 2D projected density for experimental morphologies. Variation in completion time for (i) modeled dendrites and (j) experimental dendrites.

Next, we studied the effect of voltage offset, defined as a time invariant (DC) voltage component introduced in the applied periodic signal. Figure 3a shows the dendritic growth process with voltage offset of 2 units on the top electrode. An increased dendrite density is observed at the electrode that experience a positive voltage contribution by the voltage offset. The reason for this behavior can be explained based on increased density of particles and higher probability of attachment. Figure 3b,c compares the morphologies obtained from the modeling and the experimental methodologies at variable voltage offsets. The voltage offset increases asymmetry in both experiments and modeling. Figure 3d represents the systematic variation in the asymmetry with the increase in voltage offset for modeling images for electrode with offset (shown in orange) and counter electrode (shown in magenta). The similar trend is observed in the experimental studies14 (Fig. 3e), wherein the density on the electrode with offset (blue) increases while the density on counter electrode (green) decreases. In this way, the simplified model with few parameters can explain the morphologies obtained for different electrical signals.

Figure 3
figure 3

(a) The growth process of dendrites along with spatio-temporal map for voltage offset of 2 voltage units, demonstrating higher attraction of particles towards the electrode with offset. (b) Modeling images of morphologies for voltage offset of 0–3 voltage units. (c) Experimental images of dendrites morphologies at voltage offsets of 0.1–1 V14. (e) Dendrite density comparison for the modeling images for the electrode with offset (shown in orange) and counter electrode (shown in magenta). (e) Dendrite density comparison for the experimental images for the electrode with offset (shown in blue) and counter electrode (shown in green).

Modeling predictions

Next, we studied parameters others than the voltage signal affecting the growth process of dendrites, which have not yet been systematically studied by experimentalists so far, and could be important points while designing the future experiments.

The monomer concentration is an important aspect in experiments that affects dendritic growth. Figure 4a shows the dendritic growth at increasing particle densities, demonstrating very distinct morphologies for different particle densities: (i) wire-like for N = 70, (ii) fractal and symmetrical at N = 120, and (iii) asymmetrical at N = 250. The findings are consistent with the experimental observations of Ohira et al. wherein, wire like dendrites were obtained in the reduced concentration by glass covering the region during bipolarization process36. According to the simulation, this is due to more attachment events at large particle densities. However, at very high particle density, the structure becomes asymmetrical, despite having similar applied electrical conditions on both electrodes. Because even minor noises initiate growth in any of the electrodes, which operate as the nucleating center, and generate a cascade effect that triggers attachments of surrounding particles for additional growth. Many particles can adhere to the nucleating centers in a short time interval with increased particle density. As a result, excessive particle density might result in uneven growth and a winner-takes-all situation caused by noise.We have tried several initial distribution of particles, the error bar in Fig. 4h corresponds to multiple simulations. The error bar is minimal for lower particle densities, indicating their repeatability for initial distribution and stochastic process. The error bar, on the other hand, is substantially larger for simulations with greater particle densities, demonstrating the sensitive role of initial particle distribution and stochastic effects similar to butterfly effect. The time evolution of the growth process shown in Fig. 4b strengthens the claim as the growth is uniform for lower particle densities, while the growth process becomes fast, erratic and steps like for higher particle densities, manifesting the growth of several particles in a small interval. As shown in Fig. 4c, increasing particle density increases the possibility of attachment and hence density, which rises from N = 70 to N = 200 and saturates further. The growth rate can be quantified in terms of completion time as shown in Fig. 4d, it drops systematically from N 70 to N = 175 and nearly becomes constant further. It is observed that the asymmetry value (a parameter used to compare dendrites’ morphologies originating from both the electrodes) is below 2 for dendrites N = 70 to N = 150, while the value rises significantly further with an asymmetry value above 4 for N = 250. (Fig. 4e) Thus, without any asymmetry in electrical parameters, one can end up in asymmetrical structures based on intrinsic growth processes with higher particle densities.

Figure 4
figure 4

Effect of simulation parameters on the growth process. (a) The dendrites obtained at variable particle density N = 70, 120 and 250. (b) The growth process for variable particle density. (c) The density of dendrites before being close to each other. (d) The variation in completion time with increase in particles density and (e) asymmetry parameter compared for dendrites obtained for different particle densities. (f) Various morphologies at increasing value of noise (ƞ). (g) The time evolution of dendrites’ density for variable noise values. (h) The density of dendrites before completion and (i) corresponding completion time for variable noise values. (j) Asymmetry parameter compared for dendrites obtained at different noise values.

The motion of the particles is regulated by the electric field and thermally activated random motion (scattering). To understand the impact of scattering as a random contribution in the dendritic growth, the growth has been studied at different values of noise (ƞ) under constant signal conditions. If we see the effect of noise on the morphologies (Fig. 4f), at very low noise (ƞ < 0.2), there is no growth on any of the electrodes, with the increasing noise the growth turns to wire like (ƞ = 0.2), and with medium noise the growth is bulk fractal structure (ƞ = 0.5). On the other hand, for very high noise (ƞ = 0.7), the growth starts occurring on the electrode wire in the transversal direction. The reasons for these effects can be explained based on the difference in particle distribution at variable noise levels. Due to the relatively higher value of the electric field at low noise levels, the particles are solely governed by the field, since the signal changes the polarity based on the periodic signal, hence the particles concentrate near the center. At very low noise, the particles are frozen in the mid of electrodes (ƞ < 0.2), leading to no growth. With increasing contribution of the noise, particles can move from the center towards the electrode. At ƞ = 0.2, only a few particles can reach the electrode, it is similar to the case of less concentration (say N = 70) studied previously, and hence wire-like growth is manifested. The increase in noise (ƞ = 0.5) increases the particle density and hence fractal structure is obtained. However, at very high noise, the motion is not controlled by the field, and high density of particles get available throughout the system, increasing the transversal growth on the electrode wires. The growth process of wire (ƞ = 0.2), plotted in Fig. 4g shows that the wire growth takes a certain threshold time to begin with. The dendrite density and completion time plots (Fig. 4h,i) also show distinct regimes: with no growth for low noise (ƞ < 0.2), high variability in the growth time and asymmetry for medium noise = 0.2, a reduction in completion time for medium noise (ƞ = 0.2 to 0.3) because the particles can easily approach the electrodes, and an increase in completion time for high noise (ƞ = 0.3–0.7). Figure 4j demonstrates that asymmetry is notably high at ƞ = 0.2 which is the lowest noise required for growth, then reduces and saturates more as the value of noise increases.

As a result, variations in the value of noise (which, as previously discussed, is dependent on particle velocity and temperature) can result in a variety of states. Because particle mobility is influenced by particle shape and particle-solvent interaction, different monomers may result in different morphological morphologies, which is an important consideration for experiments throughout the optimization process. At high concentration, the particle concentration can also play a role in converting wire-like growth to bulk fractal-like growth and asymmetrical growth, which should be considered while experimenting with concentration in the optimization process. Furthermore, the information on the error bars can be used to determine the reproducibility of pattern formation under certain environments. Apart from the neuromorphic engineering community, the investigation can be an important contribution to various other domains wherein such interconnections and morphological shapes control their functionalities23,24,25,26,27,28,29,30. The approach can also be explored for pattering applications37 and locomotion of conducting objects with similar techniques38,39. The modeling can also be translated to problems involving wireless electro-polymerization16,40. Since we used generic charged particles in the modeling, the model and its findings would also be important to inorganic electrochemical depositions34,35,41. Future work can be done with non-equal mesh size for potential determination to have the fine resolution in potential map near the dendrites. Currently, due to different time scales and length scale of simulations as compared to experiments, we are not able to provide one-to-one mapping. Future work could attempt in relating the modeling parameters to the experimental units. The modeling can also be extended for network-based simulations by introducing multiple electrodes in the modeling. Currently, we have shown the simulations for periodic signals, the approach can also be applied to non-periodic time series for neuromorphic applications. We anticipate that the current modeling underpinnings and inferences from the modeling studies will be important in analyzing and optimizing electrode designs and electrical signals for future neuromorphic devices.

Conclusion

In conclusion, we have developed a mesoscale model to understand and optimize the electro polymerization technique as a bottom-up strategy for neuromorphic computation and other applications. The model involves consideration of the spatial–temporal potential mapping for the time-varying signal across the electrodes, motion of the charged particles in the electric field and, attachment of particles to the electrodes. The model attempts to explain the morphological differences for different electrical activities and experimental conditions, based on the nature of particles’ distribution and their trajectories for electrical activities that have not previously been explored using modeling or microscopic techniques. The increasing frequency turns a bulky structure into a wire like morphology due to the preferential distribution of particles near the center of electrodes and tip of the growth. The voltage offset brings the asymmetry in the morphology due to asymmetry in the particle distribution due to constant potential. The effect of concentration shows different regions, which are wire like, bulky and asymmetrical at increasing concentration values due to the increased time scale of the growth process. The effect of scattering can also a have a huge impact leading to no-growth, wire like growth, symmetrical growth and transversal growth at increasing value of the scattering due to the reduction of relative electric field contribution. The model can be explored for multiple electrodes, variable signals and making quantitative experimental comparisons after further modifications.