Skip to main content
Proceedings of the National Academy of Sciences of the United States of America logoLink to Proceedings of the National Academy of Sciences of the United States of America
. 2022 Aug 1;119(32):e2206321119. doi: 10.1073/pnas.2206321119

Machine learning–based inverse design for electrochemically controlled microscopic gradients of O2 and H2O2

Yi Chen a,1, Jingyu Wang a,1, Benjamin B Hoar a,1, Shengtao Lu a, Chong Liu a,b,2
PMCID: PMC9371721  PMID: 35914135

Significance

In microbiology, extracellular oxygen (O2) and reactive oxygen species (ROS) are spatiotemporally heterogenous, ubiquitously, at macroscopic level. Such spatiotemporal heterogeneities are critical to microorganisms, yet a well-defined method of studying such heterogenous microenvironments is lacking. This work develops a machine learning–based inverse design strategy that builds an electrochemical platform for achieving spatiotemporal control of O2 and ROS microenvironments relevant to microbiology. The inverse design strategy not only demonstrates the power of machine learning to design concentration profiles in electrochemistry but also accelerates the development of custom microenvironments for specific microbial systems and allows researchers to better study how microenvironments affect microorganisms in myriads of environmental, biomedical, and sustainability-related applications.

Keywords: spatiotemporal heterogeneity, microwire array, O2 and H2O2 microenvironments, neural networks, inverse design

Abstract

A fundamental understanding of extracellular microenvironments of O2 and reactive oxygen species (ROS) such as H2O2, ubiquitous in microbiology, demands high-throughput methods of mimicking, controlling, and perturbing gradients of O2 and H2O2 at microscopic scale with high spatiotemporal precision. However, there is a paucity of high-throughput strategies of microenvironment design, and it remains challenging to achieve O2 and H2O2 heterogeneities with microbiologically desirable spatiotemporal resolutions. Here, we report the inverse design, based on machine learning (ML), of electrochemically generated microscopic O2 and H2O2 profiles relevant for microbiology. Microwire arrays with suitably designed electrochemical catalysts enable the independent control of O2 and H2O2 profiles with spatial resolution of ∼101 μm and temporal resolution of ∼10° s. Neural networks aided by data augmentation inversely design the experimental conditions needed for targeted O2 and H2O2 microenvironments while being two orders of magnitude faster than experimental explorations. Interfacing ML-based inverse design with electrochemically controlled concentration heterogeneity creates a viable fast-response platform toward better understanding the extracellular space with desirable spatiotemporal control.


Ubiquitous spatiotemporal heterogeneity of natural environments fosters the diverse and fascinating biology that our world embraces, and motivates researchers to mimic natural environments with high spatiotemporal resolution (15). Given their close relevance in biochemical metabolisms, dioxygen (O2) and hydrogen peroxide (H2O2) as a surrogate of reactive oxygen species (ROS) are two ubiquitous biologically relevant species in extracellular medium (1, 6). Their extracellular spatial and temporal distributions, particularly at the microscopic scale ranging from 1 μm to 100 μm (711), are critical for signal transduction, protein expression, biochemical redox balance, and regulation for cellular metabolism with extensive ecological, environmental, and biomedical implications (Fig. 1A) (1, 3, 813). A programmable creation of the spatiotemporal concentration profiles of O2 and H2O2 offers the freedom to mimic, control, and perturb the microenvironments of O2 and H2O2 and hence advance our understanding in microbiology.

Fig. 1.

Fig. 1.

AI-based inverse design of electrochemically generated O2 and H2O2 heterogeneities. (A) The ubiquitous spatiotemporal heterogeneities of O2 and H2O2 in microbiology and the challenges posed in this research topic. (B) The combination of electrochemistry and ML-based inverse design offers a viable approach to mimicking and controlling the heterogeneities of O2 and H2O2 in microbiology. O, oxidant; R, reductant; Eappl (t), the time-dependent electrochemical voltages applied on electrodes. (C) The design of the electrochemically active microwire array electrodes for the generation of O2 and H2O2 gradients; 4e ORR & 2e ORR, four-electron and two-electron oxygen reduction reaction into H2O and H2O2, respectively. (D and E) The 45°-tilting images of SEM for the representative microwire arrays used for the training of the ML model (D) and the ones inversely designed for targeted O2 and H2O2 gradients (E); k = (P, D, L), the morphological vector that includes the P, D, and L of the synthesized wire arrays in units of micrometers. (Scale bars, 20 μm.)

Despite recent progress (1418), there remain major technical challenges, particularly in the achievable spatiotemporal resolution and high-throughput design of concentration profiles to suit a plethora of scenarios in microbiology. Approaches based on microfluidics and hydrogels have been able to achieve concentration gradients of O2 and H2O2 through the provision of either O2/H2O2 source (14, 1921), O2/H2O2 scavenging agents (15, 22, 23), or a combination of both (24) across liquid-impermeable barriers such as agar layers or polymeric thin films (25, 26). Yet such approaches, dependent on passive mass transport and diffusion across more than 102 μm, are inherently incapable of achieving spatial features of less than 100 μm and temporal resolution smaller than ∼101 s, the prerequisites to investigate microbiology at cluster or single-cell levels (1012). Moreover, the large variations of extracellular O2 and H2O2 gradients in different microbial systems demand an inverse design strategy, which, with minimal expenditure, quickly programs a desired concentration profile catering to a specific biological scenario (25). The current lack of inverse design protocol impedes the adoption of controllable extracellular heterogeneity to mimic and investigate microbial systems that are of environmental, biomedical, and sustainability-related significance.

We envision that the integration of electrochemically generated concentration gradients with inverse design based on machine learning (ML) will address the aforementioned challenges (Fig. 1B). Electrochemistry offers a venue for transducing electric signals into microscopic concentration profiles within ∼100 μm to ∼102 μm away from electrodes’ surface, following the specific electrode reaction kinetics and the mass transport governing equations in the liquid phase (27). Proper designs of electrodes’ microscopic spatial arrangement and electrochemical kinetics lead to concentration gradients that are spatiotemporally programmable by time-dependent electric signals of varying voltages (28). Such benefits of electrochemically generated concentration gradients lead us to employ electrochemistry as a tool to spatiotemporally control the concentration profiles in the extracellular medium. In one example, we found that wire arrays electrochemically active toward O2 reduction create anoxic microenvironment about 20 μm away from the aerobic external bulk environments, modulate the size and extent of O2 depletion in the anoxic microenvironment by the wire array’s morphology and applied electrochemical potential (Eappl), and hence enable O2-sensitive rhizobial N2 fixation in ambient air powered by renewable electricity (29). Moreover, while not reported before as far as we know, electrochemically generated concentration heterogeneity is commensurate with ML-based inverse design (30, 31), thanks to the mathematically well-defined electrochemical processes that can be numerically simulated (32, 33). We recently reported neural networks, trained by numerically simulated data, that explore the influence of electrode geometry on electrochemical N2 fixation and achieve optimized morphologies of wire array electrodes untenable without such an ML-based strategy (34). An inverse design for the electrochemically generated gradients will quickly program desirable microenvironments of O2 and ROS with high spatiotemporal resolutions, thanks to the well-reported electrochemical transformation related to O2 and H2O2 with high electrochemical selectivity (35, 36).

In this work, we report an inverse design based on neural networks for independent electrochemical creation of O2 and ROS microscopic gradients that are relevant, and mimic their extracellular heterogeneities in microbial systems. We hypothesize that careful design of electrocatalysis of O2 reduction reaction (ORR) can either facilitate four-electron ORR on Pt electrocatalyst for a controllable O2 spatiotemporal profile or promote two-electron ORR on Au electrocatalyst for a programmable generation of H2O2 gradient without significantly perturbing the O2 one, thanks to their concentration differences in biological mediums (∼10−1 μM to ∼101 μM for H2O2 and ∼101 μM to ∼102 μM for O2) (2, 711). Electrochemically active microwire array electrodes as exemplary model systems (Fig. 1C) are experimentally shown to achieve tunable heterogeneities of O2 and H2O2 independently, with spatial resolution of ∼101 μm and temporal resolution of ∼10° s, and are suitable as a platform for independently perturbing biologically relevant O2 and H2O2 profiles in microbial systems. We further established and experimentally validated two neural networks that inversely design the wire array electrodes’ morphologies toward targeted microenvironments of O2 and H2O2, respectively, which is at least one order of magnitude faster than trial-and-error numerical simulation and two orders of magnitude faster than experimental explorations. The demonstrated inverse design of electrochemically generated controlled gradients not only demonstrates a full electrochemical control of concentration profiles in an electrode’s proximity but also establishes an approach of spatiotemporally mimicking and perturbing extracellular space guided by artificial intelligence.

