An abnormal operation mode recognition method based on log semantic template extraction

By generating a cross-source semantic role graph through dependency parsing and semantic role labeling models, the compatibility problem of semantic parsing and pattern matching in multi-source heterogeneous log analysis is solved, and cross-source consistency and real-time abnormal operation pattern recognition are achieved.

CN123139983APending Publication Date: 2026-11-20GUANGZHOU DUOMI TECHNOLOGY DEVELOPMENT CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611466966.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-20
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

In existing technologies for multi-source heterogeneous log analysis, the semantic parsing module and the pattern matching module are incompatible with each other, and the cross-source semantic role graph lacks consistency verification. This leads to semantic mismatch in abnormal operation pattern recognition signals and repeated template rollbacks, making it difficult to adapt to dynamic and ever-changing operation and maintenance scenarios.

Method used

By generating a structured syntactic tree sequence through dependency parsing, a set of four-tuple semantic role chains is generated using a pre-trained semantic role labeling model, a cross-source semantic role graph is constructed, and consistency verification is performed through an IP-hostname mapping relation library. Role confidence is dynamically updated, and standardized log semantic templates are generated to achieve cross-source semantic consistency and real-time matching.

Benefits of technology

It achieves cross-source semantic consistency, avoids semantic mismatch and repeated template rollback, improves generalization and real-time performance under multiple constraints, and ensures accurate identification of abnormal operation modes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123139983A_ABST
    Figure CN123139983A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of log semantic analysis and template consistency optimization, and proposes an abnormal operation mode recognition method based on log semantic template extraction. Through dependency syntax analysis and semantic role labeling on multi-source heterogeneous log streams, a four-tuple semantic role chain is generated and mapped to a role slot space, and a cross-source semantic role graph is constructed; consistency verification is performed according to an IP-host name mapping relationship library, a role confidence score is generated and dynamic confidence updating is performed, strong anchoring role chains are screened, weak consistency slots are marked, and a standardized log semantic template is reorganized, and then matched with real-time log streams to trigger an abnormal operation mode recognition signal. The application establishes a unified semantic template framework through role slot space mapping and cross-source semantic role graph, and realizes the improvement of log semantic analysis cross-source consistency and the automation degree of abnormal operation recognition by combining dynamic confidence updating and elastic wrapping reorganization.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of log semantic analysis and template consistency optimization technology, and in particular to an abnormal operation pattern recognition method based on log semantic template extraction. Background Technology

[0002] With the surge in the scale of multi-source heterogeneous logs and the increasing complexity of operational scenarios, log analysis and anomaly detection systems generally adopt a technical architecture that models semantic parsing and pattern matching separately and solves them step by step: the semantic parsing stage extracts syntactic relationships through regular expressions, word segmentation, or dependency parsing analysis; the pattern matching stage uses keyword rules or neural network models to independently generate anomaly judgment results. In recent years, the industry has attempted to introduce solutions such as semantic role labeling, cross-source entity alignment, and dynamic confidence updates, but these solutions often rely on manually setting semantic role mapping rules or require a large number of historical log samples to support high-dimensional semantic modeling, making them difficult to adapt to dynamic and ever-changing multi-source heterogeneous log scenarios.

[0003] However, existing technologies still have the following problems: First, the products of the semantic parsing module and the pattern matching module are incompatible. There is a lack of a unified role slot space mapping relationship between the structured syntactic tree sequence and the set of four-tuple semantic role chains. There is a lack of consistency verification calculation between the cross-source semantic role graph and the role slot filling value to be aligned, which makes it difficult to generate stable role confidence scores. Abnormal operation pattern recognition signals often exhibit semantic mismatch, cross-source conflict, or repeated template rollback during actual execution, making it difficult to guarantee decision consistency. Second, in actual operation and maintenance, the operation verb type, role slot filling value, and cross-source verification count change frequently. Existing technologies rely on pre-set static thresholds or manually guided pattern matching methods, which are difficult to generalize. They cannot quickly correct the strongly anchored role chain and weakly consistent slots based on the role confidence score over time and the number of cross-source verifications. This makes it difficult for standardized log semantic templates to automatically adapt to changes in the scenario, and their generalization and real-time performance under multiple constraints are limited. Summary of the Invention

[0004] This application provides a method for identifying abnormal operation patterns based on log semantic template extraction, aiming to solve the problems existing in the prior art mentioned in the background.

[0005] This application provides a method for identifying abnormal operation patterns based on log semantic template extraction, specifically including: Obtain the raw message fields of the multi-source heterogeneous log stream, perform dependency parsing on the raw message fields, and generate a structured syntax tree sequence; Based on the structured syntax tree sequence, a role extraction operation is performed using a pre-trained semantic role labeling model to generate a set of four-tuple semantic role chains. Based on the type of operation verb in the set of quadruplet semantic role chains, semantic role chains with the same operation verb are mapped to the role slot space to construct a cross-source semantic role graph and identify the role slot filling value to be aligned. Based on the role slot filling values ​​to be aligned, cross-source mapping alignment is performed according to the preset IP-hostname mapping relationship library. Consistency verification is performed on the filling value pairs pointing to the same logical entity identifier in different log sources, and confidence is calculated to generate role confidence scores. Based on the aforementioned role confidence score, a dynamic confidence update algorithm is executed over time and based on the number of cross-source verifications to filter out strong anchored role chains that consistently output high confidence values ​​and mark weak consistency slots. The strongly anchored role chain is used as the skeleton structure and the weakly consistent slot is used as a variable modification layer. The structure is elastically wrapped and recombined to generate a standardized log semantic template. Based on the standardized log semantic template, pattern matching is performed with the real-time inflow of multi-source heterogeneous log streams. If abnormal behavior deviating from the standardized log semantic template is detected, an abnormal operation pattern recognition signal is triggered.

[0006] This application provides an abnormal operation pattern recognition method based on log semantic template extraction, which has the following beneficial effects: By acquiring the raw message fields of multi-source heterogeneous log streams and performing dependency parsing, a structured syntactic tree sequence is generated. A semantic role labeling model is used to extract roles, generating a set of four-tuple semantic role chains. These chains are then mapped to role slot spaces according to the type of the operation verb, constructing a cross-source semantic role graph. The fill values ​​for role slots to be aligned are identified, establishing a unified slot space mapping relationship between the syntactic tree sequence and the semantic role chains. Based on this, consistency verification is performed using an IP-hostname mapping database, generating a role confidence score. This score is dynamically decayed and updated over time based on the number of cross-source verifications. Strongly anchored role chains are selected, and weakly consistent slots are marked. The strongly anchored role chains are used as the skeleton, and the weakly consistent slots are used as a variable modification layer for elastic wrapping and recombination, generating a standardized log semantic template. This template is then matched with real-time log data to trigger an abnormal operation pattern recognition signal. This achieves cross-source semantic consistency, avoids semantic mismatch and repeated template rollback, and improves generalization and real-time performance under multiple constraints. Attached Figure Description

[0007] Figure 1 This is the main flowchart of an abnormal operation pattern recognition method based on log semantic template extraction.

[0008] Figure 2 This is a sub-flowchart of step S3 of an abnormal operation pattern recognition method based on log semantic template extraction.

[0009] Figure 3 This is a sub-flowchart of step S4 of an abnormal operation pattern recognition method based on log semantic template extraction. Detailed Implementation

[0010] The embodiments of this application are described in detail below. Examples of these embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain this application, and should not be construed as limiting this application.

[0011] The following disclosure provides many different implementations or examples for carrying out different structures of this application. To simplify the disclosure of this application, the components and arrangements of specific examples are described below. Of course, these are merely examples and are not intended to limit this application. Furthermore, reference numerals and / or reference letters may be repeated in different examples.

[0012] like Figure 1 As shown, this application provides a method for identifying abnormal operation patterns based on log semantic template extraction, specifically including: S1: Obtain the original message fields of the multi-source heterogeneous log stream, perform dependency parsing on the original message fields, and generate a structured syntax tree sequence; S2: Based on the structured syntax tree sequence, perform role extraction operation using a pre-trained semantic role labeling model to generate a set of four-tuple semantic role chains; Based on the structured syntactic tree sequence generated by S1, the pre-trained semantic role labeling model is used to extract the operation verb, execution subject, operation object and result state to form a set of four-tuple semantic role chains. The core operation semantics in the log are quantified into a unified semantic role chain, providing a semantic benchmark for subsequent cross-source semantic alignment.

[0013] S3: Based on the type of operation verb in the set of semantic role chains of the quadruples, map semantic role chains with the same operation verb to the role slot space, construct a cross-source semantic role graph, and identify the role slot filling value to be aligned; By combining the set of semantic role chains of quadruples generated by S2, the semantic role chains are mapped to the role slot space according to the type of operation verb and a cross-source semantic role graph is constructed. The fill values ​​of role slots to be aligned that have inconsistent formats or ambiguous naming are identified. The semantic roles with the same operation behavior in multi-source logs are unified into the same slot space, realizing the representation layer alignment of cross-source semantics.

[0014] S4: Based on the role slot filling value to be aligned, perform cross-source mapping alignment according to the preset IP-hostname mapping relationship library, perform consistency verification and calculate confidence for filling value pairs pointing to the same logical entity identifier in different log sources, and generate role confidence score; Based on the role slot filling values ​​generated by S3, cross-source mapping alignment is performed according to the IP-hostname mapping relationship library. Consistency verification calculation is performed on the filling value pairs pointing to the same logical entity identifier in different log sources, and role confidence scores are generated. This upgrades the consistency of cross-source entity referencing from manual comparison to data-driven automatic verification, enhancing the stability of entity alignment under multi-source heterogeneous logs.

[0015] S5: Based on the character confidence score, a dynamic confidence update algorithm is executed over time and with the number of cross-source verifications to filter out strong anchored character chains that continuously output high confidence values ​​and mark weak consistency slots. By combining the role confidence scores generated by S4, a dynamic confidence update algorithm is executed over time and based on the number of cross-source verifications. This process filters out strong anchored role chains that consistently output high confidence values ​​and marks weak consistency slots, ensuring that the stability of semantic role chains is anchored to real log verification results and improving the ability to adapt to dynamic log disturbances.

[0016] S6: Use the strongly anchored role chain as the skeleton structure and the weakly consistent slot as a variable modification layer to perform elastic wrapping and recombination to generate a standardized log semantic template. By combining the strong anchoring role chain and weak consistency slots generated by S5, the strong anchoring role chain is used as the skeleton structure and the weak consistency slots are used as variable modification layers for flexible wrapping and recombination. This generates a standardized log semantic template with a three-level structure of verb base model, constraint slots and variable modification layers, so that the core semantics of the template are stable and solidified, while non-core differences are flexibly compatible.

[0017] S7: Based on the standardized log semantic template, perform pattern matching and determination with the real-time inflow of multi-source heterogeneous log streams. If abnormal behavior deviating from the standardized log semantic template is detected, trigger an abnormal operation pattern recognition signal.

