PAPERCommunity contribution
- Research Article
- Electrochemistry
- Journal of the American Chemical Society
Reassessing AC/DC Selectivity and Efficiency in Sequential Electroreductions
Eric S. Larsen, Louis P. J.-L. Gadina, Yaroslav I. Sobolev, Jonathan Sabaté Del Río, Rafal Frydrych, Kisung Lee, Juhyeong Lee, Bartosz A. Grzybowski
Abstract
This paper reassesses the selectivity, efficiency, and mechanism of sequential electroreductions of carbonyl compounds under alternating current (AC) versus direct current (DC) conditions. It reflects the constructive dialogue─through multiple rounds of revisions of the present work─between the Baran group (authors of the original report) and the Grzybowski group (who sought to reproduce the reported phenomena and develop theoretical models). Ultimately, consensus was reached that under the originally described conditions, AC offers no systematic yield or selectivity advantage over DC; side reactions are outcompeted by mass action rather than kinetically suppressed by AC waveforms, while DC is faster and more energy efficient (less F mol–1). Higher AC yields and selectivities can be reached when a small amount of base is added to the sacrificial pivalic acid reductant. This improvement, documented in Baran’s Corrigendum, was confirmed in our own reproductions. However, the addition of base fundamentally alters the originally proposed mechanism: the observed behavior can no longer be attributed to frequency or waveform effects imparted by AC forcing, but is instead explained by mass-action considerations and pH conditions at the electrodes. Moreover, with base present, AC yields and selectivities can still be matched or even surpassed under appropriately optimized DC conditions. These findings (i) clarify the mechanistic origins of the reported phenomena, (ii) establish a transparent framework for choosing between AC and DC electrolysis in future synthetic applications, and (iii) showcase the value of using Machine Learning techniques (here reaction selection aided by Bayesian Optimization) in optimizing electrochemical processes.
Introduction
Performing chemical reactions in a chemoselective manner is a cornerstone of organic synthesis. Traditionally, chemoselectivity has been achieved by selecting appropriate chemical reagents, but this is rapidly changing as new methodologies based on light (photoredox (1, 2)) and electric current (organic electrochemistry (3−6)) gain popularity. In this context, organic electrosynthesis promises to replace hazardous oxidizing or reducing reagents, decrease energy consumption, and allow for in situ production of unstable or dangerous species. (5−8) While electrosynthesis under direct current (DC) has been known for many decades, (3, 4) it has only recently been the case that alternating-current (AC) variants have been investigated in more detail. (9−23) In many such applications, the physical understanding of the phenomena involved appears adequate, as the alternating-polarity pulsed frequencies control oxidation and reduction times, which, in turn, affect concentrations of reactive species in the electrical double layers (EDL), ultimately suppressing undesired reactions while increasing selectivity of the desired outcomes.
This approach was used, e.g., by Baran and co-workers (9) to expand the scope of the vintage Kolbe reaction; by He et al. (10) to drive a high-yielding reaction cascade effectively converting nitrite and arylboronic acids to arylamines; by Roldan Cuenya’s group (11) to tune the product distribution of CO2 electroreduction; by Wattanakit et al. (12) to tweak transport phenomena vs kinetics and achieve highly enantioselective outcomes from prochiral precursors electroreduced on chiral-imprinted mesoporous metals; by Luo’s group to improve functional-group tolerance; (13, 14) by Lei and co-workers to control dynamic balance between catalytic species that then dictate the reactivity and selectivity of CH bond transformations; (15) and by many others. (16−22)
In 2021, Baran’s (23) laboratory published an exciting study suggesting that AC─and particularly rapid alternating polarity (rAP)─electrolysis can also control sequential reductions in a manner fundamentally different from DC electrolysis. This work asserted that (1) AC electrolysis can control and abrogate competing reaction pathways in a frequency-dependent fashion; (2) such reaction selection can be controlled by the applied waveform; (3) major products (partly vs fully reduced) can also be selectively obtained using pulses of different durations; and (4) the reactivity observed cannot be recapitulated using DC electrolysis or chemical reagents.
Motivated by these results, we initially sought to develop a theoretical model explaining the underlying mechanism(s). In doing so, however, we were not able to reproduce the reported outcomes. The discrepancies we observed were later confirmed by the authors of ref (23), who─in the Corrigendum (24) accompanying the current work─attributed them to contamination of the electrolyte batch (Me4NBF4) with a basic impurity. Under corrected conditions, both their group and ours were able to reproduce the reported yields for a representative subset of reaction substrates from ref (23). Importantly, however, the addition of base fundamentally alters the originally proposed mechanism: as we discuss later in this work, the observed behavior can still depend on frequency and waveform through their effects on local pH profiles, but it is not attributable to AC forcing that imparts chemoselectivity simply by tuning the frequency or waveform to favor a particular kinetic pathway. Instead, it is largely explained by mass-action considerations and the pH conditions at the electrodes. Moreover, we show that even with base present, AC yields and selectivities can be matched under optimized DC conditions.
In the first part of the current work, we revisit the experiments reported in the original ref (23) and summarize our attempts to reproduce them. While these reproductions were unsuccessful, the battery of control experiments allowed us to construct models that explain the kinetics of reaction sequences under AC-driven conditions without base-additive effects. The results emphasize that, for this reaction system, reaction yields are shaped primarily by reaction conditions rather than waveform─this includes selectivity between partly and fully reduced products, which is not set by the waveform itself but, instead, evolves with time (i.e., equivalents of electrons delivered to the system). Moreover, with optimized reaction times, DC forcing can provide yields and selectivities comparable to (Figure 1) or even better (Figures 3–5) than AC across all frequencies and waveforms studied. Understanding such effects is essential for meaningful comparisons between AC and DC experiments. Electrochemical impedance spectroscopy and equivalent-circuit modeling further highlight that AC forcing is thermodynamically more costly than DC, an important consideration when weighing the use of these two modalities.
In the second part, we examine AC sequential electroreductions under the conditions described in the Corrigendum (24)─that is, in the presence of Me4NOH additive. Comparing AC reductions with and without this base, we indeed observe a marked increase in yields and cleaner, more selective outcomes. Yet, consistent with our discussion in Part 2.1, comparable or superior results can be achieved under optimized DC conditions─particularly when optimization is guided by machine learning (ML) techniques. Mechanistically, these sequential electroreductions are not inherently tied to the AC waveform but rather to the consumption of sacrificial reductant (ideally in stoichiometric quantities) and mass-action phenomena across the acidified/basified layers near the electrodes.
Taken together, these mechanistic insights may provide a useful framework for guiding the choice between AC and DC electrolysis and for driving systems of chemical transformations─perhaps beyond the linear A → B → C reductions studied here─selectively and efficiently. Our study further highlights the value of machine learning techniques in optimizing electrochemically driven reactions across diverse process variables, from current characteristics and solvent properties to electrode specifications. Finally, the 530-experiment data set accompanying this work (deposited at https://github.com/GadinaL/Electrochemistry-ACDC) may offer a valuable benchmark for seeding future electrochemical ML models.
Results and Discussion
Electrochemical reductions were performed using an IKA ElectraSyn 2.0 system or a combination of a waveform generator (Siglent SDG2082X) with a piezo driver/amplifier (Advanced Energy TREK PZD700A). The IKA setup was used to mimic experiments reported in ref (23). The Siglent/TREK system was used to generate different waveforms (e.g., square-, sinusoidal-, or triangle-shaped). The applied voltage and current passing through the electrochemical cell were monitored and recorded with a DAQ box (National Instruments, BNC-2110). All experiments based on DC or AC square pulses were performed under vigorous stirring ensured by IKA ElectraSyn 2.0 (including reproductions, screening of the substrates, and time-course analyses), while experiments using the waveform generator were stirred by an IKA stirring plate.
Part 1. Sequential Electroreductions in the Absence of Base
Importance of Reaction Conditions
We begin by reinspecting electroreductions of five substrates from the original ref (23) and reported therein to give high yields under AC electrolysis but significantly lower yields under DC. This set included phthalimide 1, N-(2-bromoethyl)phthalimide 2, an aldehyde 3, an electron-deficient alkene 4, and N-benzyl-4-azaphthalimide 5.
We first sought to reproduce the DC conditions (25 mA, 6 F mol–1, [substrate]0 = 40 mM, [Bu4NBF4] = 100 mM, [DIPA] = 240 mM, Gr(+)/RVC(−) electrodes, EtOH, room temperature) reported in ref (23) (Figure 1, table row marked “A”) and adapted therein from an earlier work by Xiang et al. (25) As shown in row “B”, the yields of fully reduced products─determined by crude 1H NMR analysis─were largely confirmed: compound 1 gave a yield 9% lower than reported, 2 yielded the same amount (<5%), while 3 and 4 gave yields 5 and 9% higher, respectively.
However, under original AC electrolysis conditions (23) ([substrate]0 = 40 mM, [Me4NBF4] = 80 mM, [PivOH] = 120 mM, RVC(+)/RVC(−) (electrodes), MeOH or tBuOH/CH3CN mixture, room temperature), the yields we obtained (Figure 1, row “D”) were, for most substrates, significantly lower than the reported ones (Figure 1, row “C”). We note that in some cases, the AC yields were higher than under DC (e.g., for 2a and 3a), yet in some other cases, they were significantly lower (e.g., 1a, 5b). Regarding the reproducibility of the crude 1H NMR yield measurements under these conditions, a representative substrate (1) was examined in triplicate across all conditions investigated, and the corresponding mean values and standard deviations are reported (bold values in the bottom panel of Figure 1). For the fully reduced product 1a, the standard deviation ranges from 1 to 4% across all conditions, which falls within the expected uncertainty of this method. This level of agreement is consistent with the HPLC-derived root-mean-squared error values obtained from a much larger, independent data set for substrate 8 (see Section 2.1.3, Figure 3, and Figure S54 in the SI).
Beyond these direct comparisons, we also considered different sacrificial reductants. In Figure 1, row “E,” we used N,N-diisopropylethylamine (DIPEA; see also SI, Section S6 for the rationalization of this choice) rather than diisopropylamine (DIPA, from ref (23), and rows “A” and “B”) under potentiostatic DC electrolysis at 13 V. Under these conditions, the average yield over substrates 1a-4a improved slightly, with the major increase coming from substrate 2a, whose yield rose from 2 to 12%. By contrast, when DIPEA was replaced with pivalic acid (PivOH)─the reductant used exclusively in ref (23) for AC reactions─the DC yields decreased substantially (row “F”). Finally, we used DIPEA but under AC electrolysis (13 V, 25 ms square wave). Comparing rows “E” and “G,” we see that this AC condition generally reduced the yields.
Overall, this set of experiments─and multiple additional experiments summarized in the SI, Section S3─indicates that AC itself does not ensure systematic improvements in reaction yield─in fact, in some cases we studied, DC is preferable (e.g., for 1a, the highest yield is under DC, rows “B” and “E”), while for others, AC wins out (e.g., for 3a, row “D”). What may matter more than the AC vs DC current is the nature of reaction conditions.
No AC-Driven Suppression of Competing Reactions
Another set of experiments aimed at verifying the original hypothesis (23) that AC helps suppress competing reactions. To this end, we investigated in detail the 4-(Phthalimido)-N-Boc-piperidine 6, which ref (23) used as a model substrate. This molecule features two competing electroactive sites─an imide and a Shono-active α-CH─but it was suggested that under AC, only one, the imide, is being chemoselectively reduced, either partly to hemiaminal 7a or fully to lactam 7b (Figure 2, top panel). According to ref (23), while the ratio of 7a to 7b varied with pulse width and waveform, no Shono oxidation was observed under any conditions using current pulses ≤ 100 ms. However, repeating the experiments under the reported conditions and then under a range of other conditions (varying solvent, electrolyte, electrode material/type) and also different substrates (see SI, Section S3) always gave complex product mixtures including Shono oxidation products. These results are in line with the experimental repeats described in the Corrigendum (24) to ref (23).

Waveforms Do Not Dictate Product Switchovers
Next, we re-examined whether AC pulse width and/or waveforms (e.g., square vs sinusoid) offer unique means of “selecting” between partly and fully reduced products, sometimes upon minute changes in the waveform. (23) To this end, we focused on the N-phenyl phthalimide substrate 8 (Figure 2bottom panel), for which Shono oxidation was not a possible competing pathway. Performing initial experiments on 8 under the ref (23) conditions, which are optimal for reducing imide carbonyls to hydroxylactams (square wave, 25 ms pulses, 20 mA current amplitudes) resulted in complete depletion of the substrate but gave only 46% of 9a and 1% of 9b─meaning that the remaining 53% underwent some other side reactions. (26) Accordingly, we tested alternative electrolytes, sacrificial reductants, atmospheres and electrode cleaning protocols to identify conditions that gave the minimal amount of side-products, ultimately choosing DIPEA sacrificial reductant (for further details, see SI, Section S6).
The data in Figure 3 quantifies the key set of experiments (each performed in triplicate and quantified with HPLC) in which concentrations of 8, 9a and 9b were monitored as a function of time. In all cases, the substrate 8 (black lines) gradually disappears while the concentration of the partly reduced, hemiaminal product 9a (red lines) first increases but then starts decreasing as the fully reduced, lactam product 9b appears (blue lines). We note that product 9b typically appears when 9a reaches its maximum yield of ∼70%, which coincides with the consumption of the majority of compound 8 (about 10% remaining)─congruent with a sequential reaction system. Importantly, the switchover from dominant 9a to dominant 9b is observed not only for square pulses (Figure 3a,f for 12 ms, 3b,g for 25 ms and 3c,h for 50 ms pulse widths, with either galvanostatic 20 mA current or potentiostatic 13 V amplitude conditions) akin to rAP in ref (23), but also for sinusoid and triangle waveforms (Figure 3d,i; 25 ms, potentiostatic 13 V) and also for direct current (Figure 3e,j, galvanostatic 20 mA or potentiostatic 13 V).
![Figure 3. Experimental reaction yields as a function of time and under different electrochemical parameters and under either galvanostatic (“A”) or potentiostatic (“V”) conditions. All experiments are without Me₄NOH additive. In all cases, the markers quantify HPLC-determined yields of electrolytic reduction of N-phenyl phthalimide 8 (black markers) into partly reduced 9a (red) and fully reduced 9b (blue) as a function of time. Inserts were added to ease the identification of the type of experiments. Lines guide the eye, and shaded regions correspond to standard deviations from triplicate experiments. Panels in the first column (except (d)) depict galvanostatic conditions with 20 mA square pulses of: (a) 12 ms, (b) 25 ms, (c) 50 ms, and (e) direct current. Panels in the second column illustrate potentiostatic conditions with 13 V square pulses of: (f) 12 ms, (g) 25 ms, (h) 50 ms, and (j) direct current. Panels (d) and (i) show experiments conducted with sinusoidal and triangular waveforms, respectively, using 13 V amplitude pulses of 25 ms. Note that the switchover from 9a to 9b is taking place much sooner under DC (e, j) (ca. 1 h) than under AC pulses (a-d, f-i), 6–26 h. All reactions used: [8]₀ = 73.8 mM, [Bu₄NBF₄] = 92.4 mM, [DIPEA] = 444 mM, 100 ppi RVC(+)/RVC(−) (electrodes), EtOH, room temperature. Periods shorter than 12 ms could not be reliably generated by IKA ElectraSyn 2.0 (see SI, Section S12).](https://assets.scievidence.com/papers/10.1021/jacs.6c09157/figure-3.png)
Qualitatively similar behaviors were observed for other N-substituted phthalimides 10, 11, 12, and 13 shown in Figure 4: the partially reduced product accumulated gradually to a maximum, followed by slower formation of the fully reduced product.
![Figure 4. Experimental reaction yields as a function of time under different electrochemical modes (DC or AC) and potentiostatic (“V”) conditions (without Me₄NOH additive). In all cases, the markers quantify crude reactions from ¹H NMR-determined yields of electrolytic reduction of N-substituted phthalimide derivatives (starting material, black markers) into the corresponding partly reduced (red) and fully reduced products (blue) as a function of time. Inserts were added to ease the identification of the type of experiments and lines guide the eye. Panels in the first column illustrate potentiostatic DC conditions at 13 V for: (a) 10, (b) 11, (c) 12, and (d) 13. Panels in the second column depict potentiostatic AC conditions with 13 V 25 ms square pulses for: (e) 10, (f) 11, (g) 12, and (h) 13. All reactions were performed with an IKA ElectraSyn 2.0 and used: [starting material]₀ = 73.8 mM, [Bu₄NBF₄] = 92.4 mM, [DIPEA] = 444 mM, 100 ppi RVC(+)/RVC(−) (electrodes), EtOH, room temperature.](https://assets.scievidence.com/papers/10.1021/jacs.6c09157/figure-4.png)
There are three important aspects of these results:
Product selectivity depends on time. Contrary to ref (23) and ref (27), selectivity for a particular species is not a property of a waveform or pulse width but, instead, can be “dialed in” by adjusting reaction time. Moreover, whereas selective partial reduction can be achieved by any AC or DC conditions (red bars in Figure 5), only DC offers appreciable selectivity for the fully reduced product (blue bars).
Maximal yields of partly reduced products are comparable for AC and DC; for the fully reduced products, DC is advantageous;
The times required to observe the switchover between partially and fully reduced products are much shorter for DC (∼1 h) than for AC (6–26 h). This suggests that the AC system is not delivering the electrons to the reaction as efficiently as the DC system─we will return to this question in Section 2.1.5.
![Figure 5. Log selectivity at the maximum yield of 9a and 9b. The log selectivity S is defined as (red bars) S_(9a) = log₁₀([9a]/[9b]) for the maximum of 9a and (blue bars) S_(9b) = log₁₀ ([9b]/[9a]) for the maximum of 9b. In the absence of any selectivity, concentrations are equal and S = 0 (horizontal black line). Calculations are based on experimental data from Figure 3 with standard deviations indicated.](https://assets.scievidence.com/papers/10.1021/jacs.6c09157/figure-5.png)
Irrespective of the Waveform, AC Reductions Follow the Same, Simple Kinetics at Time Scales Much Larger than the Waveform’s Period
Despite the reaction rates changing rapidly on short time scales─inside the duration of a single period of waveform (Figure 8a)─the qualitative similarity of time-course plots from Figures 3 and 4 suggests that, at time scales much larger than the waveform period, all reductions, irrespective of the waveform, follow similar kinetics. Indeed, all these data fit to the simplest kinetic model substrate⇌k−1k1partlyreduced⇌k−2k2fullyreduced, in which reactions are, for generality, assumed reversible and the species involved can also degrade, with first-order rate constants k3, k4, k5, into some byproducts. Taking as example the reaction of substrate 8, the set of ordinary differential equations describing this system is given as
d[8]dt=−k1min([8],Csat)+k−1[9a]−k3min([8],Csat)
(1)
d[9a]dt=k1min([8],Csat)−k−1[9a]−k2[9a]+k−2[9b]−k4[9a]
(2)
d[9b]dt=k2[9a]−k−2[9b]−k5[9b]
(3)
Here, Csat represents the solubility of 8, which, as detailed in SI, Sections S15 and S16, varies approximately linearly with temperature from 6.3 mM at 24.0 °C to 26.0 mM at 40.3 °C. The variable [8] is defined as the total amount of 8 in the vial (sum of the amount of dissolved 8 and the amount of undissolved 8), divided by the volume of the solution. These kinetic equations were integrated numerically using Euler’s method, and the values of kinetic rate constants were optimized by the Trust Region Reflective algorithm. (28) Examples of the best fits─for square pulses of two different widths─are shown in Figure 6a,b, with additional examples provided in Figure S53 in the SI, Section S13. As could be expected, the reactions are effectively irreversible as k1 is greater than k–1 by 14 or more orders of magnitude, whereas k2 is greater than k–2 by apparent 17 orders or more. The reverse reactions are also slower than side reactions, for which k3 ≫ k4 ≫ k5. Comparing the two reductions, we find that both k1 and k2 increase monotonically (approximately linearly) with pulse width, and that k1 exceeds k2 by roughly an order of magnitude (Figure 6c), which is congruent with the calculated LUMO energy for 8 (−0.0114 au) being lower than for 9a (0.0215) (see SI, Section S17).

Next, we apply this model to fit time-courses obtained with square, sinusoidal, and triangle signals of identical frequency (25 ms) and amplitude (13 V, Figure S53 in the SI, Section S13). Not only are the yield trends qualitatively similar, but they can be overlapped by rescaling the time for each of the pulse shapes (Figure 6d,e) according to ti′ = ti/αi, where the scales αi (i is the waveform) were chosen to maximize the overlap: αsquare = 1 (fixed by choice), αtriangle = 4.00, and αsinusoid = 2.47. One corollary here is that the selectivities achievable by “dialing in” the reaction time are the same for all three waveforms─only the “dialed-in” time depends on the waveform shape. Another interesting observation is that the rescaling factors can be related to the waveform-dependent Joule heating and reaction acceleration with increasing temperature (for details, see SI, Section S14). Although this interpretation is consistent with waveform-dependent Joule heating, we cannot exclude additional contributions, and future temperature-dependent experiments will be needed to resolve their relative importance.
We stress that the apparent “long time scale” kinetics is described by parameters that depend on waveform and pulse length (Figure 6c). This indicates that when one “zooms in” into short time scales of a single waveform period, the dynamics of the system is expected to be different, with reaction rates rapidly changing with time over the course of a single waveform and being affected by it. Nuances of this complex kinetics of AC electrosynthesis at short time scales have been explored by recent theoretical studies, (29, 30) which made substantial progress toward deriving long-time scale (quasi-steady state) kinetics from detailed modeling of the waveform influence on the coupled microscopic processes of transport and elementary reactions.
AC Reductions Require Higher Charge/Energy Input Than DC Reductions
One aspect we touched upon in Point (3) in Section 2.1.3 above, is that the times required for DC reductions are significantly shorter than those under AC. A natural hypothesis is that AC may not be delivering the electrons to the reaction as efficiently as the DC system since, during polarity switching, part of the current (non-Faradaic) goes into establishing the electrical double layer (EDL) rather than being productively used for reduction (Faradaic current). Quantifying this “thermodynamic cost” as a function of frequency is especially desirable considering possible deployment of AC electroreductions in larger-scale processes, where energy expenditure is one of the key considerations. (31−35) However, understanding system dynamics is complicated, since the behavior of electrochemical cells is heavily influenced by numerous physical parameters─here, the range of applied frequencies and the large overpotentials encountered under conditions relevant to electrosynthesis, a challenge that persists despite recent efforts, which are further discussed in the SI (Section S21).
Here, we first characterized the system using electrochemical impedance spectroscopy (EIS) and used the Nyquist plot resulting from the measurement at open-circuit potential (Figure 7a,b) to characterize the evolution of impedance depending on the applied frequency. We then used the equivalent-circuit formalism─popular in both electronics and electrochemistry (36−39)─to fit different models. The basic Randle circuit (Figure 7c), composed of an electrical double layer, EDL capacitance, CEDL, two resistors representing the solution’s resistance, Rs, and the resistance to charge transfer, Rct, and a Warburg element W of impedance ZW was insufficient to capture experimental trends (red line in Figure 7a). Accordingly and as often done to account for nonideal behavior, we replaced the capacitor representing the EDL with a constant-phase element, CPE, with impedance ZCPE(f) = (2πif)−m/Y, where m and Y are parameters that do not depend on the frequency f, (40, 41) and i is the imaginary unit. We then modified the diffusion element to model the system’s behavior at lower frequencies. While several elements have been described for different systems, (42, 43) we tested a modified Warburg element (finite-space type, Wm in Figure 7d) usually used in the case of porous electrodes, resulting in an excellent match between the observations using EIS and the expected frequency-impedance relation (green line in Figure 7a) of our equivalent circuit (Figure 7d). Additional spectra were acquired at various applied voltage amplitudes (up to 0.9 V, which was the technical limit of our potentiostat) following a procedure of Chmielowiec et al. (44) but with potentiostatic measurement instead of galvanostatic ones (Figure 7b).

At frequencies below 2 kHz (junction between the two semicircles in Figure 7b), the imaginary and real parts of the Warburg element’s impedance decrease with increasing amplitude of the applied voltage and become negligible already at 0.9 V (Figure 7b; gray arrow traces the evolution of the impedance upon increasing applied voltage). This motivated us to treat the Warburg element as purely resistive when analyzing the electrochemical reactions performed at 9–13 V. The equivalent circuit then simplifies to Figure 7e, whereby both resistive elements parallel to the CPE can be bundled into a single resistor Rf = Rct + ZW, and Rs stands for solution’s resistance. This model (blue line in Figure 7a) is in excellent agreement with the EIS data, particularly at high frequencies where it closely matches the modified Randle circuit (evidenced by the overlapping green and blue lines in the left semicircle of Figure 7a).
With the model in hand, we proceeded to quantify the Faradaic current used productively to drive this reaction. Experimentally, measuring the instantaneous net current I(t) determines the instantaneous voltage drop I(t)Rs across the resistor Rs. Since the instantaneous voltage drops across Rs and Rf must add up to the instantaneous applied U(t), the voltage drop across Rf must be equal to U(t)–I(t)Rs. But since all current flowing through Rf is necessarily the Faradaic one, IF(t), it follows that U(t)–I(t)Rs = IF(t)Rf, from which we obtain instantaneous Faradaic current in the system:
IF(t)=U(t)−I(t)·RsRf
(4)
In other words, IF(t) can be estimated from applied U(t) and measured I(t) as long as we know the equivalent circuit parameters Rf and Rs. We determined these parameters by fitting the equivalent circuit’s current predictions to the experimental I(t) recordings. Specifically, given an instantaneous applied voltage U(t), the current predicted by the equivalent circuit can be calculated by Fourier transforming the U(t) into frequency (f) domain U^(f) = ∫∞–∞U(t)·e–2πift dt, then dividing it by the frequency-dependent complex impedance Zt(f) = Rs + (ZCPE(f)−1 + Rf–1)−1 of the equivalent circuit, where the frequency dependence owes to the impedance ZCPE(f), and then performing an inverse Fourier transform back into time domain:
Ipredicted(t)=∫−∞∞U^(f)Zt(f)e−2πiftdf
(5)
The best-fit equivalent circuit’s parameters Rs, Rf, and Y are found by minimizing the least-squares difference between Ipredicted(t) and measured I(t), while m was fixed to the value obtained from EIS to make the fitting well-conditioned. We used the Trust Region Reflective optimization algorithm (28) for this purpose. The obtained goodness of the fits was independently validated using the EMCEE implementation of Affine Invariant Markov chain Monte Carlo Ensemble sampler. (45)
With the fits matching the experimental data closely (Figure 8a and also SI, Section S10), the Faradaic equivalent of electrons delivered during the reduction can be expressed as Feq = ∫IF(t)dt/(F·n), in which F is Faraday’s constant, and n is the molar quantity of substrate engaged. The key result of this analysis is then presented in Figure 8b, which shows that Feq required for complete reduction of compound 8 to 9a (i.e., to reach maximum concentration of 9a, see Figure 6) increases approximately linearly as a function of square-pulse frequency and tends to the DC value (red marker) at the low-frequency limit. This limit validates the method of Faradaic current evaluation, because DC data was not used in the fitting procedure applied to the AC data, and under DC conditions the full I(t) trace can be integrated directly as Faradaic current. Importantly, DC is ca. three times more efficient than the 20 Hz, 25-ms pulse width square waveform.

A noteworthy limitation of this approach to modeling the I(t) recordings for high-overpotential AC electrosynthesis─employed by ref (23) and reproduced here─is that EIS delivers system parameters at low-potential regime (up to 1 V), and yet these parameters are then used as initial guesses when approximating the system’s behavior during AC electrosynthesis, which uses overpotentials ∼10 V. In the future, a promising alternative to these traditional models based on equivalent circuits may come in the form of detailed simulations of I(t) by ab initio theories such as the one by Luo et al. (29) and others (30) (cf. Figure 8a to Figure 3d,f in ref (29)). At present, predictions of the best published models of this kind are off by a factor of 24 from experimental observations: to roughly match the order of magnitude of experimental yields at 3 h of reaction time, the simulations must be evaluated at 3 days of reaction time instead. (30) Still, there is promise that further developments of these theories may make them capable of matching the experimental I(t) traces in AC electrosynthesis quantitatively, not just qualitatively. To aid this future theoretical development, we are releasing a public repository with all the raw recordings (180 million time points per recording; 5 total recordings) of I(t) traces collected in the present work.
Part 2. Sequential Electroreductions in the Presence of Base
As mentioned in the Introduction section, during the revision process of our work, the Baran and Grzybowski laboratories reached a consensus that the results described in Part 2.1 hold and that, in sequential phthalimide reductions under conditions described in ref (23), AC offers no systematic yield or selectivity advantage over DC. The Baran group reinvestigated their samples and established that some of the Me4NBF4 salt was contaminated with an impurity. As they describe in the Corrigendum (24) accompanying our work, repeating the reactions with 15 mol % (relative to salt) of a Me4NOH base, the yields do improve markedly to the values described in the original paper for key reactions─rewardingly, we were able to obtain similar values (see SI, Section S3, Table S2).
We also agree with the Corrigendum (24) that the original mechanism of rAP’ selectivity─which prescribed that “if the rate of polarity switching is faster than the rate of certain processes on an electrode, a slower subset of electrochemical processes might be suppressed” (23)─does not hold. The internal inconsistency of this scenario is discussed in detail in the SI, Section S20. We note that recent theoretical works (29, 30) proposed a physically sound alternative for predicting AC electrosynthetic outcomes based on simulating the influence of waveform on the temporal evolution of (possibly coupled) concurrent reaction and transport processes, rather than on directly comparing the polarity switching rate to some intrinsic rate constants. However, the AC-dependent selectivity regimes identified in these theoretical studies rely on small overpotentials (comparable to thermal energy kBT/e) for subtle tuning of reaction rates differentially─in sharp contrast to ref (23) and the present work, where the applied overpotentials are so large (0.7–1.2 V ≈ 27–47 kBT/e) that the reaction rates become limited by mass action and transport instead of following Butler–Volmer equations. In the Corrigendum, (24) the authors correctly state that under the updated conditions, processes such as Shono oxidation are not kinetically suppressed but rather outcompeted by oxidative decarboxylation of the sacrificial reductant (pivalic acid, PivOH), in the presence of a catalytic amount of base. While they describe the new set of experiments at pulse widths doubled from their original work (i.e., “towards” the DC regime), they maintain that DC conditions are sluggish. They also state that the original conclusions of ref (23) continue to hold, including claims that in sequential electroreductions, AC offers distinct advantages over DC.
However, the following Sections document that these claims remain unsubstantiated, that the mechanistic picture needs further correction, and that under appropriately chosen conditions, DC can perform as well─or better─than AC.
Electron-Transfer Kinetics in the Presence of Base
Let us begin by reassessing the role of the base and analyzing the electron-transfer kinetics in more detail. Obviously, addition of Me4NOH establishes an equilibrium between pivalic acid and its pivalate conjugate base (Figure 9). The key observation is that pivalic acid is harder to oxidize than pivalate and, because pivalic acid is a weak acid, it is only marginally dissociated in methanol (estimated at <0.03% using the Born equation and the literature value of 0.18% in water). Voltammetric analysis of these species at the same scan rate shows that the onset potentials for electrochemical oxidation (determined by extrapolating the linear, activation-controlled region of the anodic waves) follow the trend EPivONa < EPivOH+Me4NOH < Esubstrate < EPivOH < EMeOH, where substrate refers to the model substrate 6 (Figure 10, top panel). This indicates that PivO–Na+ is the kinetically most accessible sacrificial reductant. Indeed, PivOH itself does not exhibit a distinct oxidation peak even up to 2.2 V. At equal total concentration, the peak current for PivO–Na+ is larger than PivOH + Me4NOH, consistent with a higher concentration of the active (deprotonated) species in solution.
Tafel analysis for the rate-determining step shows that for all species investigated in Figure 10 (see SI, Section S18 for individual Tafel plots), the observed oxidations exhibit sluggish kinetics with electron-transfer coefficients (α), assuming a one-electron rate-determining step, in the range of 0.2–0.4 (Figure 10, bottom panel). This is consistent with irreversible, inner-sphere processes involving adsorbed and short-lived radical intermediates, features well-known from systems such as the Shono oxidation of amines, the electrooxidation of pivalate, or the electrolysis of methanol on carbon electrodes.
However, PivO–Na+ exhibits an exchange current density (j0) approximately 1 order of magnitude higher than PivOH + Me4NOH, and around 4 orders of magnitude higher than PivOH or the model substrate 6. Moreover, scan-rate-dependent cyclic voltammetry confirms that electrooxidation of all these species is diffusion-controlled; thus, adsorption of species on the electrode does not dominate the kinetics.
Although Shono oxidation of substrate 6 is relatively slow, its rate is still comparable to that of PivOH + Me4NOH. This sluggishness is also visible in the voltammetry: the substrate’s Shono peak almost disappears at 400 mV·s–1 (Figure 10, top panel) (as Baran also reported in the original SI). This disappearance does not mean the reaction ceases; rather, cyclic voltammetry, being a kinetic analysis, fails to capture the process at fast scan rates. Importantly, the substrate’s electron-transfer coefficient (α ≈ 0.38) is higher than that for PivO– (≈0.26 for all PivO–-containing conditions), implying that as overpotential increases, the rate of substrate oxidation increases proportionally more than the rate of oxidation of the sacrificial reductant. From the Butler–Volmer relationship, current increases exponentially with overpotential, so at the operational voltages used synthetically (>5 V), all these processes happen fast and simply become mass-transport-limited. Additionally, at the high applied voltages used synthetically, significant iR drop accelerates the transition to diffusion-limited currents for all species, further diminishing the importance of electron-transfer kinetics relative to mass transport.
Thus, these observations reveal a simple but decisive principle: once all oxidations enter the diffusion-limited regime at operative potentials, selectivity is dictated not by intrinsic kinetics but by a simple rule of mass transport: the species that delivers the larger steady-state flux to the electrode wins. Taken together, this evidence suggests that DC could perform as well as AC simply by increasing the concentration of pivalate, thereby boosting the flux of the sacrificial reductant and outcompeting Shono oxidation of the substrate.
DC vs AC Electrolysis in the Presence of Base
Under DC electrolysis, the anode also oxidizes methanol to products such as formaldehyde, formic acid, and ultimately CO2, generating protons in the process. These protons accumulate within the hydrodynamic boundary layer (≈20–50 μm), where even with vigorous stirring, the fluid flow is minimal, and mass transport occurs primarily by diffusion, not convection. The resulting local decrease in pH drives the PivOH/PivO– equilibrium toward the less oxidizable PivOH. Moreover, methanol poorly stabilizes ions, and acid–base equilibria are extremely sensitive to local proton buildup; therefore, even modest anodic proton generation disproportionately shifts the PivOH/PivO– equilibrium (Figure 9) toward the protonated form (PivOH), as is the case under DC bias (Figure 11a elements marked by yellow “1”). By contrast, under AC electrolysis, this local pH shift is periodically neutralized at the conclusion of each cycle, and, as noted in the Corrigendum, (24) this helps maintain the concentration of PivO–, thereby allowing it to outcompete slower processes such as Shono oxidation (Figure 11b, elements marked by yellow “2”).
![Figure 11. (a) Illustration of the electrode-pH behavior under DC, where the anode retains a persistent acidic environment (multiple red dots) and the cathode remains persistently basic (multiple blue dots). The bottom part, with a light-red background, is for the case of an aprotic solvent. (b) Illustration of the dynamic electrode-pH behavior in an AC experiment: acidic buildup at the anode during the anodic half-cycle is neutralized from the basic buildup at the cathode during the cathodic half-cycle, with polarity switching yielding an overall neutral pH around both electrodes (fewer red and blue dots). Under DC, if a small amount of PivO^(–) is present, it is largely protonated back to PivOH (yellow markers “1”) due to the persistent H⁺ gradient at the anode. By contrast, under AC, the same small amount of PivO^(–) remains largely unprotonated at the anode, and can undergo oxidative decarboxylation, outcompeting Shono oxidation (yellow markers “2”). However, despite acidification effects at the anode under DC, larger amounts of PivO^(–) (from PivO^(–)Na⁺ used instead of PivOH/Me₄NOH) can be used to drive the productive decarboxylation pathway via mass-action (yellow marker “3”). Furthermore, buildup of the H⁺ gradient at the anode (prominent in methanol) can be eliminated under DC conditions if an aprotic solvent such as acetonitrile is used─this promotes the productive decarboxylation pathway by maintaining an accessible concentration of PivO^(–). Note, electrons involved in electrochemical processes have been omitted for clarity, and the abbreviation “Phth” is used to denote the phthalimide moiety on 6. (c) Yield curves of 6, 7a, and 7b for 20 mA galvanostatic DC reactions at 6 F mol^(–1) performed under the Corrigendum (24) conditions ([substrate]₀ = 40 mM, [Me₄NBF₄] = 80 mM) except that Me₄NOH is replaced with PivO^(–)Na⁺ while keeping the total sacrificial reductant engaged constant (PivOH + PivO^(–)Na⁺ = 0.3 mmol) with increasing proportions of PivO^(–)Na⁺. Note that substituting 0.3 equiv of Me₄NOH with 0.3 equiv of PivO^(–)Na⁺ provided comparable yields of 7b under the Corrigendum (24) DC conditions (20 mA, 6 F mol^(–1))─11% vs 10%─demonstrating that this substitution is valid. (d) Yield curves of 6, 7a, and 7b for 20 mA galvanostatic DC reactions (0–6 F mol^(–1)) using the Corrigendum (24) conditions but employing the optimized (indicated in (c)) and reversed sacrificial reductant ratio ([PivOH] = 12 mM, [PivO^(–)Na⁺] = 108 mM). (e) Yield curves of 6, 7a, and 7b for 20 mA galvanostatic DC reactions (0–6 F mol^(–1)) under the Corrigendum (24) conditions ([substrate]₀ = 40 mM, [Me₄NBF₄] = 80 mM, [PivOH] = 120 mM, [Me₄NOH] = 12 mM) conducted in methanol. (f) Yield curves of 6, 7a, and 7b for 20 mA galvanostatic DC reactions (0–6 F mol^(–1)) under the same Corrigendum (24) conditions but carried out in rigorously anhydrous acetonitrile (1.9–2.5 ppm of H₂O by KF titration). All reactions were performed on an IKA ElectraSyn 2.0 at room temperature using 100 ppi RVC(+)/RVC(−) electrodes.](https://assets.scievidence.com/papers/10.1021/jacs.6c09157/figure-11.png)
DC Can Match AC Performance Simply by Avoiding PivOH or by Using an Aprotic Solvent
However, the above mechanistic analysis also implies that it should be possible to make DC perform as well as AC by altogether avoiding PivOH as a sacrificial reductant (and forcing its deprotonation by adding base) but, instead, by using a larger amount of pivalate, e.g., PivO–Na+ (note: as opposed to “catalytic” amount of Me4NOH base suggested in the Corrigendum (24)). The rationale here is based on a simple mass-action argument: if more PivO– is added, some of it will be neutralized by the H+ gradient near the anode, but some will also reach the anode to undergo oxidative decarboxylation before the reaction substrate does (Figure 11a, yellow marker “3”).
We evaluated this hypothesis under DC for the model substrate 6 by varying the amount of PivO–Na+, while maintaining a fixed total reductant loading of 0.3 mmol (PivOH + PivO–Na+ = 0.3 mmol) to be consistent with the Corrigendum (24) conditions. As shown in Figure 11c, increasing the amount of PivO–Na+ (higher χ values) raises the DC yield of the fully reduced product to a maximum 66%, which is now slightly above the reported AC yield of 62% (20 mA, 20 F mol–1, 50 ms). Interestingly, this maximum was achieved simply by reversing the reported acid–base mole fraction in the Corrigendum (24) to 0.3:2.7 (point χ = 0.9 highlighted in gray in Figure 11c), thus avoiding the use of additional reagents or excess quantities to drive the reaction. In fact, PivOH is not even required at all to form 7b: simply substituting 3 equiv of PivOH for 3 equiv of PivO–Na+ provides a 60% yield of 7b (See SI, Section S7, Figure S41). This underscores that straightforward optimization strategies may be sufficient to achieve efficient product formation under DC.
Next, focusing on the PivO–Na+ system and remembering that yields and selectivities of DC reductions depend on time (which are shorter than for AC, see Section 2.1.3), we optimized the time variable (F mol–1) and reassessed the yields of both the partly reduced product 7a and the fully reduced 7b. As can be seen in Figure 11d, not only can we achieve a comparable maximum of 7b (blue curve) but, at shorter times, we can also obtain 7a ( red curve) with high selectivity and 76% yield comparable to that reported in ref (23). We note that under these optimized DC conditions, it is possible to eliminate Shono oxidation as effectively as under AC.
Our mechanistic picture so far is that using excess base suppresses the local H+ gradient at the anode, allowing Shono oxidation to be outcompeted and enabling clean formation of 7a and 7b. A complementary way to address this H+ layer is to replace methanol (protic reaction solvent), which can generate additional protons during electrolysis, (46) with an aprotic solvent such as acetonitrile, thereby eliminating this proton source (Figure 11a, yellow marker “4”). To investigate this second approach, we first applied the Corrigendum (24) conditions (namely, 0.3 mmol PivOH and 0.03 mmol Me4NOH) but under DC to obtain time traces of 7a and 7b in methanol. As shown in Figure 11e, these conditions deliver only modest yields of 7a and 7b because, as we already mentioned, a substantial H+ concentration at the anode decreases the effective amount of PivO– available. We then repeated these experiments in a glovebox using rigorously dried acetonitrile (1.9–2.5 ppm of H2O by KF titration) under the same conditions, which led to a dramatic improvement, with maximum yields of 70 and 65% for 7a and 7b, respectively (Figure 11f). Moreover, strictly anhydrous conditions were not even required to provide improved performance: both commercially “anhydrous” acetonitrile (∼25 ppm of H2O, Sure-Seal, Sigma) and a standard nonanhydrous HPLC grade (∼285 ppm, Samchun) gave comparable performance (see SI, Section S7, see Table S5), highlighting how strongly a simple solvent change impacts reactivity. Impressively, the two strategies used to investigate the proposed mechanism─excess base or aprotic solvent─produced nearly identical time-dependent product distributions; comparing Figure 11d and f, the average differences in 7a and 7b yields over time were only 2.5 ± 3.0% and 2.3 ± 2.0%, respectively. Thus, whether by mass action or by removing proton sources with an aprotic solvent, both approaches can be applied in a simple manner to recapitulate the favorable reactivity observed under AC.
Time Rather Than AC Frequency Dictates Outcomes of Reaction Sequences
In Part 2.1, we saw that in the absence of base, the AC frequency itself does not control the yields of partly vs fully reduced products─instead, what matters is the time (i.e., the F mol–1 charge delivered), which in Figure 6d,e we showed to be self-similar/rescalable under different frequencies. Still, the Corrigendum (24) maintains that with the addition of base, the original conclusions of ref (23) hold─i.e., that AC shows the abrupt product switching depending on frequency (e.g., from 25 to 50 ms in ref (23)). However, experiments summarized in Figure 12 demonstrate that this is not the case and, similar to the DC conditions in Figure 11, product ratios and selectivities can be gradually varied by time. For instance, in ref (23), the 25 ms square-wave pulses at 20 F mol–1 were reported to give product 7a cleanly─however, if the time is extended to just under 50 F mol–1, 7a will gradually disappear, and the same waveform will give predominantly product 7b (Figure 12a). The opposite is observed for 50 ms, for which 20 F mol–1 was reported to give 7b with high selectivity. However, by simply decreasing the time from 20 to 5 F mol–1, the same waveform produced the first reduction product, 7a with high selectivity (Figure 12b).
![Figure 12. (a) Yield curves of 6, 7a, and 7b for 25 ms square wave, 20 mA galvanostatic AC reactions performed under the Corrigendum (24) conditions ([6]₀ = 40 mM, [Me₄NBF₄] = 80 mM, [PivOH] = 120 mM, [Me₄NOH] = 12 mM) extended to longer electrolysis times (0–55 F mol^(–1)). (b) Yield curves of 6, 7a, and 7b for 50 ms square wave, 20 mA galvanostatic AC reactions carried out under the same Corrigendum (24) conditions but examined over shorter electrolysis times (0–20 F mol^(–1)). All reactions were conducted on an IKA ElectraSyn 2.0 at room temperature in methanol using 100 ppi RVC(+)/RVC(−) electrodes.](https://assets.scievidence.com/papers/10.1021/jacs.6c09157/figure-12.png)
These observations are also fully consistent with Part 2.1, where we showed that 25 ms is less efficient than 50 ms and therefore requires more time (i.e., more charge) to reach the second, sequential reduction and that the shift in product distribution is gradual rather than abrupt.
Further Evaluation of DC and Waveform Effects under the Corrigendum (24) Conditions
In Part 2.1, we showed that direct current can control reaction outcome just as effectively as AC, but typically on a much shorter time scale. We also found that alternative waveforms, such as sinusoidal and triangular, can provide the same outcome when longer reaction times are used to compensate for the smaller charge delivered (F mol–1) per pulse.
These conclusions also hold under the Corrigendum (24) conditions. For instance, in Baran’s original work, (23) reduction of the model substrate 6 under DC at 20 F mol–1 (and either 20 mA or 5 mA) was reported to produce neither the partly reduced 7a nor the fully reduced 7b (i.e., zero yields for both) with no recovery of the starting material. We confirmed this result under Corrigendum (24) conditions but hypothesized that this was not due to the implausibility of DC reduction as such but rather due to excessively long electrolysis time (cf. Figure 11e, where the yield maximum is reached near 4.5 F mol–1 and extension to 20 F mol–1 is expected to result in complete degradation of all formed products). We therefore repeated the experiment under the Corrigendum (24) conditions but at 6 F mol–1 (5 mA)─reassuringly, we obtained 7b in 52% yield (determined from crude 1H NMR analysis).
We next examined the reported waveform effects, again under the Corrigendum (24) conditions. First, we repeated the potentiostatic 10 Hz (50 ms pulse width) square-wave experiment (entry 1, Table 1) using either the IKA ElectraSyn (entry 2) or a waveform generator with a voltage amplifier (entry 3). The latter setup was employed to enable comparison with nonsquare waveforms, since the ElectraSyn is limited to square-wave operation. Under both setups, however, we obtained only good yields of the partly reduced product 7a (56–72%) and did not reproduce the reported 73% yield of 7b. However, because the stated potential appeared too low to account for the reported outcome (at the given reaction time), and because similar galvanostatic reactions routinely operate at higher potentials, we repeated the square-wave experiment at our standard 13 V for 2.66 h─this, indeed, gave 7b in 69% yield (entry 4).

Using this higher potential, we then tested the sinusoidal and triangular waveforms─in ref (23), 7b was readily formed under square pulsing, but the sinusoidal waveform was reported to give only the partly reduced 7a. By contrast, in our reproductions, 7b could be formed in good yields under both sinusoidal and triangular waveforms by simply extending the reaction time beyond that used for the square wave. The sinusoidal waveform gave 77% yield of 7b after 8 h (entry 6), whereas the triangular waveform gave 73% yield after 19.5 h (entry 7). Collectively, these results again underscore two main points: first, that reaction time is critical and DC comparisons should therefore be made at appropriately shorter times than effective AC conditions; and second, that square waves do not possess uniquely privileged reactivity for chemoselective, sequential phthalimide reductions, since other waveforms can achieve the same outcome when sufficient time is allowed.
With Machine-Learning Guidance, DC Can Match the AC Yields across Different Substrates
Finally and importantly, we re-examined the same set of derivatives discussed in Part 2.1 (1–5, Figure 1) and reported in ref (23) to afford excellent yields under AC electrolysis but poor yields under DC conditions. First, we applied the Corrigendum (24) conditions to AC electrolysis, obtaining yields listed in Figure 13 (row “A”)─these values were, indeed, significantly higher than yields obtained under AC but in the absence of Me4NOH (cf. Figure 1, row “D”). We then performed electroreductions on the same substrates using the Corrigendum (24) conditions but switching from AC to DC, while independently selecting for each reaction the electrolysis time that maximized yield (Figure 13, row “B”). Under these simply time-optimized DC conditions, the yields of 2a and 3a were much lower than under AC, the yield of 4a was commensurate, but yields for 1a and 5a surpassed their corresponding AC values.
Next, we focused on optimizing the DC yields of 2a and 3a. To do so, we implemented a Bayesian optimization (BO) workflow using Gaussian process (GP) regression to accelerate identification of improved DC conditions (Figure 13, row “C”). All technical details of this model are provided in the SI, Section S19, whereas the codes and experimental data are deposited at https://github.com/7NathaN/BayesianOptimization-ACDC.
Briefly, the model evaluated several experimental variables, including electrode pairing (RVC/RVC, RVC/Gr, Gr/Gr), solvent (MeOH, EtOH, MeCN), electrolyte (Me4NBF4 or Bu4NBF4), charge delivered (F mol–1), current (mA), pivalic acid equivalents, base identity (Me4NOH, DIPA, DIPEA, AcO–Na+, or PivO–Na+), and base equivalents. In addition, because our earlier experiments with substrate 6 (Figure 11) indicated that DC performance is affected by pH, we incorporated into the GP model the initial water content and the numerically estimated solution pH. The model was retrained iteratively after each experimental batch.
To maximize the yield of 2a, three rounds of BO were performed (Figure 14a), supported by initial exploratory experimental data. For the first round, we wished to establish whether the BO approach could be helpful at all; candidate selection was therefore performed using κ = 0, corresponding to a purely exploitative strategy in which the Gaussian Process (GP) predicted mean yield (μ) was directly maximized. The top-ranked condition identified by the model was then evaluated experimentally, resulting in an improvement in yield from 5 to 17%. Encouraged by this result, we asked the retrained model to provide ten suggestions, of which three were selected by us and performed. This human selection from the BO-generated suggestions was further guided by practical experimental constraints, specifically our need to maximize the number of experiments that could reasonably be performed and analyzed within the same day, thereby enabling the next optimization round to be planned and executed as quickly as possible on the following day. In this respect, our approach is more appropriately described as BO/GP-guided experimental design with human-in-the-loop decision-making than as a purely closed-loop, model-driven optimization process. This time, the yield increased to 27%. In the third round, ten suggestions were again provided, of which we tested five. The best, 47% yield was for 21.1 mA, 7.7 F mol–1, [2]0 = 40 mM, [Me4NBF4] = 80 mM, [PivOH] = 12 mM, [PivO–Na+] = 240 mM, Gr(+)/Gr(−), MeOH (2.5 mL)─this yield was within the experimental error from the 49% value obtained under the Corrigendum’s AC conditions. At this stage, the model predicted low probability of additional improvements and the campaign was terminated.

To assess the relative contribution of individual parameters to the predicted yield, we combined SHAP (SHapley Additive exPlanations) analysis with permutation feature-importance analysis from 2a reaction data. The SHAP summary plot in Figure 14b captures both the magnitude and directionality of each variable’s effect on the model’s output, identifying base equivalents, F mol–1, pH, pivalic acid equivalents, and electrode material as the most influential features. Permutation feature-importance analysis in Figure 14c─quantifying the drop in the model’s performance upon random permutation of each feature─corroborated this ranking, with the largest decreases observed for F mol–1, pH, and base equivalents. Collectively, these analyses indicate that higher F mol–1, increased base equivalents, and decreased acid equivalents (Figure 14d,e), resulting in a higher pH, tend to shift predictions toward improved yields, whereas low pH consistently drives predictions downward, suggesting that acidic conditions are generally not the most productive pH for DC experiments, consistent with experimental observations for 6 in Figure 11.
In contrast to substrate 2, for substrates 1, 3, and 4, candidate experiments were proposed using an Upper Confidence Bound (UCB) acquisition function of the form μ(x) + κσ(x), with κ varied between 0 and 3 to tune the exploration–exploitation balance. We first applied this UCB-guided BO workflow to substrate 3. After five BO rounds (1–7 reactions per round), we improved the best time-optimized yield by 21%, from 33 to 54%. Notably, the BO-derived conditions diverged from those optimized by Baran for AC: rather than relying on 10 equiv of pivalic acid (with the corresponding 10% base loading), the algorithm suggested a strategy similar to that identified for substrate 2, in which the majority of the sacrificial reductant was provided as PivO–Na+ (6.0 equiv), while a smaller amount of PivOH was retained to modulate solution pH (0.5 equiv). While pH is expected to influence electrochemical reactivity, this shift from strongly acidic to predominantly basic conditions─paired with controlled acid addition─highlights the value of systematic optimization approaches such as BO in identifying nonintuitive yet productive operating regimes.
Finally, we extended the same UCB-guided BO workflow to the remaining substrates 1 and 4, performing a single BO round for each (four conditions proposed, two tested). Under these BO-guided conditions, the yields of 1a and 4a increased, respectively, to 64 and 78%. Substrate 4 mirrored the optimization trends observed for substrates 2 and 3, favoring a substoichiometric acid loading together with a stoichiometric amount of base. In contrast, substrate 1 benefited from conditions in which the acid was present in excess, relative to the base. This distinct behavior is consistent with the relatively high acidity of parent phthalimide 1, which is readily deprotonated, and in this form, the substrate is less prone to electrochemical reduction due to the increased electron density delocalized over the imide.
Taken together, if we compare (for each substrate 1–5) the best yield observed under DC to the best yield observed under AC and then average across the series, the mean DC yield is actually better than the mean AC yield (66.8% vs 56.8%, respectively).
Conclusions
In conclusion, our experiments demonstrate that sequential phthalimide electroreductions driven by AC do not confer systematic advantages over DC electrolysis with respect to yields or selectivities, nor do they suppress competing pathways in a waveform- or frequency-dependent manner. Moreover, DC reductions are inherently more thermodynamically efficient, an important consideration for scaling these processes where energy costs become critical. Mechanistically, the essential finding is that the observed outcomes are not tied to the AC waveform itself, but rather to the consumption of sacrificial reductants and mass-action phenomena across the acidified and basified layers near the electrodes. It should be stressed, however, that these conclusions do not necessarily generalize to branched reactions of unequal kinetic orders, (47) to cases where reduction potentials are very close to each other, (29) or to scenarios where small overpotentials (∼kBT/e) are fine-tuned to differentially affect rates of concurrent reactions. (29, 30, 48) In this sense, our experiments are not intended to and do not undermine the promise of AC-driven electrosynthesis.
From a theoretical perspective, this work underscores the utility of machine learning techniques in optimizing electrochemical processes across a broad range of variables that, to our knowledge, have not previously been systematically explored. We therefore suggest that ML-driven optimization schemes of the type described here should be considered whenever comparing reaction outcomes under DC and AC forcing. To support the broader electrosynthetic community, we also provide a concise set of practical considerations for a balanced comparison of AC and DC electrolysis, emphasizing the importance of regime-specific time-course analysis and condition optimization before mechanistic conclusions are drawn.
Considerations for accurate comparison of AC and DC current regimes
A given current regime should not be evaluated only under the reaction time or delivered charge (F mol–1) optimized for the other regime. Ideally, both AC and DC should be evaluated through their own appropriate time-course profiles. Importance: This enables identification of product maxima, improves assessment of reaction efficiency, and reduces the risk of misinterpreting overelectrolysis as poor intrinsic performance.
Reaction conditions, including sacrificial oxidants/reductants, solvent, and additives, should be optimized within each current regime rather than assumed to transfer directly between AC and DC. Importance: This supports a more rigorous mechanistic comparison and helps separate true current-regime effects from broader condition-dependent behavior.
Abbreviations
AC alternating current DC direct current EDL electrical double layer rAP rapid alternating polarity Me4NOH tetramethylammonium hydroxide ML machine learning DAQ data acquisition DIPEA N,N-diisopropylethyl amine PivOH pivalic acid NMR nuclear magnetic resonance Bu4NBF4 tetrabutylammonium tetrafluoroborate DIPA diisopropyl amine Gr graphite RVC reticulated vitreous carbon EtOH ethanol Me4NBF4 tetramethylammonium tetrafluoroborate MeOH methanol tBuOH tert-butanol HPLC high-performance liquid chromatography LUMO lowest unoccupied molecular orbital EIS electrochemical impedance spectroscopy CPE constant phase element OCP open-circuit potential PivO–Na+ sodium pivalate KF Karl Fischer (titration) BO Bayesian optimization GP Gaussian process MeCN acetonitrile AcO–Na+ sodium acetate SHAP SHapley Additive exPlanations UCB upper confidence bound