Abstract
Design for testability configures test points and plans tests during product design to support fault detection and isolation in service. Existing test strategy generation (TSG) methods mainly address offline diagnosis. As demand for uninterrupted operation grows, downtime and economic losses become more significant, shifting maintenance toward online diagnosis. However, offline methods optimize complete diagnostic processes without directly accounting for isolation gains within a limited time. Their direct application can therefore yield a low fault isolation rate (FIR). To address this problem, this paper proposes an online TSG method based on delayed-feedback value learning (DFVL). First, an optimization problem is formulated using a multi-signal flow graph and a finite time constraint. Second, a DFVL framework is developed using value recursion and feasible subtree returns. It comprises Bellman-based features, balanced feasible completions, delayed updates with unweighted normalized residuals, historical-tree retention, model-derived MAP candidates, and bounded local search. Across 90 synthetic models and 12 budgets, mean FIR was 83.53%, compared with 77.96% for Mix1 and 73.24% for DIG. At normalized Time 36, device-model FIR was 75.90%, versus 53.15% for Mix1 and 61.86% for DIG. FIR denotes a model-based correct terminal MAP decision probability under single-fault, deterministic-response, and fixed-duration assumptions.
1. Introduction
1.1. Research Motivation
Design for testability involves configuring test points and planning tests during product design to generate diagnostic strategies [1,2]. Traditional design for testability mainly addresses offline fault diagnosis [3,4]. Under offline conditions, test strategy generation (TSG) generally does not require strict time limits. Its main objective is to reduce the average test cost by optimizing test selection and sequencing while achieving complete fault isolation [5,6].
However, as the demand for continuous equipment operation and the cost of downtime increase, offline TSG has become less able to meet the requirements of online fault diagnosis. This has driven the development of TSG for online applications. Unlike offline TSG, online TSG must account for explicit time constraints. Its primary objective is no longer complete isolation, but the highest possible fault isolation rate (FIR) within a limited time. Traditional offline methods mainly optimize the complete diagnostic process. They generally do not use the isolation gains obtainable within a limited time as a basis for decision making. Consequently, applying offline methods directly to online problems can yield low fault isolation gains within the available test time.
1.2. Literature Review
Existing offline TSG methods can be broadly divided into two categories: greedy algorithms based on local test evaluation functions, and global planning algorithms based on intelligent optimization and combinatorial search.
The basic idea of a greedy algorithm is to select the locally optimal test at each decision node according to the current evaluation values of candidate tests. It does not search the entire strategy space globally, and is therefore fast and straightforward to implement [7,8]. Tian et al. combined the fault detection weight with information entropy and proposed two greedy algorithms, Mix1 and Mix2. These algorithms improve the applicability of a single evaluation metric across different D-matrices [7]. For diagnostic test selection in multimode systems, Krysander et al. used a fault signature matrix and a greedy algorithm to select residual sets progressively. Their method reduces the number of tests while preserving diagnosability in each operating mode [8]. Zhang et al. combine information gain with fault-detection weighting in DIG [9]. Related greedy sensor-selection methods address experimental design [10] and observability-Gramian optimization [11]. Such methods generally select the next test using an evaluation function at the current node or limited look-ahead, and offer high computational efficiency. However, if the evaluation does not account for isolation gains before the deadline, directly truncating the generated strategy may fail to use the diagnostic window effectively.
Global planning algorithms typically use intelligent optimization or combinatorial search to jointly optimize the test set, test sequence, and diagnostic tree structure [12,13,14,15,16,17,18,19]. Yu et al. encoded diagnostic strategies using a fault–test dependency matrix. They used a quantum-inspired genetic algorithm to jointly optimize the expected test cost and the number of tests used [12]. Li et al. developed a data-driven test selection model and used an improved discrete binary particle swarm optimization algorithm to solve test selection under multiple faults [13]. They subsequently described test dependencies using a conditional joint distribution and a deep copula to reduce detection and maintenance costs [14]. Hu et al. developed a test point selection framework based on a fault response matrix to obtain high fault coverage with fewer test points [15]. Zhu et al. established a four-valued dependency matrix for systems with complex multivalued attributes and designed a diagnostic strategy optimization method. This further integrates testability modeling with TSG [16]. Li et al. model dependent test outcomes and multiple-fault ambiguity for test selection [20]. Kulkarni et al. developed a multiobjective sensor selection framework to improve the fault detection rate (FDR) while reducing the total sensor cost [17]. Wang et al. further formulated a test selection optimization model with FDR and FIR constraints for multivariable and multifault scenarios [18]. Li et al. developed a sequential fault diagnosis strategy for high-speed train traction systems with unreliable tests [19]. These sensor-selection and unreliable-test studies consider FDR/FIR requirements or response uncertainty, but their objectives differ from maximizing the terminal MAP return under a separate deadline on every diagnostic path. Ash and Hayes-Roth associate diagnostic-tree nodes with actions that remain available when a deadline is reached [21]. Bayer-Zubek formulates test selection and stopping as a Markov decision process and uses AO* search to minimize expected test and misdiagnosis costs [22]. Liang et al. apply Q-learning to diagnostic policies with imperfect tests [23]. Yang et al. use a deep Q-network for analog-circuit test-point selection under a cost constraint [24]. Zhang et al. apply deep reinforcement learning to multi-valued dependency matrices to reduce the steps or expected cost of complete isolation [25]. These methods improve the adaptability of test selection and TSG under complex conditions.
Although the above TSG methods have been widely applied, they do not share a single objective. Complete-process cost optimization and finite-window MAP return need not select the same test sequence. The present work plans a separate budget-feasible strategy for each given binary D/P/C model and time limit, using achieved feasible subtree returns as feedback.
1.3. Research Content and Contributions
To address these problems, this paper proposes an online TSG method based on delayed-feedback value learning. First, an online TSG optimization problem is formulated by combining a multi-signal flow graph model with a finite time constraint. The basic FIR monotonicity identity supports feasible return bounds. Further, a delayed-feedback value learning (DFVL) framework is developed by combining value recursion with feasible subtree feedback. The framework constructs features from Bellman recursion, generates training samples through subtree completion and return records, and updates the network using a delayed-feedback equation with whole-tree backup. Historical feasible trees, model-derived MAP candidates, state-matched subtree reuse, and bounded local search are integrated into the final strategy construction. The main contributions are as follows:
- A TSG optimization problem is formulated for online fault diagnosis with limited test time, explicitly defining the objective of maximizing FIR within that time.
- Bounded action-value features and delayed feedback from completed feasible subtrees provide normalized learning targets, using balanced completions and unweighted residuals.
- The learned values are combined with historical feasible-tree retention, model-derived candidates and bounded search to construct a feasible diagnostic strategy for each known model and budget.
The remainder of this paper is organized as follows. Section 2 formulates the online TSG optimization problem and checks its motivating approximation. Section 3 states the return identity used by feasible bounds. Section 4 presents the proposed DFVL framework. Section 5 reports the evaluations, and Section 6 concludes the paper.
2. MSFG Model and Formulation of the Online TSG Problem
2.1. MSFG
The model assumes that exactly one of the listed faults is active during a diagnosis. The priors describe these mutually exclusive fault hypotheses; a healthy-state detection problem and simultaneous multiple faults are not evaluated.
The multi-signal flow graph (MSFG) model describes system fault states, available tests, and their relationships. It provides a basis for TSG and diagnostic decision tree construction [26,27], and is usually represented by the tuple [28,29]:
- The candidate fault set is , where denotes the ith system fault state and m is the total number of candidate fault states.
- The prior fault probability vector is . The designer determines from system information and failure mode, effects, and criticality analysis (FMECA). It represents the prior probability that the system is in state , conditional on a fault having occurred, and satisfies and .
- The available test set is . Here, denotes the jth test that can be performed on the system, and n is the total number of available tests.
- The test time vector is . The designer specifies according to the actual measurement conditions. It represents the time required to perform test and satisfies .
- The fault–test dependency matrix is , where . If test responds to fault , then ; otherwise, .
2.2. Formulation of the Online TSG Optimization Problem
At a node with candidate fault set , the maximum a posteriori (MAP) rule is the optimal diagnostic decision rule when misclassification costs are equal [30]. The candidate fault with the highest probability in A should be selected as the diagnostic result. In this paper, FIR is measured by the probability of a correct MAP decision. The conditional probability of a correct decision at this node is , and its contribution to the overall FIR is
Throughout this paper, FIR denotes the prior-weighted probability that the terminal MAP decision is correct under the supplied model. A leaf containing several candidate faults contributes the prior of its MAP representative. This criterion does not require every terminal candidate set to be a singleton.
Offline TSG generally minimizes the average test cost subject to complete fault isolation. By contrast, online tests must be completed within an engineering-defined diagnostic window, and their objective is to maximize FIR within a limited time. Let denote a diagnostic decision tree, the set of all root-to-leaf paths, and the collection of candidate fault sets at its leaves. Let be the maximum allowable diagnostic time. Because the candidate fault sets at different leaves are disjoint, the overall FIR equals the sum of their contributions. Therefore, the online TSG optimization problem can be expressed as
A calculation example is shown in Figure 1. The dashed line indicates the test deadline. Tests that have not been completed before this deadline are excluded from the fault decision at the leaf node.
Figure 1.
Diagnostic tree under a time constraint and an example FIR calculation.
2.3. Loss in the Return of Complete Diagnostic Strategies Under Time Limits
The supplied priors are inputs to strategy generation. For the controlled simulations, three fault grades use relative weights 100:10:1, which are normalized to obtain P. This mapping is a modeling choice, rather than a numerical ratio prescribed by MIL-STD-1629A, whose probability classes provide a qualitative classification [31]. The engineering case uses the supplied grade assignments; an alternative uniform prior is evaluated separately.
Let the numbers of faults in the three levels be , with weights , and let index the prior probability levels. Tests are divided into cost levels. The cost and number of tests at level ℓ are , respectively, with and . Define and . Let be the largest fault weight in composition , with a value of 0 for an empty node. Each fault has prior probability , and the same Z is used at every child node. The true loss is defined as the difference between the optimal online FIR and the FIR of a truncated entropy tree under the same deadline. The expectation is taken over random dependency matrices whose entries independently follow , and over uniform selection when entropy values are tied. Let denote the feasible strategy obtained by truncating a complete entropy tree at budget t. Let estimate the unnormalized mean return of the truncated entropy tree, and let estimate the optimal unnormalized return of online planning. Then,
The truncated strategy is itself feasible, so the true difference is nonnegative. The analytical estimate assumes node independence, independence of the remaining columns, and closure based on the conditional means of successor returns. The derivation is given below.
For a node with composition , is the number of faults at prior level q. Let denote the composition of faults with test response 1, where is the number of such faults at that level. The composition for response 0 is . Define and the outcome entropy as . Let be the distribution function of this entropy. Among candidate tests, the probability that the maximum-entropy test has response-1 composition is
Here, is the binary entropy, and is the probability of an entropy value strictly below h. Tests with tied entropy values are selected with equal probability. Define . Let be the mean number of nodes with this composition at depth d in the complete entropy tree. The initial values are and 0 for all other compositions. Let be the composition to be counted at the next depth, and let be the mean increment in the unnormalized MAP return at test . Dividing this increment by Z gives the FIR increment. The indicator equals 1 when its condition holds and 0 otherwise. From the binary tree structure and the additivity of MAP returns,
The sums include only nodes that can be split further, and the maximum depth is . Because the entropy criterion does not use costs, test costs along a path are sampled without replacement from a finite population. Let be the number of tests drawn from cost level ℓ among the first d tests. The probability that these d tests are completed within and the estimated mean return of the truncated entropy tree are
Online planning, in contrast, considers both the test-induced partition and the remaining time. Let denote the remaining numbers of tests at each cost level. Let estimate the optimal return with remaining time t, and define . For a candidate test at cost level ℓ, the successor return is ; when no effective partition is obtained, it is set to . Define . Sort and all distinct candidate return values as , giving distinct values. The mean of the discrete maximum then gives the recursion
Here, is a unit vector. The return is 0 for an empty node, and when only one fault remains or no feasible test is available. Under the approximations of node independence, independence of the remaining columns, and conditional-mean closure of successor returns, this recursion estimates the online return in the random-matrix model.
For example, consider four faults with prior probabilities . A test of duration 1 partitions the faults into and . A test of duration 3 partitions them into and . The latter has an outcome entropy of approximately bits, exceeding the former’s bits. Thus, a pure entropy criterion selects the duration-3 test first. With a budget of 1, that test remains incomplete, and FIR stays at . Performing the duration-1 test first instead gives . This example shows that directly truncating a strategy generated by an entropy criterion for the complete process can be suboptimal.
The approximation was checked on 30 independent matrices with , fault-grade counts , weights , test-cost counts for costs , and the fixed absolute budget . Complete exact dynamic programming supplied the optimum for each matrix; the entropy-tree comparison used uniform selection among tied entropy values. The approximate optimal and entropy-tree mean FIR values were 94.86% and 83.93%, compared with Monte Carlo means of 93.41% and 83.01%. Their 95% t intervals across 30 independent models (29 degrees of freedom) were and , respectively. The estimated loss was 10.93 percentage points, versus an observed mean of 10.40 points, with an interval of . The approximation-minus-Monte-Carlo discrepancies were therefore , and points. This check quantifies error for this setting and does not establish accuracy at larger sizes.
3. Mathematical Properties of the Online TSG Problem
Monotonicity of the Fault Isolation Rate
Feasible diagnostic-tree expansion cannot reduce terminal MAP return. The identity below supports the lower bounds and stopping rules used by DFVL.
First, consider how the objective changes as a diagnostic tree expands. For any leaf with candidate set A, suppose a feasible test splits it into and , corresponding to responses 0 and 1. Equation (1) gives
The fault with the highest probability in A must belong to one of the child nodes. That child therefore retains the original maximum, while the other child adds a nonnegative isolation gain. Since the tree FIR is the sum of its leaf contributions, expanding any leaf without violating the time constraint makes the whole-tree FIR monotonically nondecreasing.
Each diagnostic path can be expanded using feasible tests until no effective test can be completed within the remaining time, or the candidate faults have been completely isolated. If different faults have identical response signatures across all remaining tests, the node cannot obtain any further isolation gain and should also terminate.
4. An Online TSG Method Based on Delayed-Feedback Value Learning
Online TSG can be formulated as a time-constrained finite-horizon decision process. The state x consists of the current ambiguous fault set, the remaining tests, and the remaining time; an executable test is an action; and the reward is the probability that the terminal MAP decision is correct. The ideal heuristic evaluation function (HEF) is the optimal long-term value of a state–test pair within the remaining time and can be evaluated recursively using the Bellman optimality principle.
DFVL learns bounded action values from the returns of completed feasible subtrees. Those returns update a strategy archive and provide delayed labels for multiple state–test pairs. The complete planning procedure also includes model-derived MAP candidates, state-matched subtree reuse, and bounded local search. Figure 2 summarizes the procedure.
Figure 2.
DFVL planning for a known model and budget, followed by online traversal of the stored feasible tree.
4.1. Construction of Action-Value Features
The inputs to the action-value network must first be specified. Let the current node state be , where A is the ambiguous fault set, U is the set of available tests that have not yet been performed, and b is the remaining time. Let denote the probability mass of this candidate set. Its FIR contribution is defined by Equation (1). The index set of currently feasible tests is . For a candidate first test , let be the set of all feasible binary subtrees that start with and whose remaining duration on every path does not exceed b. The ideal HEF is then
where and . Let denote the optimal conditional FIR at state x when immediate stopping is allowed. The Bellman optimality principle gives
The root probability mass is , so the local conditional value agrees with the overall objective in Equation (2). Branches with zero probability mass are excluded from the weighted sum. Equation (10) decomposes the long-term value of a test into the gain from the current partition and the future values of the two child states. The latter are jointly constrained by the remaining time and fault separability. Accordingly, the input features are extracted from three aspects: immediate gain, remaining time and feasible testing depth, and future separability.
- (1)
- Immediate gain. The size of the current ambiguous fault set determines the scope for improvement. After a test divides the set into two subsets, the MAP returns of the two child nodes constitute the achieved FIR. The immediate gain relative to the value before testing is calculated using Equation (8).
- (2)
- Remaining time and feasible testing depth. The current remaining time b, the duration of the candidate test, and the tests that remain executable at the child nodes jointly determine the depth of subsequent expansion. For any child state , arrange the durations of all remaining tests in in ascending order as . The remaining time imposes the following upper bound on the number of tests along a path:
- (3)
- Future separability. Even when sufficient time is available, faults with identical responses cannot be distinguished using the available tests. Faults with the same response vector over belong to the same signature class. Suppose there are such classes, and let be their maximum prior probabilities in descending order. A binary subtree with depth no greater than can have at most leaves, and faults within the same signature class cannot be separated further. An upper bound on the subtree FIR is thereforeWith the first test fixed, a one-step look-ahead at each of the two child nodes provides a feasible lower bound. Summing their bounds from Equation (12) gives an upper bound:If a child node has no feasible test, the corresponding maximum immediate gain in this expression is set to 0.
The information from these three aspects is normalized and supplied to the network. For , define the five-dimensional child-node feature vector as
These five quantities represent, respectively, the child-branch probability mass, the current MAP return, the proportion of feasible subsequent tests, the remaining feasible testing depth, and the proportion of distinguishable fault classes. The two child branches are ordered by increasing probability mass. When their masses are equal, they are ordered by response value, 0 before 1. The resulting vectors are denoted by and . Combining them with the parent-node size and remaining time, the current test duration and immediate gain, and the value bounds gives
The vector contains 16 normalized features. If or no feasible test is available, the procedure terminates without computing action features. The ratio is computed only when and is executable. Conditional values and their features are defined for states with positive probability mass. A branch with zero probability mass terminates immediately, contributes 0 to the FIR, and has its conditional features set to a zero vector.
4.2. Training Sample Generation and Archive Retention
Training samples are generated through state sampling, tree completion, and return recording. Their coverage is controlled by the starting states, exploratory tree completions, and fixed per-state completion quotas.
- (1)
- State coverage and exploration. Starting states alternate between the root and a reachable intermediate state of the same supplied model. Intermediate states use feasible prefixes whose target depths cycle from one to six; tests are drawn uniformly and branches according to their prior mass. Each training round collects fresh initial completions for feasible first tests, stopping early if a root tree attains a valid upper bound. Network parameters and exploration probability remain fixed within that round. Each round generates fresh feasible completions, while the feasible-tree archives and feedback labels persist across rounds. With probability , a completion selects uniformly among feasible tests other than its current highest-scoring test, when alternatives exist; otherwise it uses that highest-scoring test.
- (2)
- Tree feedback and the archive. Let denote the feasible subtree obtained from each completion; it satisfies the time constraint on every path. Let v denote a tree node, its child for response y, and its candidate fault set. For nodes with positive probability mass, the achieved return is backed up from the leaves to the root:If a completion starts from , then . For a completion from the root state, this value is the overall FIR of the tree. Branches with zero probability mass contribute zero and are excluded from the conditional-value backup. For each state–first-test pair, the highest achieved conditional value is retained as the label . Separately, the state archive retains a highest-return feasible completed subtree for each state. The root archived tree is a final candidate independently of the current greedy network tree. The best achieved value at a state isThe achieved conditional FIR of each node is backed up according to Equation (16). For an internal node v, let be its state, the index of its selected test, and its candidate fault set. Each node provides a sample , which is stored in the sample repository together with , , and the completion indicator . Only when all feasible completions for the state–first-test pair have been enumerated or the archived value reaches the upper bound is assigned; otherwise, . Thus, one tree provides feedback for multiple nodes. In this method, all feedback is backed up together after tree completion.
- (3)
- Balanced additional completions. After initial coverage, let be the best achieved conditional value at the sampled state. The eligible first tests are those whose valid upper bounds exceed by the numerical tolerance. This eligibility set and remain fixed throughout the additional-completion stage. The eligible tests are visited cyclically in increasing test-index order, up to a total quota . This rule balances attempts among the fixed eligible actions. An empty eligible set ends this stage. A feasible root tree attaining the valid root upper bound may end routine completion early. Every achieved subtree is backed up to the archive and label repository.
The network and exploration probability remain fixed within the round. Let K be the maximum number of sampled starting states. Exploration decreases linearly with round k:
Maximum completion quotas need not equal realized work because eligibility and valid optimality certificates can stop completion.
4.3. Delayed Feedback and Action-Value Network Updates
The action-value network uses a valid return interval and distinguishes achieved feasible lower bounds from certified complete targets. All eligible normalized residuals have equal weight.
- (1)
- Value interval constraint. Let the network output be , and let the interval width be . The estimated action value of a candidate test is
- (2)
- Feedback completion status. For a state–action sample , write , , , and . Construct the error using the latest archived value . The indicator means that all feasible completions have been exhaustively searched or the archived value has reached the upper bound; means that the archive remains a feasible lower bound on the long-term value:When , the interval value is already determined, and the sample need not be included in network fitting through Equation (20). The achieved archived value, optimal value, and valid bounds satisfyComplete feedback is used to fit the determined optimal conditional value. Partial feedback is an achieved feasible lower bound, so the one-sided loss corrects predictions below that bound. Certified complete feedback gives a two-sided target. Interval parameterization restricts predictions to valid lower–upper bounds, but a prediction need not be the return of a realizable tree and can exceed the unknown . Thus, the current loss does not guarantee elimination of overestimation.
- (3)
- Unweighted normalized residuals. Draw a mini-batch from the label repository , remove duplicate state–action labels from the same original model, and exclude samples with as numerically fixed intervals. Denote the remaining nonempty batch by . The factor remains in the target normalization in Equation (20); it is not used as a sample weight. Fault priors still define the terminal MAP objective and the achieved subtree returns. The loss and update areNo update is made for an empty eligible batch. The implementation uses on weight matrices, momentum 0.90, and global gradient clipping at 5. Biases are not regularized; v is the momentum buffer.
4.4. Algorithm Workflow and Complexity Analysis
Algorithm 1 summarizes the offline planning procedure for a given MSFG and time budget.
Planning is performed offline for each known MSFG and budget. Two model-derived MAP trees are constructed using immediate and feasible two-step gain per cost. They are retained as candidates for final selection. Only when such a candidate reaches the valid root upper bound is it inserted before routine training, providing a certified shortcut that avoids further completions; eligible candidate feedback can still support at most two network updates. Otherwise, training starts from its own feasible completions. After training, a greedy network tree is added to the archive. Candidates are evaluated using the supplied model, archived subtrees are combined only at matching states , and bounded local search retains improvements. The final DFVL output is the best feasible tree found, rather than necessarily the greedy network tree. Mix1/DIG trees and their returns do not enter this construction.
The final search uses at most two passes, considers three candidate first tests at a visited search state, and allows 100 additional completions. Exact local search is restricted to at most six candidate faults and 3000 expanded nodes overall. Search may stop when a feasible tree attains a valid model-derived upper bound. These are planning limits; no wall-clock cutoff selects the reported trees.
Once a fault occurs, online execution directly uses the tree stored offline. Algorithm 2 obtains the response to the test specified at the current node and follows the corresponding branch until it outputs the MAP decision stored at a leaf.
Let denote the number of elementary operations in one network forward pass. In a naive implementation, evaluating child-node separability for each candidate test requires scanning the remaining test responses. Sorting the maximum prior probabilities of signature classes introduces an additional logarithmic factor. Including network scoring of candidate actions gives the cost at a single node. Each nonempty binary split adds at least one leaf, so a complete tree contains at most internal nodes. The time complexities for processing one node and generating the complete tree are therefore
The total offline cost includes model-derived candidate construction, balanced training completions, network updates, and final tree search. If round k uses completions and updates, its cost can be decomposed as
Here includes network-tree construction, archive combination and bounded local/exact search. Maximum configuration values need not equal realized work. The online representation stores only a test index, two child addresses and a MAP decision per node. Consequently, pure traversal costs and compact tree storage costs . The full research archive also contains candidate sets and is distinct from this compact deployment representation.
| Algorithm 1 DFVL planning for one known MSFG and time budget |
|
| Algorithm 2 Online fault diagnosis along a pregenerated diagnostic tree |
|
5. Experimental Validation
5.1. Experimental Setup
The evaluations comprise simulations and an engineering-model calculation for a power-grid measurement device. Simulations compare FIR across problem sizes and time budgets. The engineering case considers a single acquisition resource and a limited diagnostic window. FIR is the sole performance measure; timings and storage describe implementation cost. Calculations used MATLAB R2018b on 64-bit Windows 11 Pro, with an Intel Core i5-12400 processor and approximately 16 GB RAM.
DFVL is trained separately for each supplied D/P/C model and time budget, including the device model. Two training settings were compared: with at most two updates per eligible round, and with at most eight updates per eligible round. The 18 model–budget conditions comprised three sizes (), two models per size, and three relative budgets (). These conditions form a subset of the formal evaluation. Both settings achieved a mean full-pipeline FIR of 77.09%; the tie rule selected the smaller setting, which was then fixed for the formal evaluations. The final parameters are listed in Table 1, and state sampling and stopping rules are specified in Section 4.2.
Table 1.
Experimental settings for the algorithms.
Mix1 and DIG receive the same and use the same terminal MAP decisions as DFVL. DIG uses node-conditional probabilities and , with score and ; tied scores select the smallest test index. Budget-aware variants first exclude tests that cannot finish. Two further references maximize immediate MAP gain per cost and feasible two-step MAP gain per first-test cost; they also supply DFVL’s model-derived candidate trees.
The independent sampling unit is the D/P/C model. Overall comparisons average the 12 paired budget differences within each of the 90 models before constructing paired t intervals (89 degrees of freedom) and two-sided exact sign tests, with Holm adjustment for the two DFVL–baseline comparisons. Pointwise intervals use ten models (9 degrees of freedom), conditional on recorded algorithm seeds. Repeated budgets or seeds are not independent model replicates.
5.2. Simulation Experiments
This subsection examines the effects of problem size and time budget on algorithm performance. Nine sizes, , were considered, with 10 independently generated MSFG instances for each size. For each instance, all algorithms use the same D, P, C, and actual time budget, and their mean FIR is compared at different budget levels.
The simulation data were generated as follows. The entries of D are independently Bernoulli distributed. Faults are assigned to grades B, C, and D in specified count ratios, and the grade weights in Section 2.3 are normalized to obtain P. Tests are assigned to three duration levels in specified count ratios to obtain C. The same distribution parameters and grade ratios are used for all sizes. When the specified ratios do not yield integer counts, the largest remainder method is used. The settings are listed in Table 2.
Table 2.
Simulation data and time budget settings.
For comparison baseline a, let denote its complete diagnostic tree, and let denote its set of root-to-leaf paths. For each instance, the common reference time is the maximum path duration among the Mix1 and DIG trees. The budget at each level is defined as
For each model, Mix1 and DIG retain their complete-tree test order. The next response is included only when its test finishes by the deadline; equality is included within the numerical tolerance . If the next test cannot finish, the strategy stops at the current node and makes its stored MAP decision; it does not skip to another test. DFVL instead plans a feasible tree directly under the same budget. Zero and repeated response rows are retained for every method.
For each problem size, the result at each budget level is the mean over the 10 instances:
where a and s index the algorithm and instance, respectively. At zero budget, the initial MAP decision is retained. If D contains identical fault-response rows, the corresponding indistinguishable ambiguity sets are retained. Figure 3 presents the results for the nine sizes; the horizontal and vertical axes in each panel show and mean FIR, respectively.
Figure 3.
Mean terminal MAP FIR at nine problem sizes and twelve relative budgets. Lines connect the observed means across ten independent D/P/C models per size. Shaded bands are pointwise 95% t intervals (, 9 degrees of freedom), conditional on the recorded algorithm seeds. Methods share the model inputs and deadline .
- (1)
- Effect of the time budget. As shown in Figure 3, the mean FIR of each algorithm generally increases in steps with at all nine sizes. At small budgets, whether a test finishes before the deadline directly changes the terminal ambiguity sets, producing plateaus and increases in the curves. As the budget increases, more tests can be completed, and the isolation rates of the three methods gradually increase. Separate finite planning runs at different budgets need not return nested DFVL trees, so its observed curve need not be monotone.
- (2)
- Effect of problem size. From to , the differences between algorithms vary with both problem size and budget. DFVL and Mix1 differ more clearly under some tight-budget conditions, while Mix1 approaches DFVL over some intervals at the larger sizes. Changing the problem size alters the possible fault partitions and time allocations; consequently, the differences in isolation gain do not simply increase monotonically with the number of faults or tests.
- (3)
- Performance differences between algorithms. Across the 1080 model–budget conditions, mean FIR was 83.53% for DFVL, 77.96% for Mix1 and 73.24% for DIG. The model-level mean paired gains were 5.58 percentage points over Mix1 (95% interval 4.88–6.27) and 10.29 over DIG (8.79–11.80), with Holm-adjusted for both comparisons. The budget-aware Mix1 and DIG means were 77.96% and 73.58%; the two-step and immediate MAP references gave 82.47% and 81.58%. These comparisons evaluate the complete hybrid DFVL procedure, which combines value learning, historical-tree retention, model-derived MAP candidates, and bounded search.
The Bernoulli simulations are controlled randomized comparisons; they do not reproduce the sparse response structure or fault-grade composition of the device model.
Retained-history ablation. The control starts from the same learned prefix, network, feedback labels, and random-generator state as DFVL. Before final search, only the control clears inherited feasible-tree entries and removes the root archived candidate. The two MAP candidates, current network tree, subsequent new archiving and final-search limits are retained. This comparison evaluates the joint effect of retaining historical feasible trees and their archived root candidate.
Figure 4 compares Mix1, DIG, DFVL and this control on all ten models at all twelve budgets, giving 120 paired conditions. After averaging the twelve paired differences within each model, the mean DFVL-minus-control difference was 0.63 percentage points (95% t interval , ten models, 9 degrees of freedom). The condition-level win/tie/loss count was 23/95/2. The interval includes zero, and the observed effects vary across models and budgets.
Figure 4.
Four-strategy retained-history ablation on ten models at twelve relative budgets. Lines connect the observed means; shading gives pointwise 95% t intervals across the ten models (9 degrees of freedom), conditional on recorded seeds. The four strategies use the same and deadline . The shading colors match the curves: orange for DIG, blue for Mix1, red for DFVL, and purple for DFVL without retained history.
On 30 independent models at an absolute budget of 6, DFVL attained the independent Bellman optimum in all cases: mean FIR 93.41%, versus 93.07% for Mix1 and 92.43% for DIG. The exact solutions were not supplied to DFVL.
Three-seed repeats on twenty additional models at gave a mean within-model/budget FIR sample SD of 0.13 percentage points (maximum 1.96); 45 of 60 groups tied across seeds.
At and , changing from 0.30 to 0.15 or from 2 to 1 left all ten matched FIR values unchanged (mean 68.94%). This local check describes the stated setting.
5.3. Engineering-Model Evaluation of a Power-Grid Measurement Device
An engineering-model calculation was performed for a PMU measurement device installed in a distribution cabinet; the platform is shown in Figure 5. The reported FIR values are calculated from supplied D/P/C inputs, not hardware fault-injection outcomes. This device is susceptible to faults during continuous operation, so BIT must be incorporated at the design stage to support fault detection and diagnosis during service. The device continuously acquires and analyzes current, voltage, and phasor data. Fault diagnosis uses measurements obtained under load and the relationships among them. Once the device is taken offline or unloaded, the response data for the corresponding load conditions are unavailable, and the criteria for the relevant in-service tests lose their required data basis. Therefore, faults within the device must be diagnosed during normal load operation.
Figure 5.
Measurement device and existing test access used to define the engineering model.
Because of space and resource constraints, the device uses a single-channel acquisition card connected to different test points through multiplexed switching. Switching during acquisition affects the waveform being recorded. Each test must therefore complete the prescribed acquisition interval and decision process before the system switches to the next test point. Tests require different numbers of waveform cycles; together with switching, settling, and analysis times, these requirements produce different execution costs. BIT therefore uses sequential tests that share a single acquisition resource.
The internal diagnostic window is in normalized units; its physical conversion is not disclosed. Costs use the same normalization and include switching, settling, acquisition, analysis, and diagnostic decision time.
The fixed model contains 57 faults, 43 tests and 18 test points. The supplied fault grades contain 19, 23 and 15 faults, with weights and a total weight of 2145. The cost levels contain 8, 30 and 5 tests. Input elicitation and inter-expert agreement are outside this strategy-generation study. Appendix A provides every model entry and the fault/test definitions.
There are 176 nonzero entries in D, a density of 7.18%. The existing test access produces nine zero-response rows (), with a total weight of 441, and five additional repeated-signature pairs. All faults are retained. The 44 response-equivalence classes give an unlimited-time MAP ceiling of (78.00%). These are coverage and discrimination limits of the fixed test-point layout.
Figure 6 shows the multi-signal flow graph and available test points of the measurement device.
Figure 6.
Multi-signal flow graph and available test points of the measurement device. The red arrows indicate the data bus.
Table 3 compares the four strategies at normalized budgets 12, 24, and 36. The retained-history control uses the matched-prefix definition in Section 5.2.
Table 3.
Model-based FIR under nominal priors at three normalized device budgets.
At Time 36, DFVL gave FIR 75.90%, versus 53.15% for Mix1 and 61.86% for DIG. Their correct-decision weights were 1628, 1140, and 1327 out of 2145, respectively. DFVL remained 2.10 percentage points below the unlimited-time ceiling. Historical-tree retention increased FIR by 3.17, 6.48 and 9.18 percentage points at budgets 12, 24 and 36, respectively. Appendix B shows the three nominal-Time36 trees.
Prior sensitivity. With D, C, and Time = 36 unchanged, all four strategies were regenerated using uniform priors , and DFVL was retrained for this model and budget. FIR was 59.65% for Mix1 and DIG, 66.67% for DFVL and 59.65% for the control. The corresponding unlimited-time ceiling was (77.19%).
Implementation resources. Nominal-Time36 offline planning took 180.46 s: candidate construction 0.11 s, training 178.45 s, network-tree construction s and final search 1.89 s. Training included 170.19 s of completion and 0.27 s of batch updates. The 69-node deployment table used 1104 B (494 B serialized); the network object used 26,840 B, or 53,656 B with optimizer buffers. After one untimed traversal of all 57 fault cases, software traversal was measured using MATLAB’s tic/toc functions over five batches, each repeating the 57 cases 1000 times. Traversal used the preconstructed deployment table and deterministic responses stored in D. The mean batch duration divided by 57,000 was s/path. These are software timing and object-size measurements, not peak process RAM or a conversion of normalized Time to physical seconds. Decision time is already included in C.
6. Conclusions
Traditional offline methods generally optimize diagnostic cost while satisfying isolation requirements, rather than directly optimizing the time-constrained FIR defined in this study. To address this problem, an online TSG optimization formulation was established using an MSFG. DFVL combines value recursion and delayed feasible-subtree feedback with historical-tree retention, model-derived MAP candidates, and bounded search. Balanced completions and unweighted normalized residuals define its sampling and learning rules.
Across nine problem sizes and twelve budgets, mean FIR was 83.53% for DFVL, 77.96% for Mix1 and 73.24% for DIG. At a normalized device budget of 36, the respective FIR values were 75.90%, 53.15% and 61.86%. Historical-tree retention improved device FIR by 3.17–9.18 percentage points; its model-averaged simulation effect was 0.63 points, with a 95% interval spanning zero.
The study assumes one listed fault at a time, given D/P/C, deterministic responses, and fixed durations. Each model and budget requires its own offline planning. The device results are model calculations, not field diagnostic accuracy. The effects of test errors and duration fluctuations on strategy performance remain to be investigated. Future work will incorporate unreliable tests and random durations and evaluate the method in more complex engineering systems.
Author Contributions
Conceptualization, J.W.; methodology, M.H.; validation, X.C.; resources, Z.L.; writing—original draft preparation, H.C. All authors have read and agreed to the published version of the manuscript.
Funding
This research was funded by the National Natural Science Foundation of China, grant number 62503087.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
The measurement-device model parameters and diagnostic trees are provided in Appendix A and Appendix B.
Conflicts of Interest
Author Haiquan Cao is a doctoral student at the University of Electronic Science and Technology of China and is also employed by State Grid Sichuan Electric Power Company. All authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflict of interest.
Appendix A. Complete MSFG Parameters of the Measurement Device
The fault list and the online test list are given in Table A1 and Table A2, respectively. Table A3 provides the complete response matrix, prior weights, and test costs, where is the unnormalized prior weight of fault and the prior probability is calculated as .
Table A1.
Complete fault list of the measurement device.
Table A2.
Complete online test list of the measurement device.
Table A3.
Complete response matrix D, prior weights , and test costs C of the measurement device.
Appendix B. Time-Constrained Diagnostic Trees of the Measurement Device
The three nominal-prior trees use the D/P/C in Appendix A and include only tests completed within normalized Time 36. Blue and red links denote responses 0 and 1. Terminal labels show the stored MAP decision; the associated candidate sets are listed with each tree. Ambiguous terminal sets contribute through that MAP decision.
Figure A1.
Mix1 diagnostic tree and node candidate sets at normalized .
Figure A2.
DIG diagnostic tree and node candidate sets at normalized .
Figure A3.
DFVL diagnostic tree and node candidate sets at normalized .
References
- Suslu, B.; Ali, F.; Jennions, I.K. Understanding the Role of Sensor Optimisation in Complex Systems. Sensors 2023, 23, 7819. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Guan, F.; Cui, W.W.; Li, L.F.; Wu, J. A Comprehensive Evaluation Method of Sensor Selection for PHM Based on Grey Clustering. Sensors 2020, 20, 1710. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Žužek, A.; Biasizzo, A.; Novak, F. Sequential Diagnosis Tool. Microprocess. Microsyst. 2000, 24, 191–197. [Google Scholar] [CrossRef] [Scilit]
- Zhang, S.; Song, L.; Zhang, W.; Hu, Z.; Yang, Y. Optimal Sequential Diagnostic Strategy Generation Considering Test Placement Cost for Multimode Systems. Sensors 2015, 15, 25592–25606. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Raghavan, V.; Shakeri, M.; Pattipati, K.R. Test Sequencing Problems Arising in Test Planning and Design for Testability. IEEE Trans. Syst. Man Cybern.-Part A Syst. Hum. 1999, 29, 153–163. [Google Scholar] [CrossRef] [Scilit]
- Tu, F.; Pattipati, K.R. Rollout Strategies for Sequential Fault Diagnosis. IEEE Trans. Syst. Man Cybern.-Part A Syst. Hum. 2003, 33, 86–99. [Google Scholar] [CrossRef]
- Tian, H.; Duan, F.; Sang, Y.; Fan, L. Novel Algorithms for Sequential Fault Diagnosis Based on Greedy Method. Proc. Inst. Mech. Eng. Part O J. Risk Reliab. 2020, 234, 779–792. [Google Scholar] [CrossRef] [Scilit]
- Krysander, M.; Hashemniya, F. Test Selection for Diagnosing Multimode Systems. In Proceedings of the 35th International Conference on Principles of Diagnosis and Resilient Systems (DX 2024); Open Access Series in Informatics; Leibniz-Zentrum für Informatik GmbH: Wadern, Germany, 2024; Volume 125, pp. 28:1–28:14. [Google Scholar] [CrossRef]
- Zhang, J.; Chen, D.; Gao, P. A Divide-and-Conquer Information Entropy Algorithm for Dependency Matrix Processing. IEEE Access 2023, 11, 121306–121313. [Google Scholar] [CrossRef] [Scilit]
- Nakai, K.; Sasaki, Y.; Nagata, T.; Yamada, K.; Saito, Y.; Nonomura, T. Nondominated-solution-based multi-objective greedy sensor selection for optimal design of experiments. IEEE Trans. Signal Process. 2022, 70, 5694–5707. [Google Scholar] [CrossRef] [Scilit]
- Yamada, K.; Sasaki, Y.; Nagata, T.; Nakai, K.; Tsubakino, D.; Nonomura, T. Efficient sensor node selection for observability Gramian optimization. Sensors 2023, 23, 5961. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Yu, J.; Shi, Y.; Tang, D.; Liu, H.; Tian, L. Optimizing Sequential Diagnostic Strategy for Large-Scale Engineering Systems Using a Quantum-Inspired Genetic Algorithm: A Comparative Study. Appl. Soft Comput. 2019, 85, 105802. [Google Scholar] [CrossRef] [Scilit]
- Li, Y.; Chen, H.; Lu, N.; Jiang, B.; Zio, E. Data-Driven Optimal Test Selection Design for Fault Detection and Isolation Based on CCVKL Method and PSO. IEEE Trans. Instrum. Meas. 2022, 71, 3512310. [Google Scholar] [CrossRef] [Scilit]
- Li, Y.; Wang, X.; Lu, N.; Jiang, B. Conditional Joint Distribution-Based Test Selection for Fault Detection and Isolation. IEEE Trans. Cybern. 2022, 52, 13168–13180. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Hu, J.; Lin, Y.; Xu, Z.; He, H.; Li, Z.; Zhang, G. A Test Point Selection Method Based on Fault Response Matrices Framework. IEEE Trans. Instrum. Meas. 2023, 72, 3516112. [Google Scholar] [CrossRef] [Scilit]
- Zhu, X.; Sun, J.; Yan, Z.; Xu, Y. Integrated Testability Modeling Method of Complex Systems for Fault Feature Selection and Diagnosis Strategy Optimization. Proc. Inst. Mech. Eng. Part O J. Risk Reliab. 2025, 239, 443–458. [Google Scholar] [CrossRef] [Scilit]
- Kulkarni, A.; Terpenny, J.; Prabhu, V. Sensor Selection Framework for Designing Fault Diagnostics System. Sensors 2021, 21, 6470. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Wang, X.; Xie, D.; He, D.; Li, Y.; Chen, H.; Wang, H. Test Optimization Selection for Fault Detection and Isolation Under Multivariable and Multifault Scenarios. IEEE Trans. Instrum. Meas. 2025, 74, 3544212. [Google Scholar] [CrossRef] [Scilit]
- Li, M.; Zhou, Y.; Jia, L.; Qin, Y.; Wang, Z. Sequential-Fault Diagnosis Strategy for High-Speed Train Traction Systems Based on Unreliable Tests. Appl. Sci. 2023, 13, 8226. [Google Scholar] [CrossRef] [Scilit]
- Li, Y.; Zio, E.; Lu, N.; Wang, X.; Jiang, B. Joint Distribution-Based Test Selection for Fault Detection and Isolation Under Multiple Faults Condition. IEEE Trans. Instrum. Meas. 2021, 70, 3504013. [Google Scholar] [CrossRef] [Scilit]
- Ash, D.; Hayes-Roth, B. Using Action-Based Hierarchies for Real-Time Diagnosis. Artif. Intell. 1996, 88, 317–347. [Google Scholar] [CrossRef] [Scilit]
- Bayer-Zubek, V. Learning Diagnostic Policies from Examples by Systematic Search. In Proceedings of the Twentieth Conference on Uncertainty in Artificial Intelligence (UAI 2004); AUAI Press: Arlington, VA, USA, 2004; pp. 27–34. [Google Scholar]
- Liang, Y.; Xiao, M.; Tang, X.; Ge, Y.; Wang, X. A Q-learning Based Method of Optimal Fault Diagnostic Policy with Imperfect Tests. J. Intell. Fuzzy Syst. 2019, 36, 6013–6024. [Google Scholar] [CrossRef] [Scilit]
- Yang, H.; Liu, X.; Gao, T.; Yang, J. Analog Circuit Test Point Selection Method for Fault Diagnosis Based on Deep Reinforcement Learning. Eng. Appl. Artif. Intell. 2026, 164, 113294. [Google Scholar] [CrossRef] [Scilit]
- Zhang, C.; Zhang, Y.; Wang, F.; Su, X.; Dong, Z.; Zuo, L. A Testability Strategy Optimization Method Under Multi-Valued Dependency Condition Based on Deep Reinforcement Learning. Entropy 2026, 28, 733. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Deb, S.; Pattipati, K.R.; Raghavan, V.; Shakeri, M.; Shrestha, R. Multi-Signal Flow Graphs: A Novel Approach for System Testability Analysis and Fault Diagnosis. IEEE Aerosp. Electron. Syst. Mag. 1995, 10, 14–25. [Google Scholar] [CrossRef] [Scilit]
- Pattipati, K.R.; Raghavan, V.; Shakeri, M.; Deb, S.; Shrestha, R. TEAMS: Testability Engineering and Maintenance System. In Proceedings of the 1994 American Control Conference; IEEE: Piscataway, NJ, USA, 1994; Volume 2, pp. 1989–1995. [Google Scholar] [CrossRef] [Scilit]
- Huang, D.; Lu, N.; Jiang, B. A Test Sequencing Optimization Method for Fault Diagnosis of Engineering Systems. In Proceedings of the 2017 29th Chinese Control and Decision Conference (CCDC); IEEE: Piscataway, NJ, USA, 2017; pp. 1208–1213. [Google Scholar] [CrossRef] [Scilit]
- Tian, H.; Duan, F.; Fan, L.; Sang, Y. Novel Solution for Sequential Fault Diagnosis Based on a Growing Algorithm. Reliab. Eng. Syst. Saf. 2019, 192, 106174. [Google Scholar] [CrossRef] [Scilit]
- Murphy, K.P. Probabilistic Machine Learning: An Introduction; MIT Press: Cambridge, MA, USA, 2022. [Google Scholar]
- U.S. Department of Defense. MIL-STD-1629A: Procedures for Performing a Failure Mode, Effects and Criticality Analysis; U.S. Department of Defense: Arlington, VA, USA, 1980.
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. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.








