Next Article in Journal
CBMC: A Biomimetic Approach for Control of a 7-Degree of Freedom Robotic Arm
Next Article in Special Issue
A Variable Step Crow Search Algorithm and Its Application in Function Problems
Previous Article in Journal
Bidirectional Jump Point Search Path-Planning Algorithm Based on Electricity-Guided Navigation Behavior of Electric Eels and Map Preprocessing
Previous Article in Special Issue
PSO-Incorporated Hybrid Artificial Hummingbird Algorithm with Elite Opposition-Based Learning and Cauchy Mutation: A Case Study of Shape Optimization for CSGC–Ball Curves
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Fault Diagnosis in Analog Circuits Using Swarm Intelligence

by
Nadia Nedjah
1,*,†,
Jalber Dinelli Luna Galindo
1,†,
Luiza de Macedo Mourelle
2,† and
Fernanda Duarte Vilela Reis de Oliveira
3,†
1
Department of Electronics Engineering and Telecommunications, State University of Rio de Janeiro, Rio de Janeiro 20550-900, Brazil
2
Department of Systems Engineering and Computation, State University of Rio de Janeiro, Rio de Janeiro 20550-900, Brazil
3
Department of Electronics and Computation, Polytechnic School, Federal University of Rio de Janeiro, Rio de Janeiro 21949-902, Brazil
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Biomimetics 2023, 8(5), 388; https://doi.org/10.3390/biomimetics8050388
Submission received: 24 July 2023 / Revised: 15 August 2023 / Accepted: 23 August 2023 / Published: 25 August 2023

Abstract

:
Open or short-circuit faults, as well as discrete parameter faults, are the most commonly used models in the simulation prior to testing methodology. However, since analog circuits exhibit continuous responses to input signals, faults in specific circuit elements may not fully capture all potential component faults. Consequently, diagnosing faults in analog circuits requires three key aspects: identifying faulty components, determining faulty element values, and considering circuit tolerance constraints. To tackle this problem, a methodology is proposed and implemented for fault diagnosis using swarm intelligence. The investigated optimization techniques are Particle Swarm Optimization (PSO) and the Bat Algorithm (BA). In this methodology, the nonlinear equations of the tested circuit are employed to calculate its parameters. The primary objective is to identify the specific circuit component that could potentially exhibit the fault by comparing the responses obtained from the actual circuit and the responses obtained through the optimization process. Two circuits are used as case studies to evaluate the performance of the proposed methodologies: the Tow–Thomas Biquad filter (case study 1) and the Butterworth filter (case study 2). The proposed methodologies are able to identify or at least reduce the number of possible faulty components. Four main performance metrics are extracted: accuracy, precision, sensitivity, and specificity. The BA technique demonstrates superior performance by utilizing the maximum combination of accessible nodes in the tested circuit, with an average accuracy of 95.5%, while PSO achieved only 93.9%. Additionally, the BA technique outperforms in terms of execution time, with an average time reduction of 7.95% reduction for the faultless circuit and an 8.12% reduction for the faulty cases. Compared to the machine-learning-based approach, using BA with the proposed methodology achieves similar accuracy rates but does not require any datasets nor any time-demanding training to proceed with circuit diagnostic.

1. Introduction

Devices that encompass electronic circuits are categorized into analog and digital circuits. According to statistics, almost 80% of electronic circuits in electronic devices are digital, but approximately 80% of failures primarily occur in the analog parts [1]. Digital circuits generally consist of components from a limited library of very simple models. When comparing digital circuits and analog circuits, fault diagnosis in digital circuits is easier than in analog circuits, as test procedures for digital circuits are well-defined, and only a limited number of faults, such as short-circuits, open circuits, and stuck-at faults, are present in digital circuits. In contrast, diagnosing faults in analog circuits is challenging due to the inherent characteristics of analog circuits, such as nonlinearity and component tolerances, inefficient fault models, inadequate accessible nodes, and measurement uncertainties. Therefore, more advancements are required for the diagnosis of faults in analog circuits.
A circuit failure is defined as an unauthorized deviation of at least one characteristic property or parameter of the system from the acceptable, usual, or standard condition [2]. In the field of analog circuits, failure is generally defined as a change in the nominal value of a parameter that significantly affects circuit performance, leading to circuit failure [3].
The main sources of failure in analog circuits are short circuits, open circuits, and component errors. Changes related to the connection of circuit component terminals result in both short circuit and open circuit failures [1]. A short circuit failure occurs when there is a short between the terminals of circuit components. An open circuit failure occurs when a component terminal does not make contact with other parts of the circuit. The disconnected terminal creates high resistance, leading to an open circuit failure. The components of an electronic circuit can also be the cause of circuit failures. If one of the circuit components is defective, the entire circuit becomes faulty due to the component failure. This component introduces an error in the circuit’s operation.
The development of testing strategies to detect and diagnose faults in analog and mixed-signal circuits is a challenging task that has spurred a significant amount of research due to the increasing number of applications for these circuits and the high cost of testing. Therefore, a strategy to detect and diagnose faults in these circuits is crucial [4].
In the past, an integrated circuit was merely a component in a system, but today the integrated circuit itself is the entire system. With this level of integration, this type of circuit has posed challenging problems for testing and design. Several factors contribute to the increased difficulties, including the lack of good fault models, a lack of a design standard with testability in mind, and the growing importance of timing-related faults [5]. As a result, the testing strategy for fault detection and diagnosis remains heavily reliant on the expertise and experience that engineers have regarding the circuit’s characteristics. Thus, fault detection and identification remain an interactive and time-consuming process [6]. Although there have been significant advancements, these new technologies have not been widely accepted.
The use of computational intelligence techniques for diagnosis is typically based on the construction of models or the use of classifiers. Of course, the success of model-based approaches depends on the quality of the yielded model, which can be challenging to obtain for complex systems. The computational intelligence-based approach, also known as data-driven fault diagnosis, exploits knowledge where fault diagnosis is performed based on available historical data with the aid of a classifier. Knowledge-based intelligence approaches are categorized as transformation-based, optimization-based, rule-based, machine learning-based, or hybrid techniques [1]:
  • In the transformation-based approach, the model of the tested circuit is formulated, and the wavelet transform is applied to both fault-free and faulty circuit signals. A fault dictionary is constructed by extracting the standard deviation of the coefficients. The knowledge, along with the change in faulty parameters, is compared based on the fault dictionary to detect faults in the circuits [7].
  • The optimization-based approach uses optimization algorithms to identify the component parameters. Nonlinear equations representing the tested circuit are considered as the optimization objective functions, and many optimization algorithms adapted for fault diagnosis techniques have been developed for fault detection in circuits. Fault detection is performed by comparing the estimated parameter with the reference values [8,9].
  • In the rule-based approach, fault diagnosis in the circuit is performed based on rules in the form of “if symptoms, then fault.” Additional information is generated depending on the rules and signal domain information. Matching is performed based on this generated information [10,11].
  • The machine learning-based approach exploits the knowledge from previous successful and/or unsuccessful diagnoses to improve the performance of the system in diagnostic procedures. In this case, the response of the circuit under test, with the component parameter value in the circuit without any excitation, is recorded and used as a pattern to train the exploited neural network. The variation of the parameter in the component, after the excitation, is tested using the neural network, which should allow revealing the faulty components of the circuit [1]. These kinds of models for circuit fault diagnostic are not perfect. Their faithfulness is measured by the delivered accuracy rates, achieved during the diagnostic process.
  • Hybrid approaches are those that incorporate both machine learning-based and rule-based techniques for fault diagnosis in circuits [12].
In this work, the optimization-based approach is explored, where two swarm intelligence-inspired optimization techniques are used, allowing the detection of faults in analog electronic circuits based on impulse response. This is performed based on the analysis of the available circuit transfer functions. The experimentation part of this research work is conducted on second- and third-order electronic filters, namely Tow–Thomas Biquad [13] and Butterworth [14], respectively. These filters are flexible and can be used as low-pass, high-pass, and band-pass filters. For each circuit, case studies are performed to evaluate whether the optimization techniques classify the tested circuit either as faultless or faulty. In the latter, it identifies the possible faulty components in the tested circuit. In contrast with machine learning-based approaches, the proposed methodology does not need any prior datasets nor time-demanding training to proceed with analog circuit diagnostic. So, the proposed approach is more efficient in terms of computational time. Moreover, it achieves results with similar accuracy rates.
The remainder of this paper is organized into seven sections. Initially, in Section 2, we provide a literature review on fault diagnosis in analog electronic circuits, presenting techniques that utilize circuit analysis, classification, and optimization. Then, in Section 4, we present the two case studies that will be used in this investigation. Subsequently, in Section 3, we present some basic definitions of circuit analysis and the necessary tools to obtain the transfer functions of circuits. After that, in Section 5, we describe the transformation of fault diagnosis of an analog electronic circuit into an optimization problem and present case studies, introducing the methodologies used to detect fault-free circuits, circuits with a single fault, and circuits with multiple faults. In Section 6, we present the optimized swarming search techniques implemented in this work. Later, in Section 7, we define the testing methodology and the evaluation metrics and present and analyze the achieved results by the two investigated optimization techniques. We also offer a comparative evaluation regarding the performances of the techniques as well as with several classification-based approaches. Finally, in Section 8, we draw pertinent conclusions about which search strategy proved to be more suitable for analog circuit diagnosis. We also suggest some directions for future work improvement.

2. Related Works

This section presents recent works related to diagnosis and fault detection in analog electronic circuits. A fault is understood as a deviation in the value of a circuit component from its nominal value, which leads to a failure of the entire circuit [15]. Faults can be either catastrophic, as when the circuit exhibits open or short behavior, or parametric, as when degradation of a component occurs. Section 2.1 addresses recent works that used traditional circuit analysis techniques. Section 2.2 reviews the works that use classification as a tool for fault diagnosis. Section 2.3 presents related works that use optimization as a methodology for the detection and identification of faults in analog electronic circuits.

2.1. Circuit Analysis-Based Approach

In [16], a method is developed for fault localization and parameter identification in a linear circuit based on alternating current (AC) and direct current (DC). This method requires circuit analysis with nominal parameters and different excitations to measure the voltages at circuit nodes. To identify the fault, the mathematical technique known as the Woodbury Matrix Identity is used. The effectiveness of this methodology depends on the number of accessible nodes for measurement and the voltage differences between nodes in the nominal and perturbed circuits. In the latter case, it is possible for the voltage difference to be so small that it cannot be measured. In [17], a method is proposed for fault diagnosis in linear analog AC and DC circuits, as well as non-linear DC circuits with limited test points. The diagnosis includes soft fault testing of the circuits and identification of faulty elements. The method is based on the linear approximation of non-linear relationships; thus, it works if the parameter variations are small enough, requiring the analysis of two circuits that differ in their excitations. There is no guarantee that the faulty components will be identified in all cases. Sometimes, the set of potentially faulty elements obtained by the method is larger than the set of actually faulty elements.
In [18], an approach for fault diagnosis in analog circuits is presented, using MATLAB/Simulink modeling functionalities. The circuits are modeled in two scenarios: with and without faults. By using the signal flow graph, an input test stimulus is applied, and the presence of faults is identified by comparing the maximum measured output voltage to a predefined threshold. The choice of the voltage threshold for fault detection is one of the key parameters in this approach. The lower the voltage threshold, the higher the chance of detecting a fault. However, if the threshold is comparable to the noise voltage, a fault-free circuit may be misinterpreted as faulty. In [19], a method is developed for diagnosing mild faults in linear analog circuits, with a focus on circuits that feature current conveyors. This method exploits AC state measurement tests and utilizes nonlinear programming as a mathematical tool. The method has shown effectiveness in diagnosing single faults, but it exhibits lower efficiency in the case of multiple faults.

2.2. Classification-Based Approach

In traditional approaches, prior knowledge of the signal pattern model is required for fault diagnosis. However, in knowledge-based approaches, fault diagnosis is performed based on available historical data and with the assistance of classifiers [1]. In [20], a three-step approach technique is presented: testability calculation, fault localization and identification, and estimation of the faulty component value. The use of the MultiLayer Neural Network with Multi-Valued Neurons (MLMVN) as a classifier allows for a very precise association between the faulty component and its respective fault. In this work, a comparison of results is conducted between the classification techniques SVM and MLMVN, with MLMVN demonstrating better effectiveness. In [21], a combined method for fault diagnosis in analog circuits based on dependency matrices and intelligent classifiers is presented. The dependency matrix is calculated using sensitivity coefficients for accessible nodes. In this work, three types of classifiers are used for comparison: Backpropagation Neural Network, K-Nearest Neighbors (KNNs), and Random Forest (RF). The main objective of this method is to obtain groups of preliminary ambiguities through the construction of a dependency matrix, in order to achieve a more accurate diagnostic result using multiple simple intelligent classifiers. In addition, a new algorithm and optimization at the test point are proposed to simplify the input nodes, and the classifier is built for each separable ambiguity group.
In [22], a method for analog circuit fault diagnosis and unknown state recognition based on density peak clustering and a Voting Probabilistic Neural Network (VPNN) is proposed. Pattern recognition techniques such as KNN and density peak clustering procedures are also utilized to automatically determine the number of new neuron classes. In [23], an improved algorithm based on hierarchical Levenberg–Marquardt (LM) combined with Discrete Volterra Series (DVS) is proposed. The DVS is a common feature extraction method with challenging parameter estimation. In this algorithm, DVS is simplified based on the hierarchical symmetry of memory parameters. The LM strategy is used to optimize the coefficients. Additionally, a Bayesian information criterion based on entropy symmetry is introduced for order selection. For fault diagnosis, a method combining the improved DVS algorithm and condensed nearest neighbor algorithm is applied. The improved method showed to be useful for simplifying the calculation of DVS parameters for circuit faults in analog electronic systems. In [24], Decision Tree is used for fault diagnosis in analog electrical circuits. However, to increase the accuracy and efficiency of the Decision Tree, two improved trees are introduced: Cluster Validity-based Decision Tree (CV-DT) and Failure Rate-based Decision Tree (FR-DT). The CV-DT is constructed by an enhanced algorithm that considers the cluster validity index. This method selects the splitting attributes with higher classification credibility, thereby increasing the diagnosis accuracy. On the other hand, the FR-DT, constructed by an enhanced algorithm considering the failure rates, not only considers the partitioning capability of each attribute but also takes into account the prioritization of fault isolation with higher failure rates.