[0018] The standardized log semantic template generated by S6 is used to perform pattern matching with the real-time multi-source heterogeneous log stream. If abnormal behavior deviating from the standardized log semantic template is detected, an abnormal operation pattern recognition signal is triggered.

[0019] The technical principle of this application lies in addressing the problem of fragmented modeling of semantic parsing and pattern matching in multi-source heterogeneous logs, and the difficulty in ensuring decision consistency. It establishes a unified semantic template framework centered on role slot space mapping and cross-source semantic role graphs. Specifically, the original message fields of the multi-source heterogeneous log streams are first processed by dependency parsing to generate a structured syntactic tree sequence. Simultaneously, a pre-trained semantic role annotation model is used to extract operation verbs, execution subjects, operation objects, and result states, generating a set of four-tuple semantic role chains. This ensures that log operation semantics obtains a comparable representation within a unified structure. Then, the semantic role chains are mapped to role slot spaces according to the operation verb type, constructing a cross-source semantic role graph. The fill values ​​for role slots to be aligned are identified, and consistency verification calculations are performed based on the IP-hostname mapping database to generate role confidence scores. This ensures that cross-source semantic consistency is achieved at the representation layer rather than the result layer. First, a perception is established. Based on this, a dynamic confidence update algorithm is executed based on the role confidence score over time and the number of cross-source verifications. Strongly anchored role chains are selected and weakly consistent slots are marked. The strongly anchored role chains are used as the skeleton structure and the weakly consistent slots are used as a variable modification layer for elastic wrapping and recombination to generate a standardized log semantic template. Pattern matching is performed based on the standardized log semantic template and the real-time multi-source heterogeneous log streams. If abnormal behavior deviating from the standardized log semantic template is detected, an abnormal operation pattern recognition signal is triggered, thereby realizing end-to-end collaborative optimization from semantic encoding, representation layer alignment, consistency verification to dynamic correction.

[0020] Step S1: Obtain the raw message fields of the multi-source heterogeneous log stream, perform dependency parsing on the raw message fields, and generate a structured syntax tree sequence. Specifically, this includes: S1.1: Obtain the original log messages from the multi-source heterogeneous log stream, and perform regular expression matching and delimiter parsing on the original log messages to extract the original message fields carrying core operation information.

[0021] The process involves acquiring raw log messages from a multi-source heterogeneous log stream. These messages include a system timestamp, log level, module identifier, and message body field. Regular expression matching is performed on the raw log messages to identify log structure characteristics from different sources based on a predefined log format pattern library, separating unstructured or semi-structured message body portions. For the separated message body portions, a delimiter parsing algorithm is applied to identify and remove common invalid delimiters such as spaces, tabs, and special characters, retaining text fragments carrying core semantic information.

[0022] The retained text fragments are standardized and cleaned to remove leading and trailing whitespace characters and invisible control characters, thereby obtaining the original message field, which consists of the core operation vocabulary after standardization and cleaning.

[0023] S1.2: Based on the original message field, call the preset operation and maintenance domain-specific word segmentation dictionary to perform fine-grained segmentation processing, and generate an initial word sequence including standard vocabulary units and custom operation terms.

[0024] The system receives the raw message field generated in step S1.1 and inputs it as a text stream to be processed into the word segmentation engine. It loads a pre-configured word segmentation dictionary specific to the operations and maintenance domain, which includes a standard IT terminology database and a custom operational verb list.

[0025] Perform a forward maximum match scan on the original message field, prioritizing the identification and segmentation of long matching terms in the dictionary to ensure that complex technical terms are not incorrectly broken down into independent words.

[0026] For the remaining unmatched character sequences, an ambiguity elimination strategy based on bidirectional maximum matching is adopted. The segmentation boundary is determined by combining the context, which solves the ambiguity problem of whether 'useradmin' should be segmented into 'user' and 'admin' or kept as a whole.

[0027] A custom operation terminology enhancement mechanism is introduced to directly mark non-natural language segments such as IP addresses, timestamps, and universally unique identifiers identified by regular expressions as independent word units, thus avoiding meaningless segmentation of their internal structure by conventional word segmentation algorithms.

[0028] Stop word filtering and noise cleaning are performed on the segmented word sequence to remove delimiters, punctuation marks and general connectors that do not contribute semantically, while retaining core words with substantial operational meaning.

[0029] The core words with substantive operational meaning are arranged in an ordered manner to obtain an initial word sequence, which consists of standard vocabulary units and custom operational terms in the original log order.

[0030] S1.3: Using the initial lexical sequence as input, run the dependency parsing algorithm to perform grammatical relation derivation calculations and construct the initial dependency graph structure.

[0031] Receive the initial lexical sequence generated in step S1.2 and map it to a set of input nodes for the dependency parsing algorithm. Each node carries the lexical text and its position index in the sequence.

[0032] Based on a predefined dependency rule base in the operation and maintenance domain, the probability of pairwise co-occurrence and syntax compatibility screening are performed on the node set to initially construct a candidate dependency edge set.

[0033] The maximum spanning tree algorithm is used to perform global optimization on the candidate dependency edge set to eliminate circular dependencies and establish a unique root node, forming an acyclic directed graph structure.

[0034] In the graph structure, the predicate verb is identified as the core dominating node, and the subject, object, and other directly dependent child nodes are determined based on the principle of minimizing the dominating distance.

[0035] The confidence score of dependency edges is calculated using the following formula to filter high-confidence dependencies. The confidence score screening threshold for dependency edges is pre-set based on the lower quartile of the confidence score distribution of dependency relationship labeled samples in historical logs of the operation and maintenance domain: ; Where S is the dependency edge confidence, P is the conditional probability, D is the distance decay factor, and L is the path length function. The distance decay factor D is obtained by exponentially mapping the position index difference of the two terms at the two ends of the dependency edge. The path length function L is the number of edges of the shortest path between two nodes in the dependency tree. In the formula, the subscripts i and j respectively identify the starting term and ending term connected by the dependency edge. Lexical elements from historical operation and maintenance log corpus Term occurrence under certain conditions Co-occurring.

[0036] The filtered dependencies are instantiated as directed edges and connected to the corresponding lexical nodes, thus obtaining the initial dependency graph structure, which consists of lexical nodes and directed dependency edges.

[0037] S1.4: For the initial dependency graph structure, apply the part-of-speech tagging rule set and the conditional random field part-of-speech tagger to perform a label mapping operation to generate a labeled dependency graph structure associated with specific part-of-speech category identifiers.

[0038] The system receives the initial dependency graph structure generated in step S1.3. This structure includes lexical nodes and the edges of their syntactic dependencies, but lacks specific part-of-speech (POS) category identifiers. It then loads a pre-configured POS tagging rule set specific to the operations and maintenance domain. This rule set defines the mapping logic for basic POS tags such as verbs, nouns, and adjectives, as well as specific entity tags in the domain such as IP addresses, timestamps, and process identifiers.

[0039] Traverse each lexical node in the initial dependency graph and extract the text content features and contextual dependency path features of the node. Input the extracted features into a part-of-speech tagger built based on conditional random fields and calculate the probability distribution of each node belonging to each predefined part-of-speech tag.

[0040] Based on the initial assignment results, contextual consistency verification rules are applied to check the legality of part-of-speech combinations between adjacent nodes, such as verifying whether a verb is followed by a valid noun or adverb. For ambiguous nodes, disambiguation is performed by combining the part-of-speech of the parent node in the dependency tree to correct erroneous label assignments.

[0041] The final determined part-of-speech tag attribute is attached to each node, thereby obtaining a labeled dependency graph structure. This labeled dependency graph structure consists of lexical nodes, syntactic dependency edges, and the part-of-speech tags corresponding to each lexical node.

[0042] S1.5: Based on the labeled dependency graph structure, perform tree topology reconstruction and root node locking to output a structured syntactic tree sequence that includes a complete set of part-of-speech tags and standardized syntactic dependencies.

[0043] Receive the labeled dependency graph structure generated in step S1.4, which includes lexical nodes and their syntactic dependency edges.

[0044] Traverse all nodes in the dependency graph, calculating the in-degree and out-degree values ​​for each node. Based on the root node determination rules, select nodes with an in-degree of zero and an out-degree greater than zero as the candidate root node set. If multiple nodes exist in the candidate root node set, select the node with the highest priority verb as the unique root node according to a predefined list of operation and maintenance verb priorities. Starting from the selected root node, execute a depth-first search algorithm to traverse the entire dependency graph. During the traversal, record the parent-child relationship and dependency type label for each edge, constructing a preliminary tree topology structure.

[0045] The system detects the presence of cyclic dependency paths in the initial tree structure. If a cycle is detected, the dependency edge with the lowest weight is cut to break the cycle, ensuring the structure's acyclic property. Non-core modifier nodes in the tree structure are pruned, retaining subject, object, and adverbial nodes directly connected to the core predicate verb.

[0046] The pruned tree structure is converted into a standardized adjacency list representation, where each entry includes a child node identifier, a parent node identifier, a dependency type, and a part-of-speech tag, thus obtaining a structured syntactic tree sequence, which consists of a complete set of part-of-speech tags and standardized syntactic dependencies.

[0047] Step S2: Based on the structured syntax tree sequence, perform role extraction operation using a pre-trained semantic role labeling model to generate a set of four-tuple semantic role chains.

[0048] The semantic role labeling model is pre-trained offline under supervised conditions: historical log samples labeled with operation verbs, execution subjects, operation objects, and result states are used as the training dataset. The training data source is the historical operation log records accumulated by the operation and maintenance platform, and the training sample size is pre-set based on the verb coverage rate of the operation and maintenance log domain. The negative log-likelihood loss function of the four-tuple role sequence labeling is used as the optimization objective, and the weight parameters of the embedding layer, bidirectional long short-term memory network encoding layer, multi-head self-attention layer, and conditional random field decoding layer are iteratively updated using gradient backpropagation and adaptive learning rate optimization algorithms. When the value of the loss function on the validation sample set no longer decreases for several consecutive iterations, the training is determined to be converged, and the weight parameters at the convergence time are taken as the weight parameters of the semantic role labeling model.

[0049] The character extraction operation specifically includes: S2.1: Obtain the structured syntax tree sequence generated in the previous steps, including part-of-speech tags and syntactic dependencies. Based on the verb-entity constraint rule set unique to the operation and maintenance log domain, perform node pruning and path optimization on the structured syntax tree sequence to generate a simplified syntax subgraph set that retains only the core predicate verbs and their direct dependent subtrees.

[0050] The system receives a structured syntactic tree sequence, including part-of-speech tags and syntactic dependencies, from the output of the preceding steps. This sequence fully represents the syntactic hierarchy and modification relationships of each lexical unit in the log message.

[0051] Traverse each node in the structured syntax tree sequence, retrieve the pre-defined set of verb-entity constraint rules for the operation and maintenance domain, and identify core verb nodes that have predicate verb part-of-speech tags and conform to the semantics of operation and maintenance.