Results

Wire Array Electrodes for Electrochemical Generation of O2 and H2O2 Gradients.

We applied a microwire electrode array loaded with selective ORR electrocatalysts to establish customizable O2 or H2O2 gradients (Fig. 1C). Si-based microwire arrays in a square lattice were constructed through photolithography and reactive ion etching in a five-step fabrication process (see Materials and Methods). After thermal annealing to generate an electrically insulating oxide layer, indium-doped tin oxide (ITO) of 500 nm was deposited via sputtering near conformally onto the wire array, followed by the deposition of about 7 nm of Pt and Au for the generation of O2 and H2O2 gradients via selective ORR, respectively. Here the deposition of the electrically conducted ITO layer ensures a uniform distribution of the applied electrochemical potential (Eappl). We employed Pt as the selective electrocatalysts of four-electron ORR (35, 37, 38) in the generation of O2 gradients, and employed Au for two-electron ORR (35, 39, 40) in the generation of H2O2 gradients. The morphologies (Fig. 1 D and E and SI Appendix, Fig. S1) and compositions (SI Appendix, Figs. S2 and S3) of the established wire array were characterized and confirmed by scanning electron microscopy (SEM) equipped with energy dispersive X-ray spectroscopy (EDS), with a vector k = (P, D, L) presenting the wire arrays’ periodicity (P), diameter (D), and length (L) in units of micrometers.

The prepared wire array electrodes coated with Pt and Au exhibit desirable electrochemical properties for creating O2 and H2O2 heterogeneities, respectively. In phosphate-buffered saline (PBS) solution, linear scan voltammograms (20 mV/s) of the deposited Pt electrocatalysts on the wire array (SI Appendix, Fig. S4) exhibited an onset potential of ORR at around 0.8 V vs. reversible hydrogen electrode (RHE). Linear scan voltammograms of the deposited Au electrocatalysts showed a similar onset potential of ORR at around 0.6 V vs. RHE (SI Appendix, Fig. S5). Experiments of rotating ring-disk electrode for the Au electrocatalysts (SI Appendix, Fig. S6) displayed a selectivity of H2O2 generation from O2 reduction up to 50% at 0.5 V vs. RHE. Thanks to the reaction–diffusion model in the electrolyte and the electrochemical boundary conditions imposed by the microwire morphology (29, 41, 42), the Pt- and Au-loaded wire array electrode transduces electric voltages Eappl into the concentration gradients of O2 and H2O2, respectively, at microscopic length scales.

Electrochemical Generation and Control of O2 Concentration Profiles.

The Pt-deposited microwire array electrode is capable of spatiotemporally controlling the electrochemically generated O2 gradient. Thanks to its triplet–triplet quenching with 3O2 (43), the phosphorescence emission of Tris(1,10-phenanthroline)ruthenium(II), Ru(phen)32+, from the intersystem crossing after optical excitation between ∼350 nm and ∼500 nm (44), was utilized to spatiotemporally probe the local concentration of O2 ([O2]) (Fig. 2A). The constructed microwire array electrode was housed in a homemade fluidic device (SI Appendix, Fig. S7) under a confocal microscope with 470-nm optical excitation (see Materials and Methods). Under a constant flow of aerated PBS solution with 0.15 mM Ru(phen)32+ [[O2] = 0.246 mM saturated with ambient air (45)], the phosphorescence emission intensity (Ip, ∼610 nm to ∼650 nm), inversely proportional to the value of [O2], was collected, and a calibration curve was established for the quantification of local [O2] values (see Materials and Methods and SI Appendix, Fig. S8). When k = (15, 4, 50) for the wire array (Fig. 2 B and C), the three-dimensional Ip mapping was recorded in a time sequence when the Pt-coated wire array was initially under an open-circuit condition (t < 15 s), subject to an electrochemical potential (Eappl = 0.5 V vs. RHE) from t = 15 and 45 s, and reverted back to the open-circuit condition when t > 45 s (see Materials and Methods). The side views of the three-dimensional Ip mapping were displayed when Eappl was initially absent (t = 0 s), Eappl = 0.5 V vs. RHE (t = 16 s), and Eappl was absent again at t = 48 s (“t = 0 sec,” “t = 16 sec,” and “t = 48 sec,” respectively, in Fig. 2B). The intensity of Ip was noticeably stronger within the wire array when Eappl = 0.5 V vs. RHE in comparison to the Ip values under the open-circuit conditions before and after the presence of Eappl. As Ip is inversely proportional to the local values of [O2], this observation qualitatively suggested a decrease of [O2], and hence an O2 gradient covering the wire array region with microscopic resolution under a reductive electrochemical potential.

Fig. 2.

Fig. 2.

Spatiotemporal control of O2 gradient on Pt-loaded microwire array. (A) Design of Pt-loaded microwire array and the fundamentals of spatiotemporal mapping local O2 concentrations ([O2]) based on the intensity of phosphorescence emission (Ip) from Tris(1,10-phenanthroline)ruthenium(II) (Ru(phen)32+); 3O2 and 1O2, the triplet and singlet dioxygen molecules, respectively; S0 and S1, the ground state and the first excited singlet state, respectively; T1, the first excited triplet state; ISC, intersystem crossing; λex and λem, the wavelengths of optical excitation and emission, respectively. (B and C) Cross-sectional Ip profiles on wire array k = (15, 4, 50) at t = 0, 16, and 48 s (B) and the subsequent temporal evolution of averaged local O2 concentrations ([O2]avg) at different distances z from the base of the wire array (C). The values of Eappl are reported against RHE. The microwires are depicted in dashed lines in B. (Scale bars, 15 µm.) (D) Plots of [O2]avg versus z under different values of Eappl for wire array k = (30, 3, 50). (E) Plots of [O2]avg versus z in wire arrays of different k when Eappl = 0.5 V. Error bars represent SDs across multiple separate measurements in the device (n ≥ 3).

The averaged [O2] values ([O2]avg) at different distances above the bottom of the wire array z = 5, 50, and 100 μm were quantified and are displayed as a function of time t in Fig. 2C. While a negligible change of [O2]avg was recorded at z = 100 μm (black in Fig. 2C), which was quite far away from the wire array, at z = 5 and 50 μm (blue and red, respectively, in Fig. 2C), significant changes of [O2]avg up to a complete anoxic condition were observed, concurrent with the temporal presence of Eappl. Such data suggest that the established O2 gradient can be temporally switched by electrochemical potentials faster than the temporal resolution of the confocal microscopy under the tested conditions (∼2.7 s). The electrochemically established O2 gradients for wire array k = (30, 3, 50) were similarly quantified at Eappl = 0.4, 0.5, and 0.6 V vs. RHE as a function of the distance above the bottom of the wire array (z) (black, red, and blue, respectively, in Fig. 2D). The steepness of the generated O2 gradient increased at lower Eappl values under which the electrochemical activities of O2 consumption on Pt were more pronounced thanks to the increased magnitude of reductive overpotential (SI Appendix, Fig. S4). Such an Eappl-dependent O2 gradient showed that electrochemical input was capable of spatially controlling and yielding a desirable O2 gradient for potential biological applications given biologically relevant [O2] values and the spatial resolutions detected here (24, 46, 47). The electrochemically driven O2 gradients were also quantified at Eappl = 0.5 V vs. RHE for k = (15, 4, 50), (30, 3, 50), and (30, 3, 30) (black, red, and blue, respectively, in Fig. 2E). Noticeably different O2 gradients were observed, suggesting the capability of the wire array morphology to yield a specific O2 gradient. Particularly, a strictly O2-free local environment in aerated medium was established for k = (15, 4, 50). Such a customizable O2 gradient will be of interests for the study of communal interactions among microorganisms of varying degrees of O2 demands that are prevalent in nature (2).

Electrochemical Generation and Control of H2O2 Concentration Profiles.

