Abstract

This study aims to improve the operating stability of the resistance strain weighing sensor and eliminate fuzzy factors in fault diagnosis. Based on fuzzy techniques for fault diagnosis, the proposed fuzzy Petri net model uses the fault logical relationship between a sensor and an improved Petri net model. A formula for confidence-based reasoning is proposed using an algorithm, which combines neural network regulation algorithm with a transition-enabled ignition judgment matrix. This formula can yield an accurate assessment of the operating state of the sensor. Backward inference and the minimum cut set theory are also combined to obtain the priority of faults, which helps avoid blind and ambiguous maintenance. The sensor model was analyzed, and its accuracy and validity were verified through statistical analysis and comparison with other methods of fault diagnosis.

1. Introduction

The resistance strain weighing sensor (hereinafter referred to as “the sensor”) is a core component of electronic weighing instruments, and its quality directly influences the accuracy of measurement. In practical applications, due to the influence of raw materials, manufacturing processes, installation methods, service conditions, and the external environment, electronic weighing instruments are prone to various faults with uncertainty. Therefore, accurately predicting and diagnosing faults in these instruments are significant to ensure their accuracy and stability.

As an effective method of parallel computing and behavioral analysis [1], the Petri net has a rigorous mathematical formulation as well as a straightforward graphic description. In [25], fuzzy technology (a new technology based on fuzzy mathematics) was combined with the Petri net to propose the fuzzy Petri net (FPN) method of modeling, which has exhibited powerful parallel processing capability. However, optimizing the model structure and developing the matrix implementation remain to be further researched. It is important to find a model that is representative of real environments.

For calculations in FPN, although the problem in the FPN related to matrix reasoning was solved in [1, 6], its weight and other parameters remain undetermined, and accurate data are needed to ensure the correctness of the diagnosis.

Based on the operator’s diagnostic experience, a method for fault diagnosis in expert systems (ES) can be used as the operating logic of the protection relay and circuit breakers and has been applied to power systems. Methods of fault analysis based on ES have been reported in the literature [79]. For example, an advanced logic-based ES was applied in [7]. The General Diagnosis Engine was used to analyze place information and evaluate security [9]. However, ES-based methods of analysis have shortcomings, such as requiring complex knowledge acquisition and maintenance and slow reasoning. Modeling based on directivity was proposed in [10] to reduce the dimensionality of the incidence matrix and simplify the calculation model, but it fails to provide a sufficient description of weight. The method proposed in [11] significantly improves the fault tolerance of the Petri net, but the Petri net model based on a time sequence does not apply to a static Petri net with adjustable weights.

Owing to fuzzy behavior in the FPN, a number of methods for data determination have been proposed. The BP (back propagation) algorithm endows the Petri net with the capability of self-learning [1214], resulting in clear weight values. However, the model does not improve accordingly. The BP neural network has been combined with the traditional fuzzy fault Petri net to develop the adaptive FPN [15, 16], which improves the capability of the traditional fuzzy fault Petri net to learn weights. However, it fails to explicitly show how to determine the transition confidence coefficient, leaving the system with a large number of uncertainties. The forward-backward algorithm was used to implement reasoning pertaining to unobservable place events in the model [17]. Many other fault diagnosis methods, such as data fusion and the support vector machine (SVM), were proposed as well. Reference [18] has been applied to effectively solve such problems as nonlinearity and high dimensionality. However, due to the characteristics of the SVM, multiple dichotomies are currently used to solve multiclassification problems; in this context, the excessive classification is associated with unnecessary complexity of calculation, and hence a faster method is needed to ensure system stability.

This study proposes a method to diagnose sensor faults based on fuzzy neural Petri net. With the resistance strain weighing sensor as the research object, its FPN fault model is created. The neural network is applied to adjust the weight, with the abandonment of the transition confidence coefficient. The MYCIN confidence reasoning algorithm is optimized based on the sigmoid function and, consequently, fault diagnosis is accomplished based on the minimum cut set of fault rate.

