Logistics equipment health state similarity evaluation method and device, and model training method

By constructing an event graph and aggregating spatial and temporal features, and by injecting background knowledge into a large language model, the problems of modeling noise and collaborative modeling in the health status assessment of logistics equipment are solved, thereby improving the accuracy of the assessment.

CN123179136APending Publication Date: 2026-11-27RIAMB (BEIJING) TECH DEV CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611683816.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-29
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

When processing logistics equipment operation and maintenance records, existing technologies suffer from poor accuracy in health status assessments because sequence modeling methods introduce temporal noise, and graph modeling methods fail to effectively coordinate the modeling of static spatial structures and fault evolution processes.

Method used

An event graph is constructed, containing operation and maintenance event nodes and event element nodes. Spatial and temporal features are aggregated through a graph attention network, and background knowledge is injected by combining a large language model to improve the accuracy of feature representation.

Benefits of technology

It effectively eliminates time-series modeling noise, collaboratively models static spatial structure and fault evolution process, and improves the accuracy of health status assessment of logistics equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123179136A_ABST
    Figure CN123179136A_ABST
Patent Text Reader

Abstract

The application provides a logistics equipment health state similarity evaluation method, device and model training method, relates to the cross technical field of intelligent warehouse logistics and artificial intelligence, and the training method comprises the following steps: obtaining a plurality of training data, the training data taking an unstructured operation and maintenance record text of logistics equipment as a training sample, and taking the actual attribution state of the logistics equipment in each preset health state category as a real label; selecting a target training sample; constructing an event graph based on the current target training sample and performing time-space feature aggregation on the event graph; determining a prediction label of the sample according to the embedding representation obtained through aggregation; the prediction label is a prediction attribution probability of the corresponding logistics equipment in each preset health state category; calculating a loss function based on the real label and the prediction label, and adjusting preset model parameters with the purpose of minimizing the loss function; and outputting an evaluation model when a preset stop iteration condition is reached. The application can improve the accuracy of the health state evaluation result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of intelligent warehousing and logistics and artificial intelligence, specifically to a method, device and model training method for assessing the similarity of the health status of logistics equipment. Background Technology

[0002] With the continuous improvement of automation and intelligence in the logistics industry, the stable operation of core logistics equipment such as stacker cranes and conveyor lines is crucial to ensuring warehousing efficiency. Equipment health status assessment and similarity calculation are key technologies for realizing advanced operation and maintenance functions such as predictive maintenance and intelligent fault diagnosis. By identifying historical cases with similar health status to the current logistics equipment, operation and maintenance personnel can quickly obtain targeted solutions from historical cases, significantly shortening fault diagnosis time.

[0003] In existing technologies, deep learning techniques are commonly used to process and analyze equipment operation and maintenance data, mainly including sequence modeling methods and graph modeling methods. Sequence modeling methods include time series prediction methods based on recurrent neural networks (for equipment remaining life prediction and failure trend analysis), methods based on convolutional neural networks (for extracting local feature patterns from operation and maintenance data), and the Transformer architecture (for capturing long-distance dependencies in operation and maintenance event sequences). Graph modeling methods transform equipment operation and maintenance data into a graph structure, extracting diverse key semantic elements and their complex relationships from the graph structure. Existing research has constructed heterogeneous graph networks from equipment components, failure phenomena, and handling measures, and performed feature learning through graph neural networks; other research treats each operation and maintenance work order as a node, jointly learning embedded representations through graph neural networks.

[0004] However, when processing operation and maintenance records, the aforementioned sequence modeling methods often simply serialize all recorded events according to timestamps. But in actual operation and maintenance work orders, many events are essentially parallel; forcibly modeling them as sequences introduces temporal noise, interfering with the model's judgment of the actual fault logic. Furthermore, the aforementioned graph modeling methods, when processing graph structures, often fail to effectively coordinate the static spatial structure of the event graph with the dynamic process of fault evolution, limiting the richness and discriminative power of feature representations, resulting in poor accuracy of the evaluation results. Summary of the Invention

[0005] In view of this, in order to solve the above-mentioned technical problems, the present invention provides a method, device and model training method for assessing the similarity of health status of logistics equipment.

[0006] The present invention adopts the following technical solution: In a first aspect, the present invention provides a training method for a health status assessment model of logistics equipment, comprising: Acquire training set data; the training set data includes multiple training data, the training data uses the unstructured operation and maintenance record text of the corresponding logistics equipment as training samples, and the actual belonging status of the corresponding logistics equipment in each preset health status category as the real label; Select a target training sample from all currently unselected training samples; An event graph is constructed based on the target training samples described above; the nodes of the event graph include operation and maintenance event nodes and event element nodes corresponding to each operation and maintenance event node, and the edges of the event graph include relationship edges between events and elements and relationship edges between events; Spatial feature aggregation and temporal feature aggregation are performed on the event graph to obtain the embedding representation of the current target training sample; Based on the embedding representation of the current target training sample, the predicted label of the current target training sample is determined; the predicted label is the predicted belonging probability of the corresponding logistics equipment in each preset health status category. Based on the true and predicted labels of all the target training samples, the loss function is calculated, and the preset model parameters are adjusted with the aim of minimizing the loss function. If the preset stopping iteration condition is not met, the step of selecting a target training sample from all currently unselected training samples is executed. If the preset stopping iteration condition is met, the logistics equipment health status assessment model containing the current model parameters is output.

[0007] Optionally, before performing spatial feature aggregation and temporal feature aggregation on the event graph to obtain the embedding representation of the current target training sample, the method further includes: For each event element node, the event element node is initialized and encoded to obtain the original representation vector of the event element node; Background knowledge is acquired for the event element node. After successfully acquiring the background knowledge of the event element node, the event element node is defined as the target event element node. The background knowledge is then integrated into the original representation vector of the target event element node through a knowledge injection mechanism to obtain the enhanced representation vector of the target event element node. The similarity loss is calculated using the following formula. :