We can similarly establish the gradients of H2O2, a potent ROS relevant to biology (48), with the use of electrochemically active wire array electrodes and H2O2-yielding Au ORR electrocatalysts. The local concentration of generated H2O2 ([H2O2]) was quantified based on the fluorogenic rection that converts nonfluorescent 10-acetyl-3,7-dihydroxyphenoxazine (Amplex Red) to fluorophore resorufin (λex = 550 nm; λem = ∼590 to ∼650 nm) catalyzed by horseradish peroxidase (HRP) (49). Under the similar setup mentioned above (SI Appendix, Fig. S7), the emission intensities of resorufin (If), and hence the local [H2O2] value, were determined for an Au-coated wire array electrode under confocal microscopy, assisted by the corresponding calibration curves (SI Appendix, Figs. S9–S12; see Materials and Methods). When k = (15, 4, 50) for the wire array (Fig. 3 B and C), the three-dimensional If mapping was similarly recorded in a time sequence when the Au-coated wire array was initially under an open-circuit condition (t < 20 s), subject to an electrochemical potential (Eappl = 0.5 V vs. RHE) from t = 20 and 50 s, and reverted back to the open-circuit condition when t > 50 s (see Materials and Methods). The side views of the three-dimensional If mapping were also displayed when Eappl was initially absent (t = 0 s), Eappl = 0.5 V vs. RHE (t = 22 s), and Eappl was absent again at t = 52 s (“t = 0 sec,” “t = 22 sec,” and “t = 52 sec,” respectively, in Fig. 3B). While the absence of Eappl correlates with the absence of fluorescent emission from resorufin (“t = 0 sec” and “t = 52 sec” in Fig. 3B), the presence of Eappl = 0.5 V vs. RHE (“t = 22 sec” in Fig. 3B) yielded significant fluorescent emission near the wire array that suggested electrochemical generation of H2O2. Meanwhile, concurring monitoring of [O2] suggests that the local [O2] are not significantly perturbed (SI Appendix, Fig. S13A), due to the relatively lower current density of ORR on the Au-based electrocatalysts under similar Eappl values (SI Appendix, Figs. S4 and S5). This suggests that the electrochemically controlled H2O2 gradient is nearly independent of aeration of the liquid medium, thanks to the catalytically selective generation of H2O2 and the low value of observed [H2O2] (at most, up to 30 μM) relevant for biological studies (8, 48, 50) in comparison to the air-saturated O2 solubility in water (246 μM) (45).

Fig. 3.

Fig. 3.

Spatiotemporal control of H2O2 gradient on Au-loaded microwire array. (A) Design of Au-loaded microwire array and the fundamentals of spatiotemporal mapping local H2O2 concentrations ([H2O2]) based on the intensity of fluorescence emission (If) in the fluorogenic reaction from Amplex Red to resorufin catalyzed by HRP. (B and C) Cross-sectional If profiles on wire array k = (15, 4, 50) at t = 0, 22, and 52 s (B) and the subsequent temporal evolution of the averaged local H2O2 concentrations ([H2O2]avg) at different distances z from the base of the wire array (C). The values of Eappl are reported against RHE. The microwires are depicted in dashed lines in B. (Scale bars, 15 µm.) [H2O2]avg = 0 when t = 0. (D) Plots of averaged local H2O2 concentrations ([H2O2]avg) versus z under different values of Eappl for wire array k = (15, 4, 50). (E) Plots of [H2O2]avg versus z in wire arrays of different k when Eappl = 0.5 V. Error bars represent SDs across multiple separate measurements in the device (n ≥ 3).

The average change of [H2O2] values ([H2O2]avg) at different distances above the bottom of the wire array z = 5, 50, and 90 μm were quantified and displayed as a function of time t in Fig. 3C. At all z values, the time-dependent generation of [H2O2]avg measured from If was well correlated with the presence of Eappl. A more gradual yet still relatively fast transition of the measured If (∼10 s), and hence [H2O2]avg, was observed, which was presumably due to the limited temporal resolution of the fluorogenic reaction that was needed to track local [H2O2] (51). Nonetheless, such data indicated the capability of temporally controlling the formation of H2O2 electrochemically, which can be handy as a perturbation to study the microbial response toward H2O2-based ROS (52). We also determined the electrochemically induced H2O2 gradient for wire array k = (15, 4, 50) at Eappl = 0.45, 0.5, and 0.55 V vs. RHE (black, red, and blue, respectively, in Fig. 3D). Significant different local accumulations of H2O2 up to 30 μM for different Eappl values were observed despite the 50-mV change of Eappl. Such an observation suggests that the generated H2O2 gradient is highly sensitive and subsequently tunable by electrochemical driving forces. In addition, the morphology of wire array electrodes impacts the generated H2O2 gradient. The characterized H2O2 gradients for k = (15, 4, 50), (30, 3, 50), and (15, 4, 20) (black, red, and blue, respectively, in Fig. 3E) were noticeably different at the same Eappl = 0.5 V vs. RHE. The achievable range of H2O2 gradients at the microscopic level is commensurate with biologically observed ROS microenvironments (8), heralding the utility of the electrochemically generated H2O2 gradients in microbial studies.

Establishing Neural Networks for an Inverse Design Strategy.

We seek to establish computational models that can inversely predict the values of Eappl and k = (P, D, L) of the Pt- and Au-loaded wire array electrodes for targeted corresponding O2 and H2O2 gradients ([O2](z) and [H2O2](z)), respectively. Such an inverse design strategy for O2 and H2O2 microenvironments is proposed to be much more time efficient in comparison with the classical trial-and-error approach (Fig. 4A), and will find plentiful applications given the high variabilities of biological applications in both spatial and temporal domains (2, 3, 8). Critical inside such computational models are neural networks, trained with sufficient amounts of data, which correlate {Eappl, k = (P, D, L)} with the [O2](z) and [H2O2](z) distributions. In such a regard, we employed numerical simulations based on finite element methods (FEM) (32) to augment the available data (Fig. 4B). FEM-based electrochemical simulations have been widely used in the understanding and design of electrochemical applications, with satisfactory accuracies (32, 33, 5355). We established electrochemical microkinetic models that include the mass transport of redox species and the electrochemical reduction of O2 for the Pt and Au electrocatalysts (see Materials and Methods). FEM-based numerical simulations were conducted with COMSOL Multiphysics (version 5.3) for the O2 and H2O2 gradients near the Pt- and Au-loaded wire array electrodes, respectively. Experimental [O2]avg and [H2O2]avg values were compared with simulation results at different heights above the base of the wire array (z), as shown in the exemplary case when consistent results of O2 and H2O2 gradients were observed for k = (30, 3, 50) and Eappl = 0.5 V vs. RHE (SI Appendix, Fig. S13 B and C). The mean-squared errors (MSEs) between FEM-based simulations and experimental results are 9.81 × 10−4 mM2 and 4.84 × 10−6 mM2 for O2 and H2O2 gradients, respectively (see Materials and Methods). Such a consistency of results between experimental characterization and FEM-based simulations motivates us to use the augmented data from FEM-based simulations to establish neural networks to inversely predict O2 and H2O2 gradients.

Fig. 4.

Fig. 4.

The development of inverse design for electrochemically generated O2 and H2O2 gradients. (A) Comparison between the conventional protocol and our inverse design approach for the development of suitable experimental conditions, represented as {Eappl, k} in order to achieve desirable spatiotemporal distributions of O2 and H2O2 concentrations ([O2](r, t) and [H2O2](r, t), respectively). MLPNN 1 & 2, multiple-layer perceptron neural networks for O2 and H2O2 gradients, respectively. (B) Protocols of data augmentation for the establishment of MLPNN; i0,4e,Pt/Au and i0,2e,Au, the exchange current densities of four-electron and two-electron ORRs on Pt and/or Au electrocatalysts, respectively. (C and D) The AMSE in the training (blue) and validation (pink) datasets at different epochs for the gradients of O2 (MLPNN 1 in C) and H2O2 (MLPNN 2 in D). (E and F) Comparisons between the MLPNN-predicted values ([O2]predict and [H2O2]predict) and training values ([O2]train and [H2O2]train) for the local average concentrations of O2 (E) and H2O2 (F), respectively. R2, coefficient of determination.