[0052] Using the identified core verb node as the root node, we trace back up to the original root node of the syntax tree, extract the shortest dependency path from the core verb to the original root node, and establish the skeleton connection of the subject-predicate structure.

[0053] Traverse downwards to the direct child nodes of the core verb node, filter the child node sets of the dependency relationship tags as subject, object or complement, and remove the branch and leaf nodes corresponding to non-core modifiers such as adjectives and adverbs.

[0054] Perform recursive pruning on the retained set of child nodes. If a child node has a dependent subtree, only retain the sub-branches that are directly related to its semantic role, and remove irrelevant prepositional phrases or time adverbs.

[0055] The pruned core verb nodes and their retained direct dependent child nodes are reassembled to construct a simplified syntactic subgraph, ensuring that the subgraph only includes key nodes that constitute the logical closed loop of "action-subject-object".

[0056] The core predicate verb and its direct dependency subtrees are retained on the simplified syntactic subgraph, resulting in a set of simplified syntactic subgraphs consisting of the core predicate verb and its direct dependency subtrees.

[0057] S2.2: Load the semantic role labeling model that has been pre-trained on historical log samples labeled with operation verbs, execution subjects, operation objects and result states, input the simplified syntactic subgraph set into the encoding layer of the semantic role labeling model, and generate a context vector representation sequence containing deep semantic features.

[0058] The semantic role labeling model includes an embedding layer, a bidirectional long short-term memory network encoding layer, a multi-head self-attention layer, and a conditional random field decoding layer. The embedding layer maps the node word sequence in the structured syntactic tree sequence to an initial word vector representation, which integrates part-of-speech tags and grammatical dependency identifiers. The bidirectional long short-term memory network encoding layer extracts forward and backward temporal dependency features from the initial word vector representation to generate a context vector sequence. The multi-head self-attention layer performs weighted aggregation on the context vector sequence to strengthen the representation of core verb-related entity nodes. The conditional random field decoding layer performs semantic role classification and boundary localization on the weighted aggregated vector sequence, outputting four key semantic segments: the operational verb, the executing subject, the operating object, and the result state. The weight parameters of the semantic role labeling model are trained on historical log samples labeled with the quadruple pairs of operational verb, executing subject, operating object, and result state.

[0059] Receive the simplified syntactic subgraph set generated in step S2.1, wherein the simplified syntactic subgraph set includes the core predicate verb and its direct dependency subtree structure.

[0060] The pre-built semantic role labeling model is invoked. This model includes an embedding layer, a bidirectional long short-term memory network encoding layer, a multi-head self-attention layer, and a conditional random field decoding layer. Weight parameters that have been pre-trained on operation and maintenance log quadruples are loaded.

[0061] The embedding layer maps the node word sequence in the simplified syntactic subgraph set to an initial word vector representation, which integrates part-of-speech tags and syntactic dependency identifiers.

[0062] The bidirectional long short-term memory network encoding layer performs forward and backward temporal-dependent feature extraction on the initial word vector representation to generate a context vector sequence.

[0063] The multi-head self-attention layer performs weighted aggregation on the context vector sequence to strengthen the representation of core verb-related entity nodes; the attention weight distribution is calculated using the following formula: ; in, To query the vector matrix, The key vector matrix, It is a value vector matrix. Let be the dimension of the key vector. The normalized exponential function is used, and the query vector matrix, key vector matrix, and value vector matrix are obtained by transforming the context vector sequence through three learnable linear mapping matrices, respectively. The dimension of the key vector is taken as the feature dimension of the context vector sequence.

[0064] The weight parameters of the semantic role labeling model are trained on historical log samples labeled with a quadruple of operation verb, execution subject, operation object and result status; the size of the training sample is pre-set based on the verb coverage rate in the operation and maintenance log domain.

[0065] The dense vectors corresponding to each word, which integrate bidirectional temporal features and multi-head attention weights, are processed by sequence assembly to obtain the context vector representation sequence. This context vector representation sequence is composed of the dense vectors corresponding to each word, which integrate bidirectional temporal features and multi-head attention weights.

[0066] S2.3: Based on the context vector representation sequence, the decoding layer of the semantic role labeling model is used to perform multi-dimensional semantic role classification and boundary localization operations to identify and label four key semantic segments belonging to the operation verb category, the execution subject category, the operation object category, and the result state category.

[0067] The system receives the context vector representation sequence containing deep semantic features generated in the preceding steps and inputs it into the decoding layer of the semantic role labeling model. The decoding layer uses the conditional random field algorithm to construct a globally optimal label sequence prediction model, and performs multi-dimensional semantic role classification probability calculations for each time step in the vector sequence.

[0068] For the four key roles in operation and maintenance logs—operation verbs, execution subjects, operation objects, and result status—specific tag sets are defined, including verb start tags, verb internal tags, and subject start tags. The Viterbi algorithm is used to search for the globally optimal path under the constraints of the tag transition matrix, resolving tag conflicts that may arise from local classification and ensuring the syntactic rationality of adjacent lexical tags.

[0069] The final semantic role category of each lexical unit is determined using the maximum likelihood estimation principle, and the confidence score of the classification result is output. Based on the determined role category boundaries, the corresponding original text fragments are extracted to form a discrete set of semantic fragments.

[0070] The extracted semantic fragments are mapped by position index to record their start and end character positions in the original log message, so as to achieve precise boundary positioning.

[0071] Low-quality segments with confidence levels below a preset segment retention threshold are removed, while key semantic elements with high confidence levels are retained. The preset segment retention threshold is pre-set based on the lower quartile of the confidence distribution of semantic role annotation samples in historical logs of the operation and maintenance domain.

[0072] The retained high-confidence key semantic elements are labeled with role categories and boundary positions, resulting in four key semantic fragments. These four key semantic fragments consist of four role categories and their boundary positions: operation verb, execution subject, operation object, and result state.

[0073] S2.4: For the four key semantic fragments identified, perform structured reorganization processing according to the predefined role slot mapping rules. Arrange and combine the discrete semantic fragments according to the logical order in which the operation verb drives the execution subject to act on the operation object and produce the result state, and generate an initial four-tuple semantic role chain instance.

[0074] It receives four key semantic fragments from the previous steps: the operation verb, the execution subject, the operation object, and the result status, along with their position index information in the original log.

[0075] Based on the predefined role slot mapping rules, establish a logical sorting rule with operation verbs as the core driving force, and establish a fixed slot order for the four-tuple structure.

[0076] Extract the operation verb fragment as the root node of the semantic chain, assign it the highest priority identifier, and ensure that it is at the beginning of the reorganized structure. Read the execution subject fragment, and verify whether its dependency relationship tag with the operation verb is an agent relationship. If the verification passes, fill it into the second slot.

[0077] Read the operation object fragment and verify whether its dependency relationship label with the operation verb is a recipient or target relationship. If the verification passes, fill it into the third slot. Read the result status fragment and identify whether it includes status keywords indicating success, failure, or timeout. If present, fill it into the fourth slot. For missing non-core role fragments, insert null placeholders to maintain structural integrity.

[0078] The data from the four filled slots is encapsulated into a structured object, thereby obtaining an initial quadruple semantic role chain instance. This initial quadruple semantic role chain instance consists of four slots arranged in the order of operation verb, execution subject, operation object, and result state.

[0079] S2.5: Perform legality verification and null value filtering on the generated initial quadruplet semantic role chain instances, and remove invalid chain instances that are missing necessary role elements or violate domain constraints, so as to output the final set of quadruplet semantic role chains consisting of high-confidence operation verbs, execution subjects, operation objects and result states.

[0080] Iterate through the initial four-tuple semantic role chain instances, checking whether the two necessary role elements, operation verb and execution subject, are empty, and discarding instances where either element is empty. Based on predefined operation and maintenance domain constraints, perform a validity check on the value combination of execution subject and operation object, and discard instances that violate the constraints.

[0081] For instances that pass the verification, the confidence score of the role category is retained, thereby obtaining a set of semantic role chains of quadruples. This set of semantic role chains of quadruples consists of operation verb, execution subject, operation object and result state quadruples.

[0082] like Figure 2 As shown, step S3: Based on the operation verb types in the quadruplet semantic role chain set, semantic role chains with the same operation verbs are mapped to the role slot space to construct a cross-source semantic role graph, and the role slot filling values ​​to be aligned are identified, including: S3.1: Obtain the operation verb type field from the set of four-tuple semantic role chains, perform string normalization processing based on the predefined operation and maintenance domain verb standardization dictionary, and generate a standard operation verb index key with a unique identifier.

[0083] In this embodiment, the standardized verb dictionary for operation and maintenance is pre-constructed based on the statistical representation of operation verbs in historical logs, and includes standard verb forms and their synonym mapping relationships.

[0084] Specifically, the set of semantic role chains of quadruples is traversed, and the original text string of the operation verb fragment in each chain is extracted. A predefined standardized dictionary of verbs in the operation and maintenance domain is loaded, and the original text string is processed by case unification, tense restoration, and synonym replacement, so that the same operation verb with different expressions is normalized into a unique standard verb form.

[0085] The normalized standard verb morpheme is assigned a globally unique index identifier, thereby obtaining the standard operational verb index key, which consists of the normalized standard verb morpheme and the globally unique index identifier.

[0086] S3.2: Perform hash clustering operation on the set of four-tuple semantic role chains based on the standard operation verb index key, and aggregate semantic role chains with the same standard operation verb index key into the same logical group to generate a verb cluster dataset divided by operation type.

[0087] It receives a set of four-tuple semantic role chains after S3.1 standardization, and extracts the standard operation verb index key from each chain as the core identifier for hash clustering. It initializes a memory-mapped hash table structure, sets the number of hash buckets to a prime number to reduce the probability of collisions, and maps the standard operation verb index keys to specific buckets using a consistent hashing algorithm.

[0088] The semantic role chain set is traversed, and the hash value of the index key of each standard operation verb is calculated to locate its storage position in the hash table. If the target bucket is empty, a new verb cluster linked list head node is created, and the current semantic role chain instance is inserted as the first element. If the target bucket already has a linked list, the linked list is traversed, and the index keys of the standard operation verbs of existing elements are compared. When an index key match is detected, the current semantic role chain instance is appended to the end of the verb cluster linked list, realizing the logical aggregation of synonymous operation behaviors.

[0089] During the aggregation process, the original source identifier and timestamp metadata of each semantic role chain are retained to maintain cross-source traceability. The hash table is dynamically monitored for expansion. When the hash table load factor exceeds the preset load limit of 0.75, a rehashing operation is triggered to maintain query efficiency. The preset load limit is pre-set based on the statistical balance between the number of hash buckets in the hash table and the probability of hash collisions.

[0090] The multiple verb clusters obtained from aggregation are processed to assemble the dataset, thereby obtaining a verb cluster dataset, which consists of multiple verb clusters divided according to operation type.