2.3. Optimization-Based Approach

The intelligence-based approach is also referred to as a data-driven fault diagnosis approach. It is categorized into transformation-based techniques, optimization-based techniques, machine learning techniques, hybrid techniques, and rule-based techniques [1]. In [25], a novel method for diagnosing parametric faults in analog circuits based on the circuit’s transfer function is presented. The Genetic Algorithm (GA) is used to optimize the system parameters. In this method, each system parameter is composed of multiple components, which are grouped into appropriate modules. The GA is then employed to design the filter using the system parameters and also diagnose the fault and locate it at the module level. In [26], a recursive method is presented for calculating higher-order sensitivities of node voltages in analog electronic circuits. Fault identification is achieved by solving the equations related to the deviations of the elements, which are obtained from the computation of sensitivity coefficients. To find the solution of these equations, the Particle Swarm Optimization (PSO) technique is exploited.
In [27], a simulation-based GA approach for fault diagnosis is proposed. Fault diagnosis is transformed into an optimization problem, where the genes represent the values of potential faulty component parameters. The faulty response of the circuit is the objective. The goal is to minimize the difference between the actual faulty response and the simulated response from the GA. This method does not save all possible faults in advance, although it can diagnose all continuous fault values. In [28], it is shown that the identification of parameters with faults is important for predicting the remaining useful life of the tested circuit. Based on the circuit’s transfer function, the measured faulty response is used to deduce the possible parameters with faults. It is known that the optimization response is a function of the analog parameters. Typically, the number of independent responses is much smaller than the number of analog components. Underdetermined equations have infinite solutions, meaning there are many combinations of analog parameters that can generate the same faulty response. The proposed method exploits an evolutionary process based on GA. The length of the chromosome is equal to the number of analog components, with each gene representing the parameter value of a component. Based on the gene values and the transfer function, each individual has a simulated response. The objective is to find all possible individuals that minimize the difference between the simulated and measured faulty responses.

3. Analog Circuit Analysis

In circuit analysis, it is possible to find voltages and currents in a circuit by applying a constant frequency input source. By keeping the amplitude of the source constant and varying the frequency, we obtain the frequency response of the circuit. The frequency response can be considered as a complete description of the steady-state behavior of a circuit as a function of frequency.
Ohm’s Law and Kirchhoff’s Laws are the fundamental laws of circuit theory. Reference [29] details how the application of these laws can be used to develop circuit analysis techniques. The techniques are nodal analysis and mesh analysis. With these techniques, any circuit can be analyzed by obtaining a set of simultaneous equations that are then solved to obtain the necessary values of current or voltage. As a result of this set of equations, the transfer function of the circuit in question is generated.
Nodal analysis is a tool used to analyze circuits using node voltages as circuit variables. Choosing node voltages is convenient and minimizes the number of equations that need to be solved simultaneously. Nodal analysis is also known as the node voltage method. Nodal analysis of a circuit with n nodes involves the following three steps:
  • Select a reference node (ground node, 0 V). In the remaining nodes, assign variables  v 1 v 2 , …,  v n 1 . The voltage equations will have the chosen reference node as the reference.
  • Apply Kirchhoff’s laws at each of the  n 1  non-reference nodes. Use Ohm’s law to express branch currents in terms of node voltages.
  • Solve the resulting equations to obtain the node voltage with respect to the reference node.
A mesh is defined as a loop that does not contain any other internal loops. Mesh analysis is a tool that uses the currents of a mesh as circuit variables. Using mesh currents reduces the number of equations that need to be solved compared to using element currents. While nodal analysis utilizes Kirchhoff’s current law to find voltages, mesh analysis uses Kirchhoff’s voltage law to find the unknown currents. Mesh analysis has the limitation of being applicable only to circuits that do not have cross-branches, also known as planar circuits. Mesh analysis of a circuit with n meshes involves the following three steps:
  • Assign mesh currents  i 1 i 2 , …,  i n  to the n meshes.
  • Apply Kirchhoff’s voltage law to each of the n meshes. Use Ohm’s law to express voltages in terms of mesh currents.
  • Solve the resulting equations to obtain the mesh currents.
The steady-state frequency response of circuits is important in many applications, especially in communication and control systems [29]. One specific application is in electrical filters that block or eliminate signals with unwanted frequencies and allow the passage of signals with desired frequencies.
The transfer function is defined as the ratio between the Laplace transform of the output and the input of a given system when the initial conditions are zero [30]. In the analysis of analog electronic circuits with single input and output, the transfer function can be found by relating the voltage of the output signal to the voltage of the input signal, as shown in Equation (1):
H ( s ) = V o u t ( s ) V i n ( s ) ,
where  V o u t ( s )  is the function that defines the output node being analyzed in the circuit and  V i n ( s )  is the input function, both in the Laplace domain.
Circuit analysis studies the behavior of current flow through an electrical circuit, allowing us to understand the influence of each electronic component on the circuit’s response to an input signal. The transfer function of a circuit is described with respect to the measured node being analyzed [28], as shown in Equation (2):
H ( T n ) ( s , x ) = U ˙ o u t ( s , x ) U ˙ i n ,
where n refers to the number of accessible nodes in the circuit,  T n  represents the accessible node of the circuit, x represents the circuit parameters, and  U ˙ o u t  is the function defining the output node being analyzed in the circuit and  U ˙ i n  is the input function, both in the Laplace domain. The transfer function from Equation (2) can also be represented by Equation (3):
H ( T n ) ( s , x ) = a p ( x ) s p + a p 1 ( x ) s p 1 + + a 0 ( x ) b q ( x ) s q + b q 1 ( x ) s q 1 + . . . + b 0 ( x ) ,
where  X = [ x 1 x 2 x K ]  corresponds to the admittance of the K components in the circuit and  q p . In the frequency domain, where  s = j w , it can be observed that the frequency response of the circuit is expressed in complex form, as shown in Equation (4):
H ( T n ) ( j w , x ) = h R e ( T n ) ( j w , x ) + j h I m ( T n ) ( j w , x ) ,
where  h R e ( T n ) ( j w , x )  and  h I m ( T n ) ( j w , x )  represent the real and imaginary parts of  H ( T n ) ( j w , x ) , respectively. With n as the number of nodes in the circuit being analyzed, the frequency response is given by the dataset, as shown in Equation (5):
H ( x ) = [ h R e ( 1 ) ( x ) , h I m ( 1 ) ( x ) , , h R e ( T n ) ( x ) , h I m ( T n ) ( x ) ] ,
where the vector  H ( x )  represents the transfer functions of each node in the circuit, with each node having a real and an imaginary component. Similarly, the measured response for the analyzed circuit is also expressed in real and imaginary components, as shown in Equation (6):
U = [ u ˙ R e ( 1 ) , u ˙ I m ( 1 ) , u ˙ R e ( 2 ) , u ˙ I m ( 2 ) , , u ˙ R e ( T n ) , u ˙ I m ( T n ) ] ,
where U represents the data obtained from measurements in the circuit. The data  H ( x )  and U have the same dimensions and are equally separable.
In circuit analysis using transfer function equations, it is common to analyze the impulse response of the circuit, as in the Laplace domain the impulse function used as the input has a unit value [30]. When  U ˙ i n = 1 , Equation (2) is defined as  H ( s , x ) = U ˙ o u t ( s , x ) . It is noteworthy to point out that, in this work, we use the transfer functions of the tested circuits to continue with its fault diagnosis.

4. Case Studies

In this section, the circuits used as case studies are presented, as well as the process of obtaining their respective transfer functions.

4.1. Case Study 1: Tow–Thomas Biquad Filter

Figure 1 shows the circuit of the Tow–Thomas Biquad Filter. This circuit is a second-order active filter based on two-integrator topology [13].
The circuit parameters consist of the values assigned to the components. In this filter, depending on the parameters, the circuit can function as a low-pass, band-pass, high-pass, or all-pass filter, with different types of cutoff. Therefore, it offers high flexibility in its usage due to its ease of manipulation. The circuit is of the RC and Operational Amplifier (Op-Amp) type. According to Figure 1, the circuit has  X = [ R 1   R 2   R 3   R 4   R 5   R 6   C 1   C 2 ]  as components,  i 1  to  i 8  represent the currents in the components,  V i n  is the input voltage, and  V 0  to  V 7  are the voltages at the circuit nodes. So, using the nodal and mesh analyses of the circuit, we can obtain the transfer function. By convention, the calculations will be made considering that the Op-Amps are ideal, meaning that there is no current at the input terminals and the voltages at the input terminals are equal for these components. Therefore, we have the following equations in the Laplace domain:
V 0 = 0
V 1 V 0 = V i n V 1 = V i n
V 2 V 1 = R 1 i 1
V 3 V 2 = R 2 i 2
V 3 V 2 = i 3 s C 1
V 4 V 3 = R 4 i 5 ,
V 5 V 4 = i 6 s C 2
V 6 V 5 = R 6 i 7
V 7 V 6 = R 5 i 8
V 7 V 2 = R 3 i 4 .
Due to the characteristics of the Op-Amps, it can be observed that  i 5 = i 6 = i 7 = i 8 . Therefore, all of them can be replaced by  i 5  in the calculation development. Based on Equations (13)–(16), we obtain Equation (17):
V 7 V 3 = R 4 + 1 s C 2 + R 6 + R 5 i 5 .
At nodes  V 2  and  V 3  of the circuit in Figure 1, we have Equations (18) and (19), respectively:
i 1 = i 2 + i 3 + i 4
i 5 = i 2 + i 3 .
As explained in Section 3, obtaining the transfer function involves initially determining the selected input and output nodes of the circuit. For Figure 1, the generator  V i n  is used as the input at node  V 1 . In this circuit, the output terminals of the Op-Amps were considered as accessible nodes. Therefore, there are three accessible nodes for data collection: node  T 1  at  V 3 , node  T 2  at  V 5 , and node  T 3  at  V 7 . The transfer functions are obtained by manipulating the presented equations to find a relationship between  V 3 V 5 , and  V 7  and  V i n .
So, by using Equations (10)–(12) and (16)–(19), we obtain the transfer function of the circuit in Figure 1 with respect to node  T 1  ( H ( T 1 ) ( s ) ), given by Equation (20):
H ( T 1 ) ( s ) = V 3 V i n = s R 1 C 1 s 2 + 1 R 2 C 1 s + R 5 R 3 R 4 R 6 C 1 C 2 .
Using Equation (20), which provides the relationship between  V 3  and  V i n , and Equations (13) and (14), we can obtain the transfer function of the circuit in Figure 1 with respect to node  T 2  ( H ( T 2 ) ( s ) ), given by Equation (21):
H ( T 2 ) ( s ) = V 5 V i n = 1 R 1 R 4 C 1 C 2 s 2 + 1 R 2 C 1 s + R 5 R 3 R 4 R 6 C 1 C 2 .
Using Equation (21), which provides the relationship between  V 5  and  V i n , and Equations (15) and (16), we can obtain the transfer function of the circuit in Figure 1 with respect to node  T 3  ( H ( T 3 ) ( s ) ), given by Equation (22):
H ( T 3 ) ( s ) = V 7 V i n = R 5 R 1 R 4 R 6 C 1 C 2 s 2 + 1 R 2 C 1 s + R 5 R 3 R 4 R 6 C 1 C 2 .

4.2. Case Study 2: Butterworth Filter

