G-SHARE: A Guideline-Based Structured Reasoning Framework for Human-Factor Event Diagnosis


Abstract

Human-factor event diagnosis is essential for learning from operational events in nuclear power plants, yet its quality depends strongly on expert interpretation of narrative reports and guideline-based reasoning.Existing data-driven or one-shot large language model approaches often lack structured reasoning, have limited alignment with formal diagnostic guidelines, and may generate logically inconsistent conclusions. To address this issue, this study proposes G-SHARE, a guideline-based structured reasoning framework that operationalizes the CNNP nine-step human-factor event diagnosis guideline into a multi-stage diagnostic pipeline.The framework consists of evidence extraction, stepwise diagnostic reasoning, and post-hoc consistency repair, enabling explicit use of report evidence, intermediate rationale generation, and logical validation of diagnostic outputs. A dataset of real human-factor event reports was constructed from Chinese nuclear industry sources, and a gold-standard subset annotated by domain experts was used for evaluation. Results show that G-SHARE substantially outperforms one-shot prompting and traditional machine learning baselines, with the strongest version achieving the best overall accuracy and macro-F1. Ablation results further indicate that structured reasoning and consistency enforcement are critical to robust diagnosis, especially under weak prompting conditions. The findings demonstrate the value of transforming expert diagnostic guidelines into auditable reasoning workflows, providing a practical pathway for intelligent human-factor analysis in safety-critical industries.

[style=chinese]

[style=chinese]

[style=chinese]

[style=chinese]

[style=chinese]

human-factor event diagnosis,nuclear power plant safety,large language model,structured reasoning,guideline-based decision-making,constraint consistency,interpretability; safety-critical systems

1 Introduction↩︎

Human-factor event diagnosis plays a critical role in learning from operational events and enhancing safety performance in nuclear power plants [1]. Following abnormal events, systematic analysis is conducted to identify human errors, understand their underlying mechanisms, and support the development of corrective and preventive measures [2]. In practice, this process extends beyond simple categorization, requiring analysts to reconstruct event sequences, interpret operator behaviors, and evaluate cognitive and situational factors in accordance with established diagnostic guidelines [3]. However, event reports are typically narrative and semi-structured, with key information embedded in dispersed textual descriptions [4]. As a result, analysts must manually extract relevant evidence and synthesize it into a coherent diagnostic interpretation. Although formal procedures—such as the nine-step human-factor event diagnosis guideline developed in the Chinese nuclear industry—provide structured analytical principles, their execution remains highly dependent on expert judgment [5]. This leads to limitations in efficiency, consistency, and reproducibility, especially when dealing with large volumes of event data [6]. Therefore, there is a need for a more structured and reproducible approach to human-factor event diagnosis that can preserve expert reasoning logic while reducing reliance on purely manual analysis [7].

Recent advances in artificial intelligence have motivated efforts to support or automate event analysis [8]. Traditional machine learning approaches typically formulate the task as a text classification problem, directly mapping event reports to predefined diagnostic categories [9]. While such methods can achieve reasonable predictive performance, they lack explicit reasoning processes and do not incorporate domain-specific diagnostic guidelines, making their outputs difficult to interpret and verify [10]. More recently, large language models have been applied to event analysis using free-form prompting, leveraging their strong language understanding capabilities to generate diagnostic conclusions [11]. However, such approaches often produce unconstrained outputs, which may overlook critical evidence, exhibit inconsistencies in reasoning, or fail to align conclusions with intermediate analysis [12]. In safety-critical contexts, these limitations raise concerns regarding reliability, transparency, and auditability [13]. Meanwhile, existing human reliability analysis methods and event analysis tools provide structured frameworks for evaluating human performance, but are not designed to process narrative reports through guideline-based reasoning [14]. In particular, there remains a lack of approaches that explicitly translate formal diagnostic guidelines into machine-executable reasoning processes. Consequently, the key limitation of current approaches is not merely predictive accuracy, but the absence of a structured and guideline-aligned reasoning mechanism that supports transparent and reliable human-factor event diagnosis [1].

In industrial practice, diagnostic guidelines such as the CNNP nine-step human-factor event diagnosis procedure represent a valuable accumulation of expert knowledge [15], defining how event information should be interpreted, how causal factors should be identified [16], and how human errors should be categorized. However, these guidelines are primarily intended for manual use and have not been fully operationalized into computational frameworks [17]. Specifically, there is a lack of methods capable of transforming such guidelines into machine-readable reasoning stages, systematically extracting and utilizing evidence from narrative reports, enforcing consistency between intermediate reasoning and final conclusions [18], and producing reproducible and auditable diagnostic outputs. Addressing this gap requires bridging the divide between expert-defined analytical procedures and data-driven or language-based models [19]. A central question, therefore, is how domain diagnostic guidelines can be translated into structured reasoning frameworks that preserve expert logic while enabling scalable and auditable AI-assisted analysis [20].

To address this challenge, this study proposes a guideline-based structured reasoning framework for human-factor event diagnosis, termed G-SHARE. The framework translates the CNNP nine-step diagnostic guideline into a multi-stage reasoning process, integrating evidence extraction, stepwise diagnosis, and logic-based consistency repair. In doing so, it enables explicit use of report evidence, structured generation of intermediate reasoning, and validation of diagnostic consistency. A dataset of real-world human-factor event reports is constructed, along with a gold-standard subset annotated by domain experts for evaluation. The results demonstrate that the proposed framework improves diagnostic performance compared with one-shot large language model approaches and traditional machine learning methods, while also providing more transparent and auditable reasoning processes. More broadly, this work illustrates a practical pathway for transforming expert diagnostic guidelines into machine-executable workflows, contributing to the development of trustworthy AI-assisted analysis in safety-critical domains. The remainder of this paper is organized as follows. Section 2 introduces the background and problem formulation. Section 3 presents the proposed framework. Section 4 describes the experimental design, followed by results in Section 5. Section 6 discusses the implications and limitations of this work, and Section 7 concludes the paper.

2 Related Work↩︎

2.1 Human-factor event analysis and diagnosis methods↩︎

Human-factor event analysis is a fundamental component of safety management in high-reliability industries such as nuclear power, aviation, and chemical processing [21]. Over the past decades, a variety of human reliability analysis (HRA) methods have been developed to support the identification, quantification, and interpretation of human errors [22]. Classical approaches, including THERP, SPAR-H, and more recent frameworks such as IDHEAS, provide structured procedures for analyzing human performance by decomposing tasks, identifying performance shaping factors [23], and estimating error probabilities. These methods have contributed significantly to improving the systematic understanding of human error mechanisms and their impact on system safety [24].

In addition to probabilistic HRA methods, event investigation and diagnosis frameworks are widely applied in operational practice to analyze real-world incidents [25]. These approaches typically focus on reconstructing event sequences, identifying causal factors, and determining the nature of human errors through structured analytical procedures [26]. In the context of nuclear power, diagnostic guidelines—such as the nine-step human-factor event diagnosis procedure developed within the Chinese nuclear industry—provide detailed instructions on how analysts should extract evidence from event reports, interpret operator behaviors, assess contextual conditions stanton2017human?, and ultimately classify human-factor events. Such guidelines emphasize a stepwise reasoning process that integrates multiple sources of information and supports consistent decision-making [27].

Despite their strengths, existing human-factor analysis and diagnosis methods are predominantly designed for manual execution and rely heavily on expert judgment stanton2017human?. The analysis process is often time-consuming and requires substantial domain expertise, particularly when dealing with narrative and semi-structured event reports [28]. Moreover, variability across analysts may lead to inconsistencies in diagnostic outcomes, and the reasoning process is not always fully documented in a reproducible manner [29]. While these approaches provide well-defined analytical principles, they lack computational mechanisms to directly operationalize diagnostic procedures into machine-executable workflows [30].

Consequently, there remains a gap between formal diagnostic guidelines and their practical implementation in large-scale or data-driven analysis settings [31]. Existing methods offer structured conceptual frameworks, but do not provide explicit support for transforming guideline-based reasoning into automated, reproducible, and auditable diagnostic processes [32].

2.2 AI-based approaches for event analysis and text-based diagnosis↩︎

With the increasing availability of operational data and advances in natural language processing, artificial intelligence (AI) techniques have been explored to support event analysis and human-factor diagnosis [33]. Early studies primarily adopted traditional machine learning approaches, in which textual event reports were transformed into feature representations, such as term frequency–inverse document frequency (TF-IDF) [34], and subsequently classified using models including logistic regression, random forests, and gradient boosting methods [35]. These approaches enable automated processing of large volumes of reports and can achieve reasonable predictive performance. However, they typically treat the task as a direct mapping from text to labels [36], without explicitly modeling the underlying reasoning process or incorporating domain-specific diagnostic knowledge. As a result, their outputs are often difficult to interpret and may not align with established analytical procedures [37].

More recently, large language models (LLMs) have demonstrated strong capabilities in understanding and generating natural language, leading to their application in event analysis tasks [38]. By leveraging prompt-based techniques, LLMs can produce diagnostic conclusions along with textual explanations, offering a more flexible alternative to traditional classifiers [39]. In particular, one-shot or few-shot prompting enables rapid deployment without extensive task-specific training, making these models attractive for practical applications [40]. Nevertheless, such approaches are typically based on free-form generation, where the reasoning process is not explicitly constrained. Consequently, the models may overlook critical evidence, produce incomplete or inconsistent reasoning chains, or generate conclusions that are not fully supported by the input reports [41]. These issues are particularly concerning in safety-critical contexts, where diagnostic results must be reliable, transparent, and subject to verification [42].