The established neuron networks display good accuracies for the [O2](z) and [H2O2](z) distributions near the wire array electrodes loaded with Pt and Au electrocatalysts. We previously constructed multilayer perception neuron networks (MLPNNs) that expand the explorable parameter space of wire array electrode morphologies in electrocatalytic reduction of N2 (34). Here, we constructed MLPNNs that predict [O2](z) and [H2O2](z) based on inputs of {Eappl, k = (P, D, L)}, which were trained based on 10,000 data points augmented from the FEM-based simulations (see Materials and Methods). As the model-training process proceeds with an increasing number of epochs, monotonic decreases of the average MSE (AMSE) between the training and predicted data points for the datasets of both validation and training (red and black dots, respectively) were observed in Fig. 4 C and D for the O2 and H2O2 gradients near Pt- and Au-loaded wire array electrodes, respectively. The fact that the values of AMSEs against the validation datasets were similar to the ones from the training datasets in Fig. 4 C and D indicates that there was no overfitting in the ML process (56). In the end, near-unity coefficients of determination (R2 → 1) were observed for both MLPNNs (MLPNN 1 that predicts O2 gradient and MLPNN 2 that predicts H2O2 gradient) (Fig. 4 E and F, respectively). The values of AMSEs from the MLPNNs reach 1.74 × 10−4 mM2 and 1.81 × 10−6 mM2 for the prediction of [O2](z) and [H2O2](z) based on inputs of {Eappl, k = (P, D, L)}, respectively. Such small values of AMSEs suggest good accuracy of the developed neural networks for the inverse design of desirable O2 and H2O2 microenvironments.

Exemplary Inverse Design of O2 and H2O2 Microenvironments Near Wire Array Electrodes.

Exemplary inverse design processes with direct biological relevance were experimentally tested, with good predictabilities for the establishment of desirable O2 and H2O2 microenvironments. In microbiology and microbial ecology, it is desirable to establish well-defined microenvironments whose sizes are ∼20 μm to ∼100 μm in order to mimic natural heterogenous distribution of biologically relevant extracellular species such as nutrients and other microbial resources (57). Within such length scales, establishing microoxic niche (i.e., [O2] ≈ 100 μM) in the midst of an oxic external environment (Fig. 5A), prevalent in aquatic, terrestrial, and host-associated environments, is challenging yet desirable for understanding the physiology and ecology of microaerophiles and advancing our understanding of microbiomes (2); extracellular H2O2 whose concentration can achieve 15 μM (58) (Fig. 5B) is also of particular interest in order to study microbial sensing, communal signaling, metabolic regulation, and genetic expression toward ROS (48, 59). In such biological contexts, we aim to inversely design one O2 gradient (Δ[O2] ≈ 100 μM and Δz ≈ 40 μm) and one H2O2 gradient (Δ[H2O2] ≈ 15 μM and Δz ≈ 100 μm) based on our developed MLPNNs (Fig. 5 A and B). We utilized the established MLPNNs that predict [O2](z) and [H2O2](z) under different inputs of {Eappl, k = (P, D, L)}, and we scored the similarity percentages between the MLPNN-predicted O2/H2O2 gradients and the desirable ones. Fig. 5 C and D exemplarily display the sliced mappings of similarity scores for the aforementioned O2 and H2O2 gradients on Pt- and Au-loaded wire arrays, respectively, as a function of k = (P, D, L) at Eappl = 0.5 V vs. RHE. Such multidimensional mapping, composed of 10,000 data points each in Fig. 5 C and D, showcases the parameter spaces that are predicted to yield the desirable O2 and H2O2 microenvironments within a certain relative uncertainty threshold (red region) (see Materials and Methods). It is intriguing to note that there existed multiple different wire array morphologies to yield the same desirable O2 and H2O2 gradients, which may not be straightforward, intuitively. We estimated that the determination of O2/H2O2 gradients for one parameter coordinate in the space of {Eappl, k = (P, D, L)} will take ∼4 s for the MLPNN-based method, ∼90 s from FEM-based simulations, and ∼20 mins for the confocal characterization alone at one specific Eappl for a single wire array morphology, notwithstanding any time spent in any preceding protocols (see Materials and Methods). Therefore, a comprehensive exploration of the parameter space {Eappl, k = (P, D, L)} with more than 104 trials as shown above is only possible with the use of MLPNN-based inverse design, because only the MLPNN is capable of screening 10,000 parameter combinations within a reasonable amount of time in practice (∼12 h) in comparison to the ones based on FEM (∼250 h, i.e., ∼10 d) and experimental characterization (at least 3,000 work-hours without considering any practical concerns) (Fig. 4A).

Fig. 5.

Fig. 5.

Experimental validations of MLPNN-assisted inverse design. (A and B) Targeted O2 and H2O2 gradients ([O2]avg(z) in A and [H2O2]avg(z) in B, respectively) for exemplary inverse design assisted by the developed MLPNNs. (C and D) The three-dimensional contour plots of the probabilities that MLPNN-predicted [O2]avg(z) (C) and [H2O2]avg(z) (D) match the targeted ones as a function of P, D, and L when Eappl = 0.5 V vs. RHE. (E and F) Experimental characterizations of [O2]avg(z) and [H2O2]avg(z) (scattered points) in comparison with the targeted ones (lines) when {Eappl, k} = (0.5, 46, 6, 20) in E and (0.45, 17, 3, 30) in F on Pt- and Au-loaded microwire arrays, respectively. The potential applications of those yielded gradients in microbiology are noted. Error bars represent SDs across multiple separate measurements in the device (n ≥ 3).

We also conducted a spot check for the predicted O2 and H2O2 microenvironments by experimental validations. A Pt-based wire array electrode with k = (46, 6, 20) was picked from Fig. 5C as a desirable geometry, experimentally prepared (Fig. 1E), and experimentally tested for the established O2 gradient at Eappl = 0.5 V vs. RHE. Satisfactory consistency with MSE = 5.63 × 10−4 mM2 was achieved between the experimental and targeted values of [O2](z) (dots and line, respectively, in Fig. 5E). Similarly, an Au-based wire array electrode with k = (17, 3, 30) was picked from Fig. 5D, experimentally prepared (Fig. 1E), and experimentally tested for the H2O2 gradient at Eappl = 0.45 V vs. RHE. We also observed satisfactory consistency with MSE = 7.22 × 10−6 mM2 between the experimental and targeted values of [H2O2](z) (dots and line, respectively, in Fig. 5F). While we were unable to experimentally exhaust all of the predicted parameter space for the desirable microenvironments of O2 and H2O2, our experimental validations offer convincing evidence for the validity of the developed MLPNN-based inverse design for future microbiology-related research.

Discussion

In summary, we presented a ML-based inverse design strategy for O2 and H2O2 concentration profiles with the use of electrochemical catalysis of ORR. We demonstrated a proof-of-concept closed-loop protocol for inversely designing O2 and H2O2 gradients with properly designed microwire electrodes in PBS solution, the go-to culturing medium in microbiology. By achieving concentration differences and spatial resolutions that are relevant to microbial microenvironments, the demonstrated O2 and H2O2 gradients are applicable for studies in microbiology. While the reported research focuses on one specific form of electrochemical boundary conditions, namely, microwire array, the reported inverse design procedures are generally applicable for any electrochemical systems that can be parameterized and analyzed by neural networks. As mass transport and concentration profiles in an electrode’s proximity are important components in electrochemistry, this work demonstrates the power of ML-based inverse design in electrochemistry. Moreover, our results will lead to a general platform that inversely designs suitable electrochemical systems for any targeted environments of O2 and H2O2 in microbiology. Future research will focus on the platform’s application of in vivo microbial communities and fundamental insights that can be fetched thanks to our system’s unique capabilities. Moreover, since electrochemistry is capable of modulating any redox active species such as extracellular Fe(II)/(III) species (60), as well as other extracellular metabolites sensitive to oxidative stress, such as pyocyanin (6163), our inverse design approach based on electrochemistry is capable of controlling the other microenvironments beyond O2 and ROS and is generally applicable in the study of ubiquitous microenvironments in extracellular medium.

Materials and Methods

Chemical and Materials.

ITO-coated glass slides (06499-AB) were purchased from SPI Supplies(∼30 Ω/◻ to ∼60 Ω/◻, 22 × 40 mm). Silver (Ag) paste (16040-30) was purchased from Ted Pella. Si wafers (p-type, boron-doped, <100>, ∼1 Ω⋅cm−1 to ∼10 Ω⋅cm−1) were purchased from University Wafer, Inc. Platinum (Pt) wires (CHI 115) and glassy carbon electrodes (CHI 104, diameter = 3 mm) were purchased from CH Instruments. Unless specially mentioned, all chemicals and materials were purchased from Sigma-Aldrich or VWR.

Experimental Establishment of Testing Platform.