[0008] In the formula, This represents the total number of the target event element nodes. Indicates the first The original representation vector of each of the target event element nodes. Indicates the first An enhanced representation vector of each of the target event element nodes; The loss function is:

[0009] in,

[0010] In the formula, This represents the predictive loss for health status categories. This represents the total number of the target training samples. This represents the total number of the preset health status categories. Indicates the first The logistics equipment corresponding to the target training samples in the first... The actual status belonging to a preset health status category; Indicates the first The logistics equipment corresponding to the target training samples in the first... Predicted attribution probability among preset health status categories These are the preset weighting coefficients.

[0011] Optionally, background knowledge can be obtained from the event element nodes, specifically including: Background knowledge is acquired from the event element nodes using a pre-defined knowledge enhancement module; the knowledge enhancement module is obtained by fine-tuning the general large language model through instructions.

[0012] Optionally, the background knowledge is incorporated into the original representation vector of the corresponding target event element node through a knowledge injection mechanism to obtain the enhanced representation vector of the target event element node, specifically including: The background knowledge is input into the pre-trained language model to obtain the background knowledge representation vector output by the pre-trained language model; The original representation vector of the target event element node and the background knowledge representation vector are concatenated to obtain the enhanced representation vector of the target event element node.

[0013] Optionally, an event graph is constructed based on the currently described target training samples, specifically including: Using a pre-defined equipment event extraction module, structured information is extracted from the target training samples. The structured information includes a set of operation and maintenance events and a set of relationships between events. The set of operation and maintenance events contains multiple subsets of operation and maintenance events, and each subset contains multiple event elements. The relationship types in the set of relationships between events include relationships between events and elements and relationships between events. The equipment event extraction module obtains this information by fine-tuning a general large language model. The event graph is constructed based on the structured information.

[0014] Optionally, spatial feature aggregation and temporal feature aggregation are performed on the event graph to obtain the embedding representation of the current target training sample, specifically including: Using a graph attention network model, spatial features are aggregated on the event graph to obtain a first operation and maintenance event node representation sequence; each first operation and maintenance event node representation in the first operation and maintenance event node representation sequence contains the spatial dependency features of each event element within the event and the events. The temporal feature aggregation is performed on the first operation and maintenance event node representation sequence to obtain the embedding representation of the current target training sample.

[0015] Optionally, a graph attention network model is used to aggregate spatial features of the event graph to obtain a first sequence of operation and maintenance event node representations, specifically including: For each operation and maintenance event node, taking the operation and maintenance event node as the center, the spatial dependency relationship features between each event element node of the operation and maintenance event node are aggregated using the first layer graph attention network model to obtain the first updated representation of the operation and maintenance event node; Based on the first updated representation, taking the operation and maintenance event node as the center, the second-layer graph attention network model is used to aggregate the spatial dependency relationship features between different operation and maintenance event nodes to obtain the second updated representation of the operation and maintenance event node. The second update representation is passed through a fully connected layer to obtain the first operation and maintenance event node representation of the operation and maintenance event node.

[0016] Optionally, temporal feature aggregation is performed on the first maintenance event node representation sequence to obtain the embedding representation of the current target training sample, specifically including: The first operation and maintenance event node representation sequence is input into the BiLSTM model to obtain the second operation and maintenance event node representation sequence output by the BiLSTM model; each second operation and maintenance event node representation in the second operation and maintenance event node representation sequence contains the time dependency relationship features between operation and maintenance event nodes; The weight of each second maintenance event node is determined using a standard attention mechanism; The embedding representation of the current target training sample is obtained by weighting and summing all the representations of the second operation and maintenance event nodes according to their weights.

[0017] Secondly, the present invention provides a method for assessing the similarity of health status of logistics equipment, comprising: Obtain unstructured operation and maintenance record text of the target logistics equipment; The unstructured operation and maintenance record text is input into the logistics equipment health status assessment model to obtain the predicted belonging probability of the target logistics equipment in each preset health status category output by the logistics equipment health status assessment model; the logistics equipment health status assessment model is trained using the training method of the logistics equipment health status assessment model described above. The preset health status category with the highest predicted attribution probability is determined as the predicted health status category of the target logistics equipment; After obtaining the predicted health status categories of multiple target logistics equipment, for every two target logistics equipment, it is determined whether their predicted health status categories are consistent. If the predicted health status categories of the two target logistics equipment are the same, then the health status of the two target logistics equipment is determined to be similar.

[0018] Thirdly, the present invention provides a similarity assessment device for the health status of logistics equipment, comprising: The acquisition module is used to acquire unstructured operation and maintenance record text of the target logistics equipment; The prediction module is used to input the unstructured operation and maintenance record text into the logistics equipment health status assessment model to obtain the predicted belonging probability of the target logistics equipment in each preset health status category output by the logistics equipment health status assessment model; the logistics equipment health status assessment model is trained using the training method of the logistics equipment health status assessment model described above. The first determining module is used to determine the preset health status category with the highest predicted attribution probability as the predicted health status category of the target logistics equipment. The judgment module is used to determine whether the predicted health status categories of each pair of target logistics equipment are consistent after obtaining the predicted health status categories of multiple target logistics equipment. The second determining module is used to determine that the health status of the two target logistics equipment is similar if the predicted health status categories of the two target logistics equipment are consistent.