In parallel, AI techniques have also been applied to broader safety analysis tasks, such as accident report classification, risk factor identification [43], and event summarization. While these studies demonstrate the potential of AI for processing unstructured safety data, they generally focus on improving predictive accuracy or text understanding, rather than replicating the structured reasoning processes used by domain experts [44]. In particular, limited attention has been paid to integrating formal diagnostic guidelines into AI models [45], or to ensuring consistency between intermediate reasoning steps and final diagnostic outcomes.

Overall, existing AI-based approaches provide powerful tools for handling textual data, but they do not fully address the requirements of human-factor event diagnosis in safety-critical environments [46]. The key limitation lies not only in model performance, but in the absence of structured and guideline-aligned reasoning mechanisms that can support transparent, consistent, and auditable diagnostic processes [47].

2.3 Structured reasoning and guideline-driven AI systems↩︎

To improve the reliability and interpretability of AI systems, recent studies have explored structured reasoning approaches that explicitly decompose complex tasks into intermediate steps [48]. Instead of relying on direct input–output mappings, these methods guide models to generate stepwise reasoning processes, such as chain-of-thought prompting, program-of-thought reasoning, and tool-augmented inference [49]. By making intermediate reasoning explicit, structured approaches can enhance transparency and provide opportunities for verification, which is particularly important in tasks requiring logical consistency and multi-stage decision-making [50].

In parallel, there has been growing interest in integrating domain knowledge and constraints into AI systems [51]. Approaches such as knowledge graph–enhanced models, rule-based reasoning, and constraint-guided inference aim to incorporate prior knowledge into the reasoning process [52], thereby improving robustness and alignment with domain-specific requirements. In safety-critical applications, additional mechanisms—such as verification modules and post-hoc consistency checking—have been proposed to ensure that model outputs satisfy predefined logical or operational constraints [53]. These developments highlight the importance of combining data-driven models with structured knowledge representations to achieve more trustworthy and controllable AI behavior [54].

Despite these advances, existing structured reasoning and knowledge-guided approaches are largely designed as general-purpose techniques and are not specifically tailored to domain-defined diagnostic procedures [55]. In particular, limited attention has been given to transforming formal guidelines into executable reasoning workflows that reflect how domain experts perform analysis in practice [56]. As a result, key aspects of human-factor event diagnosis—such as systematic evidence utilization, stepwise causal interpretation, and consistency between intermediate reasoning and final conclusions—are not fully captured by current methods [17].

Therefore, there remains a need for approaches that bridge structured reasoning techniques with domain-specific diagnostic guidelines, enabling the construction of reasoning frameworks that are both computationally tractable and aligned with expert analytical procedures [57]. Such integration is essential for supporting transparent, reproducible, and auditable decision-making in safety-critical human-factor analysis.

3 Problem Formulation↩︎

3.1 Human-factor event diagnosis in operational practice↩︎

Human-factor event diagnosis in nuclear power plants is a structured analytical process aimed at identifying the nature and causes of human errors from operational event reports. In practical settings, the primary input to this process is a narrative event report, which documents the sequence of events, operator actions, system responses, and contextual conditions associated with an abnormal occurrence. These reports are typically written in semi-structured natural language and may vary in level of detail, clarity, and organization depending on the reporting context.

The objective of diagnosis is to determine the type of human-factor event or error mechanism associated with the reported incident. This involves not only assigning a diagnostic category, but also interpreting the underlying behavioral and cognitive processes that contributed to the event. In established industrial practice, such diagnosis is guided by formal procedures, which require analysts to examine evidence, reconstruct event progression, identify contributing factors, and evaluate the consistency between observed actions and expected operational behavior.

Despite the existence of standardized guidelines, human-factor event diagnosis remains a challenging task. First, the information contained in event reports is often distributed across multiple textual segments, with key evidence embedded in descriptive narratives rather than explicitly structured fields. Analysts must therefore identify and extract relevant information, such as operator intentions, system states, and temporal relationships, from potentially noisy or incomplete descriptions. Second, the diagnostic process requires integrating multiple types of evidence, including procedural deviations, contextual constraints, and system feedback, into a coherent causal interpretation. This integration is inherently complex and depends on both domain knowledge and reasoning ability.

Furthermore, the diagnosis procedure itself follows a stepwise logic defined by domain guidelines, which involves multiple intermediate judgments before reaching a final conclusion. These steps are not independent; rather, they are interrelated and must be internally consistent. In practice, ensuring such consistency is nontrivial, particularly when different pieces of evidence may suggest competing interpretations. As a result, diagnostic outcomes may vary across analysts, and the reasoning process is not always fully transparent or reproducible.

Taken together, human-factor event diagnosis can be viewed as a multi-stage reasoning task that requires structured evidence extraction, guideline-based interpretation, and consistency-aware decision-making. These characteristics highlight the need for approaches that can explicitly model and support the diagnostic process, rather than treating it as a direct text classification problem.

3.2 Nine-step diagnostic guideline and its computational interpretation↩︎

In industrial practice, human-factor event diagnosis is typically guided by formalized analytical procedures that define how analysts should systematically interpret event information and derive diagnostic conclusions. These procedures are often organized as multi-step guidelines, which decompose the diagnosis process into a sequence of structured reasoning tasks. Rather than directly assigning a diagnostic label, analysts are required to follow a stepwise workflow that progressively refines their understanding of the event.

The guideline considered in this study consists of nine sequential steps, covering the complete diagnostic process from initial evidence identification to final category determination. Although originally designed for manual analysis, the guideline embodies a well-defined logical structure that can be interpreted as a multi-stage reasoning process. Specifically, the nine steps can be grouped into several functional components.

image

First, the initial steps focus on evidence identification, where analysts extract relevant information from narrative event reports, including operator actions, system states, and contextual conditions. This stage aims to transform unstructured textual descriptions into a set of salient facts that are essential for subsequent analysis.

Second, the guideline emphasizes event process reconstruction, in which the temporal sequence of events and interactions between operators and systems are organized into a coherent representation. This reconstruction enables analysts to understand how the event unfolded and to identify critical points where deviations occurred.

Third, the intermediate steps involve error attribution and causal interpretation. At this stage, analysts examine the reconstructed process to determine the nature of human errors, evaluate contributing factors, and interpret the relationship between observed actions and underlying cognitive or situational mechanisms. This requires integrating multiple sources of evidence and applying domain knowledge to distinguish between different types of human-factor events.

Finally, the guideline concludes with category judgment, where the event is assigned to a predefined diagnostic category based on the preceding analysis. This decision must be consistent with the identified evidence and the inferred causal mechanisms, ensuring coherence between intermediate reasoning and final outcomes.

Although the nine-step guideline provides a comprehensive framework for expert analysis, it is primarily intended for manual execution and does not directly support computational implementation. However, its underlying structure reveals a natural decomposition into a limited number of reasoning stages, each corresponding to a distinct analytical function. This observation enables the transformation of the guideline into a computational framework, where the original procedural steps are mapped onto a sequence of machine-executable reasoning modules.

As illustrated in Fig. [fig:framework95overview], the nine-step diagnostic guideline can be abstracted into three core stages: evidence extraction, structured diagnostic reasoning, and consistency-aware decision making. This abstraction preserves the logical flow of the original procedure while enabling its integration with AI-based methods, forming the basis for the proposed framework.

3.3 Task formulation↩︎

Based on the operational characteristics of human-factor event diagnosis and the structure of the underlying diagnostic procedure, the problem can be formulated as a structured reasoning task with explicit intermediate representations.

Let \(x = (b, s)\) denote a human-factor event report, where \(b\) represents the behavioral descriptor and \(s\) denotes the narrative summary. The objective is to assign the report to a human-factor diagnosis label \(y \in \mathcal{Y}\), where \(\mathcal{Y} = \{y_1, \dots, y_7\}\) is the predefined set of root-cause categories.

Unlike conventional text classification problems, the mapping from \(x\) to \(y\) is not performed directly. Instead, the diagnosis process involves a sequence of intermediate reasoning steps that reflect the structure of the diagnostic guideline. To capture this process, we introduce two intermediate variables: an evidence set and a reasoning trace.

First, an evidence set \(E = \{e_1, e_2, \dots, e_m\}\) is extracted from the input report, where each element \(e_i\) corresponds to a salient piece of information, such as operator actions, system states, or contextual conditions. The role of \(E\) is to provide a structured representation of relevant information that supports subsequent reasoning.

Second, a reasoning trace \(R = (r_1, r_2, \dots, r_k)\) is constructed, where each step \(r_i\) represents an intermediate judgment aligned with the diagnostic procedure. In particular, \(R\) can be viewed as a sequence of answers to structured diagnostic questions, encoding the stepwise interpretation of the event. This representation makes the reasoning process explicit and enables verification of intermediate decisions.