2. Improved Fuzzy Fault Petri Net

2.1. Structure of the Fuzzy Fault Petri Net

Based on the Petri net and fuzzy Petri net theory [1922], a nine-parameter model is defined as .

The variables are as follows:

(1) is a set of place faults, including all faults relating to the sensor, such as “broken gate of the output-adjusting resistance,” “overloaded weighing,” and “excessively large sensitivity of diaphragm shunting.”

(2) is a set of transitions. If a transition is enabled, ; otherwise, .

(3) is the input matrix of the Petri net.

(4) is the output matrix of the Petri net.

(5) denotes the place label vector. When a fault occurs in place , ; otherwise, .

(6) is an matrix of the weight of the place. When , .

(7) is an n-dimensional vector of the confidence coefficients of the place, denoting the confidence of occurrence of a fault event.

(8) is a set of probabilities of the fuzzy occurrence of place events, where denotes the probability of occurrence of place event .

(9) is the threshold vector of transition.

2.2. Structure of the Improved Fuzzy Fault Petri Net

The connection of sensor components is tight, multiple mappings between faults, with the complex and diverse fault propagation mode. Based on this, firstly, the structure of the sensor is analyzed, according to the fuzzy relation to obtain the fault logic relationship, and then the FPN mode is established following the basic rules of Petri net, where the confidence reasoning algorithm is optimized based on the sigmoid function. In other words, based on the original fuzzy Petri net, the sigmoid function replaces the initial transition confidence μ to describe the rules to deduce the FPN model and the expression of fuzzy information. The confidence values of fault events occurring in different places can be obtained through reasoning, which provides the necessary conditions for the positive and negative instances of reasoning pertaining to faults. Figure 1 shows the basic elements of the improved Petri net.

3. Algorithms for FPN Fault Reasoning

To clearly and concisely present the reasoning and calculation of each matrix during the reasoning for the FPN model, the Petri net is used to describe the capability of the concurrency system and the mathematical theory of the FPN to define five special operators [23]:

(1) The comparison operator : , where , , and are matrices. When , ; when , , ; .

(2) The minimum operator : , where , , and are matrices; , where ; .

(3) The maximum operator : , where , , and are matrices; , where ; .

(4) The direct product operator : , where , , and are matrices; is an n-dimensional vector; , where ; .

(5) The multiplication operator : , where , , and are , , and matrices, respectively; , where .

3.1. Confidence Algorithm

The confidence algorithm is modified to achieve higher computational efficiency. Following the reasoning calculation, the confidence values of all places are obtained and function as the basis of fault evaluation and diagnosis.

Weight matrix , where . When there is a directional arc to , is the weight from to . When there is a directional arc to , .

The reasoning formula is

where , ; when and only when the reasoning is concluded; otherwise, it is continued.

3.2. Forward Reasoning

The forward reasoning based on the FPN model reflects the characteristics of fault propagation and predicts faults according to the work environment, the detection of components, or symptom-related information obtained by professionals. The faults that may occur are evaluated through the judgment matrix of transition firing and the flow of fault-state marking, and the corresponding response measures are then taken.

3.2.1. Transition Judgment

Definition 1. , , where is enabled by potential transition.

Definition 2. If transition can trigger ignition, there is a new confidence coefficient in the output place ; if not, the output place is 0.

The transition-triggering ignition matrix is , where .

If the ignition conditions are met, ; otherwise, . According to the rules of ignition, the transition-enabled ignition matrix reasoning corresponding to the token containing the place is calculated out based on [1]

where , denote the label vector of the i-1th ignition and is an m-dimensional vector.

3.2.2. Reasoning Matrix of Fault-State Label Vector

where is the incidence matrix, , is the number of places, and is the number of transitions [10].

3.3. Backward Reasoning

FPN backward reasoning deduces the cause of a fault if it occurs. To avoid blind maintenance and improve the efficiency of tracking the source of the fault, the minimum cut set is introduced as the basis of fault derivation and diagnosis.

