1. Introduction
Fuzzy inference systems (FISs) are powerful tools for analyzing the behavior of electronic circuits to optimize circuit design. They can be used for modeling the response of electronic circuit variables and to simultaneously identify the influence of circuit parameters on an output response. Circuit optimization presents some drawbacks due to the non-linearities in the components that affect the response. In addition, introducing tolerances into the components of the circuit affects the complexity of the resulting equations. Likewise, the use of optimization techniques without feedback from the design process can lead to impractical solutions because the optimized values may not be feasible due to the tolerances of some components and the instabilities that may be generated within the circuit. Therefore, the solution of the optimization process should be verified so that the circuit will remain stable despite any variations in the tolerances of the components.
In the present study, zero-order Sugeno fuzzy inference systems were used to optimize the design of a single stage of a small signal BJT amplifier. The response of this electronic circuit to variations that may arise from tolerances of the passive elements of the circuit were firstly obtained through a Monte Carlo analysis using Cadence®OrCAD® electronic simulation software. These obtained values were then used to build and train two zero-order Sugeno FISs in order to model both the voltage gain (Av) and the total harmonic distortion (THD), which, in itself, is complex to model analytically. The reduction in the THD is important and should be mentioned as it generates perturbations in the output voltage function. It is, therefore, of great technological interest to analyze its behavior in the design of analog circuits.
Any analytical determination of circuits with a high number of components is challenging due to both the existence of non-linearities and their complexity. Simulation together with fuzzy logic techniques can, therefore, contribute to adequately modeling the aforementioned variables as well as to predicting their behavior and their interrelation with other response variables, in order to optimize the design of electronic circuits.
The methodology for optimizing the design of the electronic circuit proposed in this study shows that a fuzzy inference system may be trained to model the response variables of interest and, therefore, to acquire information on the circuit components and to determine their influence on the selected response variables. As shown below, in this study, an iterative process was used to optimize the circuit design using both simulation and FIS modeling.
The remainder of this paper is structured as follows: First a literature review of the state of the art related to this study is included in
Section 2. Then, in
Section 3, the methodology used to develop the fuzzy inference systems and to optimize the electronic circuit design is described. In
Section 4, the results obtained both for the Av and for the THD are presented. A discussion of these obtained results is provided in
Section 5. Finally, the main conclusions of this study are outlined in
Section 6.
2. Literature Review
Mamdani [
1] and Takagi–Sugeno [
2] are the most commonly employed types of FIS for modelling circuit parameters. Several studies can be found in the literature dealing with the application of fuzzy systems [
3,
4]. Likewise, Oltean et al. [
5] studied the application of various types of FISs both for modeling and designing electronic circuits; they proposed the application of a fuzzy optimization method to a CMOS operational amplifier. They employed an adaptive neuro-fuzzy inference system (ANFIS) to tune the initial zero-order Sugeno FIS. Sahu and Dutta [
6] also employed fuzzy logic for the optimization of MOS operational amplifiers, and Hayati et al. [
7] used a Takagi–Sugeno model and an ANFIS for modeling CMOS logic gates. In other studies, Hostos et al. [
8] presented a design approach for active analog circuits using genetic algorithms, where the fitness function of the genetic algorithm is implemented by means of a fuzzy inference system; Wang et al. [
9] designed integrated analog and radio frequency circuits. Regarding total harmonic distortion (THD) modeling, it is worth mentioning the studies of both Chang et al. [
10], in which a FIS for shunt capacitor placement was employed in a distribution system considering harmonic distortions, and Panoiu et al. [
11], in which an ANFIS was used for modeling the total harmonic distortion of the current and the voltage for a nonlinear high power load.
The use of fuzzy inference systems in electronic circuits for a faults’ classification was examined by Arabi et al. [
12], where an ANFIS is used to predict the faults in analog circuits. El-Gamal et al. [
13] employed a fuzzy inference system for single analog fault diagnosis, and Kavithamani et al. [
14] presented a fault detection algorithm based on SBT (Simulation Before Test) for verifying linear analog circuits by employing a fuzzy inference system as a classifier. They concluded that both single and multiple faults can be detected with their proposed method. Among many other studies, Ram et al. [
15] applied a Mamdani FIS for the diagnosis of single and multiple faults in analog circuits, employing SBT approach.
Fuzzy inference systems are widely applied in several industrial areas, as they permit the efficient modeling of response variables. Among the studies that can be found in the relevant literature, Calcagno et al. [
16] employed a Sugeno FIS to detect defects on thin metallic plates as a function of both their position and depth. Some other relevant studies are those of Guo et al. [
17], who described the application of an ANFIS for partial discharge pattern recognition, and Voloşencu [
18], who applied an ANFIS for the speed control systems of electric drives based on fuzzy PI controllers. Likewise, in another study, Napole et al. [
19] employed fuzzy logic control to reduce the hysteresis effect and to increase the performance of piezoelectric actuators.
In other studies, Eboule et al. [
20] compared artificial intelligent techniques and fuzzy logic to detect, classify, and locate faults on power transmission lines. Alhato et al. [
21] employed an adaptive fuzzy extended state observer to improve the control performance of a DC-link voltage loop regulation in a double-fed induction generator-based wind energy converter.
Further examples of the industrial applications of fuzzy systems can be found in a study by Bagua et al. [
22], where type-1 and type-2 fuzzy systems were used to monitor a gas turbine process or in a study by Angiulli et al. [
23], who evaluated the resonant frequency of microstrip antennas. Likewise, the module faults in photovoltaic modules were characterized by Belaout et al. [
24] and two ANFIS were used to detect photovoltaic system faults by Bendary et al. [
25]. Finally, Chang et al. [
26] studied laser module temperature control; many other research studies can be found in the literature in this field.
5. Discussion
In this section, the results are analyzed to show how this methodology can be used to improve an initial circuit design.
Figure 17 shows the main effects plot for the Av. As can be seen from
Figure 17, the variables that have the strongest influence on the voltage gain are R
3, which has a positive correlation, and R
4, which has a negative correlation with the voltage gain. Therefore, an increase in R
3 and a decrease in R
4 would increase the voltage gain of the amplifier. The rest of the parameters have less influence on the voltage gain.
Figure 17 shows that the preferred variations to increase the gain voltage are that R
2 increases and R
1 and R
5 decrease. The capacitors have less influence.
Regarding harmonic distortion, the behavior of R4 is unlike that of the voltage gain, i.e., whereas the preferred variation for R4 is to decrease, in order to increase the voltage gain, in the case of the THD, a decrease in R4 provokes greater harmonic distortion. Therefore, a compromise between both variables should be considered.
New values for the circuit components may be selected from the results shown in the main effects plots depicted in
Figure 17 and
Figure 18. However, in general, these values should be normalized values, and within the same series of tolerances. Moreover, it is possible to employ the fuzzy inference systems developed for both the Av and the THD to predict the response of the circuit. These predicted values are shown in
Table 4. Therefore, in the first iteration, it was decided to increase R
3, selecting a normalized value greater than the one shown in
Table 1, and to simultaneously decrease R
4 to a value lower than that shown in
Table 1, adopting a normalized value as in the previous case. Therefore, the selected values in this first iteration were R
3 = 7.5 kΩ and R
4 = 0.075 kΩ, leaving the rest of the circuit components unchanged. Using the two fuzzy inference systems developed in the second step for the Av and the THD, their predicted values were Av = 35.2113 and THD = 0.3441%.
Notably, the main effect plots shown in
Figure 17 and
Figure 18 suggest an increase in the value of R
3 of over 7.5 kΩ and a decrease in the value of R
4. However, before selecting these values, the circuit stability should be confirmed with the new selected values of the components, which is discussed below. When analyzing the response of the circuit with these new values through simulation, Av = 40.4191 and THD = 0.4140% were obtained. Both fuzzy inference systems offered an approximation of the behavior obtained through simulation, as shown in
Figure 19. If the fuzzy inference systems were trained with more values than those employed in
Table A1, then their precision would increase. In any case, the FIS was capable of predicting the behavior of both the Av and the THD.
Figure 19 shows the initial and the optimized design after the first iteration.
The initial design produced the following values: Av = 27.2472 and THD = 0.2795%. If the harmonic distortion in the new design is considered acceptable, then the voltage gain improvement when R
3 = 7.5 kΩ and R
4 = 0.075 kΩ is 48%. In any case, to verify that the new design remains stable against variations in resistors and capacitors due to the tolerances of the passive elements of the circuit, a Monte Carlo analysis was conducted with the new design. The components of the circuit were varied using a uniform distribution, and the results of the voltage gain and the harmonic distortion are shown in
Figure 20, respectively.
Table 5 shows the average values and the standard deviation of the values shown in
Figure 20. As can be observed, the circuit remains stable against variations in the circuit components due to their tolerances.
Figure 21 shows the outputs of the Monte Carlo analysis.
Table 5 shows that the average value of the voltage gain increases, but the total harmonic distortion worsens. If these THD values are considered acceptable, then new values of R
3 and R
4 could be selected. In this case, from
Figure 17 and
Table 4, a higher value than 7.5 kΩ could have been selected.
New values were, therefore, chosen within the 10% series of tolerance (R
3 = 9.1 kΩ; R
4 = 0.056 kΩ) and the values of all the other components showed no variation with respect to the previous stage. When the new circuit was simulated, the results shown in
Figure 22 were obtained, where Av = 55.46574 and THD = 0.6314%. Notably, since the new input values were outside the range of values used to train the FIS, a greater discrepancy was observed in these results with regard to the data obtained through simulation. If the fuzzy inference systems were trained with more values than those employed in
Table A1, then their precision would increase. Likewise, if the values of the Monte Carlo analysis obtained with the new modified inputs were used to train the fuzzy inference systems, their precision could also be increased. However, in this study, the fuzzy inference systems developed from data shown in
Table A1 were capable of predicting the output variable trends and, hence, they were not modified.
Table 6 shows the average values and the standard deviation values following a Monte Carlo analysis of this new design. These results are shown in
Figure 23.
Figure 24 shows the outputs obtained in the Monte Carlo Analysis. As can be observed in
Figure 23, the circuit remains stable against variations in the components as a consequence of their tolerances. Moreover, with the new values obtained within the second iteration, the voltage gain increases to 104% compared to the initial circuit design.