[0091] S3.3: For each semantic role chain in the verb cluster dataset, extract the role values ​​of its execution subject, operation object and result state, and fill the role values ​​into a unified role slot space according to the preset role slot mapping rules to generate a role slot instance sequence including standardized slot filling values.

[0092] The role slot space is pre-constructed based on the role slot definition in the operation and maintenance domain, and consists of four fixed slots: operation verb index slot, execution subject slot, operation object slot, and result status slot. The role slot mapping rule is pre-set based on the correspondence between role type and slot name in the operation and maintenance domain four-tuple semantic role chain.

[0093] The standardized slot fill value refers to the slot fill value obtained by converting the role value in the original log into a standard format that conforms to the corresponding slot data type constraints and regular expression validation pattern through the aforementioned entity type identification, resource locator standardization processing, and enumeration matching operations. For example, the original string of the execution subject field is converted into a user identifier with standard naming conventions after entity type identification, the IP address of the operation object field is converted into dotted decimal representation, and the result status field is mapped to a predefined set of exception codes or a success / failure binary identifier.

[0094] The role slot mapping rules are pre-defined based on the correspondence between role types and slot names in the semantic role chain of the four-tuple in the operation and maintenance domain. For example, a one-to-one mapping relationship is established between operation verbs, execution subjects, operation objects and result states and four fixed slots. Synonymous role names in different log sources are normalized to ensure that the role values ​​of each source log can be accurately filled into the corresponding slot space.

[0095] For each semantic role chain in the verb cluster dataset, extract the role values ​​of its executing subject, operating object, and result state; Parse the preset role slot mapping rule library, extract the slot definition metadata for the execution subject, operation object and result status, including slot name, data type constraints and regular expression validation mode; perform entity type identification on the execution subject field, determine whether it belongs to user identifier, process identifier or system service name according to the role slot mapping rules, and convert the original string into slot key-value pairs that conform to the standard naming specification; Perform resource locator standardization on the operation object field. If an IP address format is detected, retain the dotted decimal representation. If a domain name or hostname is detected, temporarily store the original text and mark it as pending alignment. Perform enumeration matching on the result status field to map the status words described in natural language to a predefined set of exception codes or success / failure binary identifiers, ensuring the discretization and consistency of status values; The processed execution subject, operation object, and result status slot values ​​are assembled according to the structural order of operation verb index, execution subject slot, operation object slot, and result status slot. The assembled role slot instances are then subjected to integrity checks and missing field removal, thereby obtaining a role slot instance sequence. This role slot instance sequence consists of standardized slot fill values ​​for operation verb index slot, execution subject slot, operation object slot, and result status slot.

[0096] S3.4: Using the sequence of role slot instances as node data, and with the standard operation verb index key as the connection relationship, construct a multi-source log semantic topology structure, and perform connected component analysis on the multi-source log semantic topology structure to generate a cross-source semantic role graph.

[0097] Receive the sequence of character slot instances generated in the previous steps, including standardized slot fill values, and extract the source system identifier, standard operation verb index key, and fill value data of each character slot.

[0098] Construct a graph topology with the standard operation verb index key as the root node, and instantiate each role slot instance sequence as a leaf node object in the graph.

[0099] A directed connection edge is established between the root node and the leaf node. The attribute fields of the edge record the source system identifier and the log timestamp, forming an initial skeleton describing the semantic relationship between logs across systems.

[0100] Traverse all leaf nodes under the same verb cluster, and calculate the edit distance and type matching degree of the fill values ​​between nodes of different source systems for the execution subject, operation object and result status slot.

[0101] Based on the calculated similarity index, horizontal association edges are added between leaf nodes with potential semantic associations. The weight of the edge is determined by the similarity value, thus forming a closed semantic topology structure of multi-source logs.

[0102] Connectivity component analysis is performed on the multi-source log semantic topology to identify isolated nodes and high-density connected subgraphs and mark conflict regions with multi-source representation differences, thereby obtaining a cross-source semantic role graph. This cross-source semantic role graph consists of a topology with the standard operation verb index key as the root node, the role slot instance sequence as the leaf node, and the source system identifier and log timestamp as edge attributes.

[0103] S3.5: Traverse all character slot instance sequences under the same standard operation verb index key in the cross-source semantic role graph, compare the differences in the filling values ​​of each instance in the same character slot, identify the set of character slot filling values ​​to be aligned that have inconsistent formats or ambiguous naming, and output the character slot filling values ​​to be aligned.

[0104] Traverse all role slot instance sequences under the same standard operational verb index key in the cross-source semantic role graph, and extract the padding value strings for each instance in the same semantic role slot. Perform character-level normalization preprocessing on the extracted padding values, including removing leading and trailing whitespace, unifying capitalization, and replacing full-width characters, to generate a normalized padding value set. Calculate the edit distance between any pairwise padding values ​​in the normalized padding value set and construct a difference metric matrix.

[0105] The edit distance algorithm is used to quantify string differences, and the formula is expressed as: ; in and These are the two padded value strings to be compared. This represents the minimum number of edit operations required for the prefix substring. A format inconsistency threshold and a naming ambiguity threshold are set. The format inconsistency threshold is pre-set based on the lower quartile of the edit distance statistics for different format representations of the same entity in historical logs from the operations and maintenance domain. The naming ambiguity threshold is pre-set based on the upper quartile of the edit distance statistics for different naming representations of the same entity. The calculated edit distance is compared with the thresholds. If two padding value strings match perfectly, they are marked as format consistent; if the edit distance is between the format inconsistency threshold and the naming ambiguity threshold, they are marked as potential format conflict; if the edit distance is greater than the naming ambiguity threshold, they are marked as naming ambiguity. For padding value pairs marked as potential format conflict or naming ambiguity, their corresponding log source identifier, role slot type, and original padding value are recorded, generating a tuple to be aligned.

[0106] The tuples to be aligned are sorted and organized according to the role slot type to obtain the role slot fill value to be aligned. The role slot fill value to be aligned consists of source information, target value and conflict type.

[0107] like Figure 3 As shown, step S4: Based on the role slot fill values ​​to be aligned, cross-source mapping alignment is performed according to the preset IP-hostname mapping relationship database. Consistency verification is performed on fill value pairs pointing to the same logical entity identifier in different log sources, and confidence is calculated to generate a role confidence score, including: S4.1: Receive a predefined IP-hostname mapping database and perform bidirectional index construction processing on the IP-hostname mapping database.

[0108] The IP-hostname mapping database refers to a pre-built data set used to store the correspondence between IP addresses and hostnames. Specifically, firstly, the operation and maintenance asset ledger accumulated by the operation and maintenance platform is obtained, and the IP address and hostname correspondence of assets such as servers and network devices are extracted from it; at the same time, historical DNS resolution records are obtained, and the domain name and IP address resolution mapping relationship is extracted from it.

[0109] The mapping relationships obtained from the two sources are merged, and data cleaning is performed on the merged data to remove invalid records and entries with format errors. Furthermore, the IP addresses in the cleaned mapping records are uniformly converted to dotted decimal format, and the hostnames are uniformly converted to lowercase and the trailing periods are removed. The processed data is then used to construct a forward index dictionary (IP address as key, hostname as value) and a reverse index dictionary (hostname as key, IP address as value), forming the IP-hostname mapping relationship database. This IP-hostname mapping relationship database provides data support for subsequent consistency verification calculations.

[0110] Obtain the role slot fill values ​​to be aligned and the predefined IP-hostname mapping library, wherein the fill value set includes entity identifier strings from different log sources.

[0111] Perform data cleaning operations on the IP-hostname mapping database to remove invalid records and entries with incorrect formats, ensuring the integrity and accuracy of the source data.

[0112] Traverse the cleaned mapping records, extract the IP address field as the key and the corresponding hostname field as the value, and construct a forward index dictionary with a hash table structure.

[0113] Simultaneously, the hostname field is extracted as the key, and the corresponding IP address field is used as the value to construct a reverse index dictionary with a hash table structure, enabling bidirectional fast retrieval capabilities.

[0114] The IP address keys in the forward index dictionary are standardized and uniformly converted to dotted decimal format to eliminate ambiguity caused by leading zeros or hexadecimal representation.

[0115] Normalization is performed on the hostname field in the inverted index dictionary, converting it to lowercase and removing the trailing period to eliminate the impact of case differences and inconsistencies in domain name suffixes.

[0116] The forward index dictionary and the reverse index dictionary are encapsulated into entity normalized index objects to obtain an entity normalized index table. This entity normalized index table is composed of the forward index dictionary and the reverse index dictionary and is used to perform cross-source mapping alignment on the role slot fill values ​​to be aligned.

[0117] S4.2: Based on the entity normalization index table, perform a cross-source mapping matching operation on the non-standard format entity identifiers in the role slot fill values ​​to be aligned. This yields a standard entity mapping sequence, which consists of structured mapping entries pointing to unified logical entity identifiers.

[0118] Read the fill values ​​of the role slots to be aligned, iterate through each non-standard format entity identifier, and input it as a query key into the entity normalization index table built in the previous step.

[0119] The forward mapping retrieval logic is executed. If the current entity identifier conforms to the regular expression specification of Internet Protocol version 4 (IPv4) or Internet Protocol version 6 (IPv6), then an exact match search is performed in the IP to hostname forward mapping record in the index table to obtain the corresponding standardized hostname identifier.

[0120] The reverse mapping retrieval logic is executed. If the current entity identifier is a hostname or domain name in string form, the search is performed in the hostname to IP address reverse mapping record in the index table to obtain the corresponding standardized IP address identifier.

[0121] For fuzzy identifiers that do not directly match the index table, a string similarity algorithm is called to calculate the edit distance between them and known entities in the index table. When the similarity exceeds the preset similarity judgment threshold and there is a unique maximum match, it is determined to be a variant representation of the same logical entity and inherits the standardized identifier of the entity. The preset similarity judgment threshold is preset based on the quartiles of the statistical distribution of similarity of different representations of the same entity in the historical logs of the operation and maintenance field.

[0122] The original slot filling value is replaced by the standardized identifier obtained by retrieval or derivation, while the original identifier is retained as traceability metadata, forming a structured mapping entry that includes the original value, the standardized value, and the mapping source.

[0123] The structured mapping entries are sorted and reorganized according to log timestamps to obtain a standard entity mapping sequence, which consists of structured mapping entries pointing to a unified logical entity identifier.

[0124] S4.3: Using the standard entity mapping sequence, perform logical identity determination calculations for the padding value pairs pointing to the same unified logical entity identifier in different log sources.

[0125] From the standard entity mapping sequence after mapping through the entity normalization index table, the role slot fill values ​​to be aligned and their corresponding unified logical entity identifiers from different log sources are separated.

[0126] Traverse all padding value pairs pointing to the same unified logical entity identifier in the standard entity mapping sequence, extract the source system identifier, timestamp, and original semantic role type of each padding value pair, and construct a multi-source entity comparison set.