Figure 2 shows the circuit of the Butterworth Filter. This circuit is a third-order active filter developed by [14]. Depending on the parameters, the circuit can function as a low-pass, band-pass, or high-pass filter, with different types of cutoff. Therefore, it offers high flexibility in its usage due to its ease of manipulation. This filter is widely used in biomedical applications, as signals need to be first amplified and filtered for further processing [31]. The circuit is of the RC and Operational Amplifier (Op-Amp) type.
According to Figure 2, the circuit has  X = [ R 1   R 2   R 3   R 4   R 5   R 6   R 7   C 1   C 2   C 3 ]  as components,  i 1 i 10  represent the currents in the components,  V i n  is the input voltage, and  V 0  –  V 8  are the node voltages. So, by performing nodal and mesh analyses of the circuit, we can obtain the transfer function. As a convention, the calculations will be made assuming ideal Op-Amps, meaning there is no current at the input terminals of these components. Based on Figure 2, we obtain the following equations in the Laplace domain:
V 0 = 0 ,
V 1 V 0 = V i n V 1 = V i n
V 2 V 0 = i 2 s C 1 V 2 = i 2 s C 1
V 2 V 1 = R 3 i 1
V 3 V 0 = R 1 i 3 V 3 = R 1 i 3
V 4 V 3 = R 2 i 4
V 5 V 4 = R 4 i 5
V 6 V 5 = R 5 i 7
V 6 V 0 = i 8 s C 3 V 6 = i 8 s C 3
V 7 V 0 = R 6 i 9 V 7 = R 6 i 9
V 8 V 5 = i 6 s C 2
V 8 V 7 = R 7 i 10 .
Based on the characteristics of the operational amplifiers, we can conclude that current  i 1 = i 2 , current  i 3 = i 4 , current  i 7 = i 8 , and current  i 9 = i 10 . All of these can be replaced by  i 1 i 3 i 7 , and  i 9 , respectively, in the following development. Based on Equations (28)–(30), we have  V 5 = ( R 1 + R 2 + R 4 ) i 3 . Furthermore, at node  V 5  of the circuit in Figure 2, we have  i 5 = i 6 + i 7 .
As explained in Section 3, the transfer function is obtained by initially determining the nodes considered as input and output of the circuit. For the circuit in Figure 2, the generator  V i n  is used as the input at node  V 1 . In this circuit, there are five accessible nodes for data collection: node  T 1  with  V 3 , node  T 2  with  V 4 , node  T 3  with  V 5 , node  T 4  with  V 7 , and node  T 5  with  V 8 . The transfer functions are obtained by manipulating the presented equations to find a relationship between  V 3 V 4 V 5 V 7 V 8 , and  V i n .
Using Equations (25)–(27) and (31)–(34), and taking into account the aforementioned current equations, the transfer function of the circuit in Figure 2 with respect to node  T 1  ( H ( T 1 ) ( s ) ) is obtained, given by Equation (35):
H ( T 1 ) ( s ) = V 3 ( s ) V i n = B ( T 1 , 2 ) s 2 + B ( T 1 , 1 ) s + B ( T 1 , 0 ) s 3 + B 2 s 2 + B 1 s + B 0 ,
where the factors  B ( T 1 , 0 )  to  B ( T 1 , 2 )  are defined in Equations (37) and (38):
B ( T 1 , 0 ) = 1 R 1 R 4 R 5 C 1 C 2 C 3
B ( T 1 , 1 ) = R 4 R 7 C 2 + ( R 4 + R 5 ) R 6 C 3 R 1 R 5 R 6 C 1 C 3
B ( T 1 , 2 ) = 1 R 1 C 1 .
Using Equation (35), which provides the relationship between  V 3  and  V i n , and Equations (28) and (29), we obtain the transfer function of the circuit in Figure 2 with respect to node  T 2  ( H T 2 ( s ) ), given by Equation (39):
H T 2 ( s ) = V 4 ( s ) V i n = B ( T 2 , 2 ) s 2 + B ( T 2 , 1 ) s + B ( T 2 , 0 ) s 3 + B 2 s 2 + B 1 s + B 0 ,
where the factors  B ( T 2 , 0 )  to  B ( T 2 , 2 )  are defined in Equations (41) and (42).
B ( T 2 , 0 ) = ( R 2 + R 3 ) R 1 R 2 R 4 R 5 C 1 C 2 C 3
B ( T 2 , 1 ) = 1 R 1 R 2 C 1 ( R 2 + R 3 ) R 7 R 5 R 6 C 3 + R 2 + R 3 R 5 R 4 C 2 + R 2 + R 3 R 5 C 2
B ( T 2 , 2 ) = 1 R 1 C 1 1 + R 3 R 2 .
Using Equation (39), which provides the relationship between  V 4  and  V i n , and Equations (29) and (30), we obtain the transfer function of the circuit in Figure 2 with respect to node  T 3  ( H ( T 3 ) ( s ) ), given by Equation (43):
H ( T 3 ) ( s ) = V 5 ( s ) V i n = ( R 3 + R 2 ) ( 1 + R 5 C 3 s ) R 1 R 2 R 4 R 5 C 1 C 2 C 3 s 3 + B 2 s 2 + B 1 s + B 0 ,
Using Equation (43), which provides the relationship between  V 5  and  V i n , and Equations (31) and (32), and the voltage  V 5 = ( R 1 + R 2 + R 4 ) i 3 , we obtain the transfer function of the circuit in Figure 2 with respect to node  T 4  ( H ( T 4 ) ( s ) ), given by Equation (44):
H ( T 4 ) ( s ) = V 7 ( s ) V i n = R 3 + R 2 R 1 R 2 R 4 R 5 C 1 C 2 C 3 s 3 + B 2 s 2 + B 1 s + B 0 ,
Using Equation (44), which provides the relationship between  V 7  and  V i n , and Equations (33) and (34), we obtain the transfer function of the circuit in Figure 2 with respect to node  T 5  ( H ( T 5 ) ( s ) ), given by Equation (45):
H ( T 5 ) ( s ) = V 8 ( s ) V i n = ( R 2 + R 3 ) ( R 6 + R 7 ) R 1 R 2 R 4 R 5 R 6 C 1 C 2 C 3 s 3 + B 2 s 2 + B 1 s + B 0 ,
In Equations (35), (39), (43), (44), and (45), the factors  B 0  to  B 2  are defined in Equations (47) and (48):
B 0 = 1 C 3 C 2 C 1 R 1 R 4 R 5
B 1 = 1 R 4 R 5 C 2 C 3 R 7 R 1 R 5 R 6 C 1 C 3 + R 4 + R 5 R 1 R 4 R 5 C 1 C 2
B 2 = R 7 C 3 R 5 R 6 + R 4 + R 5 R 4 R 5 C 2 + 1 C 1 R 1 .

5. Proposed Optimization Model for Fault Circuit Diagnostics

Given an analog electronic circuit with K components and n accessible nodes, termed  T i , for  i = 1 n , the transfer function can be defined as the voltage at an accessible node of the circuit when a unit impulse function is applied in the Laplace domain. When a sinusoidal voltage is applied from a signal generator with unit amplitude, the Laplace transform guarantees that the transfer function has a value equal to the voltage at the desired node, as stated in [30]. In the frequency domain, where  s = j w , it can be observed that the circuit’s frequency response is expressed in complex form, as shown in Equation (4).
The measured response in the circuit at the n accessible points is also expressed in terms of real and imaginary components, as shown in Equation (6). The data  H ( x )  and U have the same dimension and are equally separable. With the real and imaginary terms of  H ( x )  and U, we have a system of  2 n  equations, as shown in Equation (49):
h R e ( T 1 ) ( x ) = u ˙ R e ( T 1 ) h I m ( T 1 ) ( x ) = u ˙ I m ( T 1 ) h R e ( T n ) ( x ) = u ˙ R e ( T n ) h I m ( T n ) ( x ) = u ˙ I m ( T n )
The objective of the optimization is to find values of the components in X that satisfy Equation (49) such that the absolute difference between the measured voltage in the circuit and the voltage obtained by calculating the transfer function is minimized, as shown in Equation (50):
min X E = | | H ( X ) U | | ,
where X represents the values of the circuit components that have the potential to exhibit faults,  H ( X )  is the objective term that is calculated using the transfer function, and U is the term obtained by measuring the circuit under analysis.
The optimization results are characterized by  X *  as the best values of the circuit components that minimize the objective function. Fault diagnosis is performed by comparing the component values in  X *  with the specified operating range provided by the component manufacturer. The normal operating range used in the experiments presented in the following sections of this chapter was  ± 5 %  of the nominal value, as shown in Equation (51):
f x K = 0 , 0.95 x K , i d e a l x K * 1.05 x K , i d e a l 1 , x K * < 0.95 x K , i d e a l o u x K > 1.05 x K , i d e a l ,
where  f x K  identifies whether component K has a fault ( f x K = 1 ) or is non-defective ( f x K = 0 ), and  x K  refers to the ideal value of the analyzed component. It is noteworthy to emphasize that the optimization process used to discover faulty components uses no circuit simulation. Only the circuit transfer functions, which can be obtained automatically by abundantly available tools, are required to compose the objective function.
In the remainder of this section, three experiments regarding the two case studies are presented: an experiment of a circuit without faults, where the components have values considered ideal for operation, an experiment of a circuit with one faulty component while the remaining components have simulated values considered ideal, and an experiment with a circuit exhibiting faults in two components. For these case studies, the frequency assigned to the voltage source at the input of the circuit was  1 kHz , with an amplitude of 1 V. For the first case study, the ideal component values  X ideal  are defined as  10 k Ω  for the resistors and  10 nF  for the capacitors.

5.1. Application to Case Study 1

Figure 3 shows the waveform of the circuit in Figure 1 without faults. The red sine wave represents the input signal applied by a signal generator, and the black sine wave represents the signal obtained at node  V 7 , also referred to as node  T 3 , which is assigned as the output in this case study.
It is observed that there is an amplification of the output signal voltage compared to the input signal, and the maximum voltage value obtained from the measurement in the circuit was  V 7 = 1.1460  V. In Equation (50),  U = 1.1460 . The transfer function at node  T 3  of the Tow–Thomas Biquad circuit, in the Laplace domain, is given by Equation (22). Applying the ideal component values to Equation (22), we obtain  H T 3 ( j w ) = 1.1463 . In Equation (50), we have  H ( X ) = 1.1463 . With the values of  H ( X )  and U obtained, the result of the minimization is  E = 0.0003 . Hence, we conclude that the obtained values are equal to the defined nominal values.
For this second experiment, we simulate a single fault. The component values assigned are the ones considered ideal:  10 k Ω  for the resistors and  10 nF  for the capacitors, as before, except for one component, namely  R 3 , that has its value altered to a value outside the operating range, namely  4 k Ω . Figure 4 presents the waveform of the circuit. It is observed that there is a loss of amplitude in the output signal voltage compared to the input signal, and the maximum voltage value obtained from the measurement in the circuit was  V 7 = 454.93  mV. In Equation (50), we have  U = 0.45493 . By applying the ideal component values to the transfer function in Equation (22), we obtain  H ( T 3 ) ( j w ) = 1.1463 . In Equation (50), we have  H ( X ) = 1.1463 . Therefore, the objective function of Equation (50) has a value of  E = 0.69107 . Since the goal of the optimization is to search for a value close to zero, this value is inappropriate and the algorithm will search for new solutions, resulting in a lower objective function value. However, when applying values of the components as defined for this second experiment to the transfer function in Equation (22), we obtain  H ( T 3 ) ( j w ) = 0.45517 . In Equation (50), we have  H ( X ) = 0.45517 . For these values, the objective function has the near-zero value of  E = 0.00024 .
For this third experiment, we simulate a case of multiple faults. The component values assigned are the ones considered ideal:  10 k Ω  for the resistors and  10 nF  for the capacitors, except for two components, namely  R 2  and  C 2 , that have their values altered to values outside the operating range, namely  6 k Ω  and  4 nF , respectively. Figure 5 presents the waveform of the circuit with these two faults.
It can be observed that there is a gain in amplitude in the output signal voltage compared to the input signal, and the voltage value obtained from the measurement in the circuit was  V 7 = 1.0634  V. In Equation (50),  U = 1.0634 . By applying the ideal values to the transfer function in Equation (22), we obtain  H ( T 3 ) ( j w ) = 1.1463 . In Equation (50), we have  H ( X ) = 1.1463 . For these values, the objective function in Equation (50) provides a value of  E = 0.0829 . Since the goal of the optimization is to search for a value close to zero, this value is inappropriate, and the algorithm will search for new solutions, resulting in a lower objective function value. However, when applying component values for resistors defined for this case to the transfer function in Equation (22), we obtain  H ( T 3 ) ( j w ) = 1.0632 . In Equation (50), we have  H ( X ) = 1.0632 . For these values, the objective function in Equation (50) has the near-zero value of  E = 0.0002 .

5.2. Application to Case Study 2

Figure 6 presents the waveform of the circuit from Figure 2 without any faults, where the red sine wave represents the input signal applied by a signal generator, and the black sine wave represents the signal obtained at node  V 8 , also referred to as node  T 5 , assigned as the output in this case study.
We can observe that there is an amplification in the voltage amplitude of the output signal compared to the input signal, and the measured voltage in the circuit is  V 8 = 3.8810  V. In other words, in Equation (50),  U = 3.8810 . The transfer function at node  T 5  of the Butterworth circuit, in the Laplace domain, is given by Equation (45). Applying the component values of the circuit in Equation (45), with a frequency of  1   k H z , we obtain  H ( T 5 ) ( j w ) = 3.8823 . Therefore, according to Equation (50),  H ( X ) = 3.8823 . By substituting the values of  H ( X )  and U into Equation (50), the result of the minimization is  E = 0.0013 . Hence, we confirm that the obtained values are equal to the defined nominal values.
For this second experiment, wherein we simulate the case of a single fault, the component values assigned are the ideal values, except for one component, namely  C 2 , that has its value changed to be outside the operating range, namely  7 nF . Figure 7 presents the waveform of the circuit with a fault.
It is observed that there is an amplitude gain in the output voltage compared to the input signal, although it is lower than the one observed in the fault-free experiment of this circuit. The measured voltage in the circuit is  V 7 = 3.0973  V. In Equation (50), we have  U = 3.0973 . By applying the component ideal values in the transfer function of Equation (45), we obtain  H ( T 5 ) ( j w ) = 3.8823 . In Equation (50), we also have  H ( X ) = 3.8823 . For these values, the objective function in Equation (50) provides  E = 0.785 . Since the optimization goal is to find a value close to zero, this value is inappropriate, and the algorithm will search for new solutions that result in a lower objective function value. However, when the component values are set up as for this second experiment, in the transfer function of Equation (45), we obtain  H ( T 5 ) ( j w ) = 3.1037 . In Equation (50), we compute  H ( X ) = 3.1037 . For these values, the objective function has the near-zero value of  E = 0.0064 .
For this third experiment, wherein we simulate the case of multiple faults, the values assigned to the components are the ideal values, except for two components, namely  R 1  and  C 3 , that have their values changed outside the operating range, namely  3 k Ω  and  6 nF , respectively. Figure 8 presents the waveform of the circuit with these faults.
It can be observed that there is a gain in amplitude in the output voltage compared to the input signal, albeit lower than the one observed in the fault-free experiment of this circuit, and the voltage value obtained by measuring the circuit was  V 7 = 9.4793  V. In Equation (50), we have  U = 9.4793 . As before, for the faultless circuit, we obtain  H ( T 5 ) ( j w ) = H ( X ) = 3.8823 . For these values, the objective function in Equation (50) provides  E = 5.597 . Since the optimization objective is to find a value close to zero, this value is not suitable, and the algorithm will search for new solutions that result in a lower value of the objective function. However, when the component values are set up as for this third experiment, in the transfer function of Equation (45), we obtain  H ( T 5 ) ( j w ) = 9.4892 . In Equation (50), we compute  H ( X ) = 9.4883 . For these values, the objective function is the near-zero value of  E = 0.0009 .

