3.2. Fundamentals of Bayesian Networks (BN)
A BN is constituted from a group of unsystematic variables and their casual dependencies indicating probabilistic dependencies and interdependencies among variables through directed acyclic graph (DAG) (
35). Besides that, BNs are developed from nodes and arcs (
36). Nodes represent a random variable whereas probabilistic dependencies among variables are represented through arcs. Also, arcs directions show cause-effect dependencies among variables (
37). A simple Bayesian network has been shown in
Figure 1. Node C is a consequence or child node of A and B as parent nodes of C. Generally, in a BN, a node without any parent nodes and incoming arcs is called a “root node” and a node without child nodes and outgoing nodes is called a “leaf node” (
38).
A simple Bayesian network
The BNs are used to specify a joint probability distribution through variables and DAGs (
39,
40). Root nodes have a marginal probability distribution (MPD), and all other connected nodes have conditional probability distributions (CPD), which are dependent on the root nodes. Furthermore, a CPD indicates the effect of parent nodes on child node using quantifying process (
40). For representing the quantitative effects of discrete parent nodes on their child node, a conditional probability table (CPT) has been assigned to each parent node and in the same way for each discrete root node or each continuous root node, a prior probability table or a function has been defined, respectively (
41). According to the chain rule, a BN explains the joint probability distribution over all the variables, which are available in the DAG and in the following estimates the marginal and the conditional probabilities for each node of the network (
42). Therefore, chain rule determines joint probability distribution through encoding the BNs process between variables (
38) and calculates entries in joint probability distribution on the basis of BNs information. Joint probability distribution P(U) of variable U is:
Where Пi is the parent set of variable Xi. Based on this, the marginal probability is calculated from the following equation:
In the present study, for assessment of HEP, a study group was organized consisting of a health and safety officer, resident supervisor (supervisor 1), gas transmission plant supervisor (supervisor 2), test-men operator, compressor operator, and researcher (as an interviewer). Note that all participated operators had more than four years of experience. In the first step, to capture the prior probabilities about PSFs levels, 45 questionnaires (SPAR-H worksheet) in pigging operation subtasks (three different pigging operations) were filled by experienced operators (experts). These prior probabilities were revised by gas transmission plant senior supervisor (with more than 15 years of experience). In the second step, researchers (as model builders) used prior probabilities to develop the final model. The process of developing the SPAR-H BN model is as follows:
3.3. Combine SPAR-H with Bayesian Network for Pigging Operation
When analyzing HFEs by the SPAR-H method, information and evidence of all PSFs are not available, thus, HRA practitioners have to deal with “insufficient information” for one or more PSFs in these cases. In SPAR-H method, value 1 is assigned to “insufficient information” level, which is the same as a “nominal” level value. This may lead to a HEP, similar to one that is calculated from cases with perfect evidence being generated. In fact, lack of evidence about some PSFs does not mean the evidence is at “nominal” level, which is one of the important issues in the SPAR-H method. Besides, BNs are beneficial for application of prior probabilities in conditions with “insufficient information”. In the present article, the SPAR-H BN model was developed using Agenarisk version 5.0.0 (
43). The BN structure was constructed according to the SPAR-H methodology. The conditional probability table (CPT) was developed using expert judgment about performance shaping factors (PSFs) states in pigging operation. In this study, expert judgment has been incorporated with observational data and information contained in the literature (
44) to capture the prior probability of each state of each PSF for action tasks. This information was used to extend marginal probability table (MPT) for the PSFs. The ultimate goal of SPAR-H BN model is estimation of MPT for the error node. Therefore, SPAR-H BN model used
Equation 2 to capture marginal probability.
3.3.1. Arrangement of SPAR-H in a BN (Qualification Phase)
According to SPAR-H methodology, eight PSFs effect on the probability of error mathematically as in the following function:
Therefore, to construct a qualified model, two types of node were chosen: PSFs nodes and error node. In total, nine nodes exist: eight nodes of eight PSFs and one node of human error. Based on SPAR-H methodology instruction, PSFs in this method are independent and each of these PSFs directly effects on the probability of human error. Hence, arcs were used to demonstrate conditional independence among PSFs. Initial structure of SPAR-H BN is depicted in
Figure 2. In the created model, the levels of each PSF were the same as each PSF level in the original SPAR-H methodology (except “insufficient information” level). The PSFs of SPAR-H method and their related levels and prior probabilities are listed in
Table 2. The error node calculates human failure events probability based on PSFs nodes level and has two discrete levels: 1 (error occur = P (error)) and 0 (error not occur = 1 - P (error)). With regards to the original SPAR-H method, PSFs are independent so there is no casual arc between PSFs nodes and only the casual arcs exists between each PSF and error node.
Naïve SPAR-H BN model for pigging process
3.3.2. Development of Conditional Probability Table (CPT)
3.3.2.1. CPT of PSFs Nodes
For development of CPT of each PSF node, the expert-elicited probabilities of PSFs levels in pigging operation were used. The probability values for each PSF level are listed in
Table 2. Bayesian networks have the ability to use prior possibilities (
40). In SPAR-H methodology, in some cases, information about PSFs levels are incomplete. This methodology assigned “insufficient information” level with multiplier of one for these cases, which is the same as assigning “nominal” level. However, lack of access to information about PSFs does not mean the PSFs are in “nominal” level. Besides, “insufficient information” level in SPAR-H methodology was excluded in order to use available prior probabilities in
Table 2.
| PSF, State | Multiplier (Diagnosis Tasks) | Multiplier (Action Tasks) | Prior Probabilities (Action Tasks) |
|---|
| Available time | | | |
| Time available ≥ 50 × the time required | 0.01 | 0.01 | 0.005 |
| Time available ≥ 5 × the time required | 0.1 | 0.1 | 0.15 |
| Nominal time | 1 | 1 | 0.80 |
| Time available is ~ the time required | 10 | 10 | 0.055 |
| Inadequate time | P (failure) = 1 | P (failure) = 1 | 0.000001 |
| Stress/stressors | | | |
| Nominal | 1 | 1 | 70.1 |
| High | 2 | 2 | 17.7 |
| Extreme | 5 | 5 | 12.2 |
| Complexity | | | |
| Clear diagnosis | 0.1 | - | - |
| Nominal | 1 | 1 | 58.5 |
| Moderately complex | 2 | 2 | 36.6 |
| Highly complex | 5 | 5 | 4.9 |
| Experience/training | | | |
| High | 0.5 | 0.5 | 43.4 |
| Nominal | 1 | 1 | 56.1 |
| Low | 10 | 3 | 2.5 |
| Procedure | | | |
| Nominal | 1 | 1 | 57.2 |
| Available, but poor | 5 | 5 | 30.6 |
| Incomplete | 20 | 20 | 9.7 |
| Not available | 50 | 50 | 2.5 |
| Ergonomics/human machine interference (HMI) | | | |
| Good | 0.5 | 0.5 | 11.3 |
| Nominal | 1 | 1 | 44.1 |
| Poor | 10 | 10 | 41.3 |
| Missing/misleading | 50 | 50 | 3.3 |
| Fitness for duty | | | |
| Nominal | 1 | 1 | 90.7 |
| Degrade fitness | 5 | 5 | 9.3 |
| Unfit | P (failure) = 1 | P (failure) = 1 | 0.000001 |
| Work processes | | | |
| Good | 0.8 | 0.5 | 22.0 |
| Nominal | 1 | 1 | 74.7 |
| Poor | 5 | 5 | 3.3 |
3.3.2.2. CPT of an Error Node
The SPAR-H methodology estimates probability of human error using predefined expression based on PSF composite. The value of HEP depends on the PSFs levels (P (error | PSF
1-8). Considering this, to develop a CPT the number of probabilities will increase exponentially according to the number of parent nodes (
45). In a case, such as SPAR-H method with the eight parent node, the number of probabilities is more than a thousand. Therefore, to develop the CPT of the error node, simulation node and coding process were applied to build error node CPT more conveniently and more accurately. It follows that:
Agenarisk software benefits from a node probability table (NPT) editing mode, which makes it possible to use a mathematical expression to build a CPT of nodes. Given that to construct the error node CPT, the SPAR-H formula (which is mentioned in the next section explicitly) was coded in the model directly. In the event that the “available time” and “fitness for duty” levels are “inadequate” and “unfit” respectively, the probability of human error is appointed equivalent to 1 notwithstanding the other PSFs levels (like original SPAR-H methodology). Based on the original SPAR-H method instruction, this method uses a correction factor for three or more negative levels of PSFs so a dummy node was used for counting the negative nodes in the Agenarisk model. At the end, a coding was added for testing if estimated value of error exceeded 1.0, rounding down the value of error to 1.0.
3.3.3. Estimating the Probability of Human Error
The BN model of SPAR-H uses the marginal probabilities of CPT of PSF composite to estimate the probability of human error. It is found that:
In cases with complete information about PSFs states, the SPAR-H BN model estimates HEP the same as the original SPAR-H methodology yet in cases with insufficient information, the SPAR-H BN model uses prior probabilities to estimate HEP. It demonstrates the strength of this model to quantify human error.
Figure 2 exhibits the SPAR-H BN model with no new information from pigging operation. This means no evidence entered the model (prior model).
3.4. Application of Developed Model: Identifying and Analyzing Human Errors Using the SPAR-H BN Model
This descriptive cross-sectional study was done to analyze human reliability in pipeline inspection gauge (PIG) operation in a gas transmission company in Iran. First, hierarchical task analysis (HTA) was conducted via a walk through in pigging operation and interviewing workers along with assessment procedures of various tasks in the studied company (
Table 3). Accordingly, investigating human error probability (HEP) in PIG operation tasks/subtasks set was a goal of the present study. Afterwards, the BN model of SPAR-H (for action tasks) and SPAR-H (for diagnosis tasks) method (
16) were utilized to estimate the probability of human error.
According to SPAR-H, step-by-step guidance (
46), the following steps were done for human reliability analysis in PIG operation:
Step 1: Categorizing the HFE as Diagnosis and/or Action
In this step, PIG operation recognized HFEs, were classified as either diagnosis tasks or action tasks or both. For quantification purpose of SPAR-H method, diagnosis tasks represent the complete spectrum of cognitive processing and action tasks represent tasks that have been executed. According to Gertman et al.’s study (
16), SPAR-H method dedicated nominal human error probability (NHEP) values of 0.01 and 0.001 for diagnosis tasks and action tasks, respectively. These values refer to error rate in cognitive processing for diagnosis tasks and also refer to error rate on simple action implementation, such as pressing a button or turning a dial, and simple slips or lapses for action tasks.
Step 2: Assessment and Rating Eight Performance Shaping Factors (PSFs)
The next step was to analyze HFEs in pigging operation based on eight PSFs in
Table 2. Each PSF was investigated with respect to HFEs contexts. Therefore, numerical values were allocated according to SPAR-H instruction to each HFE. To achieve this goal, a series of interviews with experts and operators, who participated in PIG operation along with observation of work procedure, was done. Note that in the action tasks, when there was some doubt about choosing the appropriate PSF levels, the multiplier was shown by a question mark (
Table 4) and then, the BN model of SPAR-H was used to estimate HEP. It should be noted in some subtasks of action tasks, some doubt existed with regards to rating PSFs. Therefore, in these cases, SPAR-H BN model was used to estimate HEP.
Step 3: Estimating PSF-Modified HEP
After the PSFs levels were determined, the PSF composite was estimated through multiplying these PSFs levels. Then, the final HEP was calculated by multiplying NHEP by the PSF composite (
Equation 5).
For condition with three or more negative PSFs levels (levels with multiplier greater than 1), HEP was calculated using the correction factor, according to
Equation 6:
Where HEP is human error probability, NHEP is nominal human error probability for diagnosis task and action task activity are 0.01 and 0.001, respectively. PSF is performance shaping factors multiplier.
It should be noted that the prior probability of states of PSFs, which have been mentioned in previous sections, is only for PSFs of action task, moreover, the prior probability of diagnosis tasks is being studied. Therefore, in this step, Bayesian model of SPAR-H methodology was used to estimate probability of human error for action tasks. Original SPAR-H methodology was used for estimation of probability of human error in diagnosis tasks, which means that in a condition with partial information (“insufficient information”), the SPAR-H BN model and original SPAR-H methodology were applied for action tasks and diagnosis tasks, respectively.
Step 4: Calculation of Independent HEP
For a single HFE with composed diagnosis and action tasks, two HEPs were determined separately and then summed to produce the composite HEP. Human error probability for independent tasks was calculated according to
Equation 7:
Where PW/OD is human error probability (HEP) for Independent task, HEPA is human error probability (HEP) for action tasks, HEPD is human error probability (HEP) for diagnosis tasks.
Step 5: Accounting for Dependency
In the SPAR-H method, dependency between two tasks refers to the extent, to which performance on one task effects performance of a subsequent task (
47). Dependency may be recognized between two tasks carried out by the same crew or among multiple tasks conducted by different operators (
16). As a result, the HEP on one task increases the probability of human error on a subsequent task (
47). Given the dependence of some tasks, dependency among tasks in the studied process is calculated from
Table 4. Accordingly, there were five types of dependency (complete, high, moderate, low, and zero) among tasks that were determined according to crew (same or different), time (close in time or not close in time), location (same or different), and cause (additional or not additional).
| Operator | Task | Sub Task (Symbol) |
|---|
| Supervisor | Checking the gas flow rate in the pipeline | Estimation of the average flow rate of the pipeline (X1) |
| Calculation of gas velocity based on gas flow rate (X2) |
| Calculation of the required average gas velocity for crossing the pig (X3) |
| Comparison of the average gas flow rate in the pipeline and the required average velocity for PIG crossing (X4) |
| Ensuring the PIG dimensions | Controlling the changes in a pig that had been used previously (X5) |
| Comparing the diameter of the PIG with the barrel-shaped section of pipeline and trap (X6) |
| Ensuring the openness of the valves in lines | Paying attention to the relief valve gauge (X7) |
| Checking valves manually (X8) |
| Issuing permit to work | Handover the work to the operators (X9) |
| Signing the permit (X10) |
| Validation & revalidation after shift handover (X11) |
| Compressor operator and semi-skilled worker | Injection of air to the back of PIG | Connecting the hose to the pipeline (X12) |
| Turning on the compressor (X13) |
| Enhancing the pressure (X14) |
| Pressure decreasing (X15) |
| Turning off the compressor (X16) |
| Test man | PIG launching | Importing the PIG to header and pipeline (X17) |
| Closing the header (X18) |
| Activation of PIG signaler (X19) |
| Checking vent and drain valves (X20) |
| Opening the kicker valve for enhancing pressure (X21) |
| Checking pressure gauges (X22) |
| PIG receiving | Opening bypass valve for decreasing pressure (X23) |
| Opening drain and vent valve for evacuation of pipeline (X24) |
| Checking pressure gauges and ensuring full discharge of pressure in pipeline (X25) |
| Taking of the pig (X26) |
| Cleaning the garbage that remains from pigging operation for fire and explosion prevention (X27) |
| Condition Number | Crew (Same or Different) | Time (Close in Time or not Close in Time) | Location (Same or Different) | Cause (Additional or not Additional) | Dependency | HEP Calculation Formula |
|---|
| 1 | S | c | s | na | complete | For complete dependence the probability of failure is 1 |
| 2 | a | complete |
| 3 | d | na | high | For high dependence the probability of failure is (1 + Pw/od)/2 |
| 4 | a | high |
| 5 | nc | s | na | high |
| 6 | a | moderate | For moderate dependence the probability of failure is (1 + 6 × Pw/od)/7 |
| 7 | d | na | moderate |
| 8 | a | low | For low dependence the probability of failure is (1 + 19 × Pw/od)/20 |
| 9 | D | c | s | na | moderate | For moderate dependence the probability of failure is (1 + 6 × Pw/od)/7 |
| 10 | a | moderate |
| 11 | d | na | moderate |
| 12 | a | moderate |
| 13 | nc | s | na | low | For low dependence the probability of failure is (1+19 × Pw/od)/20 |
| 14 | a | low |
| 15 | d | na | low |
| 16 | a | low |
| 17 | | | | | zero | For zero dependence the probability of failure is Pw/od |
| Task/sub task | Operator | Diagnosis or Action or Both | PSF | HEP |
|---|
| Available Time | Stress/Stressors | Complexity | Experience/ Training | Procedure | Ergonomics | Fitness for Duty | Work Processes | HEPA | HEPD |
|---|
| X1 | Supervisor 1 | D | 1 | 1 | 2 | 1 | 5 | 1 | 1 | 1 | - | 0.1 |
| X2 | Supervisor 1 | D | 1 | 1 | 2 | 1 | 5 | 1 | 1 | 1 | - | 0.1 |
| X3 | Supervisor 1 | D | 1 | 1 | 2 | 1 | 5 | 1 | 1 | 1 | - | 0.1 |
| X4 | Supervisor 1 | D | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | | 0.01 |
| X5 | Supervisor 1 | D | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | - | 0.01 |
| X6 | Supervisor 1 | D | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | - | 0.01 |
| X7 | Supervisor 1 | D | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | - | 0.01 |
| X8 | Supervisor 1 | A | 1 | 1 | 1 | 1 | (?,?,0,0) | 1 | 1 | 1 | 0.0023941 | - |
| X9 | Supervisor 2 | D | 1 | 2 | 1 | 1 | 1 | 1 | 1 | 1 | - | 0.02 |
| X10 | Supervisor 2 | D | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | - | 0.01 |
| X11 | Supervisor 2 | D | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | - | 0.01 |
| X12 | Compressor operator | A | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0.001 | - |
| X13 | Compressor operator | A | 1 | 2 | 1 | 1 | 1 | 1 | 1 | 1 | 0.002 | - |
| X14 | Compressor operator | A | 1 | 5 | 1 | 1 | (?,?,0,0) | 1 | 1 | 1 | 0.01197 | - |
| X15 | Compressor operator | A | 1 | 1 | 1 | 1 | (?,?,0,0) | 1 | 1 | 1 | 0.0023941 | - |
| X16 | Compressor operator | A | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 0.001 | - |
| X17 | Test man 1 | A | 1 | 2 | 2 | 1 | 1 | 10 | 1 | 1 | 0.038499 | - |
| X18 | Test man 1 | A | 1 | 1 | 1 | 1 | (?,?,0,0) | 10 | 1 | 1 | 0.023941 | - |
| X19 | Test man 1 | A | 1 | 1 | 1 | 1 | (?,?,0,0) | 1 | 1 | 1 | 0.0023941 | - |
| X20 | Test man 1 | D | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | - | 0.01 |
| X21 | Test man 1 | A | (0,0,?,?,0) | 5 | 2 | 1 | (?,?,0,0) | 10 | 1 | 1 | 0.20389 | - |
| X22 | Test man 1 | D | 1 | 1 | 1 | 1 | 0.5 | 1 | 1 | 1 | | 0.005 |
| X23 | Test man 2 | A | (0,0,?,?,0) | 5 | 2 | 1 | (?,?,0,0) | 10 | 1 | 1 | 0.20389 | - |
| X24 | Test man 2 | A | 1 | 2 | 2 | 1 | (?,?,0,0) | 10 | 1 | 1 | 0.083216 | - |
| X25 | Test man 2 | D | 1 | 2 | 2 | 1 | 0.5 | 1 | 1 | 1 | 0.02 | - |
| X26 | Test man 2 | A | 1 | 5 | (?,?,0) | 1 | (?,?,0,0) | 10 | 1 | 1 | 0.1305 | - |
| X27 | Test man 2 | A | 1 | 2 | 1 | 1 | (?,?,0,0) | 10 | 1 | 1 | 0.044742 | - |