[0127] For each pair of padding values ​​in the comparison set, a dual consistency check of the physical address and logical name is performed. If both point to the same IP address or the same domain name resolves to the same hostname, then the physical layer is considered consistent.

[0128] Further examine the contextual semantic constraints of the two padding values ​​in their respective log sources, including the similarity of the operation verbs and the compatibility of the result states. If there are no conflicts in the semantic constraints, they are determined to be consistent at the logical layer.

[0129] Based on the verification results of the physical and logical layers, the entity consistency confidence index is calculated and quantitatively evaluated using the following formula: ; in, For entity consistency confidence, and These are the weighting coefficients for the physical layer and the logical layer, respectively. The physical layer weighting coefficient and the logical layer weighting coefficient are preset based on the hit rate ratio of physical layer consistency to logical layer consistency in historical multi-source log entity alignment samples. and These are the consistency Boolean values ​​for the physical layer and the logical layer, respectively (1 for consistency, 0 for inconsistency).

[0130] The calculated entity consistency confidence score is compared with a preset threshold. The entity consistency confidence score threshold is preset based on the joint distribution of physical layer consistency and logical layer consistency in historical multi-source log entity alignment samples. If the confidence score is higher than the threshold, an entity consistency verification result marked "consistent" is generated; otherwise, an entity consistency verification result marked "conflicting" is generated. If the corresponding mapping record is missing in the standard entity mapping sequence, an entity consistency verification result marked "unknown" is generated.

[0131] The entity consistency confidence level is compared with a preset threshold to obtain the entity consistency verification result. The entity consistency verification result consists of the logical identifier and confidence level of the multi-source data pointing to consistency at the logical level.

[0132] S4.4: Receive the entity consistency verification result generated in step S4.3. Based on the entity consistency verification result, perform a weighted fusion operation by combining the preset conflict penalty coefficient and matching reward weight.

[0133] Obtain the entity consistency verification results generated in the previous steps. These results include the matching status identifiers of the role slot fill values ​​to be aligned in the multi-source logs and the mapping relationship pairs pointing to the same logical entity.

[0134] The conflict penalty coefficient is pre-set based on the cost statistics caused by misjudging consistency in historical conflict samples; the matching reward weight is pre-set based on the regression coefficient of multi-source consensus strength and final accuracy in historical consistent samples. The conflict penalty coefficient is used to quantify the credibility loss caused by format inconsistency, and the matching reward weight is used to enhance the credibility gain of multi-source consensus.

[0135] Traverse each mapping record in the entity consistency verification result, determine the logical identity status of different log source fill values ​​in the current record, and if it is determined to be logically consistent, extract the number of successfully matched sources as a positive incentive factor.

[0136] By using the matching reward weight to perform a linear weighted calculation on the positive incentive factor, a basic matching score is generated, which reflects the consensus strength of multi-source data in semantic reference.

[0137] If a logical conflict or misalignment is determined, the conflict type is identified, including format ambiguity, naming convention differences, or missing entities, and the corresponding conflict penalty coefficient is selected according to the severity of the conflict.

[0138] The conflict penalty coefficient is multiplied by the conflict count and then subtracted to generate a confidence correction value after penalty, which reflects the uncertainty of single-source or contradictory information.

[0139] By combining the base matching score and the confidence correction value after penalty, a weighted fusion operation is performed to construct the original character confidence score, the mathematical expression of which is as follows: ; in, Rate the confidence of the original character. To match reward weights, To the number of sources that were successfully matched, This is the conflict penalty coefficient. Count the conflicts.

[0140] The original character confidence score is normalized and truncated to obtain a normalized character confidence score, which is composed of the original character confidence score after being normalized and truncated to a preset value range.

[0141] Step S5: Based on the role confidence score, a dynamic confidence update algorithm is executed over time and with the number of cross-source verifications to filter out strong anchored role chains that continuously output high confidence values ​​and mark weak consistency slots.

[0142] The dynamic confidence update algorithm consists of time decay calculation, frequency enhancement calculation, state label determination, hierarchical role data structure construction, and structured role chain sequence output, corresponding to steps S5.1 to S5.5 respectively; wherein, the time decay calculation adopts an exponential decay function model, and the frequency enhancement calculation adopts a linear gain function model. Specifically, it includes: S5.1: Obtain the character confidence score and current system timestamp corresponding to the character slot fill value to be aligned, and perform exponential time weight calculation on the character confidence score based on the preset time decay coefficient to generate an initial dynamic confidence score including a timeliness factor, wherein the timeliness factor is the exponential time weight calculated by the formula above.

[0143] The timeliness factor is obtained by exponentially calculating the difference between the time decay coefficient and the time interval, specifically by using the natural constant as the base and the negative value of the product of the time decay coefficient and the time interval difference as the exponent. The calculated exponential function value is the timeliness factor.

[0144] The time decay coefficient is preset as follows: historical logs are obtained, update records of log entities are counted, the time interval between update records is calculated, the average time interval is calculated, and the average update cycle of the log entity is obtained; the average update cycle is used as the time decay coefficient.

[0145] Read the role confidence score output from the previous steps, and extract the associated entity identifier, the original confidence score value, and the historical timestamp of the score generation time.

[0146] Obtain the unified standard timestamp of the current system runtime, calculate the time interval difference between the current time and the historical timestamp, and convert the difference into a time span variable in hours.

[0147] The preset time decay control parameters are invoked. The time decay coefficient is preset based on the average update cycle of the log entity. The minimum confidence threshold is preset based on the balance point between the false retention rate and the missed retention rate of expired entities in the historical log. The parameters include the time decay coefficient and the minimum confidence threshold, which are used to define the decreasing gradient of confidence over time.

[0148] An exponential decay function model is used to process time span variables and original confidence values, and a dynamic weight calculation logic is constructed to ensure that recently validated high-confidence data retains a high weight, while the weights of old data converge rapidly.

[0149] The initial dynamic confidence score, including the timeliness factor, is calculated using the following formula: ; in, This is the initial dynamic confidence score. The original character confidence score generated in the previous steps. The preset time decay coefficient, This is the time interval difference between the current time and the historical timestamp. It is a natural constant.

[0150] The calculated initial dynamic confidence score is truncated to a lower limit. If the score is lower than the preset minimum confidence threshold, it is forcibly reset to the lower limit of the threshold to prevent noisy data from interfering with subsequent screening.

[0151] This yields an initial dynamic confidence score, which consists of a role confidence score and a timeliness factor.

[0152] S5.2: Read the cross-source verification count records for the same role slot fill value to be aligned in the historical log stream, and perform frequency enhancement processing on the initial dynamic confidence score using a linear gain function to generate a comprehensive role confidence score.

[0153] Read the cross-source verification count records for the same role slot fill value to be aligned from the historical log stream, and extract the cumulative verification frequency data of the fill value within a preset time window.

[0154] The preset time window is pre-set based on the typical time cycle of operation and maintenance logs.

[0155] A linear gain function model is constructed, and a linear gain coefficient and a confidence saturation upper limit are set. The linear gain coefficient is pre-set based on the linear regression slope of the number of cross-source verifications and the entity accuracy in historical logs. The confidence saturation upper limit is pre-set based on the upper quartile of the confidence distribution of historical high-confidence entities, thus establishing the positive contribution mapping relationship between frequency and confidence.

[0156] The extracted cumulative verification frequency is substituted into the linear gain formula for numerical calculation to generate a frequency enhancement factor, which is the product of the linear gain coefficient and the number of cross-source verifications.

[0157] ; in, To assess the overall character confidence score, The initial dynamic confidence score generated by the preceding steps. The linear gain coefficient, For the number of cross-source verifications, The confidence saturation upper limit is the sum of the initial dynamic confidence score and the frequency enhancement factor, truncated by the confidence saturation upper limit.

[0158] The calculated frequency enhancement factor is added to the initial dynamic confidence score, which includes the timeliness factor, output from the previous step.

[0159] The summed values ​​are truncated to an upper limit to obtain the overall character confidence score, which is composed of the initial dynamic confidence score and the frequency enhancement factor.

[0160] S5.3: Set a strong anchored role chain determination threshold and a weak consistency slot determination threshold, and perform an interval comparison operation between the comprehensive role confidence score and the strong anchored role chain determination threshold and the weak consistency slot determination threshold to generate a set of role status markers that identify the role slot filling value belonging status.

[0161] The system receives the comprehensive role confidence score and corresponding role slot identifier generated by S5.2 as the input data source for status determination. It reads the pre-configured strong anchoring role chain determination threshold and weak consistency slot determination threshold. The strong anchoring role chain determination threshold is pre-set based on the lower quartile of the comprehensive role confidence distribution of historical strong anchoring samples; the weak consistency slot determination threshold is pre-set based on the upper quartile of the comprehensive role confidence distribution of historical weak consistency samples. The strong anchoring threshold is set as the lower limit of high confidence, and the weak consistency threshold is set as the upper limit of low confidence. The strong anchoring role chain determination threshold is greater than the weak consistency slot determination threshold, and the two constitute a pending transition interval.

[0162] The overall character confidence score is compared with the threshold for determining a strong anchored character chain. If the score is greater than or equal to the threshold, the character slot is considered to have high stability. Character slots that meet the strong anchoring condition are given a "strong anchored" status mark, indicating that they will be used as immutable skeleton elements in subsequent template construction.

[0163] The overall character confidence score is compared with the weak consistency slot determination threshold. If the score is less than the threshold, the character slot is determined to have fluctuations or noise interference. Character slots that meet the weak consistency condition are assigned a "weak consistency" status mark, indicating that they can be used as variable decorative elements in subsequent template construction.

[0164] For role slots with scores between the strong anchoring threshold and the weak consistency threshold, a "remaining observation" process is performed, temporarily marking them as "pending" and excluding them from the current batch's template solidification process.

[0165] The results of the character slot determination are summarized and processed to obtain a set of character status markers. This set of character status markers consists of slot identifiers, comprehensive character confidence scores, and strong anchoring / weak consistency / pending status markers.

[0166] S5.4: Filter entries in the set of character state markers whose state markers are strongly anchored character chains, extract the corresponding four-tuple semantic character chains as baseline skeleton data, and extract the weak consistency modification information of the state markers to construct a hierarchical character data structure including baseline skeleton data and weak consistency modification information.

[0167] The baseline skeleton data is encapsulated from a four-tuple semantic role chain marked as a strongly anchored role chain after structural integrity verification; the weak consistency modification information is obtained by mapping the role slot filling value marked as weakly consistent and its context modification information after data type feature analysis.

[0168] Receive the set of role status markers output by S5.3. This set includes the attribution status identifier of each role slot fill value and the corresponding comprehensive role confidence score. Traverse the set of role status markers, filter out entries with status markers that are strongly anchored role chains, and extract their associated four-tuple semantic role chain data. Perform structural integrity verification on the extracted four-tuple semantic role chains to confirm that the four core elements—operation verb, executing subject, operation object, and result status—are all present and not empty. If any core element in the four-tuple semantic role chain is empty, remove the entry from the strong anchored role chain candidate and downgrade its status marker to a weakly consistent slot for subsequent processing.

