Cite

Introduction

Electrical Bioimpedance Spectroscopy (EBS) has been widely used over the last 50 years for biomedical applications [1], such as cancer diagnoses [2], monitoring of physiological activity (lung fluids [3], muscle contractions [4] and cardiac output [5]) and real-time tomography [6]. EBS uses the correlation between material constitution/geometry and electrical impedance to characterize the tissue [7].

The Enhanced Howland Source (EHS) is a current pump used in EBS measurements consisting of one operational amplifier and five resistors [8]. Its parameters (transconductance, output impedance, voltage compliance, noise) can be designed by selecting adequate resistor values and OPAMP model [9, 8, 7]. The transconductance value and minimum voltage compliance are usually fixed by the application requirements, whereas the output impedance and noise should be maximized and minimized, respectively, to avoid measurement errors. Especially concerning the output impedance (Zout), the EHS has limitations in high frequencies.

This paper proposes the usage of differential evolution to design a Howland current source with optimal output impedance according to arbitrary project constraints.

Methodology

The Differential Evolution (DE) optimization method [10] was employed to select the optimal resistor values (R1, R2A, R2B, R3, and R4) for the Howland Source, according to the design goals (see Figure 2).

Being a black-box, population-based metaheuristic, the DE does not use gradient information to guide the optimization process. Instead, DE relies in a fitness function, that determines the quality of a candidate solution. Specifically, the JADE variant of DE was employed [11] to make the optimization process more robust, as JADE automatically updates the DE control parameters. Figure 1 shows a flowchart that describes the general steps of the optimization method.

Figure 1

Flowchart that describes the main steps of the optimization method.

The optimization procedure is based on the mathematical modeling of the Howland Source, and was performed to maximize the output impedance at the highest frequency of operation. A total of 50 candidate solutions were evolved during 1000 iterations of the optimization procedure.

The mathematical model of the Howland Source used in this work includes the resistor set (R1, R2A, R2B, R3, R4) and the Operational Amplifier (OPAMP) non-idealities that potentially affects the parameters of interest, namely the finite open-loop gain A, finite cut-off frequency fc, common mode input resistance RCM. As the algorithm can yield large values of resistors, the input capacitance of the OPAMP (Cin) must also be included on the model, in order to predict instability and high frequency peaks due to phase margin reduction at the negative feedback loop.

The output impedance and transconductance were calculated using Equations 1 and 2. Maximum load capability was evaluated using the model presented by a previous work [12]. The equations were derived from the Howland circuit shown in Figure 2. Zout=R2A(s+12Cin(RCMR1R2A))A(s+12Cin(RCMR3R4))R2B((2Cins+1(RCMR3R4))(sfcπ+1)AR4)+(R2AR2B+1)(s+12Cin(RCMR1R2A))12CinR2A {Z_{out}} = {{{R_{2A}}\left( {s + {1 \over {2{C_{in}}\left( {{R_{CM}}\left\| {{R_1}} \right\|{R_{2A}}} \right)}}} \right)} \over { - {{A\left( {s + {1 \over {2{C_{in}}\left( {{R_{CM}}\left\| {{R_3}} \right\|{R_4}} \right)}}} \right)} \over {{R_{2B}}\left( {\left( {2{C_{in}}s + {1 \over {\left( {{R_{CM}}\left\| {{R_3}} \right\|{R_4}} \right)}}} \right)\left( {{s \over {{f_c}\pi }} + 1} \right){A \over {{R_4}}}} \right)}} + \left( {{{{R_{2A}}} \over {{R_{2B}}}} + 1} \right)\left( {s + {1 \over {2{C_{in}}\left( {{R_{CM}}\left\| {{R_1}} \right\|{R_{2A}}} \right)}}} \right) - {1 \over {2{C_{in}}{R_{2A}}}}}} G=AR4RCM(s2fcπ+1)(RCM(R2BR3(As2fcπ+1+1)+R2BR4)+CinR2BR3R4RCMs+R2BR3R4) G = {{A{R_4}{R_{CM}}} \over {\left( {{s \over {2{f_c}\pi }} + 1} \right)\left( {{R_{CM}}\left( {{R_{2B}}{R_3}\left( {{A \over {{s \over {2{f_c}\pi }} + 1}} + 1} \right) + {R_{2B}}{R_4}} \right) + {C_{in}}{R_{2B}}{R_3}{R_4}{R_{CM}}s + {R_{2B}}{R_3}{R_4}} \right)}}

Figure 2

Schematic circuit of the ground loaded modified Howland Current Source.