Modified from a previously published protocol (29), the experimental testing platform as shown in SI Appendix, Fig. S7 consists of a fluidic cell with a three-electrode system, in order to electrochemically generate desirable gradients of O2 and H2O2. As the working electrode in the setup, microwire array electrodes were fabricated similarly as previously described (29). The microwire arrays were fabricated by photolithography with the use of the deep reactive-ion etching process (DRIE). After treatment in hexamethyldisilazane vapor for 10 min, precleaned Si wafers were coated with photoresist (MicroChemicals, AZ5214E; 3000 rpm spin coating) by soft baking (100 °C for 75 s), exposed in the hard contact mode by a contact aligner (Carl Suss MA6), hard baked (120 °C, 5 min), and developed to generate the periodic patterns for the array (mixture of MicroChemicals AZ400K water, 1:4 volume ratio). After creation by DRIE (Unaxis Versaline FDSE III), microwire arrays of desirable lengths were annealed under ambient air at 1,050 °C for 9.5 h to yield the insulating oxide layer, coated by 500-nm ITO through reactive sputtering (Denton Discovery 550 sputtering System), and finally deposited with a 7-nm layer of Pt or Au by an Anatech Hummer 6.2 sputtering system. The structure of the wire array was examined by SEM (ZEISS Supra 40VP SEM), and the element distribution was examined by SEM (JEOL JSM-6700F) equipped with EDS (Ametek). Patterned ITO-coated glass slides were used as the counter electrodes in the established testing platform, after the selective removal of ITO by 6 M HCl in undesirable areas on the glass slides. Ag paint as the pseudoreference electrode was applied on select areas of the ITO-coated slides so as to cover a 5 mm × 5 mm square with a layer of silver, serving as the reference electrode, while Pt was deposited on other ITO-coated areas for the creation of a counter electrode in the setup. An optically transparent fluidic cell of 250-µm height was constructed by assembling the microwire array electrodes with the prefabricated ITO glass slides, while a Gamry Interface 1010B potentiostat was used to enforce the electrochemical driving force. The setup was mounted on an inverted laser confocal microscope (Leica SP8 SMD) with sufficient working distance (680 µm), and a syringe pump was used to maintain a fixed liquid flow rate. As we particularly ensure the accuracy of applied electrochemical potentials, cyclic voltammetry in a standard ZoBell’s solution (3.3 mM K3Fe(CN)6, 3.3 mM K4Fe(CN)6, and 0.1 M KCl, 0.43 V vs. standard hydrogen electrode) was employed to calibrate the electrochemical potential of an Ag-based pseudoreference electrode as shown in SI Appendix, Fig. S14 (64, 65). The Ag-based pseudoreference electrode was calibrated as 0.75 V vs. RHE in PBS solution at pH = 7.4.

Electrochemical Characterization of the Deposited Electrocatalysts.

While the deposited Pt electrocatalysts have been characterized in our prior report (29), experiments were conducted to analyze the electrocatalytic activities of ORR for the coated Au electrocatalysts. An experiment of a rotating ring-disk electrode (Pine Research, Inc., AFE6R1PT) was conducted in PBS solution using a setup with a Pt-wire counter electrode, Ag/AgCl (1M KCl) reference electrode and a modulated speed rotator (Pine Research, Inc., AFMSRCE). While a Pt ring electrode was kept at 1.9 V vs. RHE, linear scan voltammograms (20 mV/s) were recorded between 0.1 and 1.1 V vs. RHE with different rotating speeds (100, 225, 400, 625 , 900, 1,225, 1,600 pm, and 2,025 rpm) in electrolytes saturated with O2 and N2, respectively. The measurements in N2-saturated solution were used as the signal background.

Quantification and Calibration of O2 Concentration Profiles.

Aerated PBS solution consisting of 150 µM Ru(phen)3Cl2 solution was prepared in the dark and fed into the assembled testing platform at a flow rate of 0.8 mL/min. The phosphorescence intensity mapping under confocal microscopy was measured in a 1-min time sequence. During the 1-min confocal microscopy measurement, programmed 30-s electrolysis was performed with a particular potential on the working electrode from t = 15 s to t = 45 s. The excitation wavelength was set as 470 nm, and we gathered emission intensity from 600 nm to 640 nm as phosphorescence emission intensity Ip. We defined the phosphorescence emission intensity with no potential applied as I0. Normalized phosphorescence emission intensity Ipn was defined as Ipn=Ip/I0. The phosphorescence emission intensity distribution was further translated into the concentration profiles, based on the linear relationship between O2 concentration and the inverse of Ipn (noted as Ipn−1) that was experimentally determined. Ru(phen)3Cl2–containing PBS solutions of different O2 concentrations, ranging from [O2] = 25 µM to 375 µM, were prepared by bubbling a N2/O2 mixture of tunable ratio through the solution, and were pumped into the assembled fluidic device (0.8 mL/min) for calibration.

Quantification and Calibration of H2O2 Concentration Profiles.

Aerated PBS solution consisting of 0.2 U/mL HRP and 120 µM Amplex Red (1× working solution) was prepared in the dark and fed into the assembled testing platform at a flow rate of 0.8 mL/min. The fluorescent intensity mapping under confocal microscopy was conducted in a 1-min time sequence. During the 1-min confocal microscopy measurement, programmed 30-s electrolysis with a particular potential on the working electrode from t = 20 s to t = 50 s. The excitation wavelength was set as 550 nm, and we gathered emission intensity from 590 nm to 650 nm as fluorescence emission intensity If. The fluorescence emission intensity distribution was further translated into the concentration profiles, based on the corresponding calibration curves. In the experiments of calibrating H2O2 concentrations, darkly prepared PBS solution consisting of 0.4 U/mL HRP and 240 µM Amplex Red was combined with PBS solutions of different H2O2 concentrations, ranging from 5 µM to 60 µM, and was pumped into the assembled devices for the measurement of confocal microscopy. We found that the H2O2-induced fluorescence intensity If is also dependent on the specific morphologies of the wire array (k) and the distance away from the bottom of the wire array (z) (SI Appendix, Fig. S15), owing to the scattering and, possibly, optical absorption of the wire array electrodes (6668). Therefore, individual calibration curves were determined for every z location in wire arrays with all possible k values (SI Appendix, Figs. S9–S12). Specific If correction was made to compensate the difference between the calibration experiment and gradient optical detection due to practical restrictions (SI Appendix, Supplementary Text and Fig. S16).

FEM-Based Numerical Simulations for O2 Gradient and H2O2 Gradients.

FEM simulation of both O2 gradient and H2O2 gradient was achieved in “electroanalysis” module in COMSOL Multiphysics (Version 5.3).

Geometry description.

The shape of wire was represented by a column with diameter D and length L. We located each wire in the center of a cuboid of P × P × 200 µm, and the difference between the cuboid and column was geometrically defined for the electrolyte. For each point in the electrolyte, if its distance from the top of the wire not smaller than the diffusion distance, dD, we considered that it belonged to the bulk electrolyte in which [O2] = 246 µM, independent of time. The boundary surface was defined as the area of which the distance to the top of the wire is dD. On the boundary surface, the [O2] was the same as that in the bulk. A periodic boundary condition was applied to describe the wire array. The value of dD was set as 20 µm for O2 gradient simulation on Pt-loaded wire array electrodes (29). For O2 gradient and H2O2 gradient simulation on Au-loaded wire array electrodes, dD was measured as 50 µm (SI Appendix, Fig. S17).

Transport properties.

The diffusion of oxygen and hydrogen peroxide was simulated based on the following Eqs. 1 and 2. DO2 and DH2O2 are the diffusion coefficients of oxygen and hydrogen peroxide in aqueous solution, which were 2.2 × 10−9 m2/s and 1.5 × 10−9 m2/s respectively.

[O2]t=DO22[O2] [1]
[H2O2]t=DH2O22[H2O2]. [2]

Electroanalysis.

The potential window of Eappl is from 0.6 V vs. RHE to 0.2 V vs. RHE.

On the surface of Pt-loaded wire array electrodes, 4e-ORR took place within the potential window.

O2+4H++4e2H2O.

On the electrode surface of Au-loaded wire array electrodes, two-electron and four-electron ORR reactions (2e-ORR and 4e-ORR, respectively) took place at the same time as potential-dependent selectivity.

2eORR: O2+2H++2eH2O24eORR: O2+4H++4e2H2O.

On the surface of Pt-loaded wire array electrodes, the supply–consumption equilibrium was simulated as Eqs. 3 and 4 in the formalism of concentration-dependent Tafel kinetics (27),

iloc=i4e=i0,4e,Pt[O2]CO2exp(αcFηPtn4eRT) [3]
JO2= iloc4F. [4]