Given these intermediate variables, the diagnostic process can be expressed as a two-stage mapping: \[(E, R) = f_{\text{reason}}(x), \quad y = f_{\text{dec}}(R),\] where \(f_{\text{reason}}(\cdot)\) denotes the structured reasoning function that generates evidence and intermediate judgments, and \(f_{\text{dec}}(\cdot)\) represents the decision function that maps the reasoning trace to a final diagnosis label.

However, due to the complexity of the reasoning process and the potential uncertainty in intermediate steps, the initial diagnosis \(y\) may not always satisfy the logical constraints implied by the diagnostic procedure. To address this issue, we further introduce a consistency-aware refinement step, which produces a repaired output \(\hat{y}\): \[\hat{y} = f_{\text{repair}}(y, R).\] Here, \(f_{\text{repair}}(\cdot)\) enforces logical consistency between intermediate reasoning steps and the final diagnosis, ensuring that the output adheres to the constraints of the underlying decision structure.

Overall, the human-factor event diagnosis task can be formulated as a structured mapping: \[x \rightarrow E \rightarrow R \rightarrow y \rightarrow \hat{y},\] which explicitly models evidence extraction, stepwise reasoning, and consistency-aware decision making. This formulation provides a unified basis for integrating domain guidelines with computational reasoning, and serves as the foundation for the proposed framework.

4 Methodology: G-SHARE Framework↩︎

4.1 Framework overview↩︎

This section presents the overall architecture of the proposed G-SHARE framework, which is designed to operationalize the diagnostic procedure into a structured and reproducible reasoning pipeline. Rather than performing direct text-to-label mapping, the framework decomposes the human-factor event diagnosis task into a sequence of interconnected stages, each corresponding to a distinct analytical function.

As illustrated in Fig. [fig:framework95overview2], the framework takes a human-factor event report \(x = (b, s)\) as input and produces a final diagnosis \(\hat{y}\) through three main stages: evidence extraction, stepwise guideline-based diagnosis, and logical consistency repair. This staged design explicitly models the intermediate reasoning process and ensures that the final output is both interpretable and aligned with the underlying diagnostic logic.

image

In the first stage, evidence extraction, the framework identifies and structures salient information from the input report, producing an evidence set \(E\). This step aims to filter irrelevant content and highlight key elements such as operator actions, system states, and contextual conditions, thereby providing a structured basis for subsequent reasoning. In the second stage, stepwise guideline-based diagnosis, the framework generates a reasoning trace \(R\) by sequentially answering a set of diagnostic questions derived from the guideline. Each step corresponds to an intermediate judgment, and together they form a structured interpretation of the event. Based on this reasoning trace, an initial diagnosis \(y\) is obtained through a predefined decision structure. In the third stage, logical consistency repair, the framework evaluates the consistency between intermediate reasoning steps and the initial diagnosis. When inconsistencies or logical conflicts are detected, a refinement process is applied to produce a corrected diagnosis \(\hat{y}\). This stage acts as a safeguard mechanism to ensure that the final output adheres to the constraints implied by the diagnostic procedure.

Overall, the proposed framework can be summarized as a structured mapping: \[x \rightarrow E \rightarrow R \rightarrow y \rightarrow \hat{y},\] which explicitly captures evidence extraction, reasoning generation, and consistency-aware decision making. By decomposing the diagnosis process into well-defined stages, G-SHARE provides a transparent and reproducible pipeline that facilitates both interpretability and reliability in human-factor event analysis.

4.2 Stage 1: Evidence extraction↩︎

The first stage of the proposed framework aims to extract salient evidence from the input event report and construct a structured representation to support subsequent reasoning. Rather than summarizing the report, this stage focuses on identifying diagnostically relevant information and filtering out irrelevant or redundant content.

Given an event report \(x = (b, s)\), the objective of evidence extraction is to produce an evidence set \(E = \{e_1, e_2, \dots, e_m\}\), where each element \(e_i\) corresponds to a key fact or observation derived from the report. The extraction targets include, but are not limited to: (i) operator actions and behavioral descriptions, (ii) system states and operational conditions, (iii) temporal relationships between events, and (iv) contextual factors that may influence human performance. These elements are selected based on their relevance to the diagnostic procedure and their potential contribution to subsequent reasoning steps.

The output of this stage is a structured evidence set \(E\), which can be represented as a collection of concise textual statements or structured tuples. Compared with the original narrative report, \(E\) provides a more focused and organized view of the information that is directly relevant to diagnosis. This representation is intended to serve as an intermediate layer between unstructured input and structured reasoning, enabling more controlled and interpretable downstream processing.

From a methodological perspective, this stage is motivated by the observation that human analysts do not rely on the full narrative text during diagnosis, but instead selectively attend to key pieces of evidence. By explicitly modeling this process, the framework aims to improve evidence salience and reduce the impact of irrelevant information, thereby supporting more stable and consistent reasoning in subsequent stages.

It is important to note that the effectiveness of evidence extraction may depend on multiple factors, including report length, information density, prompt design, and the capability of the underlying language model. In scenarios where reports are relatively concise or where the model is capable of implicitly identifying relevant information, the marginal benefit of this stage may be limited. Nevertheless, the explicit construction of an evidence set provides a structured interface for reasoning and facilitates interpretability and potential extensions, such as human-in-the-loop verification or evidence-level analysis.

4.3 Stage 2: Guideline-based structured reasoning↩︎

The second stage constitutes the core of the proposed framework, where the diagnostic procedure is implemented as a structured reasoning process. Unlike free-form generation, this stage explicitly follows a predefined sequence of diagnostic steps derived from the guideline, ensuring that the reasoning process is aligned with expert analytical practice.

Given the evidence set \(E\), the objective of this stage is to construct a reasoning trace \(R = (r_1, r_2, \dots, r_k)\), where each element \(r_i\) corresponds to an intermediate judgment associated with a diagnostic question. The reasoning trace serves as an explicit representation of the decision-making process, enabling both interpretability and verification of intermediate steps.

4.3.1 Mapping the guideline to reasoning steps↩︎

The original diagnostic guideline consists of a sequence of interdependent analytical steps, each addressing a specific aspect of event interpretation. To enable computational implementation, these steps are translated into a set of structured reasoning operations, where each step is associated with a well-defined input, output, and decision scope.

Specifically, each diagnostic question \(q_i\) is mapped to a reasoning step that produces an answer \(a_i \in \mathcal{A}_i\), based on the available evidence \(E\) and previously inferred answers \(\{a_1, \dots, a_{i-1}\}\). This formulation captures the sequential dependency inherent in the diagnostic procedure and ensures that later judgments are conditioned on earlier interpretations.

During this mapping process, certain guideline steps are combined or simplified to improve computational tractability. For example, closely related sub-steps that involve similar evidence interpretation may be merged into a single reasoning operation, while implicit expert knowledge embedded in the guideline is translated into explicit decision criteria. Despite these transformations, the overall logical structure of the original procedure is preserved, maintaining consistency with expert practice.

As a result, the reasoning process can be expressed as a sequential inference: \[a_i = f_i(E, a_1, \dots, a_{i-1}), \quad i = 1, \dots, k,\] where each function \(f_i(\cdot)\) represents a structured reasoning step. The final diagnosis is then determined by applying a decision function to the complete reasoning trace: \[y = f_{\text{dec}}(a_1, a_2, \dots, a_k).\]

4.3.2 Prompting strategy and output schema↩︎

To operationalize the structured reasoning process, each step is implemented using controlled prompting that specifies the diagnostic question, relevant evidence, and expected output format. Unlike free-form prompting, the model is guided to produce constrained responses that correspond to predefined answer spaces, reducing ambiguity and improving consistency.

At each step, the model receives as input the evidence set \(E\), the current diagnostic question \(q_i\), and optionally the previously generated answers. The output is required to include both a selected answer \(a_i\) and a brief rationale that explains the decision based on the available evidence. This design ensures that the reasoning trace remains interpretable and can be inspected or validated if necessary.

The complete reasoning trace is represented in a structured format, such as a sequence of key-value pairs or a JSON-like schema: \[R = \{(q_1, a_1, r_1), (q_2, a_2, r_2), \dots, (q_k, a_k, r_k)\},\] where each tuple contains the diagnostic question, the selected answer, and the corresponding rationale. This representation enables explicit tracking of intermediate decisions and facilitates downstream consistency checking.

Based on this design, two variants of the reasoning strategy are considered. The first variant (V1) implements a basic stepwise diagnosis, where each question is answered sequentially using a consistent prompting template. The second variant (V2) enhances this process by introducing more explicit instructions, stronger constraints on answer selection, and clearer alignment between evidence and rationale. In particular, V2 emphasizes precise category discrimination and requires that each answer be explicitly supported by identified evidence, thereby improving the robustness and interpretability of the reasoning trace.

Overall, this stage transforms the diagnostic procedure into a machine-executable reasoning workflow that preserves the stepwise logic of expert analysis while enabling transparent and auditable decision making.

4.4 Stage 3: Logic-based consistency repair↩︎

While the structured reasoning stage enforces stepwise decision making, the resulting outputs may still exhibit inconsistencies due to uncertainty in intermediate judgments or limitations of the underlying language model. In safety-critical human-factor diagnosis, it is not sufficient for the final result to be plausible; it must also be logically consistent with the diagnostic procedure and the intermediate reasoning steps. To address this requirement, a logic-based consistency repair mechanism is introduced as the third stage of the framework.