[0019] This invention employs the above technical solution. By constructing an event graph, where nodes include operation and maintenance event nodes and corresponding event element nodes, and edges include relationships between events and elements, as well as relationships between events themselves, this invention effectively distinguishes between parallel and temporal relationships, eliminates noise introduced by erroneous temporal modeling, and improves the accuracy of feature representation. Furthermore, by aggregating spatial and temporal features of the event graph, the static spatial structure of the event graph and the dynamic process of fault evolution are modeled collaboratively within the same framework, effectively achieving multi-dimensional feature fusion. Therefore, the logistics equipment health status assessment model trained by this invention can eliminate noise introduced by erroneous temporal modeling and effectively model the static spatial structure of the event graph and the dynamic process of fault evolution, thereby improving the accuracy of health status assessment results. Attached Figure Description

[0020] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0021] Figure 1 This is a flowchart illustrating a training method for a health status assessment model of logistics equipment provided in an embodiment of the present invention. Figure 2 This is a schematic diagram of an event graph construction process provided by an embodiment of the present invention; Figure 3 This is a schematic diagram of a two-stage spatial feature aggregation principle provided by an embodiment of the present invention; Figure 4 This is a schematic diagram illustrating the principle of temporal feature aggregation provided in an embodiment of the present invention; Figure 5 This is a flowchart illustrating a method for assessing the similarity of health status of logistics equipment according to an embodiment of the present invention. Figure 6 This is a schematic diagram of the structure of a similarity assessment device for the health status of logistics equipment provided in an embodiment of the present invention. Detailed Implementation

[0022] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be described in detail below. Obviously, the described embodiments are merely some embodiments of this invention, and not all embodiments. Based on the embodiments of this invention, all other implementation methods obtained by those skilled in the art without creative effort are within the scope of protection of this invention.

[0023] To facilitate understanding of the technical solution of this invention, some technical terms that may be involved in this invention will be explained below.

[0024] Logistics equipment health status similarity calculation is a core technology in the field of intelligent operation and maintenance. It aims to identify historical cases with similar health status characteristics by measuring the similarity between operation and maintenance data of different equipment or the same equipment at different times, thereby providing data support for equipment fault diagnosis, predictive maintenance, and operation and maintenance decisions. This task is typically modeled as a multi-classification problem, that is, determining whether the embedding representations of two equipment operation and maintenance samples belong to the same health status category.

[0025] Operations and Maintenance Event Graph: An event graph is a graph structure representation method that uses "operations and maintenance events" as the basic modeling unit. Operations and maintenance events can be categorized into alarm events (fault codes and alarm information generated by equipment), inspection events (inspections and evaluations of equipment), diagnostic events (judgment and location of fault causes), and handling events (intervention measures such as repair, replacement, and adjustment). Each event contains multiple event elements (such as equipment components, fault phenomena, parameter indicators, and handling measures), and events are interconnected through temporal, causal, or concurrent relationships. Event graphs, with events as nodes and relationships between events as edges, can more accurately reflect the evolution logic and handling process of equipment faults.

[0026] Graph Attention Networks: An important variant of graph neural networks, introducing an attention mechanism into the propagation process of graph neural networks. It learns connection strength by calculating attention coefficients between nodes, thereby achieving adaptive aggregation and propagation of information, effectively improving the model's ability to focus on key information and reason in complex graph structures.

[0027] Large language models are large-scale deep learning models pre-trained on massive amounts of text data, possessing extensive common-sense knowledge and powerful reasoning capabilities. Through fine-tuning via instructions, large language models can adapt to specialized tasks in specific domains.

[0028] It should be noted that the solution of this invention can be applied to intelligent operation and maintenance scenarios such as predictive maintenance of logistics equipment, fault diagnosis knowledge recommendation, and equipment health management.

[0029] Figure 1 This is a flowchart illustrating a training method for a health status assessment model of logistics equipment provided in an embodiment of the present invention. Figure 1 As shown, this method includes: Step 101: Obtain training set data; The training set data includes multiple training data points. The training data uses the unstructured operation and maintenance record text of the corresponding logistics equipment as training samples, and the actual belonging status of the corresponding logistics equipment in each preset health status category as the true label.

[0030] Specifically, there is a one-to-one correspondence between logistics equipment and unstructured operation and maintenance record texts; that is, each piece of unstructured operation and maintenance record text for logistics equipment serves as a training sample. These unstructured operation and maintenance record texts can include equipment alarm records, inspection records, maintenance work orders, and fault descriptions, etc.

[0031] The actual labels can be manually labeled. The health status category of any logistics equipment is one of several preset health status categories. When logistics equipment actually belongs to a preset health status category, its actual status in that category is marked as 1; its actual status in other preset health status categories is 0. In a specific example, the preset health status categories include normal, deteriorated, and faulty. If a logistics equipment's health status category is normal, then its actual status in normal, deteriorated, and faulty categories is 1, 0, and 0, respectively.

[0032] Step 102: Select a target training sample from all the training samples that have not been selected so far.

[0033] Step 103: Construct an event graph based on the current target training samples; the nodes of the event graph include operation and maintenance event nodes and the event element nodes corresponding to each operation and maintenance event node, and the edges of the event graph include the relationship edges between events and elements and the relationship edges between events.

[0034] Figure 2 This is a schematic diagram of an event graph construction process provided by an embodiment of the present invention. For example... Figure 2 As shown, an event graph is constructed based on the current target training samples, which may specifically include: (1031) Using a preset equipment event extraction module, structured information is extracted from the target training samples. That is, the target training samples are input into the preset equipment event extraction module, and the equipment event extraction module outputs structured information.

[0035] Structured information includes a set of operational events. Set of relationships between events ;in, Indicates the first An operational event, This indicates the total number of maintenance events. Indicates the first The relationship between events This represents the total number of relationships between events.