Here i4e denotes the current density of 4e-ORR, i0,4e,Pt denotes the exchange current density of 4e-ORR, iloc denotes the local current density of four-electron reduction of O2 on the electrode surface, JO2 denotes the local flux of O2 consumption from electrolyte, and ηPt is the overpotential that is defined as the difference between Eappl and the standard redox potential of O2/H2O, EO2/H2O0 (1.23 V vs. RHE). The αc equals 0.5 as the transfer coefficient, F denotes the Faraday constant, R is the gas constant, T is the temperature, and n4e is the electron transfer number before the rate-determining step of 4e-ORR, of which the value is one (SI Appendix, Fig. S4). The local oxygen concentration is denoted as [O2]. CO2 is the oxygen concentration in air-saturated water at T. The above equation follows the textbook equations that account for the mass transport and chemical stoichiometry at electrode interfaces (27). On Pt-loaded wire array electrodes, i0,4e,Pt is found to be 3.0 × 10−6 A/m2 (SI Appendix, Fig. S4).

On the electrode surface of Au-loaded wire array electrodes, the supply–consumption equilibrium was simulated as Eqs. 5–7.

iloc=i4e+i2e=i0,4e,Au[O2]CO2exp(αcFηAun4eRT)i0,2e,Au[O2]CO2exp(αcFηAun2eRT) [5]
JO2=i4e4F+i2e2F [6]
JH2O2=i2e2F. [7]

While most of the definitions of variables in the case of Au-loaded wire array electrodes with Eqs. 5–7 are the same as the Pt-loaded case in Eqs. 3 and 4, we noted that iloc instead stands for the local current density of both two-electron and four-electron reduction of O2 on the electrode surface, i2e, the current density of 2e-ORR, and n2e is electron transfer number before the rate-determining step of 2e-ORR, of which the value is 0.7 (SI Appendix, Fig. S5). On Au-loaded wire array electrodes, the catalysis selectivity of Au toward 4e-ORR and 2e-ORR is dictated by the exchange current densities i0,4e,Au and i0,2e,Au, respectively. The i0,4e,Au is 2.0 × 10−8 A/m2, and i0,2e,Au is 8.0 × 10−7 A/m2, based on literature and measurement (SI Appendix, Fig. S5) (69, 70).

Based on a comparison with experimental gradients, the AMSE of O2 gradient simulation and H2O2 gradient simulation on Pt-loaded wire array electrodes and Au-loaded wire array electrodes is 9.81 × 10−4 mM2 and 4.84 × 10−6 mM2, respectively. The range of Eappl was set within the ORR potential windows, from 0.6 V vs. RHE to 0.2 V vs. RHE. Besides, a three-dimensional block was defined in the space of (P, D, L) as the range of morphology, from P = 1 µm to 100 µm, L = 1 µm to 150 µm, and D = 0.2 µm to 10 µm. By using Simulink in Matlab, we were able to generate random k value within the morphology space and calculate the corresponding gradient curves. To fulfill the ML functions, gradient profiles under 10,000 experimental conditions were included in the dataset for each developed multiple-layer perceptron neural network, respectively.

Model Selection and Training.

The implementation of all ML code was done on a MacBook Pro with a 1.4 GHz quad-core Intel Core i5 processor and 8GB of RAM, with code specifically deployed using the JupyterLab Notebook, a Python-based programming platform widely used in data science and ML (34). In this paper, we selected MLPNNs as the ML model for inverse design. We use FEM-simulated gradients to develop the MLPNNs. Gradient data were imported from FEM results in the form of .csv files and combined into a library of data. Prior to the model development, a random 20% of the data were split from the whole dataset for later model validation. The rest of the data were split into training data and validation data, of which the percentages were 65% and 15%, respectively. Multiple cycles of model training, each cycle termed as one epoch, were conducted in order to develop the targeted MLPNNs. In each epoch, MLPNNs will be trained from the training data, followed by a validation process in the validation dataset used to provide estimates of final model accuracy after each round of training. The total ML process will include 10 epochs of forward and backward propagations. The accuracies of the developed MLPNNs model as a function of epoch numbers are plotted in Fig. 4 C and D.

As described in the section above, the training dataset was a collection of concentration gradients under different Eappl and k values. We used AMSE and SD, defined in more detail below, from Eqs. 8–11 to quantify the ability of ML models to correctly reveal the connection between gradient curves and the two impacting factors, Eappl and k. In model selection, we selected multiple-layer perceptron neural networks for gradient prediction due to the low AMSE and SD value gradient prediction (SI Appendix, Fig. S18).

For both O2 and H2O2 gradients, the predicted curve included 20 local concentration datum along the wire array from Z = 5 µm to 100 µm every 5 µm. Z is defined as the distance from the bottom of the wire array. In O2 gradient prediction, MSE and SD are defined as the following equations:

MSEO=120n=120([O2]NNs[O2]real)2 [8]
SDO=1Nn=1N(MSEOnAMSEo)2. [9]

In Eqs. 8 and 9, [O2]NNs stands for the predicted oxygen concentration from MLPNNs predicting the O2 gradient on the Pt-loaded wire array. [O2]real is the oxygen concentration in the simulation dataset. MSEO is defined based on the average square of concentration difference over the whole gradient profile. AMSEo is the average MSE over the whole dataset. We calculated the SD over data under a wide range of experimental conditions to evaluate the overall precision of predictions from MLPNNs predicting the O2 gradient on the Pt-loaded wire array.

MSE and SD in the H2O2 gradient were defined in a similar pattern. In Eqs. 10 and 11, [H2O2]NNs stands for the predicted hydrogen peroxide concentration from MLPNNs predicting the H2O2 gradient on the Au-loaded wire array. [H2O2]real is the hydrogen peroxide concentration in the simulation dataset. MSEH is defined based on the average square of concentration difference over the whole gradient profile. AMSEH is the average MSE over the whole dataset.

MSEH=120n=120([H2O2]NNs[H2O2]real)2 [10]
SDH=1Nn=1N(MSEHnAMSEH)2. [11]

Morphology Prediction for Desired O2 Gradient and H2O2 Gradient.

In morphology prediction for the desired O2 gradient, we assigned Eappl = 0.5 V vs. RHE. Initially, MLPNNs predicting the O2 gradient on the Pt-loaded wire array randomly selected one morphology in the morphology space and calculated the corresponding O2 gradient. The similarity score between the calculated O2 gradient and target O2 gradient, SO, was quantified by Eq. 12. In the prediction process, the neural networks would find out the top 10,000 morphologies with the highest SO values. In Eq. 12, [O2]T is the local oxygen concentration in the target O2 gradient, and [O2]NNs is the calculated local oxygen concentration. The similarity score, SO, is the average relative error among a collection of different z values, CO. CO=[5, 10, 15, 25, 35, 45, 70], where the unit is micrometers.

SO=1100%×17zCO|[O2]NNs[O2]T|[O2]T. [12]

In morphology prediction for the desired H2O2 gradient, we assigned Eappl = 0.45 V vs. RHE. Initially, MLPNNs predicting the H2O2 gradient on the Au-loaded wire array randomly selected one morphology in the morphology space and calculated the corresponding H2O2 gradient. The similarity score between the calculated H2O2 gradient and target H2O2 gradient, SH, was quantified by Eq. 13. In the prediction process, the neural networks would find out the top 10,000 morphologies with the highest SH values. In Eq. 13, [H2O2]T is the local hydrogen peroxide concentration in the target H2O2 gradient, and [H2O2]NNs is the calculated local hydrogen peroxide concentration. The similarity score, SH, is the average relative error among a collection of different z values, CH. CH=[5, 20, 30, 40, 55, 70, 80], where the unit is micrometers.

SH=1100%×17zCH|[H2O2]NNs[H2O2]T|[H2O2]T. [13]

In the sliced mapping of the H2O2 similarity score, the similarity score at L = 5 µm was the average of from L = 0 µm to 10 µm. The similarity score at L = 20 µm was the average of from L = 10 µm to 30 µm. The similarity score at L = 40 µm was the average of from L = 30 µm to 50 µm. The similarity score at L = 60 µm was the average of from L = 50 µm to 70 µm. The similarity score at L = 80 µm was the average of from L = 70 µm to 90 µm. The similarity score at L = 95 µm was the average of from L = 90 µm to 100 µm.

Supplementary Material

Supplementary File

Acknowledgments