In this context, consistency refers to the alignment between intermediate answers in the reasoning trace \(R = \{(q_i, a_i, r_i)\}\) and the final diagnosis \(y\), as well as the internal coherence among the answers themselves. Specifically, the reasoning trace must satisfy the logical constraints implied by the diagnostic procedure, including conditional dependencies between steps, mutual exclusivity of certain answer combinations, and compatibility between inferred mechanisms and assigned categories.

To formalize this requirement, a set of consistency rules \(\mathcal{C}\) is defined based on the decision structure of the diagnostic procedure. These rules capture key logical relationships, such as: (i) prerequisite constraints, where the validity of a step depends on the outcome of previous steps; (ii) implication constraints, where certain combinations of answers necessarily lead to specific diagnostic outcomes; and (iii) exclusion constraints, where incompatible answers or categories are not allowed to co-occur. Given a reasoning trace \(R\) and an initial diagnosis \(y\), consistency checking can be expressed as a validation function: \[\text{Consistent}(R, y) = \begin{cases} 1, & \text{if all constraints in } \mathcal{C} \text{ are satisfied}, \\ 0, & \text{otherwise}. \end{cases}\]

When inconsistencies are detected, a repair process is triggered to produce a corrected diagnosis \(\hat{y}\). The repair mechanism operates by re-evaluating the relationship between the reasoning trace and the decision rules. In its simplest form, this can be achieved by reapplying the deterministic decision function \(f_{\text{dec}}(\cdot)\) to the validated subset of answers in \(R\), or by adjusting conflicting answers to satisfy the constraints before recomputing the final outcome. In practice, the repair process prioritizes preserving evidence-supported intermediate judgments while enforcing consistency with the decision structure.

The refined diagnosis is then given by \[\hat{y} = f_{\text{repair}}(R, y, \mathcal{C}),\] where \(f_{\text{repair}}(\cdot)\) denotes the consistency-aware correction function. This function ensures that the final output adheres to the logical requirements of the diagnostic procedure, even when the initial reasoning trace contains minor inconsistencies.

This module acts as a lightweight safety layer for diagnosis outputs. By introducing explicit constraint checking and repair, the framework enhances robustness against reasoning errors and improves the trustworthiness of the diagnostic results, which is particularly important in safety-critical applications.

4.5 Design rationale↩︎

The design of G-SHARE is motivated by the requirements of human-factor event diagnosis in safety-critical environments, where transparency, consistency, and alignment with expert procedures are as important as predictive performance. This section explains the key design choices of the framework from a methodological perspective.

4.5.0.1 Limitations of direct text-to-diagnosis mapping

Direct one-shot or free-form large language model approaches map an input report \(x\) to a diagnosis \(y\) through unconstrained generation. Although such methods can produce plausible outputs, they provide limited control over the reasoning process and offer no explicit guarantees regarding consistency with domain procedures. In human-factor diagnosis, conclusions must be grounded in evidence and aligned with predefined decision logic. The lack of structured reasoning therefore limits their suitability for safety-critical applications.

4.5.0.2 Role of structured, stepwise reasoning

The diagnostic procedure inherently follows a sequential logic, where intermediate judgments condition subsequent decisions. To reflect this property, the framework constructs an explicit reasoning trace \(R\), in which each step corresponds to a diagnostic question and produces an evidence-supported answer. This design transforms the task into a structured inference process: \[x \rightarrow E \rightarrow R \rightarrow y,\] enabling interpretability at the step level and improving alignment with expert analytical workflows.

4.5.0.3 Need for logic-based consistency enforcement

Even with structured reasoning, inconsistencies may arise due to uncertainty in intermediate judgments or limitations of the underlying model. In safety-critical contexts, such inconsistencies must be explicitly addressed. The introduction of a consistency repair stage enforces logical constraints derived from the diagnostic procedure and produces a refined output \(\hat{y}\): \[y \rightarrow \hat{y}.\] This mechanism ensures coherence between intermediate reasoning steps and final decisions, enhancing robustness and reliability.

4.5.0.4 Alignment with safety-critical application requirements

The primary objective of the proposed framework is not to maximize benchmark performance, but to provide a trustworthy and auditable diagnostic workflow. In safety-critical domains, decision support systems must support traceability, enable human verification, and adhere to established analytical procedures. By integrating evidence structuring, guideline-aligned reasoning, and constraint-based validation, G-SHARE provides a structured pipeline that satisfies these requirements and supports practical deployment.

Overall, the design reflects a transition from unconstrained prediction to structured, procedure-aware reasoning, emphasizing reliability and interpretability as core objectives.

5 Experimental Design↩︎

The experimental design evaluates the proposed framework from three perspectives: the necessity of structured reasoning over direct classification, the contribution of constraint enforcement to logical consistency and accuracy, and the advantage of LLM-based semantic understanding over traditional machine learning.

5.1 Dataset construction↩︎

The dataset used in this study consists of 266 real-world human-factor event reports collected from operational nuclear power plant records in China. Each report includes a behavioral descriptor \(b\) and a narrative summary \(s\), with lengths ranging from approximately 30 to 120 Chinese characters. These reports document operator actions, system responses, and contextual conditions associated with abnormal events. The diagnosis follows a structured nine-step procedure, which serves as the basis for the proposed reasoning framework.

To ensure relevance to the diagnostic task, reports were selected based on the presence of sufficient human-factor information, including explicit descriptions of operator behavior, system state transitions, and contextual factors. Reports lacking human involvement or containing insufficient narrative detail were excluded.

5.1.0.1 Class distribution.

Table 1 and Fig. [fig:class95distribution95sci95top] present the class distribution of the gold-standard subset. The distribution is highly imbalanced, with the majority of cases belonging to the Violation category, while several categories are not represented.

image

As shown in Fig. [fig:class95distribution95sci95top], the dataset is dominated by violation-related events, accounting for the majority of annotated cases, whereas several categories have zero instances. This imbalance reflects the inherent rarity and uneven distribution of human-factor event types in real operational environments, rather than an artifact of dataset construction. In practice, deviations from established procedures constitute the most common type of human-factor event, while categories such as knowledge deficiency or concealment occur infrequently.

Table 1: Gold-standard class distribution (30 expert-annotated cases). Several categories are not represented due to their rarity in operational data.
Class Count Percentage
Violation 23 76.7%
Management Deficiency 3 10.0%
Deliberate Sabotage 3 10.0%
Negligence 1 3.3%
Insufficient Knowledge 0 0.0%
Procedure Deficiency 0 0.0%
Concealment 0 0.0%
Total 30 100%

Although such imbalance poses challenges for conventional classification models, the proposed framework mitigates this issue by leveraging structured reasoning and guideline-based decision processes, which reduce reliance on purely statistical patterns and enable more robust interpretation under sparse data conditions.

5.1.0.2 Gold-standard annotation.

A gold-standard subset of 30 reports was constructed for evaluation. The annotation was performed by a domain expert with more than 15 years of experience in nuclear safety analysis. Each report was annotated following the structured diagnostic procedure, including both the final category label and the answers to all intermediate decision steps, resulting in complete decision trajectories.

To improve annotation quality, a stratified disagreement sampling strategy was adopted, prioritizing cases where preliminary model outputs or heuristic rules exhibited uncertainty or disagreement. This approach focuses expert effort on diagnostically challenging cases and enhances the informativeness of the evaluation set. All annotations were reviewed for internal consistency with the diagnostic procedure.

5.1.0.3 Decision trajectory representation.

In addition to final labels, each annotated case includes a complete sequence of intermediate decisions. Table 2 presents an example of such a decision trajectory, illustrating how a diagnosis is derived through stepwise reasoning.

Table 2: Example of a decision trajectory following the structured diagnostic procedure.
Step Question Answer Rationale (abridged)
\(q_1\) Intentional behavior? No No evidence of deliberate intent
\(q_2\) Awareness of consequence? Yes Operator acknowledged abnormal condition
\(q_3\) Procedure exists? Yes Relevant procedure documented
\(q_4\) Procedure correct? Yes No defect identified in procedure
\(q_5\) Universal issue? No Specific to this case
\(q_6\) Knowledge adequate? Yes Operator trained for the task
\(q_7\) Historical occurrence? No No prior similar events
\(q_8\) Other misconduct? No No violation beyond procedure deviation
\(q_9\) Reported truthfully? Yes Event reported according to protocol
Final Diagnosis: Violation

The availability of step-level annotations enables a more detailed evaluation of reasoning processes, beyond final classification accuracy. This structured representation aligns with the design of the proposed framework and supports analysis of intermediate decision quality.

5.2 Baselines and compared methods↩︎

To evaluate the effectiveness of the proposed framework, we compare G-SHARE with representative approaches from three categories: (i) free-form LLM-based diagnosis, (ii) structured reasoning variants, and (iii) traditional machine learning methods. All methods take the same input \((b, s)\) for fair comparison. The purpose of this comparison is not merely to identify the strongest classifier, but to examine whether guideline alignment and structured reasoning improve safety-oriented diagnosis.

5.2.0.1 Free-form LLM baselines.