[0036] Each operational event contains multiple event elements, denoted as... , Indicates the first The first maintenance incident Each event element This represents the total number of event elements in the corresponding operation and maintenance event. Therefore, the operation and maintenance event set contains multiple operation and maintenance event subsets, and each operation and maintenance event subset contains multiple event elements.

[0037] The relationship between each event is a triple, which is of two types. The first type is: This refers to the relationship between events and elements. The second type is: This refers to the relationships between events. , and express Different operational events in the process, , This indicates the type of relationship between nodes, such as sequential, causal, or concurrent. Therefore, the relationship types in the set of relationships between events include relationships between events and elements, and relationships between events.

[0038] It should be noted that the equipment event extraction module is obtained by fine-tuning the general large language model through instructions. Furthermore, this invention also obtains a knowledge enhancement module by fine-tuning the general large language model through instructions. The knowledge enhancement module will be used later; since the instructions for both are fine-tuned similarly, they will be discussed together here.

[0039] Specifically, while large language models possess extensive common-sense knowledge and powerful reasoning capabilities, their performance in professional operations and maintenance fields remains insufficient. To bridge this gap, this invention adapts the general-purpose large language model into two dedicated modules through instruction fine-tuning: the Equipment Event Extraction Module (EE-EE, Event Extraction Engine based on LLM) and the Knowledge Enhancement Module (EE-KB, Event Extraction Knowledge Booster).

[0040] In a specific example, the general-purpose large language model of this invention uses the DeepSeek-7B model. The DeepSeek-7B model has excellent performance, and compared with larger-scale models, its relatively compact architecture supports local deployment and offline fine-tuning, reducing the risk of data leakage and improving the feasibility of evaluation on real-world operational data.

[0041] The fine-tuning principles of the instructions for the equipment event extraction module and the knowledge enhancement module are as follows: Step 1: Fine-tune the large language model using the training sample set, with the corresponding formula as follows: ......(1) Step 2: Validate the fine-tuned large language model using a test sample set. The corresponding formula is as follows: ......(2) The prompts in the large language model consist of four parts, as shown in the following formula: ......(3) In the formula, Indicates fine-tuning; This represents the labels predicted by the large language model during training. Indicates the true label; This indicates the number of samples in the training sample set; This indicates the number of samples in the test sample set; Represents a dataset; Indicates the first training sample set One training sample; Indicates verification; The labels predicted by the large language model at the time of testing; Indicates the first test sample set One test sample; This indicates a large language model suggestion; Indicates input data; A specification standard representing the tasks that a large language model needs to perform; This indicates the question the model needs to answer; This indicates the output format of the model.

[0042] It should be noted that this invention, based on an annotated set of operation and maintenance events, fine-tunes a general large language model to obtain an equipment event extraction module. Based on an annotated set of entity descriptions, it fine-tunes a general large language model to obtain a knowledge enhancement module.

[0043] In a specific example, for the equipment event extraction module, a data sample from the labeled maintenance event set... , , , They are as follows: "Alarm log: Stacker #03 reports E-102 overload alarm, current load 850kg, rated load 800kg, operating station A3..."

[0044] "This is operation and maintenance data for logistics equipment, containing many operation and maintenance events. The definitions of operation and maintenance events are as follows: 1) Alarm events: fault codes and alarm information generated by the equipment, including alarm code, alarm description, trigger time, associated equipment, etc.; 2) Inspection events: periodic or temporary inspections and evaluations of the equipment, including inspection items, inspection values, normal range, abnormal markers, etc.; 3) Diagnostic events: location and judgment of the cause of the fault, including fault phenomenon, cause analysis, diagnostic conclusion, etc.; …."

[0045] "Please extract all maintenance events from this maintenance log and number them chronologically. Based on the event numbers, provide the relationship triples between these events. Also, label the type of each maintenance event (alarm event / inspection event / diagnosis event / response event), the type of relationship between events (sequence / causation / concurrency), and the type of event element in each maintenance event (component / phenomenon / parameter / measure)."