Definition 3. If the minimum cut set , the rate of fault occurrence is

The input and output places of FPN backward reasoning are the output and input places of FPN forward reasoning, respectively; namely, .

The backward reasoning matrix is given by

where is the backward-enabled transition sequence of the kth backward ignition.

4. Fault Analysis of the Resistance Strain Weighing Sensor

4.1. Determination of FPN Data

In reasoning relating to the fuzzy Petri net, the confidence coefficient of the initial place (the bottom place of FPN model) needs to be entered externally, whereas those of the middle place and the concluding places are generally obtained by the reasoning. Thus, the determination of the confidence coefficient (fuzzy token) pertaining to place mainly refers to the initial place. In this study, the method proposed in [24] is used to combine historical data with expert opinion to set the confidence coefficient of the initial place.

In the fuzzy Petri net, weight represents the degree to which each condition influences the conclusion and is mainly determined based on past studies. This is significantly subjective and uncertain. As the improved fuzzy Petri net possesses certain characteristics of a neural network, the neural network algorithm can be used to train, learn, and adjust the network. The adjustment algorithm is as follows:

is the due output (expected output) of the ith element and is its actual output. The element’s error signal is given by

The adjustment of weight is mainly reflected in the backpropagation of the error, where the square error is propagated as a regulatory signal. The gradient of the modifier is

The correction value of the weight is , where is the learning rate. A new weight is obtained and substituted back into the above formula to conduct an iterative operation. Weight adjustment is complete when the square error is within the range of tolerance.

4.2. Determining the Model

The sensor is primarily composed of a strain gauge and a measuring circuit. The fault model is established by analyzing the structure of the weighing sensor and fault sampling and by considering the influence of the external environment on the sensor, as shown in Figure 8 in Appendix. See Appendix for fault events corresponding to each place.

As the scale of the model is large, writing the input and output matrices is cumbersome. To show the reasoning and calculation process, the “bridge circuit fault” is used as an example in this study to illustrate faults in the resistance strain weighing sensor, and its FPN fault model is shown in Figure 2. The remaining part of the reasoning process is the same as the example.

4.3. Original Data