The first category includes direct LLM-based diagnosis without explicit reasoning structure. In this setting, the model predicts one of the seven diagnostic categories in a single step, based solely on the input report. This one-shot baseline reflects unconstrained generation and serves as a reference for evaluating the impact of structured reasoning.

5.2.0.2 Structured reasoning variants.

The second category includes stepwise reasoning approaches derived from the diagnostic procedure. In the stepwise baseline without constraint enforcement, the reasoning process follows the sequential diagnostic steps, but the final decision is obtained directly from intermediate answers without applying logical consistency repair. The proposed G-SHARE framework is evaluated under two variants. G-SHARE V1 employs a basic prompting strategy with a fixed stepwise template and post-hoc constraint repair. G-SHARE V2 introduces enhanced instruction specificity, stronger category discrimination, and explicit rationale anchoring, while maintaining the same repair mechanism. The comparison between these variants isolates the effect of structured reasoning design and constraint enforcement.

5.2.0.3 Traditional machine learning baselines.

The third category includes conventional text classification methods. We implement a Logistic Regression model with TF-IDF features constructed from the concatenated report text, using jieba tokenization and one-vs-rest classification with balanced class weights. Evaluation is conducted using leave-one-out cross-validation on the 30 gold-standard cases.

5.2.0.4 LLM models evaluated.

For the structured reasoning framework, multiple API-based large language models are evaluated to assess robustness across model backbones, including DeepSeek-V3.2 deepseek2024?, Qwen2.5-72B-Instruct (Qwen-72B) qwen2025?, Qwen3-80B-Instruct (Qwen-80B), and Qwen3-80B-Thinking (Qwen-80B-T). All models are tested under consistent settings to ensure comparability.

5.3 Evaluation metrics↩︎

Performance is evaluated using both outcome-level and process-level metrics.

5.3.0.1 Primary metrics.

Accuracy and Macro-F1[58] are reported as the main evaluation metrics. Accuracy measures the proportion of correctly classified cases. Macro-F1 is computed as the unweighted average of F1 scores across all classes. Given the class imbalance in the dataset, Macro-F1 provides a more balanced assessment by accounting for minority categories.

5.3.0.2 Per-class performance.

Per-class recall is used to examine performance across different diagnostic categories, particularly those with limited representation. Detailed results are provided in the supplementary material.

5.3.0.3 Step-level accuracy.

Step accuracy evaluates the correctness of intermediate decisions in the reasoning trace \(R\). It is defined as the proportion of correctly predicted answers \(a_i\) across all diagnostic steps. This metric enables identification of error propagation within the sequential reasoning process.

5.3.0.4 Logical consistency.

The logical inconsistency rate is defined as the proportion of cases in which the reasoning trace and final diagnosis violate predefined decision constraints. This metric is used to quantify the effect of constraint enforcement in ablation studies.

5.3.0.5 Error-origin analysis.

For misclassified cases, the first divergent step is identified as the earliest step at which the predicted answer differs from the reference trajectory. This analysis characterizes whether errors originate from early-stage evidence interpretation or later-stage decision inconsistency.

5.4 Results↩︎

5.4.1 Overall diagnostic performance↩︎

Table 3 presents the overall diagnostic performance of all compared methods on the 30 gold-standard cases, evaluated using both accuracy and Macro-F1.

Table 3: Overall comparison on 30 gold-standard cases. Best results are shown in bold.
Method Accuracy Macro-F1
Logistic Regression + TF-IDF 76.7% 0.341
One-shot LLM (Qwen-80B) 56.7% 0.341
Stepwise V1, no constraint (Qwen-80B) 3.3% 0.125
Stepwise V2, no constraint (Qwen-80B) 83.3% 0.605
G-SHARE V1 (Qwen-80B) 50.0% 0.304
G-SHARE V2 (Qwen-80B) 83.3% 0.605

Among all methods, G-SHARE V2 achieves the best overall performance, reaching an accuracy of 83.3% and a Macro-F1 of 0.605. This result indicates that the proposed framework can effectively capture both dominant and minority classes under a highly imbalanced data distribution.

Compared with one-shot large language model inference, which attains 56.7% accuracy and a Macro-F1 of 0.341, the structured reasoning approach leads to substantial improvements. The relatively low performance of one-shot diagnosis suggests that direct text-to-label mapping is insufficient for this task, as it lacks explicit control over intermediate reasoning and often fails to utilize diagnostically relevant evidence in a consistent manner. Traditional machine learning methods based on TF-IDF features achieve a relatively high accuracy of 76.7%, but their Macro-F1 remains low (0.341), indicating poor performance on minority classes. This reflects a tendency to overfit the dominant category in imbalanced datasets. In contrast, G-SHARE maintains a significantly higher Macro-F1 while achieving comparable or superior accuracy, demonstrating more balanced performance across categories. The comparison between stepwise variants further highlights the importance of structured design. While the unconstrained stepwise V1 model performs poorly, the improved V2 variant achieves strong results, indicating that careful formulation of reasoning steps and decision constraints is critical for effective diagnosis.

Overall, the superiority of G-SHARE suggests that structured, guideline-aligned reasoning is more effective than unconstrained generation for human-factor diagnosis, particularly in safety-critical scenarios with limited and imbalanced data.

5.4.2 Per-Class Performance Analysis↩︎

Table 4 reports per-class recall on the 30 gold-standard cases. G-SHARE V2 achieves perfect recall on the dominant Violation class and correctly identifies the single Negligence case, demonstrating strong performance on well-defined behavioral categories. However, performance on minority classes remains limited. In particular, Management Deficiency is not correctly identified by any method, while Deliberate Sabotage achieves only partial recall.

Table 4: Per-class recall on 30 gold-standard cases. “—” indicates that no gold cases exist for that class.
Class Gold LR+TF-IDF One-shot No-Constr.V2 G-SHARE V1 G-SHARE V2
Violation (23) 23 0.957 0.652 1.000 0.609 1.000
Mgmt.Deficiency (3) 3 0.000 0.333 0.000 0.000 0.000
Delib.Sabotage (3) 3 0.333 0.000 0.333 0.333 0.333
Negligence (1) 1 0.000 1.000 1.000 0.000 1.000
Insuff.Knowledge
Proc.Deficiency
Concealment

It is important to note that the dataset exhibits severe class imbalance, with 23 out of 30 cases belonging to the Violation category, while minority classes contain only one to three instances. As a result, per-class recall for these categories is highly sensitive to individual prediction errors and should be interpreted with caution.

The consistently low recall for Management Deficiency across all methods suggests that this category is intrinsically difficult, as it often requires recognizing implicit procedure defects rather than explicit operator actions. This observation is further supported by the error analysis in Section 5.4.7, where misclassifications concentrate on procedure-related ambiguity.

5.4.3 Statistical Significance↩︎

5.4.3.1 Bootstrap confidence intervals.

Table 13 presents 95% bootstrap confidence intervals based on 10,000 resamples.

G-SHARE V2 achieves the highest performance with an accuracy of 83.5% [70.0, 96.7] and a Macro-F1 of 0.547 [0.295, 0.750]. Compared with baseline methods, the confidence intervals indicate a clear improvement over one-shot LLM and G-SHARE V1, while partially overlapping with LR+TF-IDF due to the latter’s strong bias toward the dominant class.

5.4.3.2 McNemar’s test.

Table 5 reports paired significance tests between G-SHARE V2 and baseline methods.

Table 5: McNemar’s test: G-SHARE V2 vs.baselines (30 gold cases).
Comparison \(b\) \(c\) \(\chi^2\) \(p\)-value
G-SHARE V2 vs.LR+TF-IDF 3 1 0.25 0.617
G-SHARE V2 vs.One-shot LLM 9 1 4.90 0.027*
G-SHARE V2 vs.G-SHARE V1 10 0 8.10 0.004**

The comparison with one-shot LLM is statistically significant (\(p = 0.027\)), and the improvement over G-SHARE V1 is highly significant (\(p = 0.004\)), confirming the effectiveness of structured reasoning design. In contrast, the difference with LR+TF-IDF is not statistically significant (\(p = 0.617\)), which is consistent with its high accuracy on the dominant class despite poor minority-class performance.

5.4.4 Effect of Structured Reasoning Design↩︎

Table 6 summarizes the performance improvement from V1 to V2 across different models. For all fully evaluated models, V2 consistently outperforms V1, with Qwen-80B achieving the largest gain (+33.3% accuracy and +0.301 Macro-F1). Similar improvements are observed for Qwen-72B, indicating that the performance gain is robust across model variants.

Table 6: Label accuracy and Macro-F1 on the 30 gold-standard cases across models. \(\Delta\) denotes improvement from V1 to V2.
Accuracy Macro-F1
2-4 (lr)5-7 Model V1 V2 \(\Delta\) V1 V2 \(\Delta\)
DeepSeek-V3.2 100.0%a 1.000a
Qwen-72B 48.3% 76.7% +28.4 0.339 0.569 +0.230
Qwen-80B 50.0% 83.3% +33.3 0.304 0.605 +0.301
Qwen-80B-T 73.9%b 0.399b
a DeepSeek V1 covered only 9 of 30 gold cases and is not directly comparable.
b Qwen-80B-T V1 covered 23 of 30 gold cases.