[0046] "Please output structured information in JSON format." For example, the structured information is: { "operational_events": [ {"event_id": 1, "event_type": "Alarm event", "timestamp": "2026-06-25 08:32:15", "elements": [ {"element_type": "component","content": "stacking crane #03"}, {"element_type": "phenomenon","content": "overload alarm"}, {"element_type": "parameter","content": "E"} 102"}, {"element_type": "parameters","content": "load capacity 850kg"}, {"element_type": "parameter","content": "rated load capacity 800kg"} ]}, {"event_id": 2, "event_type": "Inspection event", "timestamp": "2026 06 25 09:00:00", "elements": [ {"element_type": "component","content": "stacking crane #03 motor"}, {"element_type": "parameter","content": "temperature 78℃"}, {"element_type": "phenomenon","content": "no abnormal noise"} ]} ], "event_relations": [ { "relation_type": "time series", "subject_event": 2, "object_event": 1, "description": "The inspection incident occurred after the alarm incident." }, { "relation_type": "cause and effect", "subject_event": 2, "object_event": 1, "description": "An alarm event triggered an inspection event" } ]} In another specific example, for the knowledge enhancement module, a data sample from the set of labeled entity descriptions... , , , They are as follows: : "Motor temperature".

[0047] "This is an event element for logistics equipment. Assuming you are a senior logistics equipment operation and maintenance expert, please read this event element carefully and answer the following questions."

[0048] "Please provide an encyclopedia entry for this logistics equipment incident element, along with any possible associated malfunctions or causes."

[0049] "Please ensure that the output does not exceed 200 characters."

[0050] The equipment event extraction module obtained through the above process can extract the structured information from unstructured operation and maintenance record text. This enables the present invention to adaptively process operation and maintenance alarm texts and log data from different manufacturers and following different format specifications. By replacing traditional fixed rule templates with dynamic semantic understanding, it fundamentally gets rid of the rigid dependence on predefined field templates, significantly improves the generalization and robustness of event extraction, and significantly reduces the cost of technology migration. When connecting new brand equipment, only a sample of the equipment manual is required for small-sample prompts or incremental fine-tuning of the equipment event extraction module, without the need to redevelop the data parsing system.

[0051] Furthermore, the knowledge enhancement module can generate background knowledge for event elements, enabling the invention to generate background knowledge highly relevant to the current node on demand. This allows for the real-time empowerment of equipment-specific information that is difficult for the general knowledge base to cover to the corresponding node, fundamentally compensating for the coverage blind spots of the static knowledge base. Taking the overload alarm of a servo motor driver as an example, the static knowledge base only provides the technical definition of overload, while the knowledge enhancement module can associate it with its possible specific causes (such as mechanical jamming, improper parameter settings, power fluctuations, etc.), providing more discriminative knowledge signals for health status type assessment.

[0052] It should be noted that, in addition to the DeepSeek-7B model, the general-purpose large language model of this invention can also use other open-source models, such as ChatGLM, Qwen, Llama, and Mistral. Different models have their own advantages and disadvantages in terms of inference speed, memory usage, and adaptability to the operational domain, and can be flexibly selected manually according to the actual deployment environment.

[0053] Furthermore, this invention can obtain the equipment event extraction module without fine-tuning the large language model, but instead directly utilizes the context learning capability of the large language model to extract structured information by designing a few-sample prompt template. This is suitable for scenarios with limited labeled data.

[0054] (1032) Construct an event graph based on structured information.

[0055] Specifically, based on the set of operation and maintenance events Set of relationships between events It can construct event graphs of equipment operation and maintenance data. .

[0056] It should be noted that the present invention can also construct an event graph using the following method: First, a general named entity recognition model is used to extract operation and maintenance events and event elements from the target training samples; then, a relation extraction model is used to determine the relationships between events, and finally, the data is assembled into an event graph.

[0057] Step 104: Perform spatial feature aggregation and temporal feature aggregation on the event graph to obtain the embedding representation of the current target training sample.

[0058] In this embodiment of the invention, spatial feature aggregation and temporal feature aggregation are performed on the event graph to obtain the embedding representation of the current target training sample, which may specifically include: (1041) Using the graph attention network model, spatial features are aggregated on the event graph to obtain the first operation and maintenance event node representation sequence; each first operation and maintenance event node representation in the first operation and maintenance event node representation sequence contains the spatial dependency features of each event element inside the event and between events.

[0059] Figure 3 This is a schematic diagram illustrating a two-stage spatial feature aggregation principle provided by an embodiment of the present invention. (Reference) Figure 3 Using a graph attention network model, spatial features are aggregated on the event graph to obtain the first operational event node representation sequence, which may specifically include: (10411) For each operation and maintenance event node, with the operation and maintenance event node as the center, the spatial dependency relationship features between each event element node of the operation and maintenance event node are aggregated using the first layer GAT (GraphAttention Network) model to obtain the first updated representation of the operation and maintenance event node.

[0060] like Figure 3 As shown in (a), the first-layer graph attention network operates within a subgraph of each operational event. Specifically, for each operational event... Centered on the operation and maintenance event nodes, this approach utilizes a first-layer graph attention network model to aggregate the spatial dependency features among the event element nodes of each operation and maintenance event node. The aggregation process is not a simple addition or averaging, but rather accomplished through an attention mechanism that assigns an attention score to each event element node. This represents the contribution of each event element node to the definition of the operation and maintenance event node. Through weighted summation, the first updated representation of each operation and maintenance event node can be obtained. The formulas corresponding to this process are as follows: ......(4) ......(5) In the formula, This represents the output of the first layer of the GAT model. The first maintenance event node Attention score of each event element node; and They represent the first Representation of different event element nodes of an operation and maintenance event node; Represents the weight matrix; Indicates the activation function; express Normalized attention score.

[0061] (10412) Based on the first updated representation, taking the operation and maintenance event node as the center, the second-layer graph attention network model is used to aggregate the spatial dependency relationship features between different operation and maintenance event nodes to obtain the second updated representation of the operation and maintenance event node. .

[0062] like Figure 3 As shown in (b), the second-layer graph attention network operates at the level of the entire operational event graph. Specifically, the corresponding formula for this process is as follows: ......(6) ......(7) in, Indicates the relationship with the first The maintenance event node has an edge connection. Attention score of each neighboring maintenance event node; Indicates the first The first updated representation obtained after processing by the first layer GAT for each neighbor maintenance event node; Indicates the first The set of all neighboring operation and maintenance event nodes of an operation and maintenance event node; express Normalized attention score.

[0063] In summary, considering the hierarchical nature of event graphs, where operational event nodes and event element nodes coexist, this invention employs a two-layer graph attention network (GAT) for feature extraction. Following a pipeline aggregation process of "element → event," the lower-layer GAT injects fine-grained information from elements to events, while the upper-layer GAT enables global semantic interaction between event nodes. This effectively aggregates cross-layer feature information while preserving the original topology.

[0064] (10413) Pass the second update representation through the fully connected layer to obtain the first operation and maintenance event node representation of the operation and maintenance event node. .

[0065] All first-level operation and maintenance event nodes represent a sequence of first-level operation and maintenance event nodes. .

[0066] (1042) Perform temporal feature aggregation on the first operation and maintenance event node representation sequence to obtain the embedding representation of the current target training sample.

[0067] Figure 4 This is a schematic diagram illustrating the principle of time-series feature aggregation provided in an embodiment of the present invention. (Reference) Figure 4 The temporal feature aggregation of the first operation and maintenance event node representation sequence is performed to obtain the embedding representation of the current target training sample, which may specifically include: (10421) Input the first operation and maintenance event node representation sequence into the BiLSTM (Bidirectional Long Short-Term Memory) model to obtain the second operation and maintenance event node representation sequence output by the BiLSTM model. The second maintenance event node represents each second maintenance event node in the sequence. It includes the time dependency characteristics between operation and maintenance event nodes. It should be noted that... yes The representation after aggregating time-related features.

[0068] (10422) The weight of each second maintenance event node is determined using a standard attention mechanism. The corresponding formula is as follows: ......(8) ......(9) In the formula, for The hidden representation; These are learnable parameters; For another learnable parameter; for Attention weights; This is a context vector used to measure the importance of an event.

[0069] (10423) The embedding representation of the current target training sample is obtained by weighting and summing all the representations of the second maintenance event nodes according to their weights. The corresponding formula is as follows: ......(10) Step 105: Based on the embedding representation of the current target training sample, determine the predicted label of the current target training sample; the predicted label is the predicted belonging probability of the corresponding logistics equipment in each preset health status category.

[0070] Specifically, the task of assessing the health status of logistics equipment is transformed into a multi-classification problem. It is assumed that there are a total of pre-defined health status categories. If there are [number] labels, the specific calculation process for predicting the label is as follows: Embedding representation of the current target training samples Input a linear layer and output a prediction probability vector through the Softmax function. : ... (11) In the formula, ; For the first The target training sample belongs to the first... The predicted probability of belonging to a predefined health status category satisfies ; and All of these are trainable parameters; For the first Embedded representations of target training samples.

[0071] Step 106: Calculate the loss function based on the true and predicted labels of all target training samples, and adjust the preset model parameters with the aim of minimizing the loss function.

[0072] Step 107: Determine whether the preset stopping iteration condition has been met. If the preset stopping iteration condition has not been met, proceed to step 102; if the preset stopping iteration condition has been met, proceed to step 108.

[0073] Step 108: Output the logistics equipment health status assessment model containing the current model parameters.

[0074] This invention employs the above technical solution. By constructing an event graph, where nodes include operation and maintenance event nodes and corresponding event element nodes, and edges include relationships between events and elements, as well as relationships between events themselves, this invention effectively distinguishes between parallel and temporal relationships, eliminates noise introduced by erroneous temporal modeling, and improves the accuracy of feature representation. Furthermore, by aggregating spatial and temporal features of the event graph, the static spatial structure of the event graph and the dynamic process of fault evolution are modeled collaboratively within the same framework, effectively achieving multi-dimensional feature fusion. Therefore, the logistics equipment health status assessment model trained by this invention can eliminate noise introduced by erroneous temporal modeling and effectively model the static spatial structure of the event graph and the dynamic process of fault evolution, thereby improving the accuracy of health status assessment results.

[0075] It should be noted that the embodiments of the present invention may use the precision rate most commonly used in classification tasks. (Precision), Recall Recall and F1 score are used as evaluation metrics: ......(12) ......(13) ... (14) In the formula, For a real example; This is a false positive example. This is a false negative example; , , .

[0076] In this embodiment of the invention, before performing spatial feature aggregation and temporal feature aggregation on the event graph to obtain the embedded representation of the current target training sample, the training method of the logistics equipment health status assessment model of the present invention may further include: (1) For each event element node, initialize the event element node to obtain the original representation vector of the event element node. .

[0077] (2) Obtain background knowledge for event element nodes. After successfully obtaining the background knowledge of the event element node, define the event element node as the target event element node. Integrate the background knowledge into the original representation vector of the corresponding target event element node through the knowledge injection mechanism to obtain the enhanced representation vector of the target event element node.

[0078] Here, background knowledge is retrieved for event element nodes, which may specifically include: The pre-defined knowledge enhancement module is used to acquire background knowledge from event element nodes. Specifically, the event element node is input into the knowledge enhancement module, and the background knowledge output by the module is obtained.

[0079] By incorporating background knowledge into the original representation vector of the corresponding target event element node through a knowledge injection mechanism, an enhanced representation vector of the target event element node is obtained, which may specifically include: First, the background knowledge is input into the pre-trained language model to obtain the background knowledge representation vector output by the pre-trained language model. The pre-trained language model can be a RoBERTa (Robustly Optimized BERT Pretraining Approach) model. The input of the RoBERTa model is the characters in the background knowledge text, and the output is the aggregated feature vector of the characters.

[0080] Then, the original representation vector and the background knowledge representation vector of the target event element node are concatenated to obtain the enhanced representation vector of the target event element node. The corresponding formula is as follows: ......(15) In the formula, This involves concatenating vectors. For the first Augmented representation vectors of each target event element node; For the first The original representation vector of each target event element node; No. Background knowledge representation vectors for each target event element node.

[0081] (3) In order to Integration This invention proposes to calculate the similarity between representations to achieve knowledge injection. Specifically, the similarity loss is calculated using the following formula. : ......(16) In the formula, This indicates the total number of nodes representing the target event element. Indicates the first The original representation vector of each target event element node. Indicates the first Augmented representation vectors of each target event element node; Based on this, the loss function is: ... (17) in, ......(18) In the formula, This represents the predictive loss for health status categories. This represents the total number of target training samples. This indicates the total number of preset health status categories. Indicates the first The logistics equipment corresponding to the target training samples in the first... The actual status belonging to a preset health status category; Indicates the first The logistics equipment corresponding to the target training samples in the first... Predicted attribution probability among preset health status categories The preset weighting coefficients, .

[0082] This invention uses a large language model as the front-end dynamic parsing and knowledge enhancement engine, and a graph attention network and a bidirectional long short-term memory network as the back-end feature learning and similarity evaluation networks. A knowledge injection loss function achieves seamless integration between the two stages. This architecture leverages the advantages of the large language model in unstructured text understanding and knowledge generation, while inheriting the strengths of the graph attention network in relational structure modeling. It also avoids the uncontrollable reasoning problems associated with solely relying on the large language model and the knowledge scarcity issues associated with solely relying on the graph attention network, forming a complementary two-stage collaborative learning framework. The output of the large language model (event graph, background knowledge) is presented as pre-generated knowledge vectors and participates in the parameter updates of the back-end networks through the knowledge injection loss function. This ensures that knowledge signals directly participate in model optimization in each training batch of the back-end networks, rather than being injected only once during the preprocessing stage and then removed from supervision.

[0083] Based on a general inventive concept, the present invention also provides a method for assessing the similarity of health status of logistics equipment. Figure 5 This is a flowchart illustrating a method for assessing the similarity of health status of logistics equipment according to an embodiment of the present invention. Figure 5 As shown, this method includes: Step 501: Obtain the unstructured operation and maintenance record text of the target logistics equipment.

[0084] Step 502: Input the unstructured operation and maintenance record text into the logistics equipment health status assessment model to obtain the predicted belonging probability of the target logistics equipment in each preset health status category output by the logistics equipment health status assessment model; the logistics equipment health status assessment model is trained using the training method of the logistics equipment health status assessment model described above.

[0085] Step 503: Determine the preset health status category with the highest predicted belonging probability as the predicted health status category of the target logistics equipment.

[0086] Step 504: After obtaining the predicted health status categories of multiple target logistics equipment, for every two target logistics equipment, determine whether their predicted health status categories are consistent.

[0087] Step 505: If the predicted health status categories of the two target logistics equipment are consistent, then the health status of the two target logistics equipment is determined to be similar.

[0088] Based on a general inventive concept, the present invention also provides a device for assessing the similarity of the health status of logistics equipment. Figure 6 This is a schematic diagram of the structure of a logistics equipment health status similarity assessment device provided in an embodiment of the present invention. Figure 6 As shown, this device includes: The acquisition module 61 is used to acquire the unstructured operation and maintenance record text of the target logistics equipment.

[0089] The prediction module 62 is used to input unstructured operation and maintenance record text into the logistics equipment health status assessment model to obtain the predicted belonging probability of the target logistics equipment in each preset health status category output by the logistics equipment health status assessment model; the logistics equipment health status assessment model is trained using the training method of the logistics equipment health status assessment model described above.

[0090] The first determining module 63 is used to determine the preset health status category with the highest predicted attribution probability as the predicted health status category of the target logistics equipment.

[0091] The judgment module 64 is used to determine whether the predicted health status categories of each pair of target logistics equipment are consistent after obtaining the predicted health status categories of multiple target logistics equipment.

[0092] The second determining module 65 is used to determine that the health status of the two target logistics equipment is similar if their predicted health status categories are the same, and otherwise determine that their health status is dissimilar.

[0093] It is understood that the same or similar parts in the above embodiments can be referred to each other, and the contents not described in detail in some embodiments can be referred to the same or similar contents in other embodiments.

[0094] It should be noted that in the description of this invention, the terms "first," "second," etc., are used for descriptive purposes only and should not be construed as indicating or implying relative importance. Furthermore, in the description of this invention, unless otherwise stated, "a plurality of" means at least two.

[0095] Any process or method described in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or more executable instructions for implementing a particular logical function or process, and the scope of preferred embodiments of the invention includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as will be understood by those skilled in the art to which embodiments of the invention pertain.

[0096] It should be understood that various parts of the present invention can be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.

[0097] Those skilled in the art will understand that all or part of the steps of the methods in the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.

[0098] Furthermore, the functional units in the various embodiments of the present invention can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.

[0099] The storage media mentioned above can be read-only memory, disk, or optical disk, etc.

[0100] In the description of this specification, references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of the invention. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples.

[0101] Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention. Those skilled in the art can make changes, modifications, substitutions and variations to the above embodiments within the scope of the present invention.

Claims

1. A training method for a health status assessment model of logistics equipment, characterized in that, include: Acquire training set data; the training set data includes multiple training data, the training data uses the unstructured operation and maintenance record text of the corresponding logistics equipment as training samples, and the actual belonging status of the corresponding logistics equipment in each preset health status category as the real label; Select a target training sample from all currently unselected training samples; An event graph is constructed based on the target training samples described above; the nodes of the event graph include operation and maintenance event nodes and event element nodes corresponding to each operation and maintenance event node, and the edges of the event graph include relationship edges between events and elements and relationship edges between events; Spatial feature aggregation and temporal feature aggregation are performed on the event graph to obtain the embedding representation of the current target training sample; Based on the embedding representation of the current target training sample, the predicted label of the current target training sample is determined; the predicted label is the predicted belonging probability of the corresponding logistics equipment in each preset health status category. Based on the true and predicted labels of all the target training samples, the loss function is calculated, and the preset model parameters are adjusted with the aim of minimizing the loss function. If the preset stopping iteration condition is not met, the step of selecting a target training sample from all currently unselected training samples is executed. If the preset stopping iteration condition is met, the logistics equipment health status assessment model containing the current model parameters is output.

2. The training method for the logistics equipment health status assessment model according to claim 1, characterized in that, Before performing spatial feature aggregation and temporal feature aggregation on the event graph to obtain the embedding representation of the current target training sample, the method further includes: For each event element node, the event element node is initialized and encoded to obtain the original representation vector of the event element node; Background knowledge is acquired for the event element node. After successfully acquiring the background knowledge of the event element node, the event element node is defined as the target event element node. The background knowledge is then integrated into the original representation vector of the target event element node through a knowledge injection mechanism to obtain the enhanced representation vector of the target event element node. The similarity loss is calculated using the following formula. : In the formula, This represents the total number of the target event element nodes. Indicates the first The original representation vector of each of the target event element nodes. Indicates the first Enhanced representation vectors of the target event element nodes; The loss function is: in, In the formula, This represents the predictive loss for health status categories. This represents the total number of the target training samples. This represents the total number of the preset health status categories. Indicates the first The logistics equipment corresponding to the target training samples in the first... The actual status belonging to a preset health status category; Indicates the first The logistics equipment corresponding to the target training samples in the first... Predicted attribution probability among preset health status categories These are the preset weighting coefficients.

3. The training method for the logistics equipment health status assessment model according to claim 2, characterized in that, Background knowledge acquisition is performed on the event element nodes, specifically including: Background knowledge is acquired from the event element nodes using a pre-defined knowledge enhancement module; the knowledge enhancement module is obtained by fine-tuning the general large language model through instructions.

4. The training method for the logistics equipment health status assessment model according to claim 2, characterized in that, The background knowledge is incorporated into the original representation vector of the corresponding target event element node through a knowledge injection mechanism to obtain the enhanced representation vector of the target event element node, specifically including: The background knowledge is input into the pre-trained language model to obtain the background knowledge representation vector output by the pre-trained language model; The original representation vector of the target event element node and the background knowledge representation vector are concatenated to obtain the enhanced representation vector of the target event element node.

5. The training method for the logistics equipment health status assessment model according to claim 1, characterized in that, Constructing an event graph based on the currently described target training samples specifically includes: Using a pre-defined equipment event extraction module, structured information is extracted from the target training samples. The structured information includes a set of operation and maintenance events and a set of relationships between events. The set of operation and maintenance events contains multiple subsets of operation and maintenance events, and each subset contains multiple event elements. The relationship types in the set of relationships between events include relationships between events and elements and relationships between events. The equipment event extraction module obtains this information by fine-tuning a general large language model. The event graph is constructed based on the structured information.

6. The training method for the logistics equipment health status assessment model according to claim 1, characterized in that, Spatial feature aggregation and temporal feature aggregation are performed on the event graph to obtain the embedding representation of the current target training sample, specifically including: Using a graph attention network model, spatial features are aggregated on the event graph to obtain a first operation and maintenance event node representation sequence; each first operation and maintenance event node representation in the first operation and maintenance event node representation sequence contains the spatial dependency features of each event element within the event and the events. The temporal feature aggregation is performed on the first operation and maintenance event node representation sequence to obtain the embedding representation of the current target training sample.

7. The training method for the logistics equipment health status assessment model according to claim 6, characterized in that, Using a graph attention network model, spatial features are aggregated on the event graph to obtain a first sequence of operation and maintenance event node representations, specifically including: For each operation and maintenance event node, taking the operation and maintenance event node as the center, the spatial dependency relationship features between each event element node of the operation and maintenance event node are aggregated using the first layer graph attention network model to obtain the first updated representation of the operation and maintenance event node; Based on the first updated representation, taking the operation and maintenance event node as the center, the second-layer graph attention network model is used to aggregate the spatial dependency relationship features between different operation and maintenance event nodes to obtain the second updated representation of the operation and maintenance event node. The second update representation is passed through a fully connected layer to obtain the first operation and maintenance event node representation of the operation and maintenance event node.

8. The training method for the logistics equipment health status assessment model according to claim 6, characterized in that, Perform time-series feature aggregation on the first maintenance event node representation sequence to obtain the embedding representation of the current target training sample, specifically including: The first operation and maintenance event node representation sequence is input into the BiLSTM model to obtain the second operation and maintenance event node representation sequence output by the BiLSTM model; each second operation and maintenance event node representation in the second operation and maintenance event node representation sequence contains the time dependency relationship features between operation and maintenance event nodes; The weight of each second maintenance event node is determined using a standard attention mechanism; The embedding representation of the current target training sample is obtained by weighting and summing all the representations of the second operation and maintenance event nodes according to their weights.

9. A method for assessing the similarity of health status of logistics equipment, characterized in that, include: Obtain the unstructured operation and maintenance record text of the target logistics equipment; The unstructured operation and maintenance record text is input into the logistics equipment health status assessment model to obtain the predicted belonging probability of the target logistics equipment in each preset health status category output by the logistics equipment health status assessment model; the logistics equipment health status assessment model is trained using the training method of the logistics equipment health status assessment model as described in any one of claims 1 to 8. The preset health status category with the highest predicted attribution probability is determined as the predicted health status category of the target logistics equipment; After obtaining the predicted health status categories of multiple target logistics equipment, for every two target logistics equipment, it is determined whether their predicted health status categories are consistent. If the predicted health status categories of the two target logistics equipment are the same, then the health status of the two target logistics equipment is determined to be similar.

10. A similarity assessment device for the health status of logistics equipment, characterized in that, include: The acquisition module is used to acquire unstructured operation and maintenance record text of the target logistics equipment; The prediction module is used to input the unstructured operation and maintenance record text into the logistics equipment health status assessment model to obtain the predicted belonging probability of the target logistics equipment in each preset health status category output by the logistics equipment health status assessment model; the logistics equipment health status assessment model is trained using the training method of the logistics equipment health status assessment model as described in any one of claims 1 to 8. The first determining module is used to determine the preset health status category with the highest predicted attribution probability as the predicted health status category of the target logistics equipment. The judgment module is used to determine whether the predicted health status categories of each pair of target logistics equipment are consistent after obtaining the predicted health status categories of multiple target logistics equipment. The second determining module is used to determine that the health status of the two target logistics equipment is similar if the predicted health status categories of the two target logistics equipment are consistent.