We thank Prof. Yang Yang for the use of the thin-film deposition instrument. C.L. acknowledges financial support from NIH (Grant R35GM138241); the Sloan Research Fellowship; the startup fund and a faculty research grant from the University of California, Los Angeles (UCLA); and financial support from the Jeffery and Helo Zink Endowed Professional Development Term Chair. Confocal laser scanning microscopy was performed at the Advanced Light Microscopy/Spectroscopy Laboratory and the Leica Microsystems Center of Excellence at the California NanoSystems Institute at UCLA with funding support from NIH Shared Instrumentation Grant S10OD025017 and NSF Major Research Instrumentation Grant CHE-0722519.

Footnotes

The authors declare no competing interest.

This article is a PNAS Direct Submission.

This article contains supporting information online at https://www.pnas.org/lookup/suppl/doi:10.1073/pnas.2206321119/-/DCSupplemental.

Data Availability

All study data, except the code for the neural networks, are included in the article and/or SI Appendix. The code for the neural networks is available on B.B.H.’s GitHub account http://github.com/bbhoar/O2_H2O2_ML_PNAS.

References

  • 1.“Microbial ecosystems” in Brock Biology of Microorganisms, Madigan M. T., Martinko J. M., Parker J., Eds. (Pearson Prentice Hall, Upper Saddle River, NJ, ed. 15, 2018), pp. 651–686. [Google Scholar]
  • 2.Morris R. L., Schmidt T. M., Shallow breathing: Bacterial life at low O2. Nat. Rev. Microbiol. 11, 205–212 (2013). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 3.Stewart P. S., Franklin M. J., Physiological heterogeneity in biofilms. Nat. Rev. Microbiol. 6, 199–210 (2008). [DOI] [PubMed] [Google Scholar]
  • 4.Battin T. J., Besemer K., Bengtsson M. M., Romani A. M., Packmann A. I., The ecology and biogeochemistry of stream biofilms. Nat. Rev. Microbiol. 14, 251–263 (2016). [DOI] [PubMed] [Google Scholar]
  • 5.Guzmán-Soto I., et al. , Mimicking biofilm formation and development: Recent progress in in vitro and in vivo biofilm models. iScience 24, 102443 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6.“Oxidative phosphorylation” in Biochemistry, Berg J. M., Tymoczko J. L., Stryer L., Gatto G. J. Jr., Eds. (Macmillan, ed. 8, 2015), pp. 523–564. [Google Scholar]
  • 7.de Beer D., Stoodley P., Roe F., Lewandowski Z., Effects of biofilm structures on oxygen distribution and mass transport. Biotechnol. Bioeng. 43, 1131–1138 (1994). [DOI] [PubMed] [Google Scholar]
  • 8.Imlay J. A., Where in the world do bacteria experience oxidative stress? Environ. Microbiol. 21, 521–530 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9.Lu Z., Sethu R., Imlay J. A., Endogenous superoxide is a key effector of the oxygen sensitivity of a model obligate anaerobe. Proc. Natl. Acad. Sci. U.S.A. 115, E3266–E3275 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 10.Klementiev A. D., Jin Z., Whiteley M., Parsek Matthew R., Micron scale spatial measurement of the O2 gradient surrounding a bacterial biofilm in real time. MBio 11, e02536-20 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 11.Downing L. S., Nerenberg R., Effect of oxygen gradients on the activity and microbial community structure of a nitrifying, membrane-aerated biofilm. Biotechnol. Bioeng. 101, 1193–1204 (2008). [DOI] [PubMed] [Google Scholar]
  • 12.Dar D., Dar N., Cai L., Newman D. K., Spatial transcriptomics of planktonic and sessile bacterial populations at single-cell resolution. Science 373, eabi4882 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 13.Carmona M., et al. , Monitoring cytosolic H2O2 fluctuations arising from altered plasma membrane gradients or from mitochondrial activity. Nat. Commun. 10, 4526 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 14.Virgile C., et al. , Engineering bacterial motility towards hydrogen-peroxide. PLoS One 13, e0196999 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 15.Lewis D. M., Blatchley M. R., Park K. M., Gerecht S., O2-controllable hydrogels for studying cellular responses to hypoxic gradients in three dimensions in vitro and in vivo. Nat. Protoc. 12, 1620–1638 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 16.Thomas P. C., Raghavan S. R., Forry S. P., Regulating oxygen levels in a microfluidic device. Anal. Chem. 83, 8821–8824 (2011). [DOI] [PubMed] [Google Scholar]
  • 17.Polinkovsky M., Gutierrez E., Levchenko A., Groisman A., Fine temporal control of the medium gas content and acidity and on-chip generation of series of oxygen concentrations for cell cultures. Lab Chip 9, 1073–1084 (2009). [DOI] [PubMed] [Google Scholar]
  • 18.Campbell K., Groisman A., Generation of complex concentration profiles in microchannels in a logarithmically small number of steps. Lab Chip 7, 264–272 (2007). [DOI] [PubMed] [Google Scholar]
  • 19.Rexius-Hall M. L., Mauleon G., Malik A. B., Rehman J., Eddington D. T., Microfluidic platform generates oxygen landscapes for localized hypoxic activation. Lab Chip 14, 4688–4695 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 20.Moran J. L., Wheat P. M., Marine N. A., Posner J. D., Chemokinesis-driven accumulation of active colloids in low-mobility regions of fuel gradients. Sci. Rep. 11, 4785 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 21.Lo J. F., Sinkala E., Eddington D. T., Oxygen gradients for open well cellular cultures via microfluidic substrates. Lab Chip 10, 2394–2401 (2010). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 22.Hsu H.-H., et al. , Study 3D endothelial cell network formation under various oxygen microenvironment and hydrogel composition combinations using upside-down microfluidic devices. Small 17, e2006091 (2021). [DOI] [PubMed] [Google Scholar]
  • 23.Blatchley M. R., Hall F., Wang S., Pruitt H. C., Gerecht S., Hypoxia and matrix viscoelasticity sequentially regulate endothelial progenitor cluster-based vasculogenesis. Sci. Adv. 5, eaau7518 (2019). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 24.Chen Y.-A., et al. , Generation of oxygen gradients in microfluidic devices for cell culture using spatially confined chemical reactions. Lab Chip 11, 3626–3633 (2011). [DOI] [PubMed] [Google Scholar]
  • 25.Brennan M. D., Rexius-Hall M. L., Elgass L. J., Eddington D. T., Oxygen control with microfluidics. Lab Chip 14, 4305–4318 (2014). [DOI] [PubMed] [Google Scholar]
  • 26.Weibel D. B., Whitesides G. M., Applications of microfluidics in chemical biology. Curr. Opin. Chem. Biol. 10, 584–591 (2006). [DOI] [PubMed] [Google Scholar]
  • 27.“Mass transfer by migration and diffusion” in Electrochemical Methods: Fundamentals and Applications, Bard A. J., Faulkner L. R., Eds. (Wiley, New York, NY, ed. 2, 2000), pp. 137−155. [Google Scholar]
  • 28.Krabbenborg S. O., Huskens J., Electrochemically generated gradients. Angew. Chem. Int. Ed. Engl. 53, 9152–9167 (2014). [DOI] [PubMed] [Google Scholar]
  • 29.Lu S., Guan X., Liu C., Electricity-powered artificial root nodule. Nat. Commun. 11, 1505 (2020). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 30.“Introduction to artificial neural networks with Keras” in Hands-on Machine Learning With Scikit-Learn, Keras, and TensorFlow: Concepts, Tools, and Techniques to Build Intelligent Systems, Géron A., Ed. (O'Reilly Media, Inc., Sebastopol, CA, 2019), pp. 279–313. [Google Scholar]
  • 31.Mansouri Tehrani A., et al. , Machine learning directed search for ultraincompressible, superhard materials. J. Am. Chem. Soc. 140, 9844–9853 (2018). [DOI] [PubMed] [Google Scholar]
  • 32.“Numerical solution of coupled, ordinary differential equations” in Electrochemical Systems, Newman J., Thomas-Alyea K. E., Eds. (Wiley, New York, NY, ed. 3, 2012), pp. 611–634. [Google Scholar]
  • 33.Dickinson E. J. F., Ekström H., Fontes E., COMSOL multiphysics: Finite element software for electrochemical analysis. A mini-review. Electrochem. Commun. 40, 71–74 (2014). [Google Scholar]
  • 34.Hoar B. B., Lu S., Liu C., Machine-learning-enabled exploration of morphology influence on wire-array electrodes for electrochemical nitrogen fixation. J. Phys. Chem. Lett. 11, 4625–4630 (2020). [DOI] [PubMed] [Google Scholar]
  • 35.Kulkarni A., Siahrostami S., Patel A., Nørskov J. K., Understanding catalytic activity trends in the oxygen reduction reaction. Chem. Rev. 118, 2302–2312 (2018). [DOI] [PubMed] [Google Scholar]
  • 36.Zhao D., et al. , Atomic site electrocatalysts for water splitting, oxygen reduction and selective oxidation. Chem. Soc. Rev. 49, 2215–2264 (2020). [DOI] [PubMed] [Google Scholar]
  • 37.Dong J.-C., et al. , In situ Raman spectroscopic evidence for oxygen reduction reaction intermediates at platinum single-crystal surfaces. Nat. Energy 4, 60–67 (2019). [Google Scholar]
  • 38.Kumeda T., Tajiri H., Sakata O., Hoshi N., Nakamura M., Effect of hydrophobic cations on the oxygen reduction reaction on single‒crystal platinum electrodes. Nat. Commun. 9, 4378 (2018). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 39.Perry S. C., et al. , Electrochemical synthesis of hydrogen peroxide from water and oxygen. Nat. Rev. Chem. 3, 442–458 (2019). [Google Scholar]
  • 40.Terrell J. L., et al. , Bioelectronic control of a microbial community using surface-assembled electrogenetic cells to route signals. Nat. Nanotechnol. 16, 688–697 (2021). [DOI] [PubMed] [Google Scholar]
  • 41.Xiang C., Meng A. C., Lewis N. S., Evaluation and optimization of mass transport of redox species in silicon microwire-array photoelectrodes. Proc. Natl. Acad. Sci. U.S.A. 109, 15622–15627 (2012). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 42.Xiang C., et al. , Modeling, simulation, and implementation of solar-driven water-splitting devices. Angew. Chem. Int. Ed. Engl. 55, 12974–12988 (2016). [DOI] [PubMed] [Google Scholar]
  • 43.Wang X. D., Wolfbeis O. S., Optical methods for sensing and imaging oxygen: Materials, spectroscopies and applications. Chem. Soc. Rev. 43, 3666–3761 (2014). [DOI] [PubMed] [Google Scholar]
  • 44.Varchola J., et al. , Temperature and oxygen-concentration dependence of singlet oxygen production by RuPhen as induced by quasi-continuous excitation. Photochem. Photobiol. Sci. 13, 1781–1787 (2014). [DOI] [PubMed] [Google Scholar]
  • 45.“Solubility of O2, N2, H2 and CO2 in water” in Multiphase Flow Dynamics 4: Turbulence, Gas Adsorption and Release, Diesel Fuel Properties, Kolev N. I., Ed. (Springer, Berlin, Germany, 2012), pp. 209–239. [Google Scholar]
  • 46.Ackermann M., A functional perspective on phenotypic heterogeneity in microorganisms. Nat. Rev. Microbiol. 13, 497–508 (2015). [DOI] [PubMed] [Google Scholar]
  • 47.Harrison J. J., Ceri H., Turner R. J., Multimetal resistance and tolerance in microbial biofilms. Nat. Rev. Microbiol. 5, 928–938 (2007). [DOI] [PubMed] [Google Scholar]
  • 48.Imlay J. A., The molecular mechanisms and physiological consequences of oxidative stress: Lessons from a model bacterium. Nat. Rev. Microbiol. 11, 443–454 (2013). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 49.Schürmann N., et al. , Myeloperoxidase targets oxidative host attacks to Salmonella and prevents collateral tissue damage. Nat. Microbiol. 2, 16268 (2017). [DOI] [PubMed] [Google Scholar]
  • 50.Seaver L. C., Imlay J. A., Hydrogen peroxide fluxes and compartmentalization inside growing Escherichia coli. J. Bacteriol. 183, 7182–7189 (2001). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 51.Seong G. H., Heo J., Crooks R. M., Measurement of enzyme kinetics using a continuous-flow microfluidic system. Anal. Chem. 75, 3161–3167 (2003). [DOI] [PubMed] [Google Scholar]
  • 52.Sen A., Imlay J. A., How microbes defend themselves from incoming hydrogen peroxide. Front. Immunol. 12, 667343 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 53.Lagadec M. F., Zahn R., Wood V., Characterization and performance evaluation of lithium-ion battery separators. Nat. Energy 4, 16–25 (2019). [Google Scholar]
  • 54.Peljo P., Scanlon M. D., Stockmann T. J., Simulations employing finite element method at liquid|liquid interfaces. Curr. Opin. Electrochem. 7, 200–207 (2018). [Google Scholar]
  • 55.Lin C., Compton R. G., Understanding mass transport influenced electrocatalysis at the nanoscale via numerical simulation. Curr. Opin. Electrochem. 14, 186–199 (2019). [Google Scholar]
  • 56.Dietterich T., Overfitting and undercomputing in machine learning. ACM Comput. Surv. 27, 326–327 (1995). [Google Scholar]
  • 57.Stocker R., Marine microbes see a sea of gradients. Science 338, 628–633 (2012). [DOI] [PubMed] [Google Scholar]
  • 58.Jakubovics N. S., Gill S. R., Vickerman M. M., Kolenbrander P. E., Role of hydrogen peroxide in competition and cooperation between Streptococcus gordonii and Actinomyces naeslundii. FEMS Microbiol. Ecol. 66, 637–644 (2008). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 59.Lu Z., Imlay J. A., When anaerobes encounter oxygen: Mechanisms of oxygen toxicity, tolerance and defence. Nat. Rev. Microbiol. 19, 774–785 (2021). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 60.Melton E. D., Swanner E. D., Behrens S., Schmidt C., Kappler A., The interplay of microbially mediated and abiotic reactions in the biogeochemical Fe cycle. Nat. Rev. Microbiol. 12, 797–808 (2014). [DOI] [PubMed] [Google Scholar]
  • 61.Hernandez M. E., Newman D. K., Extracellular electron transfer. Cell. Mol. Life Sci. 58, 1562–1571 (2001). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 62.Price-Whelan A., Dietrich L. E. P., Newman D. K., Rethinking ‘secondary’ metabolism: Physiological roles for phenazine antibiotics. Nat. Chem. Biol. 2, 71–78 (2006). [DOI] [PubMed] [Google Scholar]
  • 63.Perry E. K., Meirelles L. A., Newman D. K., From the soil to the clinic: The impact of microbial secondary metabolites on antibiotic tolerance and resistance. Nat. Rev. Microbiol. 20, 129–142 (2022). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 64.Nordstrom D. K., Thermochemical redox equilibria of ZoBell’s solution. Geochim. Cosmochim. Acta 41, 1835–1841 (1977). [Google Scholar]
  • 65.ZoBell C. E., Studies on redox potential of marine sediments. AAPG Bull. 30, 477–513 (1946). [Google Scholar]
  • 66.Shalev G., Schmitt S. W., Brönstrup G., Christiansen S., Maximizing the ultimate absorption efficiency of vertically-aligned semiconductor nanowire arrays with wires of a low absorption cross-section. Nano Energy 12, 801–809 (2015). [Google Scholar]
  • 67.Alaeian H., Atre A. C., Dionne J. A., Optimized light absorption in Si wire array solar cells. J. Opt. 14, 024006 (2012). [Google Scholar]
  • 68.Yu L., et al. , Understanding light harvesting in radial junction amorphous silicon thin film solar cells. Sci. Rep. 4, 4357 (2014). [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 69.Gotti G., Evrard D., Fajerwerg K., Gros P., Oxygen reduction reaction features in neutral media on glassy carbon electrode functionalized by chemically prepared gold nanoparticles. J. Solid State Electrochem. 20, 1539–1550 (2016). [Google Scholar]
  • 70.Villena C., Losada J., Alonso B., Casado C. M., Armada M. P. G., Easy preparation of electrode surfaces with dispersed size-controlled Au nanoparticles by electrodeposited PPI-dendrimers as templates. J. Electrochem. Soc. 164, H396–H406 (2017). [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Supplementary File

Data Availability Statement

All study data, except the code for the neural networks, are included in the article and/or SI Appendix. The code for the neural networks is available on B.B.H.’s GitHub account http://github.com/bbhoar/O2_H2O2_ML_PNAS.


Articles from Proceedings of the National Academy of Sciences of the United States of America are provided here courtesy of National Academy of Sciences

RESOURCES