The fitness function employed in the selection step of the JADE method is given by equation 3, where p1, p2, p3, and p4 (Equations 4, 5, 6, 7) are penalty factors that implements the design constraints, α is the penalization weight that is calibrated (increased until all design constraints are met), rlmax is given by equation 8, and Gsample is a vector with samples of the transconductance magnitude in the 100 kHz to 1 MHz band. For the Optimized Case 1, the transconductance variance was not taken into account, therefore β = 0 at band. For the Optimized Case 1, the transconductance equation 6. For the Optimized Case 2, the value β = 10−9 was used instead. fitness=Zoutα(p1+p2+p3+p4) fitness = {Z_{out}} - \alpha \left( {{p_1} + {p_2} + {p_3} + {p_4}} \right) p1=|R4R3R2bGp1| {p_1} = \left| {{{{R_4}} \over {{R_3}{R_{2b}}{G_p}}} - 1} \right| p2=|(R2a+R2b)R3R1R41| {p_2} = \left| {{{\left( {{R_{2a}} + {R_{2b}}} \right){R_3}} \over {{R_1}{R_4}}} - 1} \right| p3=βvar(Gsample)median(Gsample) {p_3} = \beta {{{var}\left( {{G_{sample}}} \right)} \over {median\left( {{G_{sample}}} \right)}} p4=1rlmaxRlmax {p_4} = 1 - {{r{l_{{max}}}} \over {R{l_{{max}}}}} rlmax=VsatVinGp(1+R2BR2A+R1)1 r{l_{{max}}} = {{{V_{sat}}} \over {{V_{in}}{G_p}}}{\left( {1 + {{{R_{2B}}} \over {{R_{2A}} + {R_1}}}} \right)^{ - 1}}

Ethical approval

The conducted research is not related to either human or animal use.

Results

In order to validate the algorithm, a case study was performed, consisting of the design of a Howland circuit with a set of pre-defined requirements (Table 1). The operational amplifier model used was the AD825, from Analog Devices™. The algorithm was configured to automatically design the resistor values of the Howland Source, maximizing the output impedance modulus at the maximum desired frequency (in this case 1.2 MHz), while respecting the design requirements and the Howland ratio condition [9]. Also, the resistors were constrained to values between 0.05 and 100 kΩ. The first round of optimization evaluated a solution (Optimized Case 1) consisting of R1 = 4.303990 kΩ, R2A = 0.678260 kΩ, R2B = 2.230320 kΩ, R3 = 7.478330 kΩ and R4 = 5.053760 kΩ. The resulted impedance and transconductance curves are compared with two cases: Case 1 consisted of the common approach of making R2B = R2A = R3 = R4 = R1/2 and G = 1/R2B, a combination that is not yet optimized for output impedance [12]. In this case, the requirements of Table 1 were satisfied using R2B = 3.3 kΩ [12]. Case 2 verified the impact of increasing the feedback resistors, making G = 1/R2B, R2A = R3 = R4 = 100R2B and R1 = R2A + R2B. This approach reduces the feedback current, increasing voltage swing. In this case, R2B = 3.3 kΩ was also used. The resulted output impedance and transconductance (no load) are shown in Figures 3 and 4.

Electrical parameters required for designing the Howland current source.

Transconductance (Gp) 303.03 μS
Frequency Range 10 Hz - 1.2 MHz
Maximum Load (Rlmax) 2.0 kΩ
Supply Voltage (Vsat) ± 5.0 V
Input Voltage (Vin) 1.65 V
Operational Amplifier AD825

Figure 3

Output impedance of the optimized and non-optimized Howland Source circuits.

Figure 4

Transconductance curve of the optimized and non-optimized Howland Source Circuit.

At maximum frequency (1.2 MHz), Case 1 and Case 2 obtained 16.80 kΩ and 2.85 kΩ respectively, whereas the Optimized Case 1 obtained 107.61 kΩ, which is 6.4 times higher than Case 1. In contrast, increasing the feedback resistors (Case 2) incremented the output impedance only at low frequencies, leading to a reduction in Zout at high frequencies due to interactions with the input capacitance of the operational amplifier. All cases presented transconductance peaking at high frequencies, but due to the strong effects of the input capacitance Case 2 presented the largest current error. Finally, it can be seen that the curves generated with PSPICE and the ones evaluated using the equations here presented agree up to 10 MHz.

To verify the dependence of the output current on the load, Figure 5 shows the transconductance of the Optimized Case 1 curves for three different loads. It can be seen that the high frequency current peaking increases with the load, which is the opposite of what happens in Case 1. To verify the time domain effects of peaking, Figure 6 shows the wave-shape of the output current of Case 1 and the Optimized Case 1, considering three different loads. The Optimized Case 1 presented a higher overshoot value that increased with the load, whereas Case 1 obtained lower overshoot that decreased with the load. This behavior may be problematic in sensitive applications measuring high loads, as high overshoot degrades signal performance and resolution, especially when using square waves or other discrete signals. Peaking can be reduced by placing a capacitor in parallel with R4, but this has the cost of significantly reducing the output impedance at high frequencies.