[0169] The validated quadruple semantic role chains are encapsulated into a baseline skeleton data object (i.e., the strongly anchored role chain), preserving their original syntactic dependencies. The baseline skeleton data is obtained by encapsulating the quadruple semantic role chains associated with entries whose status is marked as strongly anchored role chains after structural integrity verification.

[0170] Entries marked as weakly consistent slots are divided into several processing batches according to their order of appearance in the role status tag set. Each batch independently performs data type inference and value range boundary calculation. After all batches are processed, they are aggregated into a unified variable modifier layer data structure. The corresponding role slot fill values ​​and context modifier information are extracted. The data type characteristics of weakly consistent entries are analyzed to identify weakly consistent modifier information such as timestamp format, log level words, and non-critical descriptive text. The extracted weakly consistent modifier information is mapped to the variable modifier layer data structure, recording its value range boundaries and type constraints.

[0171] Logical association processing is performed on the baseline skeleton data and the weak consistency modification information to obtain the hierarchical role data structure, which consists of the baseline skeleton data and the weak consistency modification information.

[0172] S5.5: Based on the baseline skeleton data in the hierarchical role data structure, lock the core semantic path and map the weak consistency modification information to the variable modification layer to output a structured role chain sequence marked with strong anchor role chains and weak consistency slots.

[0173] Receive the hierarchical role data structure output by S5.4. This structure includes baseline skeleton data identified as a strongly anchored role chain and weak consistency modification information identified as a weak consistency slot.

[0174] We analyze the operational verbs and their associated semantic role sequences in the baseline skeleton data, extract the core nodes with fixed syntactic dependencies, and construct the core semantic path of the verb schema.

[0175] Each node in the core semantic path is assigned an immutable attribute marker to lock its structural stability during template reorganization, ensuring the consistency of multi-source logs on the semantic backbone.

[0176] Traverse the set of weakly consistent modifiers and identify low-confidence fields such as timestamp formats, log-level terms, and non-critical descriptive text.

[0177] The identified low-confidence fields are mapped to a variable modifier layer, which is defined as a parameter type that can be ignored or fuzzy matched, allowing for format differences in subsequent matches.

[0178] Establish a hierarchical relationship between the strongly anchored role chain and the variable modification layer, and encapsulate the core semantic path as the parent node and the weakly consistent modification information as the child node.

[0179] The core semantic path and weak consistency modification information are encapsulated hierarchically to obtain a structured role chain sequence. This structured role chain sequence consists of baseline skeleton data marked with strong anchor role chains and weak consistency modification information marked with weak consistency slots.

[0180] Step S6: Using the strongly anchored role chain (i.e., the baseline skeleton data) as the skeleton structure and the weakly consistent slots as a variable modification layer, elastically wrap and reassemble to generate a standardized log semantic template, including: S6.1: Receive the structured role chain sequence marked with strong anchor role chains and weak consistency slots output from step S5.5, extract the operation verb types and corresponding strong anchor role chains, and construct a verb base model including fixed syntactic dependencies to establish the core skeleton of the standardized log semantic template.

[0181] Receive the structured role chain sequence marked with strong anchor role chains and weak consistency slots from the output of step S5.

[0182] The structured role chain sequence is parsed, and the operation verb type fields marked as strongly anchored role chains and their corresponding semantic role value sets are extracted. A normalization mapping is performed on the extracted operation verb type fields, and verbs with different expressions are normalized into unique standard verb identifiers based on a predefined operation and maintenance domain verb thesaurus.

[0183] Based on standard verb identifiers, a pre-built syntactic dependency rule base is retrieved to obtain the core syntactic dependency path template for the verb in a standard context. Strongly anchored role chains are then filled into the corresponding node positions of the core syntactic dependency path template according to subject-verb-object logical order, constructing a verb schema skeleton with a fixed topology. Data type constraint identifiers are attached to each role node in the verb schema skeleton to clarify the allowed data format range for each slot.

[0184] The verb primitive skeleton is subjected to data type constraint marking and additional processing to obtain the verb primitive. The verb primitive is composed of the operational verbs in the strongly anchored role chain and the other roles according to fixed syntactic dependencies.

[0185] S6.2: For the preset role slot positions in the verb base model, extract the set of weakly consistent slot fill values ​​and calculate their data type characteristics and value range boundaries to generate dynamic constraint slot definitions with type constraint identifiers.

[0186] Receive the structured role chain sequence marked with strong anchor role chains and weak consistency slots from the previous steps, and extract the set of fill values ​​marked as weak consistency slots.

[0187] The extracted set of weakly consistent slot fill values ​​is processed by data type inference. Through regular expression matching and character set statistical analysis, the underlying data attributes of each slot value are identified, including integer, floating-point, boolean, string, and timestamp or IP address in a specific format.

[0188] Based on the identified data attributes, type constraint identifiers are constructed to classify slot values ​​with the same data attributes into the same type cluster, and the frequency distribution characteristics of the type cluster in the historical log stream are recorded.

[0189] For each type of data attribute, calculate the statistical boundary of its value range. For numerical data, use the quartile method to determine the normal fluctuation range; for string data, extract the extreme values ​​of the length of the fixed prefix, suffix and the variable middle part.

[0190] The confidence weights of dynamic constraint boundaries are calculated using the following formula: ; in, As confidence weights, The growth rate coefficient, This represents the number of samples currently observed. The minimum sample threshold is set in advance based on the regression slope of the sample size and boundary estimation deviation rate in the historical log stream; the minimum sample threshold is set in advance based on the lower quartile of the minimum sample size distribution required for boundary estimation stability in the historical log stream.

[0191] Based on the calculated confidence weights, the value range boundaries are subjected to weighted smoothing to remove extreme outliers caused by noisy data, thus generating the value range definition.

[0192] The weighted smoothing process uses the confidence weight as the weighting coefficient to perform a weighted average of the estimated value range boundary obtained from the current batch of samples and the estimated value range saved from the previous batch, and uses the weighted average result as the updated value range boundary.

[0193] This yields the definition of a dynamic constraint slot, which is composed of a type constraint identifier, a value range boundary, and a confidence weight concatenated in a preset field order.

[0194] The dynamic constraint slot is defined as a dynamically instantiated data structure of the constraint slot. Each constraint slot corresponds to a dynamic constraint slot definition. The type label, minimum value, maximum value and regular expression matching mode in the dynamic constraint slot definition correspond to the data type and dynamic constraint parameters of the value range boundary of the constraint slot, respectively. The confidence score is used to characterize the statistical reliability of the dynamic constraint slot definition.

[0195] S6.3: Utilize the dynamic constraint slot definition to perform elastic wrapping processing on non-core semantic fragments in the original log, mapping timestamp format differences, log level vocabulary changes, and non-critical descriptive text to variable modification parameters that can be ignored or fuzzy matched.

[0196] It receives the dynamic constraint slot definition output from the preceding steps and non-core semantic fragments from the original log, and identifies the text regions to be processed, including timestamp fields, log level identifiers, and unstructured descriptive text.

[0197] The identified timestamp field is subjected to format standardization detection. Regular expressions are used to match standard date formats, unified timestamps and custom date formats, and they are uniformly mapped to standardized time placeholders.

[0198] For log level identifiers, a multi-level vocabulary mapping table is constructed to normalize hierarchical vocabulary from different sources, such as prompt level, warning level, and error level, into unified status labels, eliminating semantic noise caused by differences in vendor definitions. Stop word filtering and redundant character removal are performed on non-critical descriptive text, retaining adjectives or adverbs with potential modifying meanings as fuzzy matching factors.

[0199] The coefficient of variation of each non-core segment in the historical log stream is calculated, and elastic matching weights are dynamically assigned based on the degree of variation. High-variance segments are given low weights to allow for broad matching. Through an elastic wrapping mechanism, the standardized and weighted non-core semantic segments are encapsulated into variable modification parameters, which include type constraints, value range boundaries, and matching tolerance indicators.

[0200] The variable modification parameters obtained from the elastic wrapping process are logically associated with the verb base model and constraint slots to establish a one-to-one correspondence between the variable modification parameters and each role slot.

[0201] S6.4: Based on the verb base model, dynamic constraint slot definition and variable modification parameters, perform a three-level structure reorganization operation to logically splice and hierarchically encapsulate the fixed skeleton and the variable modification layer.

[0202] Obtain the verb base template, dynamic constraint slot definition, and variable modifier parameters generated in the previous steps as the input data source for template reorganization.

[0203] Based on the core predicate verbs and their dependencies identified in the verb schema, the main logical framework of the template is constructed, and the operational verbs are placed at the root node of the syntax tree to establish the basis for the stability of semantic expression.

[0204] Traverse each role slot in the dynamic constraint slot definition, and embed them sequentially into the corresponding branch node of the verb base module according to their relative position in the syntax tree, forming a structured skeleton including type constraint identifiers.

[0205] For variable modifier parameters, the corresponding original log fragment attributes are parsed, including timestamp format, log level keywords, and non-key descriptive text, to generate a flexible matching rule set.

[0206] The flexible matching rule set is mapped to the outer nodes of the structured skeleton, and non-core semantic fragments are wrapped using regular expression wildcards or fuzzy matching operators to achieve flexible attachment of the variable modification layer.

[0207] The logic of the three-level structure is executed, and the fixed verb base model, the constrained role slots, and the variable modifier layer are encapsulated according to the preset hierarchical priority.

[0208] The template object obtained by splicing and encapsulation is subjected to syntax consistency verification to obtain a standardized log semantic template. The standardized log semantic template consists of a three-level structure of verb base template, constraint slots and variable modifier layer.

[0209] S6.5: Perform integrity verification and redundancy elimination on the generated standardized log semantic templates, remove duplicate template entries caused by cross-source alignment, and finally form a standardized log semantic template library for real-time streaming log pattern matching.

[0210] The generated standardized log semantic templates are traversed, and the completeness of the three-level structure of verb schema, constraint slots, and variable modifier layers is checked. Template entries missing at any level are removed. The structural similarity between each template verb schema and the constraint slot set is calculated. Template entries with similarity exceeding a preset merging threshold are merged, and the entry with the highest confidence score is retained. The preset merging threshold is pre-set based on the upper quartile of the statistical distribution of structural similarity of different template entries under the same operation verb in the historical log stream.

[0211] The merged template entries are then assembled into a template library to obtain a standardized log semantic template library. This library consists of standardized log semantic templates that have undergone integrity verification and redundancy elimination. The standardized log semantic template library is a collection of these templates, used to support pattern matching and determination in real-time streaming logs.