As shown in Fig. [fig:v195v295improvement], the transition from V1 to V2 consistently improves performance across models, with substantial gains observed in both accuracy and Macro-F1. Notably, the magnitude of improvement exceeds +30% for Qwen-80B, indicating a significant enhancement rather than marginal tuning. Since both V1 and V2 use the same underlying models, this result confirms that the observed performance gain is driven by improvements in reasoning design rather than model capacity.

image

To further understand the source of improvement, Table 7 reports step-level accuracy. The largest gains are observed in Step 3 (procedure existence), Step 4 (procedure correctness), and Step 8 (other misconduct), with improvements exceeding +30% in some cases. These steps correspond to semantically ambiguous decision points where the distinction between categories (e.g., absence vs.violation of procedures) is subtle and often implicit in the narrative. The results indicate that the refined prompt effectively resolves these ambiguities by enforcing clearer decision boundaries.

Table 7: Step-level accuracy (%) on gold-standard cases: V1 vs.V2. Bold indicates the higher value.
Qwen-80B Qwen-72B
3-5 (lr)6-8 Step Decision V1 V2 \(\Delta\) V1 V2 \(\Delta\)
1 Intentional? 73.3 76.7 +3.3 82.8 80.0 \(-\)2.8
2 Aware of consequence? 80.0 83.3 +3.3 58.6 66.7 +8.1
3 Procedure exists? 60.0 96.7 +36.7 62.1 93.3 +31.3
4 Procedure correct? 60.7 92.9 +32.1 64.3 89.3 +25.0
5 Error universal? 66.7 76.7 +10.0 72.4 76.7 +4.3
6 Training deficient? 58.3 75.0 +16.7 69.6 66.7 \(-\)2.9
7 Historical behavior? 78.9 78.9 0.0 77.8 73.7 \(-\)4.1
8 Other misconduct? 33.3 96.7 +63.3 65.5 100.0 +34.5
9 Reported? 100.0 50.0 \(-\)50.0 100.0 100.0 0.0
Macro Average 67.9 80.8 +12.8 72.6 82.9 +10.4

Further evidence is provided by the prompt component ablation in Table 8. Among different components, disambiguation rules contribute the most significant performance gain, whereas distributional priors and anchoring strategies alone yield only moderate improvements. This finding suggests that explicitly encoding domain-specific distinctions within the reasoning process is more critical than providing general statistical guidance.

Table 8: Prompt component ablation (Qwen-80B, with evidence extraction and constraint repair).
Prompt Variant Accuracy Macro-F1
V1 (baseline) 50.0% 0.300
+ Distributional priors 63.3% 0.385
+ Disambiguation rules 83.3% 0.475
+ Priors + disambiguation 80.0% 0.350
+ All components (priors + disambig.+ anchoring) 80.0% 0.350
G-SHARE V2 (full, original run) 83.3% 0.605

In addition, the distribution shift observed in Table 9 shows that V2 substantially reduces the over-prediction of rare categories and aligns the predicted label distribution with domain expectations. This indicates that structured reasoning not only improves accuracy on individual cases but also enhances global consistency at the dataset level.

Table 9: Predicted label distribution over 266 cases (Qwen-80B). Both settings include constraint repair.
Label V1 V2
Violation 144 262
Insufficient Knowledge 64 2
Negligence 41 1
Concealment 12 0
Management Deficiency 3 0
Deliberate Sabotage 2 1

Overall, these results demonstrate that the performance gains are primarily driven by improvements in reasoning structure rather than model capacity. The findings highlight that prompt organization, task decomposition, and explicit decision rules play a critical role in safety diagnosis tasks, where decision boundaries are often implicit and cognitively complex.

5.4.5 Effect of Evidence Extraction↩︎

Table 10 evaluates the impact of the evidence extraction stage on overall classification performance. As shown, incorporating evidence extraction does not materially change the final results, with both configurations achieving identical accuracy (83.3%) and Macro-F1 (0.605).

Table 10: Evidence extraction ablation (Qwen-80B, V2 prompts, with constraint repair).
Configuration Accuracy Macro-F1
Without evidence extraction 83.3% 0.605
With evidence extraction 83.3% 0.605

This result suggests that, under the current experimental setting, explicit evidence extraction is not a dominant factor for improving label-level performance. Several factors may explain this observation. First, the incident reports in the dataset are relatively short and structurally simple, which limits the benefit of separating evidence extraction from downstream reasoning. Second, modern large language models are already capable of implicitly identifying salient evidence during stepwise reasoning, even without an explicit extraction stage. Third, the current extraction prompt may not impose sufficiently strong structural constraints beyond what the model already performs internally.

Despite the lack of measurable performance gain, evidence extraction remains valuable from a system design perspective. In particular, it provides an explicit and auditable intermediate representation of the reasoning process, which facilitates expert inspection, error tracing, and potential human-in-the-loop validation. Overall, these findings suggest that evidence extraction should be viewed as a modular design option rather than a universally dominant contributor. Its primary benefit lies in enhancing interpretability and transparency, rather than directly improving predictive performance in relatively simple textual settings.

5.4.6 Effect of Consistency Repair↩︎

Table 11 evaluates the role of the consistency repair layer under different prompt settings. The results reveal a strong dependence on prompt quality.

Table 11: Ablation study of constraint repair (Qwen-80B).
Configuration Accuracy Macro-F1 Inconsistency Rate
Stepwise V2, no constraint 83.3% 0.605 0.0%
G-SHARE V2 (with constraint) 83.3% 0.605 0.0%
Stepwise V1, no constraint 3.3% 0.125 86.7%
G-SHARE V1 (with constraint) 50.0% 0.304 0.0%

Under the baseline prompt (V1), the repair layer leads to a substantial performance improvement, increasing accuracy from 3.3% to 50.0% and Macro-F1 from 0.125 to 0.304, while simultaneously eliminating logical inconsistencies (from 86.7% to 0.0%). This dramatic improvement indicates that, in the presence of weak or ambiguous reasoning structures, the repair mechanism effectively corrects cascading logical errors and restores usable outputs. A closer examination shows that the major inconsistency types in V1 include decision-tree violations (e.g., incompatible step combinations), semantic conflicts between narrative interpretation and intermediate decisions, and hallucinated additional misconduct leading to invalid label assignments. These errors reflect structural instability in the reasoning process, which cannot be resolved by the model alone.

In contrast, under the optimized prompt (V2), logical inconsistencies are largely eliminated before the repair stage, and the repair layer no longer changes the final performance metrics. Nevertheless, it still serves as a formal safeguard that guarantees logical validity and prevents unexpected failure modes. These findings highlight that consistency repair is not merely a cosmetic post-processing step, but a robustness mechanism for stabilizing reasoning under imperfect conditions. In particular, its effectiveness under weak prompts demonstrates that explicit logical constraints can significantly enhance the reliability of LLM-based diagnosis systems.

From a broader perspective, this result underscores the importance of incorporating rule-based validation layers in safety-critical applications. Even when model reasoning appears accurate, a post-hoc consistency check provides an additional layer of assurance, ensuring that outputs remain aligned with domain logic and decision rules.

5.4.7 Error Analysis↩︎

To better understand the remaining limitations of the proposed framework, we analyze the five misclassified cases of G-SHARE V2 on the gold-standard dataset (Table 12). Rather than focusing on individual instances, we group the errors into three representative categories.

Table 12: Error origin analysis for five incorrectly classified gold-standard cases (Qwen-80B, G-SHARE V2).
Case Gold Label Pred.Label Error Origin Root Cause
37 Mgmt.Deficiency Insuff.Knowledge Step 3 Procedure exists but is defective
160 Delib.Sabotage Violation Step 2 Consequence awareness misjudged
167 Delib.Sabotage Violation Step 2 Consequence awareness misjudged
206 Mgmt.Deficiency Violation Step 4 Procedure defect not detected
264 Mgmt.Deficiency Violation Step 4 Procedure defect not detected

First, ambiguous narrative descriptions remain a major source of error. In several cases, key causal information is only weakly implied in the report, making it difficult to determine attributes such as consequence awareness or intentionality. As a result, the model may select plausible but incorrect interpretations, especially in borderline cases. Second, overlapping category boundaries contribute to systematic confusion. In particular, the distinction between Violation and Management Deficiency often depends on subtle cues regarding procedure quality versus operator behavior. When procedure defects are implicit rather than explicitly stated, the model tends to default to operator-centric explanations, leading to misclassification. Third, missing or implicit causal evidence further increases uncertainty. Some reports lack explicit statements about critical decision factors, such as whether a procedure exists or whether it is defective. In such cases, the reasoning process must rely on indirect inference, which introduces additional ambiguity and increases the risk of error.

As shown in Table 12, these errors are typically associated with early-stage decision steps, particularly Step 2 (consequence awareness), Step 3 (procedure existence), and Step 4 (procedure correctness). This indicates that the remaining errors are concentrated in semantically complex decision points rather than arising from logical inconsistencies.

Overall, the error patterns suggest that the primary limitation of the current framework lies not in reasoning instability, which has been largely mitigated by structured prompting and consistency repair, but in the intrinsic ambiguity of the source data and the subtlety of category definitions. Addressing these challenges may require richer contextual information, improved knowledge grounding, or more explicit annotation of latent causal factors in future work.

5.4.7.1 Bootstrap confidence intervals.