6. Swarm Intelligence-Based Search Strategies

Swarm intelligence techniques offer several advantages when applied to optimization problems. They combine global exploration by searching a wide solution space, with local exploitation by refining solutions around promising areas. This balance helps them avoid getting stuck in local optima and increases the likelihood of finding better solutions. Moreover, individual agents in swarm intelligence algorithms typically follow simple heuristics. This simplicity often translates to efficient computation and easy implementation, making these techniques applicable to a wide range of optimization problems. These techniques are applicable to optimization problems where derivatives are hard to compute. Furthermore, they can handle non-convex and complex solution spaces, where traditional optimization methods might struggle due to the presence of multiple local optima and complex interactions between variables. Swarm intelligence techniques can be scaled up to tackle large-scale optimization problems. Adding more agents to the swarm allows for better coverage of the solution space, which can be especially beneficial for high-dimensional optimization problems.
In this work, we apply swarm intelligence to the fault diagnosis problem in analog circuits. This section presents the two applied search techniques. The respective canonical algorithms are presented. First, in Section 6.1, we present the search technique based on the behavior of birds flocking. Then, in Section 6.2, we introduce the search method based on the behavior of bee colonies in the search for food. We specifically selected these techniques as they are suitable for multimodal function optimization, as is the case in this work.

6.1. Particle Swarm-Based Technique

The Particle Swarm Optimization technique (PSO) draws inspiration from the collective behavior of birds and fish. So, a swarm of particles explores the search space to find the optimal point of the specified objective function. Each particle has a position defined by coordinates for each dimension of the objective function and an individual velocity that is continually updated based on collective movement and individual experiences. As the particles move through the search space, they store the best position they have encountered so far, as well as the best position found by the entire swarm up to that point in the optimization process. The quality of the particles’ positions is determined by evaluating the objective function f that models the problem, and each position represents a potential solution that needs to be evaluated. The main steps of the PSO algorithm used in this work are presented in Algorithm 1.
Algorithm 1 PSO’s main steps
  • Set ω ϕ 1 ϕ 2 , N
  • Generate  N particles in the search space randomically
  • Obtain   P i b e s t = f ( x i )
  • Select   S b e s t  or  G b e s t = b e s t ( P i b e s t )  or  L b e s t = b e s t ( P i b e s t ( η i ) ) η i  is the neighborhood of particle  x i
  • t: = 1
  • while ( t T ) and (solution not yet found) do
  •    for each particle  x i  do
  •         Calculate   v i ( t + 1 ) = ω · v i ( t ) + ϕ 1 · r 1 · ( P i b e s t x i ( t ) ) + ϕ 2 · r 2 · ( S i b e s t x i ( t ) )
  •         Check  velocity control
  •         Calculate  new position  x i ( t + 1 ) = x i ( t ) + v i ( t + 1 )
  •         Select   P i b e s t  and  S b e s t
  •    end for
  •     Get   S b e s t  among  P i b e s t  for all particle i
  •    t: = t + 1
  • end while
  • Return  best particle’s details
The algorithm allows adjusting several parameters based on the specific application, such as the number of particles N, the coefficients  ω ϕ 1 ϕ 2 , the maximum number of iterations T, and the maximum velocity, as well as the neighborhood  η i  of particle i. Clearly, these parameters influence the behavior and efficiency of the PSO in finding the optimal solution in the given search space. PSO can be used with different swarm topology configurations. The main one is the star, where the neighborhood of particle i consists of all the particles of the swarm. In this case, the strategy is known as global best, and the swarm’s best solution is termed  G b e s t . Another commonly used topology is the ring, wherein a particle’s neighborhood consists of another two predefined particles of the swarm. Furthermore, the neighborhood can also be defined by any other configuration, where the particle’s neighbors are more than 2 and less than the total number of particles in the swarm. When the neighborhood is distinct from global best, the strategy is called local best and the best solution is termed  L b e s t . Note that  x i  is the current position of particle i,  P i  is its personal best, and for generalization purposes we use  S b e s t  to denominate the best solution independently of the used topology configuration.

6.2. Bat Echolocation-Based Technique

The Bat Algorithm (BA) is proposed in [32] and is inspired by the echolocation behavior of microbats. The main rules devised for the algorithm are inspired by the behavior of microbats. Bats use echolocation to sense distance and distinguish between food/prey and background barriers. They usually fly randomly with a fixed minimum pulse frequency  f m i n , varying the wavelength  λ  and loudness  A 0  to search for prey, adjusting  λ  or  f m i n  automatically based on the proximity to their target. They can also adjust the pulse emission rate  r [ 0 , 1 ] . Although the loudness can vary, it is assumed that the loudness volume varies from a minimum value  A m i n  to a maximum value  A 0 . In its initial development, features that would increase the complexity of computational geometry, such as time delay estimation and three-dimensional topography, are avoided. Additionally, the frequency f varies within the range [ f m i n f m a x ], which corresponds to a variation in the wavelength [ λ m i n λ m a x ]. In the implementation, the range can be adjusted by modifying the wavelengths (or frequencies). The detectable range ( λ m a x ) should be chosen to be comparable to the size of the search space and then decrease the loudness for smaller intervals. It is also possible to vary the frequency while keeping the wavelength  λ  fixed since wavelength and frequency are related due to the fact that  λ × f  is constant. Higher frequencies have shorter wavelengths and cover a shorter distance. For bats, typical ranges are a few meters. The pulse rate can simply be in the range [ 0 , 1 ], where 0 means no pulse and 1 means the maximum emission rate. The main steps of the BA algorithm used in this work are presented in Algorithm 2.
Algorithm 2 BA’s main steps
  • Set   β  as an array of random numbers in [0, 1],  ϵ  a random number in [-1, 1],
  • Set   α γ  and N
  • Generate  a bat colony com N bats and velocity v
  • Define  the frequency pulse f for each bat
  • Initialize  the pulse rate r and sonority A for each bat
  • t: = 1
  • while ( t T ) and (solution not yet found) do
  •     Compute  the quality of bat  f i
  •     Generate  solutions using  f i = f m i n + ( f m a x f m i n ) β i
  •     Update  velocity  v i  using  v i ( t ) = v i t 1 + ( x i ( t ) x b e s t ) f i
  •     Update  position  x i  using  x i ( t ) = x i ( t 1 ) + v i ( t )
  •    if  ξ > r i , where  ξ  is random number  [ 0 , 1 ]  then
  •         Select  the best solution
  •         Generate  a local solution around the best solution
  •    end if
  •     Generate  a randomically flying solution using  x i ( t ) = x i ( t 1 ) + ϵ A ( t )
  •     Confine  a bat within the search space
  •    if  r a n d < A i  &  f ( x i ) < f ( x * )  then
  •         Increase  the pulse emission rate  r i  using  r i ( t + 1 ) = A i ( 0 ) [ 1 e ( γ t ) ]
  •         Reduce  the sonority  A i  using  A i ( t + 1 ) = α A i ( t )
  •         Accept  new solutions
  •    end if
  •     Classify  the bats and get the best one  x *
  •     Select  the best one  x * ; t: = t + 1
  • end while
  • Return  best bat’s details

7. Performance Evaluation

This section presents and analyzes the results obtained from the application of Particle Swarm Optimization (PSO) and the Bat Algorithm (BA) as techniques for fault diagnosis in analog circuits. First, we introduce the developed methodology for diagnosing faults in analog electronic circuits. Then, we define the metrics used to evaluate the performance of the explored optimization techniques. After that, we present and analyze the results obtained from experiments conducted with Tow–Thomas and Butterworth Biquad filters using the PSO technique, followed by the presentation and analysis of those yielded using the BA technique. Finally, we compare the performances of the optimization techniques.

7.1. Evaluation Methodology

The proposed methodology for fault diagnosis in analog circuits consists of, starting from any circuit with K components and N accessible nodes, performing simulations for each accessible node or combination of nodes, and considering all components of the circuit. Each simulation involves 100 optimization runs. For each circuit component, the optimization process evaluates whether there are no faults ( N F ) or not. If there are indications of faults, simulation  S A i  provides the number of runs in which the optimization yielded values for the admittance  A i  outside the normal operating range.
So, N experiments are conducted for each individual node or combination. Each experiment deals with the  N F  case or a fault case  F A i , which denotes a faulty component  A i . Each experiment allows testing the circuit K components. In each simulation, termed  S A i , related to the test of component  A i , there are two possibilities: only component  A i  varies across the whole search space while the remaining  K 1  components vary only within the operating range determined by the manufacturer, or both  A i  and  A j , where  j i  and component  A i  is being investigated, vary across the search space while the remaining  K 2  components vary within the operating range determined by the manufacturer. Thus, the complete circuit test consists of  N × ( K + 1 ) × K  simulations. The search space of the implementation is defined with the minimum value of zero and the maximum value up to 20% higher than the ideal component value, as defined by Equation (52):
p i , i n i t i a l = 0 , 0 p i 1 , 2 p i , i d e a l ,
where  p i  is the value corresponding to component  A i . Note that for the first case study, 216 experiments are performed via 21,600 optimizations, while for the second case study, 550 experiments are performed via 55,000 optimizations. Moreover, as we applied two different optimization meta-heuristics, the number of optimizations for each circuit is doubled.
Given the above explanation, Table 1 lists the 9 different scenarios and the respective measured voltage values at each accessible node of the first case study circuit. Recall that the components have ideal values of  10 k Ω  for the resistors and  10 nF  for the capacitors. In this configuration, the circuit behaves as a low-pass filter.
In Cases 2 to 9, only the indicated components are changed compared to the component values of Case 1. Since the circuit has three accessible nodes, each case has seven possible combinations: 3 considering a single point, 3 considering two combined points, and 1 considering the combination of all three accessible nodes. The considered situations regarding nodes and node combinations are presented in Table 2, wherein  T i / j  refers to the combination of nodes  T i  and  T j  and  T i / j / k  refers to the combination  T i T j , and  T k . The optimization results obtained for each case are available in Appendix A of [33].
Table 3 provides the 11 different scenarios and the respective measured voltage values at each accessible node of the second case study circuit. The components have ideal values of  10 k Ω  for the resistors and  10 nF  for the capacitors. In this configuration, the circuit also behaves as a low-pass filter.
In Cases 2 to 11, only the indicated components are changed compared to the values of Case 1. Since the circuit has five accessible nodes, there are 31 possible combinations: 5 considering a single node, 10 considering the combination of two nodes, 10 considering the combination of three nodes, 5 considering the combination of four nodes, and 1 considering the combination of all five accessible nodes. The considered situations regarding all node combinations are presented in Table 4. wherein, as before,  T i / j  refers to the combination of nodes  T i  and  T j  and  T i / j / k  refers to the combination  T i T j , and  T k , etc. The optimization results obtained for each case are available in Appendix B of [33].
For this work, the software tools SapWin4™ and Circuit Maker™ are used. SapWin™ is used to obtain the transfer function of the accessible nodes in the circuit. This software allows the circuit to be represented by identifying the input node and the accessible nodes for circuit analysis. Based on this information, SapWin4™ provides the corresponding transfer function for the indicated node. On the other hand, Circuit Maker™ is a circuit analysis software where output signals can be simulated based on a generic input signal. It allows the measurement of characteristics such as the amplitude of the output signal and the phase difference between the input and output signals of a specific accessible node. These measurements are used as metrics when transforming the fault diagnosis problem into an optimization problem. It is worth noting that for a circuit under test with more than one accessible node, the simulations are performed incrementally using the nodes in the objective function, both individually and in combination with another node.
The confusion matrix is calculated by the classification process and displays the distribution of simulations in terms of their classes. So, for each considered node combination, we obtain the numbers of executions that return a classification NF and  F A i  for  i = 1 , , K , which indicate the quantity of executions that return a failure in component  A i . After that, considering the yielded confusion matrix, the performance metrics values are computed. So, for the confusion matrices for the circuits under study and for all node combinations listed in Table 2 for the first case study and Table 4 for the second one, we evaluate the performance metrics for all cases. The overall value of the metrics are defined as the arithmetic mean of the evaluated metrics for each  F A i  of the studied node combinations. Hereafter, we define the considered performance metrics.

7.2. Evaluation Metrics