Figure 5

Transconductance (a) magnitude and (b) phase curves of the Optimized Case 1 for three different loads.

Figure 6

Output current of the (a) Case 1 and (b) Optimized Case 1 circuits for three different loads and 1 MHz square wave input voltage.

To minimize the current peaking, another run of optimization was performed, generating the resistor set called Optimized Case 2, using β = 10−9 at equation 6. This approach maximizes the output impedance while lowering the amount of peaking. The algorithm evaluated the solution: R1 = 4.187160 kΩ, R2A = 1.192640 kΩ, R2B = 4.438410 kΩ, R3 = 2.529140 kΩ and R4 = 3.401290 kΩ. The curve had a peak of 6.20% (in contrast with Optimized Case 1, with peak of 57.22%). However, the Zout decreased to the level of Case 1, being slightly higher (20 kΩ) at maximum frequency. This result illustrates a trade-off between output impedance and high frequency peaking presented in the circuits generated by the algorithm, and the designer should decide which parameter is more important for the application.

Although the Optimized Case 1 presented higher current peaking than the Case 1 and the Optimized Case 2, the errors within the bandwidth of interest (up to 1.2 MHz) were significantly smaller, as shown in Tables 2 and 3. In the Optimized Case 1, both magnitude and phase errors were smaller even at maximum load (2.0 kΩ), which is the case of maximum peaking for the Optimized Case 1. This result was expected, as higher output impedance typically results in lower output current variations with the load.

Output Current Error (Magnitude and Phase) for different Loads (at 100 kHz).

Case Load [kΩ] Magnitude [%] Phase [°]
Case 1 0.0 0.62 −0.36
1.0 1.13 −0.65
2.0 1.63 −0.93

Optimized 1 0.0 0.52 −0.30
1.0 0.55 −0.31
2.0 0.57 −0.33

Optimized 2 0.0 0.56 −0.32
1.0 0.99 −0.57
2.0 1.42 −0.81

Output Current Error (Magnitude and Phase) for different Loads (at 1.2 MHz).

Case Load [kΩ] Magnitude [%] Phase [°]
Case 1 0.0 7.55 −4.32
1.0 13.50 −7.75
2.0 19.33 −11.14

Optimized 1 0.0 6.39 −3.67
1.0 6.91 −3.82
2.0 7.53 −4.01

Optimized 2 0.0 6.78 −3.87
1.0 11.95 −6.84
2.0 17.10 −9.81

Although the JADE algorithm is capable of finding the resistor combination that yields maximum output impedance, it does not take into account the variations due to fabrication tolerances. Therefore, Monte Carlo simulations were performed in PSPICE to evaluate the robustness of the circuit solution. In this test, precision resistors with 0.05% tolerances were considered. The Monte Carlo simulation ran 10000 cases (using Gaussian distribution), checking the variation of the output impedance value at the maximum frequency (1.2 MHz). Results are shown in Table 4, with the mean (μ), standard deviation (σ) and coefficient of variation (CV) of the output impedance of each case. It can be seen from Table 4 that the solutions provided by the JADE algorithm are less robust than Case 1, but still provide a significant increase in output impedance at the desired frequency. Better robustness can be obtained using resistors with lower tolerances.

Monte Carlo simulation results (at 1.2 MHz), showing the mean output impedance (μ), standard deviation (σ) and the coefficient of variation (CV) of each case over 10000 runs using 0.05% tolerance resistors.

Case μ [kΩ] σ [kΩ] CV [%]
Case 1 16.26 1.18 7.25
Optimized 103.41 29.89 28.90
Optimized 2 18.67 2.05 10.96
Conclusion

The paper investigated the use of differential evolution for designing and modelling a Howland current source with optimum output impedance and complying with project constraints. It was focused on the output impedance optimization at 1.2 MHz, but can be extrapolated to different frequencies and parameters. It was found a trade off between the high frequency transconductance error and output impedance during the optimization process. Decreasing the transconductance peak can be done by minimizing transconductance variance, however at price of having a decrease in the output impedance. Nevertheless, it was showed that the mathematical model and simulations agreed significantly up to 10 MHz. The analytical nature of the models make them more suitable for iterative optimization algorithms, providing less computational cost and time when compared with numerical and SPICE based optimization approaches. This is a promising output to be used in the design of bioimpedance measurement circuits which, in turns, are very dependent on the clinical application and the biological samples under study. Future work will focus on extracting experimental data, to verify how the algorithm complies with parasitic stray capacitances, non-idealities of the components and the limited availability of discrete valued resistors.