[0212] Step S7: Based on the standardized log semantic template, a pattern matching judgment is performed with the real-time inflow of multi-source heterogeneous log streams. If abnormal behavior deviating from the standardized log semantic template is detected, an abnormal operation pattern recognition signal is triggered. The abnormal behavior refers to log behavior that deviates from the value range of the constraint slots of the standardized log semantic template, including: S7.1: Obtain the multi-source heterogeneous log streams that are flowing in in real time, and perform verb primitive pattern matching processing on the multi-source heterogeneous log streams to filter out a set of candidate log messages that are consistent with the verb primitive patterns in the standardized log semantic template.

[0213] The real-time inflow of multi-source heterogeneous log streams is segmented into log message entries to be matched according to a preset time window. The predicate verb form is extracted from each log message entry and normalized into a standard verb identifier based on a predefined standardized verb dictionary for the operation and maintenance domain. The standard verb identifier is then matched precisely with the verb primitives of each template in the standardized log semantic template library, and templates whose operational verbs match the standard verb identifiers are retained as the matching templates.

[0214] The log message entries corresponding to the matching templates are extracted and processed to obtain a candidate log message set, which consists of log message entries that match the verb base patterns in the standardized log semantic template library.

[0215] S7.2: Based on the candidate log message set, use dependency parsing to extract the real-time semantic role chain, and map the real-time semantic role chain to the role slot space defined by the standardized log semantic template to generate a slot sequence to be verified including real-time populated values.

[0216] Obtain the candidate log message set filtered by S7.1 as the input data source for real-time semantic parsing.

[0217] The candidate log messages undergo dependency parsing consistent with the offline training phase. A pre-built, operation-specific word segmentation dictionary is reused for fine-grained segmentation to generate an initial word sequence.

[0218] The dependency parsing algorithm is run based on the initial word sequence to construct a real-time dependency graph structure that represents the subject-verb-object modification relationship between words, and a set of part-of-speech tagging rules is applied to generate a labeled dependency graph.

[0219] Perform tree topology reconstruction and root node locking on labeled dependency graphs, and output a real-time structured syntactic tree sequence including a complete set of part-of-speech tags and standardized syntactic dependencies.

[0220] The tree topology reconstruction and root node locking are specifically as follows: in the labeled dependency graph, the word with the largest dependency relationship depth is selected as the root node, eliminating the loops and conflicts with multiple parent nodes in the graph, and reconstructing into a tree structure with the word corresponding to the operation verb as the root.

[0221] The semantic role labeling model is loaded, and the real-time structured syntactic tree sequence is input into the encoding layer to generate a context vector representation sequence containing deep semantic features.

[0222] The decoding layer is used to perform multi-dimensional semantic role classification and boundary localization, and to identify and mark four key semantic segments: operation verb, execution subject, operation object and result state.

[0223] Based on predefined role slot mapping rules, discrete semantic fragments are reorganized into real-time quadruple semantic role chain instances in logical order.

[0224] Traverse the standardized log semantic template library, match template definitions that are consistent with the operation verbs in the real-time quadruple, and extract the role slot space structure specified by the template.

[0225] The execution subject, operation object, and result status value in the real-time quadruple are mapped to the corresponding role slots in the template, forming a slot filling mapping relationship.

[0226] For optional slots defined in the template but missing in the real-time log, fill in a null value; for redundant fields that exist in the real-time log but are not defined in the template, ignore them.

[0227] The slot filling mapping relationship is processed by filling missing slots and ignoring redundant fields, thereby obtaining the slot sequence to be verified. This slot sequence is composed of real-time filling values ​​formed by mapping the execution subject, operation object and result status in the real-time quadruple semantic role chain to the constraint slots defined by the standardized log semantic template.

[0228] S7.3: Receive the sequence of slots to be verified generated in step S7.2. For the constraint slots corresponding to the strongly anchored role chains in the sequence of slots to be verified, perform the domain entity alignment processing described in steps S4.1 to S4.4. Based on the entity normalization index table constructed in step S4.1, perform entity identifier consistency verification calculation. This yields a slot status score, which consists of a logical state flag indicating compliance and a continuous confidence score.

[0229] Obtain the constraint slot fill value corresponding to the strongly anchored role chain in the slot sequence to be verified, and extract the entity identifier field as the object to be verified.

[0230] The format characteristics of the entity identifier field are parsed to distinguish between IP address format, hostname format and mixed identifier format, and format classification labels are generated.

[0231] Call the entity normalized index table constructed in step S4.1, perform a bidirectional index retrieval operation, and query whether the object to be verified exists in the forward IP index or the reverse hostname index.

[0232] If the object to be verified is an IP address and exists in the forward index, extract its associated set of standard hostnames; if the object to be verified is a hostname and exists in the reverse index, extract its associated set of standard IP addresses.

[0233] The extracted set of related entities is used as a benchmark reference system to calculate the logical identity matching degree between the object to be verified and the benchmark reference system.

[0234] A weighted scoring mechanism is used to quantify the matching results. A basic confidence score is assigned to complete matches, and the scores for partial matches or alias matches are adjusted according to the weight of the alias matches.

[0235] The slot status score is calculated using the following formula: ; in, Rate the slot status. To perfectly match the weights, For binary matching indicator variables, Weighting is assigned to aliases. The alias similarity coefficient is determined by the ratio of the accuracy of the complete match and the alias match in the historical normal operation log. The alias similarity coefficient is obtained by proportionally mapping the edit distance of the two entity identifier characters to 0-1. The binary matching indicator variable is generated by the search hit determination in S7.3.

[0236] The slot status score is compared with a preset compliance threshold, which is pre-set based on the lower quartile of the statistical distribution of slot status scores in historical normal operation logs. A logical status marker is generated to indicate the compliance of the value. The logical status marker and the slot status score together constitute the slot status score result of the constrained slot.

[0237] S7.4: Based on the slot status score, perform elastic boundary judgment processing on the variable modification layer corresponding to the weakly consistent slot in the slot sequence to be verified, so as to identify the abnormal deviation feature vector that deviates from the normal value range defined by the standardized log semantic template.

[0238] Obtain the real-time fill values ​​of weakly consistent slots in the slot sequence to be verified and the elastic boundary parameters defined by the standardized log semantic template.

[0239] Perform data type feature extraction on the real-time populated values ​​to identify their specific category in timestamp, log level, or non-critical descriptive text.

[0240] For timestamp-type weakly consistent slots, the offset between the real-time filling value and the template baseline time window is calculated, and a time deviation index is constructed.

[0241] For log-level weak consistency slots, a discrete level mapping table is established, and the semantic distance score between the real-time level and the baseline level is calculated.

[0242] Using a pre-defined flexible boundary judgment function, combined with the time deviation index and semantic distance score, a comprehensive deviation coefficient is calculated.

[0243] ; in, This is the comprehensive deviation coefficient. For real-time timestamps, As the base time, Where L is the time tolerance threshold, and L is the real-time log level encoding. Encode for baseline level, The time tolerance threshold and the level tolerance threshold are preset based on the upper quartile of the statistical distribution of time offset and level semantic distance in historical normal operation logs.

[0244] The calculated comprehensive deviation coefficient is compared with a preset anomaly judgment threshold, which is preset based on the upper quartile of the statistical distribution of the comprehensive deviation coefficient under historical normal operation mode.

[0245] If the overall deviation coefficient exceeds the anomaly judgment threshold, the weak consistency slot is marked as an abnormal deviation state.

[0246] Slots exhibiting weak consistency but exhibiting abnormal deviations are aggregated to obtain an abnormal deviation feature vector. This feature vector consists of a slot identifier, a standardized deviation score, a deviation direction, and a semantic importance weight. The semantic importance weight is obtained by normalizing the comprehensive role confidence score corresponding to the slot. The standardized deviation score is obtained by proportionally mapping the comprehensive deviation coefficient. The deviation direction is assigned positive or negative based on the relationship between the real-time value and the baseline value. S7.5: Perform abnormal operation mode aggregation and judgment processing based on the abnormal deviation feature vector. If the comprehensive abnormal index exceeds the preset dynamic threshold, generate and output an abnormal operation mode recognition signal.

[0247] The abnormal operation mode aggregation and determination process is as follows: log messages that trigger anomalies within a consecutive preset time window are grouped according to the operation verb and the execution subject, and the number of abnormal events in the same group is counted. When the number reaches a preset aggregation threshold, the group is determined to be an abnormal operation mode. The preset aggregation threshold is preset based on the upper quartile of the statistical distribution of the number of abnormal events in a unit time window under the historical normal operation mode.

[0248] The dynamic threshold is adjusted in real time based on the statistical distribution baseline of the historical normal operation mode, and its initial value is preset according to the upper quartile of the statistical distribution of the comprehensive deviation coefficient under the historical normal operation mode. The real-time adjustment means that every preset update cycle, the dynamic threshold is reset based on the upper quartile of the statistical distribution of the index that has not triggered anomalies within that cycle.

[0249] The abnormal deviation feature vector consists of slot identifier, standardized deviation score, deviation direction, and semantic importance weight.

[0250] The semantic importance weight is obtained by normalizing the comprehensive role confidence score corresponding to the slot.

[0251] The comprehensive anomaly index is calculated based on the semantic importance weight of each slot, and the final judgment value is determined by the following formula: ; Where S is the comprehensive anomaly index, and n is the number of slots involved in the calculation. Let be the semantic importance weight of the i-th slot. The standardized deviation score for the i-th slot.

[0252] The calculated comprehensive anomaly index is compared with a preset dynamic threshold. If the comprehensive anomaly index is greater than the dynamic threshold, the current log behavior is determined to deviate from the normal semantic template constraints, triggering an abnormal operation pattern recognition signal. The corresponding operation verbs, execution subjects, and abnormal slot information are extracted to construct structured abnormal event metadata.

[0253] The structured abnormal event metadata is encapsulated to obtain an abnormal operation pattern identification signal, which consists of an abnormal type identifier, confidence score, and original log index.

[0254] In one embodiment, an abnormal operation pattern recognition system based on log semantic template extraction is provided, comprising: The data acquisition module is used to acquire the raw message fields of multi-source heterogeneous log streams and perform dependency parsing processing on the raw message fields to generate a structured syntax tree sequence. The role extraction module is used to perform role extraction operations based on the structured syntax tree sequence and using a pre-trained semantic role annotation model to generate a set of four-tuple semantic role chains. The semantic mapping module is used to map semantic role chains with the same operation verbs to the role slot space according to the operation verb types in the set of quadruples semantic role chains, construct a cross-source semantic role graph, and identify the role slot filling values ​​to be aligned. The domain entity alignment module is used to perform cross-source mapping alignment based on the role slot filling value to be aligned and according to the preset IP-hostname mapping relationship library. It performs consistency verification calculation on the filling value pairs pointing to the same logical entity identifier in different log sources and generates role confidence score. The dynamic update module is used to execute a dynamic confidence update algorithm based on the role confidence score over time and the number of cross-source verifications, so as to filter out strong anchored role chains that continuously output high confidence values ​​and mark weak consistency slots. The template reorganization module is used to elastically wrap and reorganize the strongly anchored role chain as the skeleton structure and the weakly consistent slot as the variable modification layer to generate a standardized log semantic template. The pattern matching module is used to perform pattern matching judgment based on the standardized log semantic template and the real-time multi-source heterogeneous log stream. If abnormal behavior deviating from the standardized log semantic template is detected, an abnormal operation pattern recognition signal is triggered.