Table 13 presents 95% bootstrap intervals based on 10,000 resamples.

Table 13: Bootstrap 95% confidence intervals (10,000 resamples, 30 gold cases).
Method Accuracy [95% CI] Macro-F1 [95% CI]
LR + TF-IDF 76.8% [60.0, 90.0] 0.367 [0.194, 0.642]
One-shot LLM 56.6% [40.0, 73.3] 0.361 [0.202, 0.573]
G-SHARE V1 50.0% [33.3, 66.7] 0.323 [0.153, 0.586]
G-SHARE V2 83.5% [70.0, 96.7] 0.547 [0.295, 0.750]

5.4.8 Annotation Quality Control↩︎

During the construction of the gold-standard dataset, we identified a small number of inconsistencies between step-level annotations and the assigned final labels. These inconsistencies were primarily caused by mismatches between intermediate decision steps and the predefined decision logic.

Specifically, four cases were found to violate the decision tree constraints. For example, configurations such as intentional + aware imply Deliberate Sabotage, while procedure exists + correct implies Violation. In these cases, the corresponding step annotations were revised to ensure logical consistency with the decision rules.

After correction, all 30 gold-standard cases became fully consistent with the decision tree. This process ensures that the evaluation dataset strictly adheres to the underlying diagnostic logic, eliminating annotation-induced inconsistencies and providing a reliable basis for model assessment.

6 Discussion↩︎

6.0.0.1 Role of structured reasoning in safety-oriented diagnosis.

The comparison with one-shot LLM diagnosis indicates that direct text-to-label mapping is insufficient for human-factor event analysis. The observed improvement is not only reflected in overall accuracy, but also in Macro-F1, suggesting better handling of minority classes. This result highlights that, in safety-critical diagnosis, performance depends on the ability to resolve semantically similar categories through stepwise interpretation rather than holistic judgment. Structured reasoning provides a mechanism for decomposing such ambiguities into explicit intermediate decisions.

6.0.0.2 Function of constraint-based consistency enforcement.

The ablation results show that unconstrained reasoning can produce logically inconsistent outputs, particularly under weak prompting conditions. The introduction of a deterministic repair layer ensures that final diagnoses remain consistent with the underlying decision structure. This separation between reasoning generation and logical validation provides a practical way to improve reliability without modifying the underlying model, and is particularly relevant for applications where correctness constraints must be enforced.

6.0.0.3 Limitations of surface-feature-based methods.

Traditional machine learning approaches achieve relatively high accuracy by exploiting the dominant class, but fail to generalize to minority categories, as reflected by low Macro-F1. This behavior is consistent with the distributional characteristics of real-world event data. In contrast, the proposed framework combines semantic interpretation with structured decision constraints, which enables more balanced performance across categories.

6.0.0.4 Impact of prompt-level reasoning design.

The substantial performance gap between V1 and V2 demonstrates that the effectiveness of LLM-based diagnosis is highly sensitive to the formulation of reasoning steps. The improvements are concentrated in steps that involve semantic disambiguation, indicating that explicitly encoding domain-specific distinctions in the reasoning process is critical. This suggests that prompt design, when aligned with task structure, can serve as a lightweight alternative to model fine-tuning for improving domain-specific performance.

6.0.0.5 Challenges in minority-class diagnosis.

Residual errors are concentrated in categories with limited representation, such as Management Deficiency and Deliberate Sabotage. These cases often require inference of implicit context or recognition of subtle procedural defects, which are not always explicitly stated in the report. This limitation reflects both data scarcity and the inherent difficulty of the task. Expanding the gold-standard dataset and incorporating targeted examples for such edge cases are potential directions for improvement.

6.0.0.6 Limitations and future work.

The current study is based on a relatively small gold-standard set of 30 fully annotated cases, which limits statistical power for rare categories. In addition, the experiments focus on Chinese-language reports and Chinese-capable LLMs, leaving cross-lingual generalization as an open question. Finally, evidence extraction does not improve label-level performance in the current setting, suggesting that its primary value lies in providing an interpretable intermediate representation rather than directly enhancing accuracy.

7 Conclusion↩︎

This study proposes G-SHARE, a guideline-based structured reasoning framework for human-factor event diagnosis. The framework operationalizes a domain diagnostic procedure into a multi-stage computational pipeline, integrating evidence extraction, stepwise reasoning, and logic-based consistency repair. In doing so, it transforms expert-defined analytical workflows into machine-executable and auditable reasoning processes.

Experimental results on real-world event reports demonstrate that structured, guideline-aligned reasoning substantially improves diagnostic performance compared with both one-shot large language model approaches and traditional machine learning methods. In particular, the results show that performance gains are primarily driven by reasoning design rather than model capacity. Stepwise decomposition and explicit decision constraints enable more effective handling of semantically ambiguous cases and improve robustness under imbalanced data conditions.

Beyond performance improvements, the proposed framework provides enhanced transparency and interpretability by explicitly exposing intermediate reasoning steps and enforcing logical consistency between them and the final diagnosis. This property is especially important in safety-critical applications, where diagnostic decisions must be traceable, verifiable, and aligned with established domain procedures.

The findings of this study suggest that, for human-factor event diagnosis, the quality of reasoning structure is a more critical factor than model scale. More broadly, the proposed approach illustrates a practical pathway for integrating domain guidelines with AI-based reasoning systems, enabling the development of trustworthy and reproducible decision-support tools.

Future work will focus on expanding the scale and diversity of annotated datasets, improving the representation of minority categories, and extending the framework to cross-lingual and cross-domain settings. In addition, integrating richer contextual knowledge and exploring hybrid human–AI collaborative workflows may further enhance the effectiveness and applicability of the proposed approach in real-world safety analysis.

References↩︎