Most diagnostic tests produce multiple or continuous results. Grouping categories or applying a cutoff value is often used to classify results as positive or negative. This classification allows for the comparison between a diagnostic test and its reference standard, where True Positive (TP) denotes the number of executions that do not show faults (NF) or show faults in component  A i  in the respective simulation  S A i , True Negative (TN) represents the number of executions that show faults for a faultless circuit or do not show faults in component  A i  in the respective simulation  S A i , False Positive (FP) is the number of executions that show faults in components other than  A i  in the simulations  S A i , and False Negative (FN) is the number of executions that do not show faults in the defective component in the simulations. These definitions allow us to calculate the performance metrics considered in this work, which are accuracy, precision, sensitivity, and specificity based on the outcomes of the diagnostic simulations. These metrics are defined as follows:
  • Accuracy is a measure to quantify the level of agreement between an expected value and the number of correct outcomes obtained. It is defined by Equation (53):
    A = 100 × VP + VN VP + VN + FP + FN .
  • Precision measures the closeness between the obtained values through the repetition of the evaluation process. It is defined by Equation (54):
    P = 100 × VP VP + FP .
  • Sensitivity, also known as recall, measures the ratio of correct positive predictions to the total number of positive instances. It is defined by Equation (55):
    R = 100 × VP VP + FN .
  • Specificity measures the ratio of cases correctly classified as negative to the total number of cases without faults in a specific component different from the one being analyzed. It is defined by Equation (56):
    S = 100 × VN VN + FP .

7.3. PSO’s Performance Results

The PSO algorithm is implemented in Python without the use of specific libraries. To enable result comparison, all performed optimizations had fixed parameters, as shown in Table 5, where K represents the number of components in the circuit under analysis. Recall that Circuit 1 includes 8 components and Circuit 2 includes 10 components that may have faults. The inertia, cognitive, and social coefficients are set up according to [32].

7.3.1. First Case Study

The confusion matrices for all the node combination listed in Table 2, as achieved when applying the PSO meta-heuristic for the first case study, are available in [33]. Table 6 shows the overall values of the considered performance metrics.
Here, we analyze the results obtained by the PSO meta-heuristic considering the test simulations performed for Circuit 1. It is noteworthy to point out that when using node  T 1 , the best results are obtained for the case without failures, regarding accuracy, sensitivity, and specificity: 96.83%, 98.89%, and 96.74%, respectively. Nonetheless, the case of failure in capacitor  C 1  shows the best precision, with 63.05%. This is also the case when using node  T 2  of the circuit. The NF case obtains the best results regarding accuracy, sensitivity, and specificity: 96.88%, 99.34%, and 96.78%, respectively, while the case of failure in capacitor  C 1  obtains the best precision, with 64.38%. In addition, when node  T 3  is used, the NF case exhibits the best results for accuracy, sensitivity, and specificity: 96.88%, 99.56%, and 96.76%, respectively, but the case of failure in capacitor  C 1  obtains the best precision, with 65.73%. This is also the case when a combination of nodes  T 13  are exploited. The NF case shows the best results for accuracy, sensitivity, and specificity: 97.66%, 100.00%, and 97.53%, respectively, and the case of failure in capacitor  C 1  obtains the best precision, with 71.74%. However, when using the combination of nodes  T 12 T 23 , and  T 123 , the NF case is the best, classified with accuracy rates between 97.73% and 98.31%, precision rates between 71.00% and 79.88%, sensitivity rates between 99.31% and 99.82%, and specificity rates between 97.60% and 98.21%.
The overall behaviors of the PSO’s performance during the test of Circuit 1, regarding the evaluation metrics, are depicted in Figure 9. Therein, the result of the linear regression model is also shown. It is clear that when more nodes are used, the circuit diagnostic result improves, becoming 3% more accurate, 10% more precise, 14% more sensitive, and almost 2% more specific.

7.3.2. Second Case Study

The confusion matrices for all the node combination listed in Table 4, as achieved when applying the PSO meta-heuristic for the second case study, are available in [33]. Table 7 shows the overall values of the considered performance metrics for the combinations including 1 or 2 nodes.
In the sequel, we analyze the results obtained by the PSO meta-heuristic considering the test simulations performed for Circuit 2 based on a single node. It is noteworthy to point out that when using node  T 1 , the highest accuracy of 94.72% is achieved for the NF case, the best precision of 56.79% is achieved in the failure case of  C 2 , the highest sensitivity of 73.73% is yielded for the failure case in  C 1 , and the best specificity of 95.54% is obtained for the failure case in  R 1 . Similarly, when node  T 2  is used, the highest accuracy of 95.37% is also achieved for the NF case, the best precision and highest specificity of 63.98% and 96.39%, respectively, are achieved in the failure case of  R 6 , and the highest sensitivity of 76.47% is also yielded for the failure case in  C 1 . However, when using node  T 3 , the NF case obtains the best results regarding accuracy, sensitivity, and specificity: 96.88%, 99.34%, and 96.78%, respectively. Nonetheless, the case of failure in capacitor  C 1  shows the best precision with 63.05%. In addition, when node  T 4  is used, the NF case exhibits the best results for accuracy, sensitivity, and specificity: 97.01%, 99.16%, and 96.95%, respectively. Meanwhile, the failure case in capacitor  C 1  obtains the best precision with 60.23%. Analogically, when node  T 5  is used, the NF case presents the highest results for accuracy, sensitivity, and specificity: 97.01%, 98.96%, and 96.96%, respectively. Nonetheless, the failure case in  R 3  yields the best precision, with 60.35%.
Now, considering the test simulations performed for Circuit 2 based on a pair of nodes, it is noteworthy to point out that when using node  T 1  and  T 2 , the case NF case achieves the highest accuracy and best sensitivity of 95.76% and 78.21%, respectively, while the failure case in  C 3  obtains the best precision and the highest specificity of 63.18% and 96.33%, respectively. For the remaining case when combining node  T 1  with the other nodes, the NF case is the winner with the highest accuracy, sensibility, and specificity of 97.79%, 100,00%, and 97.71%, respectively, when combined with  T 3 ; 97.83%, 99.84%, and 97.75%, respectively, when combined with  T 4 ; and 97,42%, 99,47% and 97,35%, respectively, when combined with  T 5 . Nonetheless, for those node combinations, the failure cases in  R 5 C 1 , and  R 4  obtain the highest precision rates of 64.52%, 64.29%, and 63.22%, respectively. Moreover, when using combination  T 2 / T 3 , the NF case achieves the highest results regarding accuracy, sensitivity, and specificity: 98.04%, 95.63%, and 98.16%, respectively. The failure case in capacitor  R 5  shows the best precision, with 72.75%. For the combinations of node  T 2  with either  T 4  or  T 5 , the NF case yields the best rates regarding all four metrics, with 97.91%, 73.00%, 92.64%, and 98.19% and 97.97%, 69.90%, 96.15%, and 98.06%, respectively. For the combinations  T 34 T 35 , and  T 45 , the NF case also obtains the best rates regarding accuracy, sensitivity, and specificity: 97.47%, 99.83%, and 97.39%; 97.34%, 89.80%, and 97.68%; and 97.39%, 99.46%, and 97.32%, respectively. In the three combinations, the failure case in  R 4  obtains the highest precision with 64.97%, 69.41%, and 64.78%, respectively.
Table 8 shows the overall values of the performance metrics for the combinations including 3 nodes.
We now analyze the results obtained by the PSO meta-heuristic considering the test simulations performed for Circuit 2 based on node triplets. It is noteworthy to point out that when using combinations  T 123 T 124 T 234 , and  T 235 , the NF case achieves the best rates regarding all four metrics, with 98.24%, 72.80%, 98.78%, and 98.21%; 97.75%, 73.00%, 89.24%, and 98.21%; 98.32%, 75.60%, 96.80%, and 98.40%; and 98.38%, 74.60%, 98.94%, and 98,35%, respectively. For the node combinations  T 125  and  T 134 , the NF case obtains the highest results regarding accuracy, sensitivity, and specificity: 98.01%, 98.29%, and 97.99% and 98.01%, 99.85%, and 97.93%, respectively. For both combinations, the failure case in capacitor  R 7  shows the best precision with 69.65% and 68.69%. This performance is repeated for the node combinations  T 135 T 245 , and  T 345 , with the rates 98.12%, 99.57%, and 98.05%; 98.18%, 97.47%, and 98.21%; and 97.74%, 100.00%, and 97.64% for accuracy, sensitivity, and specificity, respectively. Nonetheless, for these combinations, the highest precision is achieved for the failure case in  R 2 , with 70.11%,  C 2 , with 3.31%, and  R 4 , with 68.64%, respectively.
Table 9 shows the values of the metrics for the combinations including 4 or 5 nodes.
In the sequel, we analyze the results obtained by the PSO meta-heuristic considering the test simulations performed for Circuit 2 based on 4 and 5 nodes. It is noteworthy to point out that when using combinations  T 1 T 3 / T 5 T 1 / T 2 / T 4 / T 5 , and  T 2 T 5 , again the NF case achieves the highest rates regarding all four metrics, with 98.39%, 74.70%, 100%, and 98.31%; 98.38%, 74.90%, 99.21%, and 98.34%; and 98.50%, 76.10%, 98.96%, and 98.48%, respectively. For the combination  T 1345 , the NF case obtains the best rates regarding accuracy, sensitivity, and specificity, with 97.99%, 100%, and 97.90%, respectively. However, the failure case in  R 7  obtains the highest precision, with 72.16%. Last but not least, the combination that includes all 5 accessible nodes of Circuit 2 allows the highest rates with respect to all metrics, with 98.43%, 76.00%, 99.61%, and 98.37%, respectively, for accuracy, precision, sensitivity, and specificity.
The overall behaviors of the PSO’s performance during the test of Circuit 2, regarding the evaluation metrics, are depicted in Figure 10. Therein, the result of the linear regression model is also shown. It is clear that when more nodes are used, the circuit diagnostic result improves, becoming 3% more accurate, 14% more precise, 13% more sensitive, and almost 1.5% more specific.

7.4. BA’s Performance Results

The BA is implemented in Python without the use of specific libraries. To enable result comparison, all performed optimizations had fixed parameters, as shown in Table 10, where K represents the number of components in the circuit under analysis. Recall that Circuit 1 includes 8 components, and Circuit 2 includes 10 components that may have faults. This algorithm uses either wavelength or frequency as implementation parameters. The higher the frequency used, the shorter the wavelength, resulting in shorter distances to be traveled to find the optimal location.

7.4.1. First Case Study

The confusion matrices for all the node combination listed in Table 2, as achieved when applying the BA meta-heuristic for the first case study, are available in [33]. Table 11 shows the overall values of the considered performance metrics.
Here, we analyze the results obtained by the BA meta-heuristic considering the test simulations performed for Circuit 1. It is noteworthy to point out that, as for PSO, when using node  T 1 , the best results are obtained for the NF case, regarding accuracy, sensitivity, and specificity: 96.91%, 99.58%, and 96.79%, respectively. Nonetheless, the case of failure in capacitor  C 1  shows the best precision, with 69.70%. This is also the case when using node  T 2  of the circuit. The NF case obtains the best results regarding accuracy, sensitivity, and specificity: 97.17%, 99.22%, and 97.06%, respectively, while the case of failure in capacitor  C 1  obtains the best precision, with 68.56%. Again, when node  T 3  is used, the NF case exhibits the best results for accuracy, sensitivity, and specificity: 97.01%, 98.62%, and 96.93%, respectively, but the case of failure in capacitor  C 1  obtains the best precision, with 69.96%. For the case when node combinations  T 12 T 23 , and  T 123  are exploited, the NF case shows the best results for all four metrics i.e., accuracy, precision, sensitivity, and specificity: 97.89%, 75.13%, 99.50%, and 97.78%; 98.05%, 77.50%, 99.84%, and 97.92%; and 98.73%, 87.50%, 98.45%, and 98.75%, respectively. However, when using the combination  T 13 , the NF case is the best classified only regarding accuracy, sensitivity, and specificity: 97.83%, 99.67%, and 97.71%, respectively. The failure case in capacitor  C 1  shows the highest precision, with 75.55%.
The overall behaviors of the BA’s performance during the test of Circuit 1 regarding the evaluation metrics are depicted in Figure 11. Therein, the result of the linear regression model is also shown. It is clear that when more nodes are used, the circuit diagnostic result improves, becoming 4% more accurate, 16% more precise, 17% more sensitive, and almost 2% more specific.

7.4.2. Second Case Study