[0255] In one embodiment, a computer device, which may be a server, is provided. The computer device includes a processor, memory, a network interface, and a database connected via a system bus. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage medium. The database is used for data generated during an anomaly operation pattern recognition method based on log semantic template extraction. The network interface is used for communication with external terminals via a network connection.

[0256] In one embodiment, a computer program product implemented on a computer-readable storage medium (including but not limited to disk storage, CD-ROM, optical storage, etc.) is provided. The computer-readable storage medium stores one or more programs that can be executed by one or more processors to implement the steps in the method for identifying abnormal operation patterns based on log semantic template extraction. Computer-usable storage media include permanent and non-permanent, removable and non-removable media, and information storage can be implemented by any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to: phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transfer medium that can be used to store information accessible by a computing device.

[0257] For those skilled in the art, various other corresponding changes and modifications can be made based on the technical solutions and concepts described above, and all such changes and modifications should fall within the protection scope of the claims of this application.

[0258] Unless otherwise defined, the technical or scientific terms used herein shall have the ordinary meaning as understood by one of ordinary skill in the art to which this application pertains. The terms “first,” “second,” “third,” and similar terms used in this patent application specification and claims do not indicate any order, quantity, or importance, but are merely used to distinguish different components. Similarly, the terms “an” or “a” and similar terms do not indicate a quantity limitation, but rather indicate the presence of at least one. The terms “comprising” or “including” and similar terms mean that the elements or objects preceding “comprising” or “including” encompass the elements or objects listed following “comprising” or “including” and their equivalents, and do not exclude other elements or objects. The “multiple” mentioned in the embodiments of this application refers to two or more. A and / or B indicate three possibilities: A; B; and A and B.

[0259] The above description is merely an exemplary embodiment of this application, but the scope of protection of this application is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in this application, and such modifications or substitutions should all be covered within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method for identifying abnormal operation patterns based on log semantic template extraction, characterized in that, include: Obtain the raw message fields of the multi-source heterogeneous log stream, perform dependency parsing on the raw message fields, and generate a structured syntax tree sequence; Based on the structured syntax tree sequence, a role extraction operation is performed using a pre-trained semantic role labeling model to generate a set of four-tuple semantic role chains. Based on the type of operation verb in the set of quadruplet semantic role chains, semantic role chains with the same operation verb are mapped to the role slot space to construct a cross-source semantic role graph and identify the role slot filling value to be aligned. Based on the role slot filling values ​​to be aligned, cross-source mapping alignment is performed according to the preset IP-hostname mapping relationship library. Consistency verification is performed on the filling value pairs pointing to the same logical entity identifier in different log sources, and confidence is calculated to generate role confidence scores. Based on the aforementioned role confidence score, a dynamic confidence update algorithm is executed over time and based on the number of cross-source verifications to filter out strong anchored role chains that consistently output high confidence values ​​and mark weak consistency slots. The strongly anchored role chain is used as the skeleton structure and the weakly consistent slot is used as a variable modification layer. The structure is elastically wrapped and recombined to generate a standardized log semantic template. Based on the standardized log semantic template, pattern matching is performed with the real-time inflow of multi-source heterogeneous log streams. If abnormal behavior deviating from the standardized log semantic template is detected, an abnormal operation pattern recognition signal is triggered.

2. The abnormal operation pattern recognition method based on log semantic template extraction according to claim 1, characterized in that, The standardized log semantic template has a three-level structure: verb base model, constraint slots, and variable modifier layer. The verb base model is composed of the operation verbs in the strongly anchored role chain and the other roles according to fixed syntactic dependencies. The constraint slots are limited by the data types and value ranges allowed for each role slot.

3. The abnormal operation pattern recognition method based on log semantic template extraction according to claim 1, characterized in that, The set of semantic role chains of the quadruples consists of the operation verb, the execution subject, the operation object, and the result state.

4. The abnormal operation pattern recognition method based on log semantic template extraction according to claim 1, characterized in that, The semantic role labeling model includes an embedding layer, a bidirectional long short-term memory network encoding layer, a multi-head self-attention layer, and a conditional random field decoding layer. The embedding layer is used to map the node word sequence in the structured syntax tree sequence to an initial word vector representation, which integrates part-of-speech tags and grammatical dependency identifiers; The bidirectional long short-term memory network encoding layer is used to perform forward and backward temporal-dependent feature extraction on the initial word vector representation to generate a context vector sequence; The multi-head self-attention layer is used to perform weighted aggregation on the context vector sequence to strengthen the representation of core verb-related entity nodes; The conditional random field decoding layer is used to perform semantic role classification and boundary localization on the weighted aggregated vector sequence, and outputs four key semantic segments: operation verb, execution subject, operation object and result state; The weight parameters of the semantic role labeling model were trained on historical log samples labeled with a quadruple of operation verb, execution subject, operation object, and result state.

5. The abnormal operation pattern recognition method based on log semantic template extraction according to claim 1, characterized in that, Based on the operation verb types in the set of quadruplet semantic role chains, semantic role chains with the same operation verbs are mapped to role slot spaces to construct a cross-source semantic role graph, and the role slot filling values ​​to be aligned are identified, including: Get the operation verb types in the set of four-tuple semantic role chains, perform string normalization based on the predefined operation and maintenance domain verb standardization dictionary, and generate standard operation verb index keys with unique identifiers; Based on the standard operation verb index key, perform hash clustering operation on the set of quadruplet semantic role chains to aggregate semantic role chains with the same standard operation verb index key into the same logical group, generating a verb cluster dataset divided by operation type; For each semantic role chain in the verb cluster dataset, extract the role values ​​of its execution subject, operation object and result state, and fill the role values ​​into the role slot space according to the preset role slot mapping rules to generate a sequence of role slot instance including standardized slot filling values. Using the sequence of role slot instances as node data and the standard operation verb index key as the connection relationship, a multi-source log semantic topology is constructed. Connectivity component analysis is performed on the multi-source log semantic topology to generate a cross-source semantic role graph. Traverse all character slot instance sequences under the same standard operation verb index key in the cross-source semantic role graph, compare the differences in the filling values ​​of each instance in the same character slot, and identify the character slot filling values ​​that need to be aligned due to inconsistent format or ambiguous naming.

6. The abnormal operation pattern recognition method based on log semantic template extraction according to claim 1, characterized in that, Based on the role slot fill values ​​to be aligned, cross-source mapping alignment is performed according to a preset IP-hostname mapping database. Consistency verification is performed on fill value pairs pointing to the same logical entity identifier in different log sources, and confidence scores are calculated to generate role confidence scores, including: Obtain the role slot fill value to be aligned and the predefined IP-hostname mapping relationship library, perform bidirectional index construction processing on the IP-hostname mapping relationship library, and generate an entity normalized index table including IP address to hostname forward mapping records and hostname to IP address reverse mapping records; Based on the entity normalization index table, a cross-source mapping matching operation is performed on the non-standard format entity identifiers in the role slot fill values ​​to be aligned, generating a standard entity mapping sequence pointing to a unified logical entity identifier. Using the standard entity mapping sequence, logical identity determination calculations are performed on the padding value pairs pointing to the same unified logical entity identifier in different log sources, and entity consistency verification results are generated. Based on the entity consistency verification results, a weighted fusion operation is performed by combining the preset conflict penalty coefficient and matching reward weight to generate a role confidence score.

7. The abnormal operation pattern recognition method based on log semantic template extraction according to claim 1, characterized in that, The step of executing a dynamic confidence update algorithm based on the role confidence score over time and the number of cross-source verifications to filter out strong anchored role chains that consistently output high confidence values ​​and mark weak consistency slots includes: Obtain the character confidence score and current system timestamp corresponding to the character slot fill value to be aligned, and perform exponential time weight calculation on the character confidence score based on the preset time decay coefficient to generate an initial dynamic confidence score including a timeliness factor. Read the cross-source verification count records for the same role slot fill value to be aligned from the historical log stream, and perform frequency enhancement processing on the initial dynamic confidence score using a linear gain function to generate a comprehensive role confidence score; Set a strong anchored role chain determination threshold and a weak consistency slot determination threshold, and perform an interval comparison operation between the comprehensive role confidence score and the strong anchored role chain determination threshold and the weak consistency slot determination threshold to generate a set of role status markers that identify the role slot filling value belonging status. Filter entries marked as strongly anchored role chains from the role status marker set, extract the corresponding quadruple semantic role chains as baseline skeleton data, and extract the variable modification parameters corresponding to entries marked as weak consistency slots to construct a hierarchical role data structure including baseline skeleton data and variable modification parameters. Based on the baseline skeleton data in the hierarchical role data structure, the core semantic path is locked, and the variable modification parameters are mapped to the variable modification layer to output a structured role chain sequence marked with strong anchored role chains and weak consistency slots.

8. An abnormal operation pattern recognition system based on log semantic template extraction, characterized in that, include: The data acquisition module is used to acquire the raw message fields of multi-source heterogeneous log streams and perform dependency parsing processing on the raw message fields to generate a structured syntax tree sequence. The role extraction module is used to perform role extraction operations based on the structured syntax tree sequence and using a pre-trained semantic role annotation model to generate a set of four-tuple semantic role chains. The semantic mapping module is used to map semantic role chains with the same operation verbs to the role slot space according to the operation verb types in the set of quadruples semantic role chains, construct a cross-source semantic role graph, and identify the role slot filling values ​​to be aligned. The domain entity alignment module is used to perform cross-source mapping alignment based on the role slot filling value to be aligned and according to the preset IP-hostname mapping relationship library. It performs consistency verification calculation on the filling value pairs pointing to the same logical entity identifier in different log sources and generates role confidence score. The dynamic update module is used to execute a dynamic confidence update algorithm based on the role confidence score over time and the number of cross-source verifications, so as to filter out strong anchored role chains that continuously output high confidence values ​​and mark weak consistency slots. The template reorganization module is used to elastically wrap and reorganize the strongly anchored role chain as the skeleton structure and the weakly consistent slot as the variable modification layer to generate a standardized log semantic template. The pattern matching module is used to perform pattern matching judgment based on the standardized log semantic template and the real-time multi-source heterogeneous log stream. If abnormal behavior deviating from the standardized log semantic template is detected, an abnormal operation pattern recognition signal is triggered.

9. A computer device, characterized in that, include: A processor, a memory, and a computer program stored in the memory and executable on the processor; the computer program, when executed by the processor, implements the steps of an abnormal operation pattern recognition method based on log semantic template extraction as described in any one of claims 1 to 7.

10. A storage medium, characterized in that: The storage medium stores a computer program, which, when executed by a processor, implements the steps of an abnormal operation pattern recognition method based on log semantic template extraction as described in any one of claims 1 to 7.