According to the method mentioned in Section 4, the vector form of the confidence coefficient of the underlying place was obtained as follows: (0.89, 0.87, 0.84, 0.71, 0.88, 0.93, 0.89, 0.8, 0.87, 0, 0, 0.69, 0, 0.88, 0.9, 0, 0, 0, .

Taking transition , as an example, the weights of , , , , and are adjusted using the method described in Section 4. Hypothesis: , , , , . From statistical calculations, the expectation , , , the largest number of learning steps was set to 4,000, and the square error was . The training results are shown in Figures 3 and 4.

The square error after 3928 steps of iterative operation was within the allowable range. The weights of , , , , and obtained at this point were 0.3936, 0.5160, 0.0904, 0.5177, and 0.4823, respectively. Weight matrix is used to calculate the confidence of the entire Petri net:

According to the results of the calculation and an analysis of this model, the threshold value of all transitions was set to 0.5.

, , , and were substituted into (1). The reasoning was not concluded until , (0.89, 0.87, 0.84, 0.71, 0.88, 0.93, 0.89, 0.8, 0.87, 0.7089, 0.72, 0.69, 0.7, 0.88, 0.9, 0.84, 0.67, 0.71, 0.71. Thereafter, the confidence coefficients of each place were obtained and used as the basis for the forward and backward reasoning.

4.4. Forward and Backward Reasoning
4.4.1. Forward Reasoning

The sensor ran normally and no fault occurred, but symptoms of fault were detected, including “excessively high supply voltage,” “broken output lead,” “insufficient soldering of cable,” “humid environment,” and “broken gate of the output adjusting resistance.” The initial labeling vector obtained was , and was substituted into (2) and (3) to calculate the potential transition-enabled matrix = (1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1. and were substituted into (4) to conduct the reasoning calculation. The final results gained were , and . The reasoning was concluded, , the final labeling vector was , and the fault transmission path is shown in Figure 5. The foregoing conclusions can be used as the basis for fault checking and maintenance to improve the operational stability of the sensor.

4.4.2. Backward Reasoning

Backward reasoning was carried out using the example of “no signal output or small signal output after loading.” The initial labeling vector , and the potential transition-enabled matrix obtained by the forward reasoning .

were substituted into (6). As indicated by the reasoning calculation, when , the reasoning was concluded, and the labeling vector and backward transition matrix were obtained: and . The distribution of places is shown in Figure 6.

As shown in Figure 6, the minimum cut set enabling was , , , , , , , , and . According to (6), f() = 0.89, f() = 0.87, f() = 0.84, f() = 0.88, f() = 0.795, f() = 0.71, f() = 0.93, and f() = 0.89. The fault occurrence probability is shown in Figure 7.

As indicated by Figure 7, the order of diagnosis should be , , , , , , , and . Thus, the speed of diagnosis can be improved.

5. Statistics and Verification of Fault Reasoning

5.1. Fault Statistics

In this study, the maintenance record of CSY-3000 (an instrument manufactured by Zhejiang Golink Technology Development Co., Ltd., China) for the last two years (2016–2017) and data from the manufacturer’s reliability manual (“other” fault causes were introduced due to loss of data records; we render the data true and reliable, including the statistics) were statistically analyzed and compared with the results of reasoning. The data on “no signal output or small signal output after loading” were sorted out, as shown in Table 1.

The correlation coefficient can be obtained based on the data mentioned in Table 1, which can then be used to verify the correctness of the results of reasoning. The correlation coefficient is calculated as follows:

The average values were calculated first: =43.4 and = 0.74766. and were substituted into (14) to obtain the correlation coefficient r = 0.8865. As indicated by the results of the calculation, those of the diagnosis were strongly correlated with actual statistics.

5.2. Case Analysis

To further verify the accuracy of this method, the techniques proposed in [13, 18] were used to analyze two cases: “no signal output or small signal output after loading” and “unstable indicating instrument.” The results are shown in Table 2.

It can be seen from the table that, in terms of effectiveness, compared with the results of [13], the results were verified as valid. From the aspect of fault tolerance, the authors of [13] and this paper observed no leakage detection, whereas the work in [18] reported leakage in “insufficient soldering of cable.” In terms of data selection, the other methods were excessively dependent on expert experience, whereas this paper used a neural network and the sigmoid function as trigger modes, thus increasing the value of the correlation coefficient in the final diagnosis and bringing it closer to the actual fault state.

6. Conclusion

A method of fault diagnosis in Petri net sensors was proposed in this study based on a new confidence reasoning method and was applied to the fault prediction and diagnosis of a resistance strain weighing sensor.

A fault diagnosis model of the resistance strain weighing sensor was established based on the structure, operating characteristics, and fault occurrence of the sensor.

A neural network algorithm was applied to determine the parameters of the model, and a confidence reasoning formula proposed to deduce the pathway and mode of fault propagation, which improved speed and diagnosis efficiency.

Forward and backward reasoning were combined to obtain the order of occurrence of faults for each component, which helps avoid blind detection and maintenance. The relationship between events was clearly presented by the Petri net diagrams.

Despite the contributions of this study, the proposed method has some limitations. The logical relationship, the optimization of threshold setting in the sensor model, and the numerical simulation of the model will be studied in future work.

Appendix

See Figure 8 and Table 3.

Data Availability

The data used to support the findings of this study are available from the corresponding author upon request.

Conflicts of Interest

The authors declare that there are no conflicts of interest.

Acknowledgments

The work was supported by the National Natural Science Foundation of China (no. 61503224), Shandong Natural Science Foundation of China (no. ZR2017MF048), Major Research Development Program of Shandong Province of China (no. 2016GSF117009), Qingdao Minsheng Science and Technology Plan Project (no. 17-3-3-88-nsh), and Shandong University of Science and Technology Postgraduate Innovation Program (SDKDYC180232).