The confusion matrices for all the node combination listed in Table 4, as achieved when applying the BA meta-heuristic for the second case study, are available in [33]. Table 12 shows the overall values of the considered performance metrics for the combinations including 1 or 2 nodes.
In the sequel, we analyze the results obtained by the BA meta-heuristic considering the test simulations performed for Circuit 2 based on a single node. It is noteworthy to point out that when using node  T 1 , BA obtained the same results as the PSO. That is, the highest accuracy of 94.72% is achieved for the NF case, the best precision of 56.79% is achieved in the failure case of  C 2 , the highest sensitivity of 73.73% is yielded for the failure case in  C 1 , and the best specificity of 95.54% is obtained for the failure case in  R 1 . Similarly, when node  T 2  is used, BA achieved the same results as PSO. That is, the highest accuracy of 95.37% is achieved for the NF case, the best precision and highest specificity of 63.98% and 96.39%, respectively, are achieved in the failure case in  R 6 , and the highest sensitivity of 76.47% is yielded for the failure case in  C 1 . However, when using node  T 3 , BA reaches different results. The NF case obtains the best results regarding accuracy and sensitivity, with 97.02% and 98.44%, respectively. The case of failure in  R 6  shows the best precision and specificity, with 68.97% and 97.04%, respectively. This is also the case when node  T 4  is used. The NF case exhibits the best results for accuracy and sensitivity only, with 97.21% and 98.72%, respectively, while the failure case in  R 6  obtains the best precision and specificity, with 70.72% and 97.25%, respectively. In contrast, when node  T 5  is used, the NF case presents the highest results for accuracy, sensitivity, and specificity, with 97.26%, 98.41%, and 97.22%, respectively. Nonetheless, the failure case in  R 6  yields the best precision. with 68.63%.
Now, considering the test simulations performed for Circuit 2 based on a pair of nodes, it is noteworthy to point out that for all the node pairs with  T 1 , BA yields the same best results as PSO when using combination  T 12 . This is also the case for the pairs with  T 2  Moreover, when using combination  T 23 , the NF case achieves the highest results regarding accuracy, sensitivity, and specificity: 98.04%, 95.63%, and 98.16%, respectively. The failure case in capacitor  R 5  shows the best precision, with 72.75%. For the combinations of node  T 2  with either  T 4  or  T 5 , the NF case yields the best rates regarding all four metrics, with 97.91%, 73.00%, 92.64%, and 98.19% and 97.97%, 69.90%, 96.15%, and 98.06%, respectively. For the combinations  T 34  and  T 35 , the NF case also obtains the best rates regarding accuracy, sensitivity, and specificity: 97.49%, 99.18%, and 97.42%; 96.94%, 88.24%, and 97.34%; and 97.39%, 99.46%, and 97.32%, respectively. In both combinations, the failure case in  R 6  obtains the highest precision, with 72.18% and 72.50%, respectively. In contrast, for the node combination  T 45 , the NF case achieves the best rates regarding accuracy and sensitivity only, with 97.42% and 98.07%, respectively. The failure case in  R 6  obtains the highest rate regarding precision and specificity, with 73.74% and 97.48%, respectively.
Table 13 shows the overall values of the performance metrics for the combinations including 3 nodes.
We now analyze the results obtained by the BA meta-heuristic considering the test simulations performed for Circuit 2 based on node triplets. It is noteworthy to point out that BA achieves the same best metric values for the same cases, i.e., when using combinations  T 123 T 124 T 234 , and  T 235 . This is also the case for node combinations  T 125  and  T 134 . For node combinations  T 135 T 145 T 245 , and  T 345 , the NF case yields the best rates for accuracy, sensitivity, and specificity, with 97.65%, 99.24%, and 97.58%; 97.91%, 99.71%, and 97.83%; and 97.87%, 99.85%, and 97.77%, respectively. Nonetheless, for these combinations, the highest precision is achieved for the failure case in  R 1  for the first combination, with 74.11 while it is achieved for failure in  R 6  for the last three combination with a precision of 75.34% for the first one and 75.34% for the last two.
Table 14 shows the values of the metrics for the combinations including 4 or 5 nodes.
In the sequel, we analyze the results obtained by the PSO meta-heuristic considering the test simulations performed for Circuit 2 based on 4 and 5 nodes. It is noteworthy to point out that when using combinations  T 1235 , the NF case obtains the best rates regarding accuracy, sensitivity, and specificity, with 98.42%, 98.98%, and 98.38%, respectively. The highest precision is achieved for the failure case in  R 7 , with a value of 79.71%. All remaining node combinations, including the one with all five nodes, were allowed to reach the best performance for the NF case regarding all four metrics, with node combination  T 1234  having 98.55%, 78.10%, 99.24%, and 98.51%, respectively;  T 1235  obtains 98.39%, 74.70%, 100%, and 98.31%, respectively;  T 1245  obtains 98.38%, 74.90%, 99.21%, and 98.34%, respectively;  T 2345  has 98.71%, 82.00%, 99.51%, and 98.66%, respectively; and the five-node combination  T 12345  achieves 99.05%, 87.40%, 99.43%, and 99.03%, respectively. It is worth noting that this last case is the best in all the investigation.
The overall behaviors of the BA’s performance during the test of Circuit 2 regarding the evaluation metrics are depicted in Figure 12. Therein, the result of the linear regression model is also shown. It is clear that when more nodes are used, the circuit diagnostic result improves, becoming 5% more accurate, 24% more precise, 24% more sensitive, and almost 3% more specific.

7.5. Performance Comparison: PSO vs. BA

The performances of PSO and BA are evaluated based on the values of the defined metrics and comparing the two case studies developed in this work. It is worth noting that the parameters used for the compared techniques in the two studied circuits are the same, differing only in the number of possible components with failures, where the first circuit has 8 components, the second has 10, and the number of accessible nodes, with 3 nodes for the first circuit and 5 nodes for the second. Table 15 presents the global evaluation metrics in relation to the increment of the use of accessible nodes in the circuits, using Table 2 and Table 4 as the basis. The values are arithmetic averages of the metric’s values considering the number of nodes used in all cases.
The overall improvements regarding the metrics as achieved by PSO vs. BA are presented in Table 16. Globally, it can be observed that with the incremental node usage through node combinations, there is an increase in the evaluation metrics for both optimization techniques. For PSO application, the increase highlight is in precision and sensitivity for both circuits.
For Circuit 1, when using three accessible nodes, the precision increases by 12.63% compared to the experiment using an individual node. Similarly, for sensitivity, there is an increase of 11.06%. For Circuit 2, the precision increases by 11.22% when analyzing the five-node combination compared to an individual node. As for sensitivity, there is an increase of 11.65%. For the BA application, in the case of Circuit 1, the precision metric increased by 15.82% when comparing the experiment using three nodes with the experiment using an individual node. In terms of sensitivity, there is an increase of 14.05%. For Circuit 2, precision increases by 17.27% when analyzing the combination of the five nodes compared to an individual node. As for sensitivity, there is an increase of 18.11%.
Figure 13 shows the results presented in Table 15. In Figure 13a–d, the global performance achieved by PSO and BA for Circuit 1 are graphically presented, allowing the analysis of the impact of the number of nodes considered on the performance of the optimization techniques.
It can be observed that the best performance in Circuit 1 for the considered metrics is achieved when using BA with the combination of three nodes. Furthermore, in Figure 13e–h, the global performance achieved by PSO and BA for Circuit 2 are graphically presented, allowing the analysis of the impact of the number of nodes considered on the performance of the optimization techniques. Once again, the previous observation consolidates the conclusion that the best performance in Circuit 2 for the considered metrics is achieved when using BA with the combination of three nodes.
The average execution times are recorded for the execution of the optimization process for each of the circuits, with and without failures. Table 17 presents the execution times for PSO and BA with respect to the number of nodes used in the two case studies, for cases without failure (NF) and with failure (WF).
Figure 14 presents a comparison of the execution times of the implementations for the case studies, considering cases without failure and with failure. It can be observed that the execution times in Circuit 2 are higher compared to Circuit 1. This is due to the increased complexity of Circuit 2 compared to that of Circuit 1. Circuit 2 has more components, is a third-order filter, and has a higher mathematical complexity in its transfer function. It can also be noted that, in both circuits, the BA’s execution time is shorter than the PSO’s.

7.6. Performance Comparison: Optimization vs. Classification

Table 18 establish a comparative analysis based on the accuracy rates achieved by eight works about fault diagnosis of analog circuit. The results regard the Biquad filter. The considered scenarios are those regarding faultless circuits and faulty circuits in components  R 1 R 4 C 1 , and  C 2 . The average accuracy rates are presented.
These works are mainly based on the classification approach using different types of learning process, either supervised or unsupervised. The proposed approach based on PSO for fault diagnosis achieves better results in two cases (1 and 3), but obtains worse results in the remaining six cases (2, 4–7). On the other hand, the proposed approach based on BA is more successful. It allows one to detect faults with higher or similar accuracy rates when compared to the those based on the classification approach. As for the PSO-based approach, the BA is better in two cases (1 and 3), but worse in one case (4). Nonetheless, in the remaining five cases, it shows similar performances. As concluded before, the BA-based fault diagnosis performs better than the PSO-based approach. That said, it is worth noting that any fault diagnosis method that is based on the classification approach would require a massive dataset to be used in the learning stage, which in some case could be inconvenient. Needless to say, any fault diagnosis method that is based on the optimization approach is completely free of such requirement. Only a few measurements, i.e, at every observable node, are required to launch the optimization process, as opposed to a few thousands of samples of the training, validation, and test datasets required by machine learning-based approaches.

8. Conclusions

This work addresses the problem of fault diagnosis in analog electronic circuits through the implementation of two optimization techniques: PSO and BA. Two case studies are conducted for each optimization technique used. In the first case study, the Tow–Thomas Biquad circuit is utilized, which is a second-order filter. In the second case study, the Butterworth filter is used. It is a third-order filter.
The purpose of using optimization techniques is to find the parameters of the circuit’s components given the transfer functions of the accessible nodes and verify if the optimum value found corresponds to the correct operating values of the circuit. The first step of the implementations is to verify whether there is a fault or not. The second step consists of identifying the possible faulty components. Based on the obtained results, we can safely conclude that, in both techniques, it is possible to identify the defective components in most cases or at least reduce the number of possible faulty components by 75% in the remaining ones.
In both case studies, the best performance of the metrics is achieved when analyzing the combination of the all accessible nodes of the circuit. So, it is safe to conclude that the totality of the accessible nodes must be used to reach the most reliable circuit diagnostic. Moreover, a higher performance is observed in both circuits when using the BA technique to the detriment of the PSO method. Additionally, in both cases, the BA technique also requires less execution time to reach the mentioned results. Hence, the BA optimization technique is more adequate to the application of analog circuit diagnostic, providing better performance with a reduced execution time. In additiob, it is worth noting that the optimization-based methodology using BA achieved similar performance to machine learning and classification-based methodologies.
With this work, we have consolidated the conclusion that considering more observable nodes, the proposed approach achives higher accuracy. So, when applying this methodology to complex circuit diagnostic, the idea is to study only the case regarding the combination of all available nodes for observation in the considered circuit. We can safely conclude that the proposed approach scales well with the circuit complexity.
As a future work, the application of other optimization techniques could be explored to seek performance improvements and further reduce the execution time of the implementations. By applying other bio-inspired techniques or mathematical models, better results may be achieved. Furthermore, the study of new circuit analysis techniques to enhance the system’s constraints and improve the performance of the proposed methodology is another avenue for exploration, specifically, using circuit sensitivity analysis to identify the influence of each component on the accessible nodes. This should help detect variations beyond the predefined operating range set by component manufacturers. Increasing the constraints in the system’s model may influence the search for multiple faults in the circuits.

Author Contributions

