Researchers have developed an end-to-end framework named GIE-AFD that integrates schema-constrained ontologies, chain-of-thought prompting, and parameter-efficient fine-tuning to extract structured fault data from automotive maintenance documents. Tested on production records from manufacturing execution systems, the system achieved a named entity recognition F1 score of 87.07 percent and a relation extraction F1 score of 79.00 percent, outperforming a full-parameter fine-tuned language model baseline by 4.74 and 6.87 percentage points respectively, while attaining a 91.35 percent entity alignment rate for source text traceability. In modern automotive parts manufacturing, precision machinery and multi-stage processes frequently experience mechanical breakdowns, process deviations, and component quality defects. While maintenance logs, inspection sheets, and repair records contain vital troubleshooting knowledge, extracting structured insights has historically been impeded by non-standard terminology, implicit causal structures, nested entities, and prohibitive manual labeling costs.
The development of GIE-AFD addresses fundamental limitations that constrain both traditional discriminative natural language processing and unconstrained large language models in industrial environments. Mainstream discriminative pipelines using transformer architectures like BERT rely on sequence-labeling paradigms, which struggle with non-standard expressions, dense technical jargon, and open-ended relations across sentences. Conversely, while generative foundation models like ChatGPT, ChatGLM, and LLaMA exhibit strong contextual understanding and instruction-following abilities, their direct deployment in manufacturing faces severe reliability issues. Industrial management systems enforce strict data format requirements that general-purpose foundation models frequently violate. Prior evaluations cited by the authors showed that unconstrained foundation models exceed a 40 percent format violation rate during complex extraction tasks, causing parsing failures. For instance, universal information extraction models like UIE lack domain structural constraints, while unconstrained models often generate semantic noise by misclassifying verbs, conjunctions, or adverbs as entity nodes.
To overcome these obstacles, the proposed GIE-AFD architecture combines five interconnected modules into an end-to-end processing pipeline. The workflow encompasses document preprocessing, schema-constrained domain ontology construction, step-by-step chain-of-thought prompt design, parameter-efficient domain fine-tuning, character-level entity alignment with source anchoring, and retrieval-augmented generation for fault diagnosis. During execution, raw unstructured maintenance narratives from enterprise records are preprocessed and fed into the schema constraint module, which translates domain ontology definitions into structured programmatic rules embedded in prompt templates. The reasoning module then directs the adapted foundation model to execute symbolic deductions before generating relational triples. Subsequently, the entity alignment engine establishes a bidirectional index linking each extracted concept to its exact character offset in the source text, and validated triples are committed to a Neo4j knowledge graph. In the final stage, retrieval-augmented generation couples the fine-tuned model with verified graph subgraphs to deliver evidence-grounded diagnostic answers.
A central element of the framework is the systematically constructed multi-level schema ontology, developed through analysis of automotive process manuals, repair logs, and quality documents, and verified by experienced manufacturing engineers. The ontology defines six primary entity types: ProductionEquipment, AutoPart, FaultPhenomenon, FaultCause, Solution, and DetectionMethod. To retain fine-grained semantic distinctions while enabling cross-process knowledge sharing, primary entities incorporate secondary subtypes based on failure frequency analysis. ProductionEquipment is divided into StampingEquipment, WeldingEquipment, InjectionEquipment, and CoatingEquipment, reflecting the predominant production stages where failures occur. FaultPhenomenon is categorized into DimensionalDeviation, SurfaceDefect, StructuralFailure, and FunctionalAnomaly. These categories distinguish out-of-tolerance hole positions in stamped panels, surface flaws like scratches or weld spatter, physical material integrity damage like cracks, and functional degradations such as abnormal actuator response. Furthermore, FaultCause branches into ParameterAnomaly, MaterialQualityIssue, EquipmentWear, and OperationDeviation, while Solution encompasses ParameterAdjustment, EquipmentRepair, ProcessOptimization, and ComponentReplacement.
To formalize semantic relationships among these entities, the authors defined seven computable relation types: causes, occursIn, affects, resolves, detects, belongsTo, and concurrentWith. Each relation type features explicit mathematical domain and range definitions specifying permitted entity classes at both ends of a relational triple. For instance, the causes relation strictly connects a FaultCause domain to a FaultPhenomenon range, while resolves links a Solution to an addressed FaultPhenomenon. Similarly, occursIn connects a FaultPhenomenon to its host ProductionEquipment, affects links a fault state to a degraded AutoPart, detects ties a DetectionMethod to an identified FaultPhenomenon, belongsTo maps a component to its machinery, and concurrentWith characterizes simultaneous fault phenomena arising within the same production disturbance. By establishing computable relational constraint rules where permitted entity classes are explicitly bound to head and tail positions, the system prevents generative models from outputting semantically invalid relation instances during reasoning.
To operationalize these constraints within generative reasoning, the researchers engineered the CoT-SP mechanism, which structures information extraction into five sequential reasoning steps. The structured prompt guides the language model through fault scenario identification, entity boundary definition, relation inference, evidence traceability, and schema-structured output generation. A key design element of CoT-SP is wrapping intermediate symbolic reasoning within specific delimiter tags, creating a hard structural boundary between internal reasoning and final JSON output. Because reasoning steps are generated strictly inside the tags while structured triples appear outside the tags in a designated JSON zone, intermediate reasoning text cannot leak into the final output, dramatically reducing format violation rates. In addition, the prompt incorporates few-shot examples and assigns explicit expert personas, encouraging the model to apply noun constraints on extracted entities and maintain semantic consistency across complex extraction tasks.
Domain adaptation was accomplished by applying low-rank adaptation, or LoRA, to fine-tune the open-source ChatGLM3-6B foundation model on automotive fault records. By inserting trainable low-rank decomposition matrices into attention projection modules across transformer blocks, the team adapted the model while freezing pretrained weights. With a decomposition rank of 16, a scaling factor alpha of 32, and a dropout rate of 0.05, trainable parameters accounted for approximately 0.47 percent of total parameters, preserving general language capabilities while reducing computational overhead. Training was conducted on an NVIDIA A100 40-gigabyte GPU running Ubuntu 22.04 with CUDA 12.1 and PyTorch 2.1.0, using the AdamW optimizer with an initial learning rate of 2e-4, linear warmup over the first 5 percent of steps, and cosine annealing over five epochs. Because LoRA weights are merged directly into base matrices during inference, the deployed model introduces zero computational latency during factory operations.
To ensure rigorous verification in safety-critical manufacturing environments, the team designed a character-level entity alignment strategy that anchors extracted entities to original document offsets. For each candidate entity, the framework verifies whether the extracted string matches predicted character start and end indices in the source document. If an index mismatch occurs but the entity substring exists within the text, an exact string search automatically relocates true start and end offsets; if the string does not exist, it is marked as a hallucination and rejected. Verified entities then undergo contextual semantic validation, in which a 15-character text window surrounding the entity in the original passage is extracted and compared against natural language schema descriptions using cosine semantic similarity calculated by a bge-large-zh embedding model. This validation step confirms that extracted entities conform to designated ontological types, establishing full bidirectional traceability between knowledge graph nodes and original factory records.
The empirical validation of GIE-AFD utilized the AFD-Corpus, compiled from real-world manufacturing records accumulated within an automotive parts enterprise between 2021 and 2024. Spanning five primary industrial processes—stamping, welding, injection molding, painting, and final assembly—the dataset reflects the operational scope of tier-one and tier-two automotive component suppliers. From an initial collection of 14,823 raw maintenance records across four document types covering symptom records, equipment logs, response tracking, and root-cause analyses, the authors deduplicated records and excluded fragmented entries under 50 characters, yielding 9,417 validated Chinese-language entries. Field experts annotated entities and relation triples based on the domain ontology. In addition, the team constructed AFD-Instruct, a supervised instruction dataset containing 3,200 samples developed through manual annotation, model generation, and expert review, partitioned into training, validation, and testing splits at a 7:1.5:1.5 ratio, providing 2,240 training samples, 480 validation samples, and 480 test samples.
In comprehensive benchmark comparisons, GIE-AFD decisively surpassed standard discriminative and generative extraction baselines across identical data partitions and hardware conditions. The pipeline attained an entity recognition precision of 89.73 percent, recall of 84.56 percent, and F1 score of 87.07 percent, alongside relation extraction precision of 81.24 percent, recall of 76.89 percent, and F1 score of 79.00 percent. In comparison, a discriminative BERT pipeline achieved entity and relation F1 scores of 74.65 percent and 62.00 percent, the generative UIE model reached 79.56 percent and 68.95 percent, and a zero-shot ChatGLM3-6B model achieved only 67.96 percent and 54.77 percent. Even against a fully fine-tuned ChatGLM3-6B model lacking schema constraints, GIE-AFD registered improvements of 4.74 percentage points in entity F1 and 6.87 percentage points in relation F1, while its 91.35 percent entity alignment rate vastly exceeded baseline alignment scores.
Ablation experiments and practical system validation confirmed the quantitative contributions and operational feasibility of the framework. Removing the schema constraint decreased entity and relation F1 by 5.84 and 7.66 percentage points, while eliminating CoT-SP dropped relation F1 by 4.44 percentage points. Disabling entity alignment reduced alignment rates from 91.35 to 61.47 percent, and omitting LoRA fine-tuning precipitated steep drops of 19.11 and 24.23 percentage points in entity and relation F1. Implemented in the InduKG prototype platform, the pipeline constructed a Neo4j knowledge graph spanning 31,284 nodes and 47,629 relations, accurately extracting 30 triples in a welding fault case study. While validating local deployment feasibility without cloud data transmission, the authors acknowledged current boundaries, noting that ongoing work will explore active learning strategies and multimodal sensor integration.
Subject of Research: Generative information extraction and knowledge graph construction for automotive fault diagnosis
Article Title: LLM-driven knowledge graph construction for automotive parts fault diagnosis
Article References: Zhou, B., Shen, X., Miao, R., & Bao, J. (2027). LLM-driven knowledge graph construction for automotive parts fault diagnosis. Digital Engineering, 12, Article 100137. https://doi.org/10.1016/j.dte.2026.100137
Image Credits: AI Generated
DOI: 10.1016/j.dte.2026.100137
Keywords: automotive manufacturing, fault diagnosis, knowledge graph construction, generative information extraction, schema constraints, domain ontology, ChatGLM3-6B, low-rank adaptation, chain-of-thought prompting, named entity recognition, relation extraction, entity alignment, source text anchoring, retrieval-augmented generation, manufacturing execution systems, AFD-Corpus, Neo4j, InduKG prototype
Source: bioengineer.org