[1]
D. N. Poller, M. Bongiovanni, B. Cochand-Priollet, S. J. Johnson, and M. Perez-Machado, “A human factor event-based learning assessment tool for assessment of errors and diagnostic accuracy in histopathology and cytopathology,” Journal of Clinical Pathology, vol. 73, no. 10, pp. 681–685, 2020.
[2]
V. Anu, W. Hu, J. C. Carver, G. S. Walia, and G. Bradshaw, “Development of a human error taxonomy for software requirements: A systematic literature review,” Information and Software Technology, vol. 103, pp. 112–124, 2018.
[3]
T. J. Kim and P. H. Seong, “Influencing factors on situation assessment of human operators in unexpected plant conditions,” Annals of Nuclear Energy, vol. 132, pp. 526–536, 2019.
[4]
R. A. Mueller, “Episodic narrative interview: Capturing stories of experience with a methods fusion,” International journal of qualitative methods, vol. 18, p. 1609406919866044, 2019.
[5]
R. D. Mayfield, Organizational culture and knowledge management in the electric power generation industry. University of Phoenix, 2008.
[6]
A. Zwanenburg, “Radiomics in nuclear medicine: Robustness, reproducibility, standardization, and how to avoid data analysis traps and replication crisis,” European journal of nuclear medicine and molecular imaging, vol. 46, no. 13, pp. 2638–2655, 2019.
[7]
E. Zarei, F. Khan, and R. Abbassi, “How to account artificial intelligence in human factor analysis of complex systems?” Process safety and environmental protection, vol. 171, pp. 736–750, 2023.
[8]
J. Holmes, L. Sacchi, R. Bellazzi, et al., “Artificial intelligence in medicine,” Ann R Coll Surg Engl, vol. 86, no. 86, pp. 334–8, 2004.
[9]
I. J. B. Young, S. Luz, and N. Lone, “A systematic review of natural language processing for classification tasks in the field of incident reporting and adverse event analysis,” International journal of medical informatics, vol. 132, p. 103971, 2019.
[10]
J. F. Arocha, D. Wang, and V. L. Patel, “Identifying reasoning strategies in medical decision making: A methodological guide,” Journal of biomedical informatics, vol. 38, no. 2, pp. 154–171, 2005.
[11]
L. Da et al., “FlanS: A foundation model for free-form language-based segmentation in medical images,” in Proceedings of the 31st ACM SIGKDD conference on knowledge discovery and data mining v. 2, 2025, pp. 404–414.
[12]
A. Hunter and B. Nuseibeh, “Managing inconsistent specifications: Reasoning, analysis, and action,” ACM Transactions on Software Engineering and Methodology (TOSEM), vol. 7, no. 4, pp. 335–367, 1998.
[13]
M. Rausand, Reliability of safety-critical systems: Theory and applications. John Wiley & Sons, 2014.
[14]
K. Lekadir et al., “FUTURE-AI: International consensus guideline for trustworthy and deployable artificial intelligence in healthcare,” bmj, vol. 388, 2025.
[15]
P. Tang, A. Yilmaz, and N. Cooke, “Automatic imagery data analysis for proactive computer-based workflow management during nuclear power plant outages,” Arizona State Univ., Tempe, AZ (United States), 2018.
[16]
R. L. Meyer, The experience of pediatric intensive care nurses caring for dying children. Azusa Pacific University, 2011.
[17]
R. Mitchell, A. Williamson, B. Molesworth, and A. Chung, “A review of the use of human factors classification frameworks that identify causal factors for adverse events in the hospital setting,” Ergonomics, vol. 57, no. 10, pp. 1443–1472, 2014.
[18]
T. Mayer, S. Marro, E. Cabrio, and S. Villata, “Enhancing evidence-based medicine with natural language argumentative analysis of clinical trials,” Artificial intelligence in medicine, vol. 118, p. 102098, 2021.
[19]
C. A. Withers et al., “Natural language processing in drug discovery: Bridging the gap between text and therapeutics with artificial intelligence,” Expert Opinion on Drug Discovery, vol. 20, no. 6, pp. 765–783, 2025.
[20]
L. S. Surisetty, “AI-powered clinical decision systems: Enhancing diagnostics through secure interoperable data platforms,” International Journal of Advanced Research in Computer Science & Technology (IJARCST), vol. 8, no. 5, pp. 12924–12932, 2025.
[21]
M. Bevilacqua and F. E. Ciarapica, “Human factor risk management in the process industry: A case study,” Reliability Engineering & System Safety, vol. 169, pp. 149–159, 2018.
[22]
C. S. Levine, A. Al-Douri, V. P. Paglioni, M. Bensi, and K. M. Groth, “Identifying human failure events for human reliability analysis: A review of gaps and research opportunities,” Reliability Engineering & System Safety, vol. 245, p. 109967, 2024.
[23]
C. K. PT and L. A. C. PT, “Therapeutic exercise: Foundations and techniques,” United States of America: FA Davis publication, 2002.
[24]
D. I. Gertman, H. S. Blackman, L. N. Haney, K. S. Seidler, and H. A. Hahn, “INTENT: A method for estimating human error probabilities for decisionbased errors,” Reliability Engineering & System Safety, vol. 35, no. 2, pp. 127–136, 1992.
[25]
A. Ahmad, S. B. Maynard, K. C. Desouza, J. Kotsias, M. T. Whitty, and R. L. Baskerville, “How can organizations develop situation awareness for incident response: A case study of management practice,” Computers & Security, vol. 101, p. 102122, 2021.
[26]
B. Strauch, Investigating human error: Incidents, accidents, and complex systems. CRC Press, 2017.
[27]
F. Hasić, J. De Smedt, and J. Vanthienen, “Augmenting processes with decision intelligence: Principles for integrated modelling,” Decision Support Systems, vol. 107, pp. 1–12, 2018.
[28]
M. G. Henriksen, M. Englander, and J. Nordgaard, “Methods of data collection in psychopathology: The role of semi-structured, phenomenological interviews,” Phenomenology and the Cognitive Sciences, vol. 21, no. 1, pp. 9–30, 2022.
[29]
B. Shinkins, M. Thompson, S. Mallett, and R. Perera, “Diagnostic accuracy studies: How to report and analyse inconclusive test results,” Bmj, vol. 346, 2013.
[30]
R. Liu and X. Zhang, “Generating machine-executable plans from end-user’s natural-language instructions,” Knowledge-Based Systems, vol. 140, pp. 15–26, 2018.
[31]
A. C. Ikegwu, H. F. Nweke, C. V. Anikwe, U. R. Alo, and O. R. Okonkwo, “Big data analytics for data-driven industry: A review of data sources, tools, challenges, solutions, and research directions,” Cluster Computing, vol. 25, no. 5, pp. 3343–3387, 2022.
[32]
G. Lichtner et al., “Automated monitoring of adherence to evidenced-based clinical guideline recommendations: Design and implementation study,” Journal of Medical Internet Research, vol. 25, p. e41177, 2023.
[33]
P. M. Mah, I. Skalna, and J. Muzam, “Natural language processing and artificial intelligence for enterprise management in the era of industry 4.0,” Applied Sciences, vol. 12, no. 18, p. 9207, 2022.
[34]
W. I. Al-Obaydy, H. A. Hashim, Y. Najm, and A. A. Jalal, “Document classification using term frequency-inverse document frequency and k-means clustering,” Indonesian Journal of Electrical Engineering and Computer Science, vol. 27, no. 3, pp. 1517–1524, 2022.
[35]
L. Lombardo, M. Cama, C. Conoscenti, M. Märker, and E. Rotigliano, “Binary logistic regression versus stochastic gradient boosted decision trees in assessing landslide susceptibility for multiple-occurring landslide events: Application to the 2009 storm event in messina (sicily, southern italy),” Natural Hazards, vol. 79, no. 3, pp. 1621–1648, 2015.
[36]
S. Minaee, N. Kalchbrenner, E. Cambria, N. Nikzad, M. Chenaghlu, and J. Gao, “Deep learning–based text classification: A comprehensive review,” ACM computing surveys (CSUR), vol. 54, no. 3, pp. 1–40, 2021.
[37]
C. Förtsch et al., “Systematizing professional knowledge of medical doctors and teachers: Development of an interdisciplinary framework in the context of diagnostic competences,” Education Sciences, vol. 8, no. 4, p. 207, 2018.
[38]
N. Karanikolas, E. Manga, N. Samaridi, E. Tousidou, and M. Vassilakopoulos, “Large language models versus natural language understanding and generation,” in Proceedings of the 27th pan-hellenic conference on progress in computing and informatics, 2023, pp. 278–290.
[39]
H. Liu, Q. Yin, and W. Y. Wang, “Towards explainable NLP: A generative explanation framework for text classification,” in Proceedings of the 57th annual meeting of the association for computational linguistics, 2019, pp. 5570–5581.
[40]
C. Högström, M. Rosner, and A. Gustafsson, “How to create attractive and unique customer experiences: An application of kano’s theory of attractive quality to recreational tourism,” Marketing Intelligence & Planning, vol. 28, no. 4, pp. 385–402, 2010.
[41]
J. Sun et al., “A survey of reasoning with foundation models: Concepts, methodologies, and outlook,” ACM Computing Surveys, vol. 57, no. 11, pp. 1–43, 2025.
[42]
H. Height, A practical guide to adopting the universal verification methodology (UVM). Lulu. com, 2012.
[43]
Y. Wang and S. H. Chung, “Artificial intelligence in safety-critical systems: A systematic review,” Industrial Management & Data Systems, vol. 122, no. 2, pp. 442–470, 2022.
[44]
J. B. Tenenbaum, C. Kemp, T. L. Griffiths, and N. D. Goodman, “How to grow a mind: Statistics, structure, and abstraction,” science, vol. 331, no. 6022, pp. 1279–1285, 2011.
[45]
N. Sharma and P. Kaushik, “Integration of AI in healthcare systems—a discussion of the challenges and opportunities of integrating AI in healthcare systems for disease detection and diagnosis,” AI in Disease detection: advancements and applications, pp. 239–263, 2025.
[46]
S. J. Badhan and R. Samsami, “Artificial intelligence (AI) in construction safety: A systematic literature review,” Buildings, vol. 15, no. 22, p. 4084, 2025.
[47]
Z. Lin et al., “Performance analysis of large language models chatgpt-4o, OpenAI O1, and OpenAI O3 mini in clinical treatment of pneumonia: A comparative study,” Clinical and Experimental Medicine, vol. 25, no. 1, p. 213, 2025.
[48]
X. Li et al., “Interpretable deep learning: Interpretation, interpretability, trustworthiness, and beyond,” Knowledge and Information Systems, vol. 64, no. 12, pp. 3197–3234, 2022.
[49]
Z. Zhang et al., “Igniting language intelligence: The hitchhiker’s guide from chain-of-thought reasoning to language agents,” ACM Computing Surveys, vol. 57, no. 8, pp. 1–39, 2025.
[50]
R. N. Shiffman, G. Michel, R. M. Rosenfeld, and C. Davidson, “Building better guidelines with BRIDGE-wiz: Development and evaluation of a software assistant to promote clarity, transparency, and implementability,” Journal of the American Medical Informatics Association, vol. 19, no. 1, pp. 94–101, 2012.
[51]
J. Nie, J. Jiang, Y. Li, H. Wang, S. Ercisli, and L. Lv, “Data and domain knowledge dual-driven artificial intelligence: Survey, applications, and challenges,” Expert Systems, vol. 42, no. 1, p. e13425, 2025.
[52]
J. Ke, “Enabling efficient and semantic-aware constraint validation in knowledge graphs,” in European semantic web conference, 2024, pp. 104–114.
[53]
F. Tambon et al., “How to certify machine learning based safety-critical systems? A systematic literature review,” Automated Software Engineering, vol. 29, no. 2, p. 38, 2022.
[54]
D. Zha et al., “Data-centric artificial intelligence: A survey,” ACM Computing Surveys, vol. 57, no. 5, pp. 1–42, 2025.
[55]
M. Cheng et al., “A survey on knowledge-oriented retrieval-augmented generation,” arXiv preprint arXiv:2503.10677, 2025.
[56]
R. J. Sethi and Y. Gil, “Scientific workflows in data analysis: Bridging expertise across multiple domains,” Future Generation Computer Systems, vol. 75, pp. 256–270, 2017.
[57]
Y. Gao et al., “Dr. Bench: Diagnostic reasoning benchmark for clinical natural language processing,” Journal of biomedical informatics, vol. 138, p. 104286, 2023.
[58]
M. C. Hinojosa Lee, J. Braet, and J. Springael, “Performance metrics for multilabel emotion classification: Comparing micro, macro, and weighted f1-scores,” Applied Sciences, vol. 14, no. 21, p. 9863, 2024.