Conceptualization, N.N. and J.D.L.G.; methodology, N.N. and J.D.L.G.; software, J.D.L.G.; validation, N.N., L.d.M.M. and F.D.V.R.d.O.; formal analysis, F.D.V.R.d.O.; investigation, N.N and J.D.L.G.; resources, N.N. and L.d.M.M.; writing—original draft preparation, N.N.; writing—review and editing, N.N.; visualization, N.N.; supervision, N.N and L.d.M.M.; project administration, J.D.L.G.; funding acquisition, N.N and L.d.M.M. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by FAPERJ—Fundação Carlos Chagas Filho de Amparo à Pesquisa do Estado do Rio de Janeiro (FAPERJ, https://www.faperj.br/) in Brazil, with grant number 201.013/2022.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Binu, D.; Kariyappa, B. A survey on fault diagnosis of analog circuits: Taxonomy and state of the art. AEU—Int. J. Electron. Commun. 2017, 73, 68–83. [Google Scholar] [CrossRef]
  2. van Schrick, D. Remarks on Terminology in the Field of Supervision, Fault Detection and Diagnosis. IFAC Proc. Vol. 1997, 30, 959–964. [Google Scholar] [CrossRef]
  3. Ding, S.X. Model-Based Fault Diagnosis Techniques: Design Schemes, Algorithms, and Tools; Springer: Berlin/Heidelberg, Germany, 2008. [Google Scholar]
  4. Albustani, H. Modelling Methods for Testability Analysis of Analog Integrated Circuits Based on Pole-Zero Analysis. Ph.D. Thesis, Universität Duisburg-Essen, Essen, Germany, 2004. [Google Scholar]
  5. Claasen, T. System on a chip: Changing IC design today and in the future. IEEE Micro 2003, 23, 20–26. [Google Scholar] [CrossRef]
  6. Fenton, W.; McGinnity, T.; Maguire, L. Fault diagnosis of electronic systems using intelligent techniques: A review. IEEE Trans. Syst. Man Cybern. Part C 2001, 31, 269–281. [Google Scholar] [CrossRef]
  7. Deng, Y.; Shi, Y.; Zhou, L. An approach of fault diagnosis in nonlinear circuits. In Proceedings of the 2010 International Conference on Communications, Circuits and Systems (ICCCAS), Chengdu, China, 28–30 July 2010; pp. 796–799. [Google Scholar]
  8. Korzybski, M.; Ossowski, M. The On-line Evolutionary Method for Soft Fault Diagnosis in Diode-transistor Circuits. Int. J. Electron. Telecommun. 2015, 61, 109–115. [Google Scholar] [CrossRef]
  9. Luo, H.; Wang, Y.; Lin, H.; Jiang, Y. Module level fault diagnosis for analog circuits based on system identification and genetic algorithm. Measurement 2012, 45, 769–777. [Google Scholar] [CrossRef]
  10. Catelani, M.; Fort, A.; Alippi, C. A fuzzy approach for soft fault detection in analog circuits. Measurement 2002, 32, 73–83. [Google Scholar] [CrossRef]
  11. Kavithamani, A.; Manikandan, V.; Devarajan, N. Analog circuit fault diagnosis based on bandwidth and fuzzy classifier. In Proceedings of the TENCON 2009—2009 IEEE Region 10 Conference, Singapore, 23–26 January 2009; pp. 1–6. [Google Scholar]
  12. Qin, X.; Han, B.; Cui, L. A kind integrated adaptive fuzzy neural network tolerance analog circuit fault diagnosis method. In Proceedings of the 2011 IEEE 2nd International Conference on Computing, Control and Industrial Engineering, Wuhan, China, 20–21 August 2011; Volume 1, pp. 180–183. [Google Scholar]
  13. Yu, W.E.S.; Paluga, F.D. Practical Treatise on the Tow-Thomas Biquad Active Filter. Structure 2002, 2. [Google Scholar]
  14. Butterworth, S. On the Theory of Filter Amplifiers. Exp. Wirel. Wirel. Eng. 1930, 7, 536–541. [Google Scholar]
  15. Vasan, A.S.S.; Long, B.; Pecht, M. Diagnostics and Prognostics Method for Analog Electronic Circuits. IEEE Trans. Ind. Electron. 2013, 60, 5277–5291. [Google Scholar] [CrossRef]
  16. Tadeusiewicz, M.; Korzybski, M. A method for fault diagnosis in linear electronic circuits. Int. J. Circuit Theory Appl. 2000, 28, 245–262. [Google Scholar] [CrossRef]
  17. Tadeusiewicz, M.; Halgas, S.; Korzybski, M. An algorithm for soft-fault diagnosis of linear and nonlinear circuits. IEEE Trans. Circuits Syst. I Fundam. Theory Appl. 2002, 49, 1648–1653. [Google Scholar] [CrossRef]
  18. Bhattacharya, R.; Ragamai, S.H.M.; Kumar, S. SFG Based Fault Simulation of Linear Analog Circuits Using Fault Classification and Sensitivity Analysis; Springer: Berlin/Heidelberg, Germany, 2017; pp. 179–190. [Google Scholar]
  19. Tadeusiewicz, M.; Halgas, S. Soft fault diagnosis of linear circuits with the special attention paid to the circuits containing current conveyors. AEU—Int. J. Electron. Commun. 2020, 115, 1530–1536. [Google Scholar] [CrossRef]
  20. Aizenberg, I.; Belardi, R.; Bindi, M.; Grasso, F.; Manetti, S.; Luchetta, A.; Piccirilli, M.C. A Neural Network Classifier with Multi-Valued Neurons for Analog Circuit Fault Diagnosis. Electronics 2021, 10, 349. [Google Scholar] [CrossRef]
  21. Shi, J.; Deng, Y.; Wang, Z.; He, Q. A Combined Method for Analog Circuit Fault Diagnosis Based on Dependence Matrices and Intelligent Classifiers. IEEE Trans. Instrum. Meas. 2020, 69, 782–793. [Google Scholar] [CrossRef]
  22. Shi, J.; Deng, Y.; Wang, Z.; Guo, X. An adaptive new state recognition method based on density peak clustering and voting probabilistic neural network. Appl. Soft Comput. 2020, 97, 106835. [Google Scholar] [CrossRef]
  23. Deng, Y.; Zhou, Y. Fault Diagnosis of an Analog Circuit Based on Hierarchical DVS. Symmetry 2020, 12, 1901. [Google Scholar] [CrossRef]
  24. Shi, J.; He, Q.; Wang, Z. GMM Clustering-Based Decision Trees Considering Fault Rate and Cluster Validity for Analog Circuit Fault Diagnosis. IEEE Access 2019, 7, 140637–140650. [Google Scholar] [CrossRef]
  25. Karthi, S.P.; Shanthi, M.; Bhuvaneswari, M.C. Parametric fault diagnosis in analog circuit using genetic algorithm. In Proceedings of the 2014 International Conference on Green Computing Communication and Electrical Engineering, Coimbatore, India, 6–8 March 2014; pp. 1–5. [Google Scholar]
  26. Yu, W.; He, Y.; Gao, K. A Compute Method of Analog Circuit Fault Diagnosis via Particle Swarm Optimization. J. Autom. Control. Eng. 2016, 4, 439–442. [Google Scholar] [CrossRef]
  27. Yang, C.; Zhen, L.; Hu, C. Fault Diagnosis of Analog Filter Circuit Based on Genetic Algorithm. IEEE Access 2019, 7, 54969–54980. [Google Scholar] [CrossRef]
  28. Yang, C. Genetic Algorithm Based Faulty Parameter Identification for Linear Analog Circuit. IEEE Access 2020, 8, 213357–213369. [Google Scholar] [CrossRef]
  29. Alexander, C.; Sadiku, M. Fundamentals of Electric Circuits, 7th ed.; McGraw Hill Higher Education: New York, NY, USA, 2008. [Google Scholar]
  30. Hayt, W.; Kermmerly, J.; Durbin, S. Análise de Circuitos em Engenharia; Mc Graw Hill: New York, NY, USA, 2008. [Google Scholar]
  31. Lee, S.Y.; Cheng, C.J. Systematic Design and Modeling of a OTA-C Filter for Portable ECG Detection. IEEE Trans. Biomed. Circuits Syst. 2009, 3, 53–64. [Google Scholar] [CrossRef]
  32. Yang, X.S. A New Metaheuristic Bat-Inspired Algorithm. In Nature Inspired Cooperative Strategies for Optimization (NICSO 2010); Springer: Berlin/Heidelberg, Germany, 2010; pp. 65–74. [Google Scholar]
  33. Galindo, J.D.L. Diagnóstico de Falhas em Circuitos Analó gicos Utilizando Inteligência de Enxame. Master’s Thesis, Universidade do Estado do Rio de Janeiro, State University of Rio de Janeiro, Rio de Janeiro, Brazil, 2022. Available online: https://www.pel.uerj.br/wp-content/uploads/2023/04/Dissertacao_Jalber_Dinelli.pdf (accessed on 22 August 2023).
  34. Pervez, Z.; Sun, J.; Hu, G.; Wang, C. Analog Circuit Soft Fault Diagnosis Based on Sparse Random Projections and K-Nearest Neighbor. Sci. Program. 2021, 2021, 8040140. [Google Scholar] [CrossRef]
  35. Yang, H.; Xu, Z.; Ye, J.; King, I.; Lyu, M.R. Efficient sparse generalized multiple kernel learning. IEEE Trans Neural Netw. 2011, 22, 433–446. [Google Scholar] [CrossRef] [PubMed]
  36. Zhang, C.; He, Y.; Yuan, L.; He, W.; Xiang, S.; Li, Z. novel approach for diagnosis of analog circuit fault by using GMKL-SVM and PSO. J. Electron. Test. 2016, 32, 531–540. [Google Scholar] [CrossRef]
  37. Ma, Q.; He, Y.; Zhou, F. A new decision tree approach of support vector machine for analog circuit fault diagnosis. Analog. Integr. Circ. Signal Process. 2016, 88, 455–463. [Google Scholar] [CrossRef]
  38. Shokrolahi, S.; Kazempour, A.T.N. A novel approach for fault detection of analog circuit by using improved EEMD. Analog. Integr. Circ. Signal Process. 2019, 98, 527–534. [Google Scholar] [CrossRef]
Figure 1. Schematics of the Tow–Thomas Biquad filter.
Figure 1. Schematics of the Tow–Thomas Biquad filter.
Biomimetics 08 00388 g001
Figure 2. Schematics of the Butterworth filter.
Figure 2. Schematics of the Butterworth filter.
Biomimetics 08 00388 g002
Figure 3. Waveform for the faultless Tow–Thomas Biquad filter.
Figure 3. Waveform for the faultless Tow–Thomas Biquad filter.
Biomimetics 08 00388 g003
Figure 4. Waveform for the Biquad Tow–Thomas filter with faulty  R 3 .
Figure 4. Waveform for the Biquad Tow–Thomas filter with faulty  R 3 .
Biomimetics 08 00388 g004
Figure 5. Waveform for the Biquad Tow–Thomas filter with faulty  R 2  and  C 2 .
Figure 5. Waveform for the Biquad Tow–Thomas filter with faulty  R 2  and  C 2 .
Biomimetics 08 00388 g005
Figure 6. Waveform for the faultless Butterworth filter.
Figure 6. Waveform for the faultless Butterworth filter.
Biomimetics 08 00388 g006
Figure 7. Waveform for the Butterworth filter with faulty  C 2 .
Figure 7. Waveform for the Butterworth filter with faulty  C 2 .
Biomimetics 08 00388 g007
Figure 8. Waveform for the Butterworth filter with faulty  R 1  and  C 3 .
Figure 8. Waveform for the Butterworth filter with faulty  R 1  and  C 3 .
Biomimetics 08 00388 g008
Figure 9. PSO’s performance for the first case study when varying the number of accessible nodes. (a) Accuracy; (b) Precision; (c) Recall; (d) Specificity.
Figure 9. PSO’s performance for the first case study when varying the number of accessible nodes. (a) Accuracy; (b) Precision; (c) Recall; (d) Specificity.
Biomimetics 08 00388 g009
Figure 10. PSO’s performance for the second case study when varying the number of accessible nodes. (a) Accuracy; (b) Precision; (c) Recall; (d) Specificity.
Figure 10. PSO’s performance for the second case study when varying the number of accessible nodes. (a) Accuracy; (b) Precision; (c) Recall; (d) Specificity.
Biomimetics 08 00388 g010
Figure 11. BA’s performance for the first case study when varying the number of accessible nodes. (a) Accuracy; (b) Precision; (c) Recall; (d) Specificity.
Figure 11. BA’s performance for the first case study when varying the number of accessible nodes. (a) Accuracy; (b) Precision; (c) Recall; (d) Specificity.
Biomimetics 08 00388 g011
Figure 12. BA’s performance for the second case study when varying the number of accessible nodes. (a) Accuracy; (b) Precision; (c) Recall; (d) Specificity.
Figure 12. BA’s performance for the second case study when varying the number of accessible nodes. (a) Accuracy; (b) Precision; (c) Recall; (d) Specificity.
Biomimetics 08 00388 g012
Figure 13. Comparison of the evaluation metrics regarding the testing of circuits as achieved by PSO vs. BA. (a) Accuracy for Circuit 1; (b) Precision for Circuit 1; (c) Recall for Circuit 1; (d) Specificity for Circuit 1; (e) Accuracy for Circuit 2; (f) Precision for Circuit 2; (g) Recall for Circuit 2; (h) Specificity for Circuit 2.
Figure 13. Comparison of the evaluation metrics regarding the testing of circuits as achieved by PSO vs. BA. (a) Accuracy for Circuit 1; (b) Precision for Circuit 1; (c) Recall for Circuit 1; (d) Specificity for Circuit 1; (e) Accuracy for Circuit 2; (f) Precision for Circuit 2; (g) Recall for Circuit 2; (h) Specificity for Circuit 2.
Biomimetics 08 00388 g013
Figure 14. Comparison of the execution times(s) regarding the testing of circuits as required by PSO vs. BA. (a) Faultless Circuit 1; (b) Faultless Circuit 2; (c) Faulty Circuit 1; (d) Faulty Circuit 2.
Figure 14. Comparison of the execution times(s) regarding the testing of circuits as required by PSO vs. BA. (a) Faultless Circuit 1; (b) Faultless Circuit 2; (c) Faulty Circuit 1; (d) Faulty Circuit 2.
Biomimetics 08 00388 g014
Table 1. Measured voltage at nodes  T 1 T 3  in Tow–Thomas Biquad filter.
Table 1. Measured voltage at nodes  T 1 T 3  in Tow–Thomas Biquad filter.
ScenariosFaultValue T 1  (V) T 2  (V) T 3  (V)
Case 1NF-   0.283 j 0.451   0.717 j 0.451   0.717 j 0.451
Case 2   R 1   4.32 k Ω   0.655 j 1.043   1.659 j 1.043   1.659 j 1.043
Case 3   R 2   6.5 k Ω   0.314 j 0.325   0.517 j 0.499   0.517 j 0.499
Case 4   R 3   4.3 k Ω   0.068 j 0.252   0.401 j 0.108   0.401 j 0.108
Case 5   R 4   5.0 k Ω   0.089 j 0.286   0.910 j 0.286   0.910 j 0.286
Case 6   R 5   6.0 k Ω   0.523 j 0.499   0.795 j 0.832   0.477 j 0.499
Case 7   R 6   4.0 k Ω   0.059 j 0.236   0.376 j 0.095   0.941 j 0.236
Case 8   C 1   5 nF   0.283 j 0.450   0.717 j 0.450   0.717 j 0.450
Case 9   C 2   4 nF   0.059 j 0.236   0.941 j 0.236   0.941 j 0.236
Table 2. Used node combinations for the scenarios regarding the test of Tow–Thomas Biquad filter.
Table 2. Used node combinations for the scenarios regarding the test of Tow–Thomas Biquad filter.
#NodesNode Combinations
1 T 1 T 2 T 3
2 T 1 / 2 T 1 / 3 T 1 / 2
3   T 1 / 2 / 3
Table 3. Measured voltage at nodes  T 1 T 5  in Butterworth filter.
Table 3. Measured voltage at nodes  T 1 T 5  in Butterworth filter.
ScenariosFaultValue T 1  (V) T 2  (V) T 3  (V) T 4  (V) T 5  (V)
Case 1NF   0.7170 j 0.4505   1.4339 j 0.9009   1.5904 j 1.6511   0.3965 j 1.9003   0.7929 j 3.8005
Case 2   R 1   5.0 k Ω   0.9102 j 0.2859   1.8203 j 0.5719   2.2054 j 1.3447   0.9754 j 1.9576   1.9509 j 3.9152
Case 3   R 2   4.0 k Ω   0.7170 j 0.4505   2.5093 j 1.5767   2.7833 j 2.8895   0.6938 j 3.3254   1.3876 j 6.6509
Case 4   R 3   6.0 k Ω   0.7170 j 0.4505   1.1471 j 0.7208   1.2723 j 1.3209   0.3172 j 1.5202   0.6344 j 3.0404
Case 5   R 4   5.0 k Ω   0.7170 j 0.4505   1.4339 j 0.9010   1.5450 j 1.2095   0.5629 j 1.5632   1.1257 j 3.1263
Case 6   R 5   6.0 k Ω   0.7170 j 0.4505   1.4339 j 0.9010   1.6806 j 1.3025   1.0416 j 1.6952   2.0832 j 3.3903
Case 7   R 6   4.0 k Ω   0.7170 j 0.4505   1.4339 j 0.9010   2.6032 + j 1.3513   2.4751 j 0.2039   8.6628 j 0.7135
Case 8   R 7   5.0 k Ω   0.7170 j 0.4505   1.4339 j 0.9010   0.9648 j 1.5025   0.0149 j 1.5119   0.0224 j 2.2678
Case 9   C 1   4 nF   0.9406 j 0.2364   1.8812 j 0.4728   2.3177 j 1.2343   1.1056 j 1.929   2.2112 j 3.8580
Case 10   C 2   5 nF   0.7170 j 0.4505   1.4339 j 0.9010   1.0475 j 1.2300   0.1969 j 1.3537   0.3938 j 2.7075
Case 11   C 3   4 nF   0.7170 j 0.4505   1.4339 j 0.9010   2.0225 j 0.3401   1.8219 j 0.7981   3.6438 j 1.5961
Table 4. Used node combination in the scenarios regarding the test of Butterworth filter.
Table 4. Used node combination in the scenarios regarding the test of Butterworth filter.
#NodesNode Combinations
1 T 1 T 2 T 3 T 4 T 5
2 T 1 / 2 T 1 / 3 T 1 / 4 T 1 / 5 T 2 / 3 T 2 / 4 T 2 / 5 T 3 / 4 T 3 / 5 T 4 / 5
3 T 1 / 2 / 3 T 1 / 2 / 4 T 1 / 2 / 5 T 1 / 3 / 4 T 1 / 3 / 5 T 1 / 4 / 5 T 2 / 3 / 4 T 2 / 3 / 5 T 2 / 4 / 5 T 3 / 4 / 5
4 T 1 / 2 / 3 / 4 T 1 / 2 / 3 / 5 T 1 / 2 / 4 / 5 T 1 / 3 / 4 / 5 T 2 / 3 / 4 / 5
5   T 1 / 2 / 3 / 4 / 5
Table 5. PSO’s parameter settings.
Table 5. PSO’s parameter settings.
ParameterValue
#DimensionsK
#Iterations1000
#Particles30
  ω 0.5
  ϕ 1 1.49
  ϕ 2 1.49
  f m i n 0.0
Error   10 15
Table 6. PSO’s achieved results for Circuit 1 regarding the defined metrics and the listed scenarios.
Table 6. PSO’s achieved results for Circuit 1 regarding the defined metrics and the listed scenarios.
Metric (%)   T 1   T 2   T 3   T 1 / 2   T 1 / 3   T 2 / 3   T 1 / 2 / 3
A90.9991.3091.2692.6992.5892.8193.90
P59.3860.7060.5567.3466.8067.8172.84
R62.8963.7863.9669.5669.5470.3274.60
S94.9195.0995.0795.8795.8195.9596.56
Table 7. PSO’s achieved results for Circuit 2 regarding the defined metrics and the listed scenarios with 1 and 2 node combinations.
Table 7. PSO’s achieved results for Circuit 2 regarding the defined metrics and the listed scenarios with 1 and 2 node combinations.
Metric (%)   T 1   T 2   T 3   T 4   T 5   T 1 / 2   T 1 / 3   T 1 / 4   T 1 / 5   T 2 / 3   T 2 / 4   T 2 / 5   T 3 / 4   T 3 / 5   T 4 / 5
A91.2591.6391.8791.9091.9791.7792.7192.7692.5093.3793.4593.1392.7593.2292.50
P55.4658.0458.4158.7658.7859.2062.2062.4861.1865.9766.1164.4062.7664.6261.37
R55.0656.7656.7657.0257.5557.6661.2061.7360.2065.0065.4363.5161.4664.1860.54
S95.3195.6795.6595.6995.6995.7496.0796.1095.9696.4396.4696.2996.1396.3295.96
Table 8. PSO’s achieved results for Circuit 2 regarding the defined metrics and the listed scenarios with 3 node combinations.
Table 8. PSO’s achieved results for Circuit 2 regarding the defined metrics and the listed scenarios with 3 node combinations.
Metric (%)   T 1 / 2 / 3   T 1 / 2 / 4   T 1 / 2 / 5   T 1 / 3 / 4   T 1 / 3 / 5   T 1 / 4 / 5   T 2 / 3 / 4   T 2 / 3 / 5   T 2 / 4 / 5   T 3 / 4 / 5
A93.4093.5093.2193.4193.3393.1693.4093.4193.5893.28
P66.1666.2465.0965.8665.4164.5765.7165.6566.8265.24
R65.1965.9164.0264.8564.2963.8465.1265.0965.8364.44
S96.4496.4696.3596.4796.4196.3296.4096.4096.5496.39
Table 9. PSO’s achieved results for Circuit 2 regarding the defined metrics and the listed scenarios with 4 and 5 node combinations.
Table 9. PSO’s achieved results for Circuit 2 regarding the defined metrics and the listed scenarios with 4 and 5 node combinations.
Metric (%)   T 1 / 2 / 3 / 4   T 1 / 2 / 3 / 5   T 1 / 2 / 4 / 5   T 1 / 3 / 4 / 5   T 2 / 3 / 4 / 5   T 1 / 2 / 3 / 4 / 5
A93.9793.7193.6393.6993.0894.07
P68.8167.2966.8867.2363.8469.11
R67.9666.5266.3266.4163.5968.28
S96.7396.5996.5596.6196.2096.79
Table 10. BA’s parameter settings.
Table 10. BA’s parameter settings.
ParameterValue
#DimensionsK
#Iterations1000
#Bats30
Alfa0.5
Beta0.5
Initial pulse rate0.1
  f m i n 0 Hz
  f m a x 500 kHz
Table 11. BA’s achieved results for Circuit 1 regarding the defined metrics and the listed scenarios.
Table 11. BA’s achieved results for Circuit 1 regarding the defined metrics and the listed scenarios.
Metric (%)   T 1   T 2   T 3   T 1 / 2   T 1 / 3   T 2 / 3   T 1 / 2 / 3
A92.1492.4192.5993.9894.0894.5995.84
P64.5165.8166.5773.0073.4575.7481.45
R67.1968.1968.9474.5175.0477.0782.16
S95.5795.7295.8396.6096.6796.9597.66
Table 12. BA’s achieved results for Circuit 2 regarding the defined metrics and the listed scenarios with 1 and 2 node combinations.
Table 12. BA’s achieved results for Circuit 2 regarding the defined metrics and the listed scenarios with 1 and 2 node combinations.
Metric (%)   T 1   T 2   T 3   T 4   T 5   T 1 / 2   T 1 / 3   T 1 / 4   T 1 / 5   T 2 / 3   T 2 / 4   T 2 / 5   T 3 / 4   T 3 / 5   T 4 / 5
A91.2591.6392.8192.9793.1091.7792.7192.7692.5093.3793.4593.1393.7093.8593.98
P55.4658.0463.4364.1864.7359.2062.2062.4861.1865.9766.1164.4067.7868.2569.10
R55.0656.7661.1961.9762.6557.6661.2061.7360.2065.0065.4363.5165.7766.7767.32
S95.3195.6796.2096.2996.3595.7496.0796.1095.9696.4396.4696.2996.6896.7296.81
Table 13. BA’s achieved results for Circuit 2 regarding the defined metrics and the listed scenarios with 3 node combinations.
Table 13. BA’s achieved results for Circuit 2 regarding the defined metrics and the listed scenarios with 3 node combinations.
Metric (%)   T 1 / 2 / 3   T 1 / 2 / 4   T 1 / 2 / 5   T 1 / 3 / 4   T 1 / 3 / 5   T 1 / 4 / 5   T 2 / 3 / 4   T 2 / 3 / 5   T 2 / 4 / 5   T 3 / 4 / 5
A93.4093.5093.2193.4193.3394.4193.4093.4194.4694.52
P66.1666.2465.0965.8665.4171.2165.7165.6571.5171.74
R65.1965.9164.0264.8564.2969.6165.1265.0969.8670.32
S96.4496.4696.3596.4796.4197.0396.4096.4097.0697.08
Table 14. BA’s achieved results for Circuit 2 regarding the defined metrics and the listed scenarios with 4 and 5 node combinations.
Table 14. BA’s achieved results for Circuit 2 regarding the defined metrics and the listed scenarios with 4 and 5 node combinations.
Metric (%)   T 1 / 2 / 3 / 4   T 1 / 2 / 3 / 5   T 1 / 2 / 4 / 5   T 1 / 3 / 4 / 5   T 2 / 3 / 4 / 5   T 1 / 2 / 3 / 4 / 5
A93.9793.7193.6395.1395.3395.90
P68.8167.2966.8874.8775.5778.44
R67.9666.5266.3273.3074.6077.64
S96.7396.5996.5597.4297.4997.79
Table 15. Evaluation metrics as achieved by the PSO and BA meta-heuristics.
Table 15. Evaluation metrics as achieved by the PSO and BA meta-heuristics.
#Nodes
Metrics (%)12345
PSOBAPSOBAPSOBAPSOBAPSOBA
Circuit 1A91.1892.3892.6994.2293.9095.84----
P60.2165.6367.3274.0672.8481.45----
S63.5468.1169.8075.5474.6082.16----
E95.0295.7195.8896.7496.5697.66----
Circuit 2A91.7292.3592.8193.1293.3793.7193.6294.3594.0795.90
P57.8961.1763.0364.6765.6867.4666.8170.6869.1178.44
S56.6359.5362.0963.4664.8666.4366.1669.7468.2877.64
E95.6095.9696.1596.3396.4296.6196.5496.9696.7997.79
Table 16. Improvement comparison when varying the number of considered nodes.
Table 16. Improvement comparison when varying the number of considered nodes.
#Nodes
Improvement (%)2345
PSOBAPSOBAPSOBAPSOBA
Circuit 1A1.511.842.723.46----
P7.118.4312.6315.82----
R6.267.4311.0614.05----
S0.861.031.541.95----
Circuit 2A1.090.771.651.361.902.002.353.55
P5.143.507.796.298.929.5111.2217.27
R5.463.938.236.909.5310.2111.6518.11
S0.550.370.820.650.941.001.191.83
Table 17. Execution times regarding the tested of circuits as achieved by PSO vs. BA.
Table 17. Execution times regarding the tested of circuits as achieved by PSO vs. BA.
#NodesTime (s)
Circuit 1Circuit 2
NFWFNFWF
PSOBAPSOBAPSOBAPSOBA
15895439138401.0829631.6351.452
28908181.2001.1041.4741.2971.9331.701
31.0819951.4161.3021.8611.6382.5152.213
4----2.3112.0112.6622.467
5----2.6622.3163.4873.034
Table 18. Performance comparison of the optimization- vs. classification-based approaches for analog circuit fault diagnosis.
Table 18. Performance comparison of the optimization- vs. classification-based approaches for analog circuit fault diagnosis.
#ApproachRefA (%)BetterSimilarWorst
PSOBAPSOBAPSOBA
1Radial Basis Function Network[34]65.77
2Bayesian Network[34]97.31 x
3Support Vector Machine (SVM)[34]81.92
4Sparse Random Projections and K-Nearest Neighbor[34]100 xx
5Generalized Multiple Kernel Learning SVM[35]97.90 x
6Generalized Multiple Kernel Learning SVM with PSO[36]98.30 x
7Ensemble Empirical Mode Decomposition[37]98.64 x
8Improved Ensemble Empirical Mode Decomposition with SVM[38]98.75 x
9Proposed methodology based on PSO-93.93
10Proposed methodology based on BA-96.02
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Nedjah, N.; Galindo, J.D.L.; Mourelle, L.d.M.; Oliveira, F.D.V.R.d. Fault Diagnosis in Analog Circuits Using Swarm Intelligence. Biomimetics 2023, 8, 388. https://doi.org/10.3390/biomimetics8050388

AMA Style

Nedjah N, Galindo JDL, Mourelle LdM, Oliveira FDVRd. Fault Diagnosis in Analog Circuits Using Swarm Intelligence. Biomimetics. 2023; 8(5):388. https://doi.org/10.3390/biomimetics8050388

Chicago/Turabian Style

Nedjah, Nadia, Jalber Dinelli Luna Galindo, Luiza de Macedo Mourelle, and Fernanda Duarte Vilela Reis de Oliveira. 2023. "Fault Diagnosis in Analog Circuits Using Swarm Intelligence" Biomimetics 8, no. 5: 388. https://doi.org/10.3390/biomimetics8050388

Article Metrics

Back to TopTop