A heterogeneous message double-evidence self-evolution decoding method and system

By constructing a dual-evidence scoring table and a five-item quality verification mechanism, the problems of rule misselection and conflict in heterogeneous message decoding were solved, achieving efficient and accurate message decoding and rule accumulation, and improving the stability and efficiency of the system.

CN123180127APending Publication Date: 2026-11-27陕西省气象信息中心 +1
View PDF 4 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing technologies suffer from problems such as high rule misselection rate, lack of hard constraints in conflict scenarios, and lack of quality verification gates for newly generated rules in heterogeneous message decoding, resulting in high decoding error rate and poor rule reusability.

Method used

By separating the original message into the original text for field extraction and the matching text for feature matching, hard filtering based on the header information is performed, a dual-evidence scoring table is constructed, a comprehensive scoring of the matching layer and a field extraction hit rate determination are performed, output gating is triggered, and the large language model parsing service is called when there is a conflict or insufficient extraction, and five quality checks are performed to ensure the accuracy and reusability of the rules.

Benefits of technology

It reduces the probability of erroneous output in scenarios of rule misselection and conflict, improves the correctness of heterogeneous message decoding and the reusability of rules, and reduces the call frequency and response latency of large language model parsing services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123180127A_ABST
    Figure CN123180127A_ABST
Patent Text Reader

Abstract

The application discloses a kind of heterogeneous message double evidence self-evolution decoding method and system, it is related to information security and cryptography technical field, the method is by separating original message into original text for field extraction and matching text for feature matching, candidate rule set is obtained by executing rule hard screening based on header information, and matching layer comprehensive score and field layer extraction hit rate are calculated respectively, double evidence score table is constructed, and when output gate is triggered, any candidate rule is prohibited to output, when conflict triggers or extraction is insufficient, call large language model analysis service to carry out semantic analysis and execute normalization check, generate to-be-checked rule based on analysis result, in turn execute five quality checks, and the to-be-checked rule that passes quality check is written in active rule base with audit to be activated state, changes to active state after being confirmed by audit, reduce error element output probability in rule misselection and conflict scenario, improve the correctness of heterogeneous message decoding.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the fields of information security and cryptography, specifically to a method and system for the self-evolution of heterogeneous message dual-evidence decoding. Background Technology

[0002] In numerous industries such as meteorology, aviation, transportation, and finance, a large amount of business information is transmitted between different systems in the form of free text messages. Taking meteorological typhoon messages as an example, different reporting centers exhibit significant differences in header identifiers, field names, field arrangement order, unit of measurement expression methods, and line break structures; even for the same message type, the text format may change due to version updates. Computer systems need to convert these heterogeneous message character streams into structured field data for subsequent use in weather forecasting, path prediction, and decision support. Due to the heterogeneity and continuous evolution of message formats, traditional fixed-template parsing methods are insufficient to meet the decoding requirements of multi-source messages.

[0003] Several message parsing schemes have been proposed in the existing technology. First, in the field of message decoding, bulletin numbers CN121092600A and CN121278604A involve time segmentation and anomaly location of meteorological messages, respectively, while bulletin number CN122093129A involves the selection of encoding type for network messages. However, none of them involve rule matching at the message element field level, lack hard screening of headers, verification of the hit rate of required field extraction, and a joint threshold judgment mechanism for rule conflicts, thus failing to solve the problem of misselection when multiple rule scores are close. Second, in the direction of rule parsing combined with large model self-evolution, bulletin number CN122414158A mainly focuses on weight adjustment and credibility feedback, without constructing a dual-difference conflict gating system for comprehensive scores and field extraction hit rates for matching tags, required words, priorities, headers, and prohibited words. It does not specify hard constraints prohibiting direct output when conflicts occur, and lacks expression-level compilation verification, anchor point verification, matching count verification, matching span verification, and field extraction rate verification before new rules are added to the database. A complete system has not yet been formed, from rule-based dual-evidence adjudication to semantic parsing and then to rule quality verification and audit activation.

[0004] In summary, existing solutions lack field-level verification mechanisms when rules are incorrectly selected, lack rule quality verification and targeted correction mechanisms after large model parsing, and lack joint threshold gating and output prohibition mechanisms when multiple rules conflict. Therefore, there is an urgent need for a heterogeneous message self-evolution decoding method that can combine the efficiency of rule engines with the generalization ability of large models and has a quality control mechanism. Summary of the Invention

[0005] To address the technical problems of high rule misselection rate, lack of hard constraints in conflict scenarios, and lack of quality verification gates for newly generated rules during heterogeneous message character stream decoding, this invention provides a dual-evidence self-evolutionary decoding method and system for heterogeneous messages. This method separates the original message into original text for field extraction and matching text for feature matching. Based on the message header information, it performs hard rule filtering to obtain a candidate rule set, and calculates the comprehensive score at the matching layer and the field extraction hit rate separately, constructing a dual-evidence scoring table. When the difference in scores and the difference in hit rates do not exceed preset thresholds, a rule conflict is determined and an output gating is triggered, prohibiting the output of any candidate rule. Conflict triggering or insufficient extraction... The system invokes a large language model parsing service to perform semantic parsing and normalization verification. Based on the parsing results, it generates rules to be verified and performs five quality checks in sequence. Rules that pass the checks are written into the activation rule library in a pending-approval state. After review and confirmation, the rules are changed to an active state for subsequent decoding and reuse of messages of the same format. The hard constraints of dual-evidence adjudication and output gating reduce the probability of erroneous element output in scenarios of rule misselection and conflict. The five quality checks and targeted correction mechanism prevent inferior rules from entering the activation rule library. The rule review and activation mechanism realizes deterministic reuse of messages of the same format, improves the correctness of heterogeneous message decoding and the reusability of rule accumulation.

[0006] To solve the above-mentioned technical problems, the present invention provides the following technical solution: Firstly, a method and system for heterogeneous message dual-evidence self-evolution decoding, the specific steps of which are as follows: S100: Receive the original message, perform separation processing on the original message, generate original text for field value extraction and matching text for feature matching, and identify header information from the original text; S200. Based on the header information, perform header hard filtering in the activated rule base to obtain a candidate rule set corresponding to the original message; S300: Calculate the matching layer comprehensive score and field layer extraction hit rate for each candidate rule in the candidate rule set. Perform conflict determination based on the matching layer comprehensive score and the field layer extraction hit rate: If the conflict determination result is that there is a rule conflict, trigger output gating to prevent the output of any candidate rule's rule parsing result, and proceed to step S400; If the conflict determination result is that there is no rule conflict, select the candidate rule with the highest matching layer comprehensive score and the field layer extraction hit rate that meets the preset extraction success threshold as the target rule, and output the rule parsing result of the target rule. S400. When the output gate is triggered, or the field layer extraction hit rate does not meet the preset extraction success threshold, or the header is unrecognizable, the large language model parsing service is called to perform semantic parsing on the original message, generate a structured element set, and perform normalization verification on the structured element set. S500. Generate a rule to be verified based on the structured element set. Perform five quality checks on the rule to be verified in sequence: compilation check, context anchor check, matching count check, matching span check, and field extraction rate check. If any of the five quality checks fails, generate a correction record and perform targeted correction. S600. After the rule to be verified passes five quality checks, it is written into the activation rule library in an audit pending activation state. After audit confirmation, the status of the rule to be verified is changed to an activation state, so that the activation rule library can reuse the rule to be verified in subsequent message decoding.

[0007] Further, in S100, the separation process includes: The original message is received, and the original character encoding, original space distribution and original case status of the original message are retained. The retained text is determined as the original text, and the original text is used for field value extraction operation in S300. The original message is normalized, including converting full-width characters to half-width characters, lowercase letters to uppercase letters, removing extra spaces and control characters. The normalized text is then determined as the matching text, which is used for tag matching, required word matching, and prohibited word filtering operations in S200. The header information is extracted from a preset position range of the original text. The header information includes a report type identifier, a sending center code, and a sending timestamp. If the header information extraction fails or the header information is not in the preset header whitelist, the original message is marked as header unrecognizable, skipping S200 and S300 and directly proceeding to S400.

[0008] Furthermore, in S200, the header hard screening includes: Using the report type identifier and the reporting center code in the report header information as filtering keys, the report header information is compared one by one with the report header matching conditions of each rule in the activation rule base, and rules that do not meet the report header matching conditions are eliminated to obtain a preliminary candidate set; Tag matching operation: For each rule in the preliminary candidate set, perform a tag matching operation using the matching text, and count the number of times the tag phrases defined by each rule are matched in the matching text; Required word matching operation: For each rule in the preliminary candidate set, perform a required word matching operation using the matching text to verify whether the required words defined by each rule appear in the matching text; Forbidden word filtering operation: For each rule in the preliminary candidate set, perform a forbidden word filtering operation using the matching text. If any forbidden word defined by any rule is matched in the matching text, it is removed from the preliminary candidate set. After the tag matching operation, the required word matching operation, and the prohibited word filtering operation, the remaining set of rules is determined as the candidate rule set. When the candidate rule set is empty, the original message is marked as having no available rules and directly enters S400.

[0009] Furthermore, in S300, the first... Candidate rules Based on the matched text, the tag hit score, required word hit score, priority contribution score, header matching bonus, and prohibited word penalty deduction are calculated respectively to calculate the candidate rules. The matching layer comprehensive score ,in, For the candidate rules The number of times the defined tag phrases are matched in the matched text. This is the tag hit weight coefficient. For the candidate rules The number of times the defined required words are actually matched in the matched text. For the candidate rules The total number of defined required words, The hit weight coefficient for required words. For the candidate rules The preset priority score, The upper bound of the priority is set to prevent a single priority factor from dominating the overall score of the matching layer. For the candidate rules A score is awarded for header matching when the header information matches the candidate rule. If the header matching conditions are completely consistent, a preset bonus value is applied; otherwise, zero is applied. For the candidate rules The penalty points for prohibited words are deducted, and a preset penalty value is accumulated for each prohibited word hit. The comprehensive scores of the matching layer of all candidate rules in the candidate rule set are sorted in descending order, and the top-ranked rules are selected. The candidate rules constitute a scoring optimization subset, which is used to calculate the field layer extraction hit rate, wherein... This is the preset upper limit for the preferred quantity.

[0010] Furthermore, in S300, the first subset of the scoring is selected... Candidate rules A trial extraction operation is performed on the original text, and the extraction result is determined field by field. The conditions for determining the validity of the extraction result are: the extracted value is not empty, the extracted value passes the preset format validation, and the extracted value passes the preset value range validation. The candidate rules are statistically analyzed. The candidate rule is calculated based on the number of successfully extracted required fields and the total number of required fields. The field layer extracts the hit rate. ,in, For the candidate rules When performing a trial extraction operation on the original text, the number of valid fields in the required fields for the extraction result is as follows: For the candidate rules Total number of required fields defined; When the candidate rules The above If the value is zero, then the candidate rule will be... Mark as invalid candidates and remove from the preferred subset of scores; The field-level extraction hit rate of each candidate rule in the score optimization subset is associated with the comprehensive score of the matching layer and stored to form a dual-evidence scoring table, which is used for conflict determination.

[0011] Furthermore, in S300, the conflict determination includes: Read the candidate rule ranked first in the overall matching score from the dual evidence scoring table. and the second-ranked candidate rule , denote the candidate rules The overall score of the matching layer is The field layer extraction hit rate is , denote the candidate rules The overall score of the matching layer is The field layer extraction hit rate is Calculate the score difference separately. Difference between hit rate and accuracy ; When the number of valid candidate rules M in the candidate rule set is greater than or equal to 2, and simultaneously satisfies and When a conflict is found between the rules, it is determined that a conflict exists. The preset score difference threshold, The preset hit rate difference threshold is used to trigger output gating, preventing the output of the candidate rules. The rule parsing results should prohibit the output of the candidate rules. The rules are parsed, and the original message is transferred to S400; When the number of valid candidate rules M in the candidate rule set is less than 2, , If any one of the conditions is met, it is determined that there is no rule conflict, and further determination is made based on the absence of rule conflict: when When, then the candidate rules are... The candidate rule is determined as the target rule and output. The result of rule parsing; when Then switch to S400, where, This is the preset threshold for successful extraction.

[0012] Furthermore, in S400, the semantic parsing process includes: Construct a prompt word template, in which the original text, the header information, and a preset output format constraint are embedded. The output format constraint requires the large language model parsing service to output the structured element set in structured JSON format. Each element field in the structured element set includes a field name, a field value, and a field meaning explanation. The large language model parsing service is invoked according to a preset service scheduling strategy. This strategy prioritizes invoking the large language model parsing service instance deployed on the intranet. If the intranet-deployed instance fails to respond within a preset timeout period, the public-deployed instance is then invoked. The system receives the structured element set returned by the large language model parsing service and performs normalization verification on each element field in the set. This normalization verification includes: numerical range verification (including but not limited to verifying whether latitude and longitude values ​​are within the range of -90° to 90°, whether air pressure values ​​are greater than zero, and whether wind speed values ​​are greater than or equal to zero); time format verification (verifying whether the timestamp conforms to a preset time format specification); and unit consistency verification (verifying whether the units of measurement for each field are uniformly consistent with a preset standard unit). When all the normalization checks pass, the structured element set is marked as parsed successfully, and it is determined whether there is an activation rule corresponding to the original message format in the activation rule base. If there is no activation rule corresponding to the original message format, S500 is triggered. If the normalization check fails, the original message is marked as parsing failed, and a manual processing work order is generated.

[0013] Furthermore, in S500, the five quality checks include: compilation verification, context anchor verification, number of matches verification, match span verification, and field extraction rate verification, wherein: Compilation verification: The regular expression or extraction syntax of each field extraction expression in the rule to be verified is compiled and tested. If a syntax error occurs during the compilation process, the compilation verification fails and the error type is marked as a syntax compilation error in the correction record. Context anchor validation: Check whether each field extraction expression in the rule to be validated contains a fixed context phrase of at least two characters as an anchor. The fixed context phrase is a fixed text segment used to locate the field position in the field extraction expression. If any field extraction expression does not contain the fixed context phrase, the context anchor validation fails. The error type is marked as lack of context anchor in the correction record to prevent the field extraction expression from generating full-text generic matching on the original text. Match count verification: The expression extracted from each field in the rule to be verified is matched on the original text. The number of matches for each field expression is counted. If the number of matches for any field expression exceeds the upper limit of the preset number of matches, the match count verification fails and the error type is marked as match count exceeded in the correction record. Match span verification: Calculate the maximum matching span of the extracted expressions of each field in the rule to be verified on the original text, and calculate the span ratio of the maximum matching span to the total length of the original text. When the span ratio exceeds the upper limit of the preset span ratio, the matching span verification fails, and the error type is marked as matching span too large in the correction record. Field extraction rate verification: Perform batch trial extraction of the rule to be verified on the preset historical sample message set, and count the success rate of extraction of the required fields. If the success rate of extraction is lower than the preset field extraction rate lower bound, the field extraction rate verification fails, and the error type is marked as insufficient field extraction rate in the correction record. When any of the five quality checks fail, a targeted correction instruction is generated based on the error type marked in the correction record. This targeted correction instruction includes: when the error type is a syntax compilation error, the targeted correction instruction corrects illegal characters or missing escape characters in the regular expression; when the error type is a lack of context anchors, the targeted correction instruction adds the fixed context phrase to the field extraction expression; when the error type is an excessive number of matches, the targeted correction instruction tightens the matching range of the field extraction expression or adds limiting conditions; when the error type is an excessively large matching span, the targeted correction instruction shortens the maximum matching length of the field extraction expression; and when the error type is an insufficient field extraction rate, the targeted correction instruction adjusts the matching mode of the field extraction expression or changes the extraction strategy. The directed correction instruction and the correction record are fed back to the rule generation unit, which corrects the rule to be verified based on the directed correction instruction and generates the corrected rule to be verified. The five quality checks are re-executed on the corrected rule to be checked, and a maximum number of retries for targeted correction is preset. If all five quality checks pass within the maximum number of retries, the process proceeds to S600; otherwise, the rule to be checked and the correction record are submitted to the manual review queue.

[0014] Secondly, a heterogeneous message dual-evidence self-evolution decoding system, the system comprising: The message access module is used to receive raw messages, generate raw text and matching text, and identify header information; The rule filtering module is used to perform hard filtering of the header based on the header information in the active rule base and output a candidate rule set; The dual-evidence adjudication module is used to calculate the comprehensive score of the matching layer and the field extraction hit rate of each candidate rule, perform conflict determination, and trigger output gating when there is a rule conflict; The large language model parsing service module is used to perform semantic parsing on the original message and output a set of structured elements when the output gate is triggered or the field layer extraction hit rate does not meet the preset extraction success threshold. The rule self-evolution module includes a rule generation unit, a quality verification unit, and a targeted correction unit. The rule generation unit generates rules to be verified based on a set of structured elements. The quality verification unit performs compilation verification, context anchor verification, matching count verification, matching span verification, and field extraction rate verification on the rules to be verified. The targeted correction unit performs targeted correction based on the correction records. The rule review and activation module is used to write the rules to be reviewed and activated into the activation rule library after they have passed the five quality checks, and to change the status of the rules to be reviewed and activated after the review is confirmed.

[0015] Compared with existing technologies, this heterogeneous message dual-evidence self-evolution decoding method and system has the following advantages: I. This invention effectively solves the problem of element mismatch caused by directly selecting the first rule when multiple rules have similar scores, based solely on the number of matching tags or local phrase matching, by constructing a dual-evidence adjudication mechanism of comprehensive matching layer score and field layer extraction hit rate. This invention calculates the comprehensive matching layer score for each rule in the candidate rule set separately, incorporating the number of matching tag hits, required word hit rate, priority contribution, header matching bonus, and prohibited word penalty deduction into a unified scoring framework, making the rule matching layer evaluation more comprehensive and accurate. At the same time, for candidate rules with high comprehensive scores, field-level trial extraction is performed on the original text, and the percentage of valid results extracted from required fields is used as the field layer extraction hit rate. The rules are then re-verified from the perspective of actual field extraction effect. When the difference between two candidate rules in both the comprehensive matching layer score and the field layer extraction hit rate does not exceed a preset threshold, it is determined that there is a rule conflict and output gating is triggered, prohibiting the output of the parsing result of either candidate rule. This avoids the structured element output error caused by forcibly selecting a rule when the rules cannot be reliably distinguished.

[0016] II. This invention achieves a unified approach to the correctness of heterogeneous message decoding and the reusability of rules by designing a complete system from hard header screening, dual-evidence adjudication, semantic parsing to rule quality verification and audit activation. Hard header screening is performed in the activated rule base using the message type identifier and sending center code in the header information as filtering keys, narrowing the range of candidate rule sets and reducing irrelevant rule noise. In the dual-evidence adjudication path, if rule conflicts exist or the extraction hit rate is insufficient, output gating is triggered and the system switches to the large language model parsing service for semantic parsing, ensuring that each message produces a set of structured elements. Based on message formats that have been successfully parsed but not covered by the rule base, rules to be verified are automatically generated. After five quality checks and targeted corrections, these rules are written into the activated rule base in an audit-pending state. After verification, the rules are changed to an activated state, allowing subsequently received messages of the same format to preferentially follow the rule path for deterministic decoding. This ensures the continuous accumulation and quality control of rules, avoiding the cost and response delay caused by repeatedly calling the large language model parsing service.

[0017] Other advantages, objectives and features of the invention will be set forth in part in the description which follows, and in part will be apparent to those skilled in the art from the following examination or study, or may be learned from the practice of the invention. Attached Figure Description

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

[0019] Figure 1 This is a flowchart illustrating the steps of a heterogeneous message dual-evidence self-evolution decoding method in an embodiment of the present invention. Figure 2 This is a data flow diagram of a heterogeneous message dual-evidence self-evolution decoding system according to an embodiment of the present invention; Figure 3 This is a flowchart of the dual evidence adjudication and output gating process in an embodiment of the present invention. Detailed Implementation

[0020] To better understand the above technical solutions, a detailed description of the solutions will be provided below in conjunction with the accompanying drawings and specific embodiments. Obviously, the described embodiments are merely some, not all, of the embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative effort are within the scope of protection of the present invention.

[0021] In this embodiment of the invention, the terms "first," "second," and "third" are used only to distinguish different objects, and not to describe a specific order or priority. The terms "S100," "S200," etc., are only used to identify method steps; the actual execution order can be adjusted according to the specific implementation scenario. The terms "candidate rule set," "preferred score subset," and "dual evidence scoring table" are all functional set names defined in this invention. The specific values ​​of the various threshold parameters (such as score difference threshold, hit rate difference threshold, extraction success threshold, upper bound of matching count, upper bound of span ratio, number of retries, etc.) and weight coefficients involved in this embodiment of the invention are only one implementable configuration method of the technical solution of this invention. Those skilled in the art can make adaptive adjustments according to actual message characteristics and business needs; such adjustments do not constitute a substantial change to the technical solution of this invention.

[0022] like Figure 1 As shown, a heterogeneous message dual-evidence self-evolution decoding method is described, and the steps of this method are as follows: S100: Receive the original message, perform separation processing on the original message, generate original text for field value extraction and matching text for feature matching, and identify header information from the original text; S200. Based on the header information, perform header hard filtering in the activated rule base to obtain a candidate rule set corresponding to the original message; S300. Calculate the comprehensive score of the matching layer and the field extraction hit rate for each candidate rule in the candidate rule set, and perform conflict determination. S400. When the output gate is triggered, or the field layer extraction hit rate does not meet the preset extraction success threshold, or the header is unrecognizable, the large language model parsing service is called to perform semantic parsing on the original message, generate a structured element set, and perform normalization verification on the structured element set. S500. Generate a rule to be verified based on the structured element set, perform five quality checks on the rule to be verified, and if there is a failed item in the five quality checks, generate a correction record and perform targeted correction. S600. After the rule to be verified passes five quality checks, it is written into the activation rule library in an audit pending activation state. After audit confirmation, the status of the rule to be verified is changed to an activation state, so that the activation rule library can reuse the rule to be verified in subsequent message decoding.

[0023] On the other hand, this embodiment also provides a heterogeneous message dual-evidence self-evolution decoding system applicable to the aforementioned decoding method. This system includes a message access module, a rule filtering module, a dual-evidence adjudication module, a large language model parsing service module, a rule self-evolution module, and a rule review and activation module. For example... Figure 2 As shown, the message access module receives the original message, generates the original text and matching text, and identifies the header information. The rule filtering module performs hard filtering of the header based on the header information in the activation rule base and outputs a candidate rule set. The dual evidence adjudication module calculates the comprehensive score of the matching layer and the hit rate of the field layer extraction, performs conflict determination, and triggers the output of gating or output of the parsing result of the target rule. The large language model parsing service module performs semantic parsing on the original message and outputs a set of structured elements. The rule self-evolution module includes a rule generation unit, a quality verification unit, and a directional correction unit, which are used to perform the generation of rules to be verified, five quality verifications, and directional correction. The rule review and activation module writes the rules to be verified into the activation rule base in the review and activation state, and changes it to the activation state after review and confirmation.

[0024] In this embodiment, step S100 is executed by the message access module. The message access module receives the original message character stream, whose character encoding types include ASCII encoding, UTF-8 encoding, and GB2312 encoding. The message access module first automatically identifies the character encoding type of the original message and determines the encoding type based on a combination of BOM header detection and statistical feature detection. When the BOM header exists, the encoding type is determined directly based on the BOM header. When the BOM header does not exist, the distribution frequency of each byte sequence in the original message is statistically analyzed and compared with the encoding distribution template in the preset encoding feature library to select the encoding type with the highest matching degree.

[0025] After determining the encoding type, the message access module performs a separation process, which includes original text generation and matching text generation. In original text generation, the original character encoding, original space distribution, and original case sensitivity of the original message are preserved, and this preserved text is used for subsequent field value extraction operations. In matching text generation, the original message undergoes normalization processing, including converting full-width characters to half-width characters, lowercase letters to uppercase letters, removing redundant spaces and control characters, and this normalized text is used for tag matching, required word matching, and prohibited word filtering operations.

[0026] After generating the original text and the matching text, the message access module extracts header information from a preset position range in the original text. The header information includes a message type identifier, a transmission center code, and a transmission timestamp. In this embodiment, the preset position range is the first 200 characters of the original text. The message type identifier consists of three uppercase English letters, located in characters 1 to 3. The transmission center code consists of four uppercase English letters, located in characters 6 to 9. The transmission timestamp consists of six digits, located in characters 12 to 17. The message access module uses regular expressions to extract the header information from the preset position range. If extraction fails or the extracted header information is not in the preset header whitelist, the original message is marked as having an unrecognizable header, skipping steps S200 and S300 and directly proceeding to S400.

[0027] In this embodiment, step S200 is executed by the rule filtering module. The rule filtering module uses the message type identifier and the sending center code in the message header information as filtering keys to perform hard filtering of the message header in the activated rule base. The activated rule base stores multiple rules, each rule including a rule number, message header matching conditions, a list of tag phrases, a list of required words, a list of prohibited words, a set of field extraction expressions, a preset priority score, and a rule status. The message header matching conditions include message type identifier matching conditions and sending center code matching conditions. Each matching condition is a single identifier or a set of multiple identifiers. When both the message type identifier and the sending center code of the original message pass the comparison with the message header matching conditions of a certain rule, the rule is retained; otherwise, it is discarded. After comparing the message header matching conditions, a preliminary candidate set is obtained.

[0028] The rule filtering module uses the matching text to perform tag matching operations on each rule in the preliminary candidate set, counts the number of hits of the tag phrases defined by each rule in the matching text, then performs required word matching operations to verify whether the required words defined by each rule appear in the matching text; and performs prohibited word filtering operations. When any prohibited word defined by any rule is hit in the matching text, the rule is removed from the preliminary candidate set, and the remaining rule set is determined as the candidate rule set. When the candidate rule set is empty, the original message is marked as having no available rules and directly enters S400.

[0029] In this embodiment, as Figure 3 As shown, the matching layer comprehensive score calculation in step S300 is performed by the dual-evidence adjudication module. The dual-evidence adjudication module evaluates the first candidate rule in the candidate rule set. Candidate rules Calculate the overall score of the matching layer The calculation formula is: ,in, The number of times the tag phrase was hit. This is the tag hit weight coefficient, which is 3.0 in this embodiment. The actual number of hits for required words. Total number of required words The required word hit weight coefficient is set to 5.0 in this embodiment. The preset priority score ranges from 0 to 100. To prioritize the upper bound of the truncation, we set it to 10 in this embodiment. A bonus is awarded for header matching. A preset bonus of 5 is awarded if the header information perfectly matches the header matching criteria; otherwise, zero is awarded. To penalize prohibited words, a preset penalty value of 10 is accumulated for each prohibited word matched. The dual-evidence adjudication module iterates through all candidate rules in the candidate rule set, calculates the comprehensive matching score for each rule, and then sorts all candidate rules in descending order of their comprehensive matching scores, taking the top-ranked rules. The candidate rules constitute the optimal subset for scoring. This is the preset upper limit for the preferred quantity.

[0030] In this embodiment, the field layer extraction hit rate calculation in step S300 is performed by the dual evidence adjudication module. The dual evidence adjudication module performs a score selection on the first field in the preferred subset. Candidate rules Perform a trial extraction operation on the original text, which is based on candidate rules. The defined set of field extraction expressions is used to perform regular expression matching on the original text to extract the values ​​of each field. The field extraction expressions are regular expressions, and the field types include required and optional fields. The dual-evidence adjudication module determines the validity of the extraction results field by field. The validity of an extraction result is determined by three conditions being met simultaneously: the extracted value is not empty, the extracted value passes a preset format validation, and the extracted value passes a preset value range validation. Format validation uses different rules depending on the field type. Numerical fields are validated to ensure the extracted value consists only of numbers, plus or minus signs, and a decimal point. Latitude and longitude fields are validated to ensure they conform to either degrees, minutes, and seconds or degrees format. Timestamp fields are validated to ensure they conform to the year, month, day, hour, minute, and second format. In the value range validation, the longitude field is validated to ensure the value is within a specified range. Within a closed interval, verify whether the latitude field is within a certain range. Within the closed interval, the dual-evidence adjudication module statistical candidate rules The number of successfully extracted required fields and the total number of required fields are used to calculate the field-level extraction hit rate. ,in, Extract the number of valid fields for the required fields. This represents the total number of required fields. When... When it is zero, the candidate rule is... Candidates marked as invalid are removed from the preferred subset of scores. After processing, the comprehensive score of the matching layer of each candidate rule in the preferred subset of scores is associated with the hit rate extracted from the field layer and stored to form a dual evidence scoring table.

[0031] In this embodiment, the conflict determination in step S300 is performed by the dual evidence adjudication module, which reads the candidate rule ranked first in the comprehensive score of the matching layer from the dual evidence scoring table. and the second-ranked candidate rule Let the combined matching score of the two be denoted as . and The field layer extraction hit rate is and Calculate the score difference separately. Difference between hit rate and accuracy When the number of valid candidate rules And simultaneously satisfy and When this occurs, it is determined that there is a rule conflict. To preset the score difference threshold, A preset hit rate difference threshold is set. At this point, output gating is triggered, preventing the output of any candidate rule parsing results and transferring the original message to S400.

[0032] when , , If any condition is met, it is determined that there is no rule conflict, and further judgment is then made. Whether it is valid, This is a preset threshold for successful extraction. If it is met, then... Identify the target rule and output its parsing result. If the rule is not valid, forward the original message to S400.

[0033] In this embodiment, step S400 is executed by the large language model parsing service module. The large language model parsing service module first constructs a prompt word template, embedding the original text, header information, and preset output format constraints. The output format constraints require outputting a structured feature set in structured JSON format, with each feature field containing three attributes: field name, field value, and field meaning explanation. The large language model parsing service module calls the large language model parsing service according to a preset service scheduling strategy. The service scheduling strategy prioritizes calling the large language model parsing service instance deployed on the intranet. If the intranet instance does not respond within a preset timeout period, it switches to calling the large language model parsing service instance deployed on the public network. When calling the public network instance, the original message is anonymized, and the sending center code and sending timestamp are replaced with placeholders.

[0034] After receiving the returned structured element set, the large language model parsing service module performs normalization checks on each element field. Normalization checks include numerical range checks, time format checks, and unit consistency checks. Numerical range checks include, but are not limited to, verifying whether latitude and longitude values ​​are within the range of -90° to 90°, whether air pressure values ​​are greater than zero, and whether wind speed values ​​are greater than or equal to zero. Time format checks verify whether the timestamp conforms to the preset time format specification. Unit consistency checks verify whether the units of measurement for each field are consistent with the preset standard units. When all normalization checks pass, the system is marked as parsing successful, and it is checked whether an activation rule corresponding to the original message format already exists in the activation rule base. If not, an S500 is triggered. When any normalization check fails, the system is marked as parsing failed, and a manual processing work order is generated.

[0035] In this embodiment, the generation of the rules to be verified in step S500 is executed by the rule generation unit of the rule self-evolution module. After the large language model parsing service module triggers step S500, the rule generation unit generates the rules to be verified based on the structured feature set. The rule generation unit reads the field name and field value of each feature field from the structured feature set. For each feature field, the rule generation unit locates the position interval of the field value in the original text and obtains the start index and end index of the position interval. The rule generation unit extracts the context features of the position interval based on the start index and end index. The context features include the text fragment of the L characters before the position interval and the text fragment of the L characters after the position interval. The rule generation unit generates a field extraction expression for the feature field based on the field value, position interval, and context features of the feature field. The field extraction expression is a regular expression, and its matching pattern is to locate the fixed context position of the feature field in the original text and extract the corresponding value. The generation rule for the field extraction expression is as follows: take the consecutive non-alphanumeric characters in the text segment of the first L characters of the position interval as the left anchor point, and take the consecutive non-alphanumeric characters in the text segment of the last L characters of the position interval as the right anchor point, and construct the regular expression matching pattern between the left anchor point and the right anchor point.

[0036] The rule generation unit generates a corresponding field extraction expression for each element field in the structured element set and combines all field extraction expressions into a field extraction expression set. Based on the business attributes of each element field in the structured element set, the rule generation unit determines the list of required fields and the list of optional fields. Required fields are core element fields that are indispensable in message parsing, including message type identifier, transmission center code, transmission timestamp, and typhoon number. Optional fields are auxiliary element fields that are not essential in message parsing, including typhoon name, current latitude, current longitude, central pressure, maximum wind speed, direction of movement, and speed of movement.

[0037] The rule generation unit generates header matching conditions for the rules to be verified based on the header information of the original message. The message class identifier matching condition is set to be the same as the message class identifier of the original message, and the transmission center code matching condition is set to be the same as the transmission center code of the original message. The rule generation unit generates a list of tag phrases based on the field names in the structured element set, adding the field names of each element field in the structured element set as tag phrases to the tag phrase list. The rule generation unit generates a list of required words based on the header information of the original message and the key field values ​​in the structured element set, adding the message class identifier, transmission center code, and typhoon number as required words to the required word list. The rule generation unit sets the prohibited word list to an empty list. The rule generation unit sets the preset priority score of the rule to be verified to the initial score. The rule generation unit sets the rule status of the rule to be verified to the pending verification status.

[0038] In this embodiment, the five quality checks in step S500 are performed by the quality check unit of the rule self-evolution module. After receiving the rule to be checked from the rule generation unit, the quality check unit performs compilation check, context anchor check, matching count check, matching span check, and field extraction rate check in sequence.

[0039] The compilation verification involves compiling and testing the regular expression syntax of each field extraction expression in the rule to be verified. The quality verification unit calls the regular expression compilation function, passing each field extraction expression as a parameter. When the compilation function returns a successful compilation status, the compilation verification of that field extraction expression passes. When the compilation function returns a syntax error status, the compilation verification of that field extraction expression fails. Syntax error statuses include illegal character errors, missing escape character errors, mismatched parentheses errors, and quantifier format errors. When the compilation verification of any field extraction expression fails, the quality verification unit determines that the compilation verification has failed, marks the error type as a syntax compilation error in the correction record, and records the expression content and error location of the field extraction expression where the error occurred.

[0040] Context anchor validation checks whether each field extraction expression in the rule to be validated contains a fixed context phrase of at least two characters as an anchor. The fixed context phrase is a fixed text segment in the field extraction expression used to locate the field position. The quality validation unit parses the field extraction expression into a syntax tree according to the regular expression syntax. The leaf nodes in the syntax tree are character matching nodes. The quality validation unit extracts all fixed text segments consisting of consecutive ordinary characters from the syntax tree. Consecutive ordinary characters are characters other than regular expression metacharacters. When there is a fixed text segment with a length of two or more characters in the extracted fixed text segment, the field extraction expression contains a fixed context phrase. When any field extraction expression does not contain a fixed context phrase, the quality validation unit determines that the context anchor validation fails, marks the error type as lacking a context anchor in the correction record, and records the expression content of the field extraction expression that caused the error.

[0041] The match count verification involves performing a matching operation on the original text using the field extraction expressions of the rule to be verified. The quality verification unit calls a regular expression matching function, using the field extraction expressions as the matching pattern and the original text as the string to be matched, and performs a global matching operation. The global matching operation returns a list of all matching results. The quality verification unit counts the number of matching results in this list as the match count of the field extraction expression. The quality verification unit also reads a preset upper limit for the match count. When the match count of any field extraction expression exceeds the preset upper limit, the quality verification unit determines that the match count verification has failed, marks the error type as "match count exceeded" in the correction record, and records the expression content and actual match count of the field extraction expression that caused the error.

[0042] The matching span verification involves calculating the maximum matching span of each field extraction expression in the original text. The quality verification unit performs a global matching operation on the original text using the field extraction expressions, obtaining the start and end indices of all matching results. For each matching result, the quality verification unit calculates the matching span, which is the difference between the end index and the start index. The quality verification unit takes the maximum matching span among all matching results as the maximum matching span of the field extraction expression. The quality verification unit calculates the span ratio of the maximum matching span to the total length of the original text, which is the maximum matching span divided by the total length of the original text. The quality verification unit reads the upper limit of the preset span ratio. When the span ratio exceeds the upper limit of the preset span ratio, the quality verification unit determines that the matching span verification fails, marks the error type as "matching span too large" in the correction record, and records the expression content and maximum matching span of the field extraction expression that caused the error.

[0043] The field extraction rate verification involves performing batch trial extractions on a preset historical sample message set, where the set consists of message samples with the same format as the original messages, extracted from a historical message database. The quality verification unit applies the verification rules to each message sample in the historical sample message set and performs batch trial extractions. For each message sample, the quality verification unit records the number of valid fields extracted from the required fields of that message. The quality verification unit calculates the total number of successful extractions of required fields and the total number of extractions for all message samples. The total number of successful extractions is the sum of the number of valid extractions from all required fields in all message samples, and the total number of extractions is the sum of the total number of required fields in all message samples. The quality verification unit calculates the extraction success rate and reads the preset lower bound of the field extraction rate. When the extraction success rate is lower than the preset lower bound, the quality verification unit determines that the field extraction rate verification fails, marks the error type as insufficient field extraction rate in the correction record, and records the actual extraction success rate.

[0044] In this embodiment, the targeted correction in step S500 is performed by the targeted correction unit of the rule self-evolution module. When there is a failed item among the five quality checks, the quality check unit transmits the correction record to the targeted correction unit. The correction record contains the error type, the expression content of the field extraction expression where the error occurred, and the error location. The targeted correction unit generates a targeted correction instruction based on the error type marked in the correction record.

[0045] When the error type is a syntax compilation error, the orientation correction unit performs syntax analysis on the field extraction expression where the error occurred, identifies illegal characters or missing escape characters at the error location, and replaces the illegal characters with correct regular expression syntax characters, or adds escape characters where they are missing. When the error type is a lack of context anchors, the orientation correction unit extracts the position range of the element field corresponding to the field extraction expression in the original text, obtains the consecutive non-alphanumeric characters in the text segment before the L characters of the position range as the left anchor, and obtains the consecutive non-alphanumeric characters in the text segment after the L characters of the position range as the right anchor, and adds the left and right anchors to the matching pattern of the field extraction expression.

[0046] When the error type is "match count exceeded", the targeted correction unit tightens the matching range of the field extraction expression, changes the quantifier in the matching range from greedy mode to non-greedy mode, or adds pre- and post-matching constraints.

[0047] When the error type is "match span is too large", the targeted correction unit shortens the maximum matching length of the expression extracted by the field and reduces the upper limit of quantifiers in the matching range from the current value to the preset upper limit value.

[0048] When the error type is insufficient field extraction rate, the targeted correction unit adjusts the matching mode of the field extraction expression, changing the fixed numerical matching in the matching mode to range numerical matching, or changing the single delimiter matching in the matching mode to multiple delimiter matching.

[0049] The targeted correction unit feeds back the targeted correction instructions and correction records to the rule generation unit. The rule generation unit corrects the rule to be verified based on the targeted correction instructions, generating a corrected rule to be verified. After generating the corrected rule, the quality verification unit re-executes the five quality checks on the corrected rule. The targeted correction unit presets a maximum number of retries for targeted correction. When all five quality checks pass within the maximum number of retries, the corrected rule to be verified is transferred to step S600. When the maximum number of retries is reached and all five quality checks still fail, the targeted correction unit submits the rule to be verified and the correction records to the manual review queue.

[0050] In this embodiment, step S600 is executed by the rule review and activation module. This module writes the rules that have passed all five quality checks into the activation rule library in a pending-approval state. Rules in the pending-approval state are not read by the rule filtering module during header hard filtering. The rule review and activation module generates a rule review notification and sends it to the reviewer's terminal. After the reviewer confirms that everything is correct, they send a review confirmation command, and the rule review and activation module changes the rule status from pending-approval to activated. Rules in the activated state participate in header hard filtering and candidate rule set construction during subsequent message decoding. When the reviewer finds an error, they send a review rejection command, and the rule review and activation module changes the rule status to review rejection, storing the rejection reason in the review rejection record.

[0051] To further illustrate the technical effects and adaptability of the present invention in various practical application scenarios, the following detailed description of special situations that may occur during the execution of the above steps is provided through boundary scenario embodiments.

[0052] Scenario 1: Header information cannot be recognized The message access module receives a raw message with an abnormal format, whose header area does not contain a standard message type identifier and a transmission center code. Since the message access module cannot recognize the message type identifier or transmission center code in the header area of ​​the raw message, it marks the raw message as having an unrecognizable header, skips steps S200 and S300, and proceeds directly to step S400.

[0053] In S400, the large language model parsing service module performs semantic parsing on the original message. Due to the lack of header information, the large language model parsing service module only embeds the original text and output format constraints in the prompt word template, without including header information fields. If the parsing result returned by the large language model parsing service passes the normalization check, a structured element set is output. If the normalization check fails, a manual processing work order is generated.

[0054] Scenario 2: The candidate rule set is empty After candidate rule filtering in S200, the remaining rule set is empty. The rule filtering module marks the original message as having no available rules and directly proceeds to S400. In S400, the large language model parsing service module performs semantic parsing on the original message.

[0055] Boundary Scenario 3: Only one valid candidate rule After the scoring and sorting of S300 and the elimination of invalid candidates, the optimal subset of scores contains only one valid candidate rule. In the conflict determination, the number of valid candidate rules M=1. The dual evidence adjudication module directly determines that there is no conflict of the rule and does not calculate the score difference and hit rate difference.

[0056] During output gating execution, the dual-evidence adjudication module directly determines whether the field layer extraction hit rate of the unique candidate rule is greater than or equal to the preset extraction success threshold. If the threshold is met, the candidate rule is determined as the target rule and the rule parsing result is output. If the threshold is not met, the process proceeds to step S400.

[0057] Boundary Scenario 4: The total number of required fields for candidate rules is zero. In S300, the dual-evidence adjudication module detects that the total number of required fields for a candidate rule is zero. This candidate rule is marked as invalid and removed from the preferred scoring subset. This candidate rule does not participate in subsequent conflict determination and candidate ranking, ensuring that the final adopted rule has explicit required field constraints.

[0058] Boundary Scenario 5: Five quality checks fail even after reaching the maximum number of retries.

[0059] In S500, the rule generation unit resubmits the rule to be verified after making targeted corrections. After the maximum number of retries, there are still items that fail the five quality checks. The rule self-evolution module terminates the automatic database entry process for the rule to be verified, submits the rule to be verified and the correction record to the manual review queue, and records the failure event to generate an alarm notification.

[0060] The above description is merely a preferred embodiment of the present invention and is not intended to limit the present invention in any way. Although the present invention has been disclosed above with reference to preferred embodiments, it is not intended to limit the present invention. Any person skilled in the art can make some modifications or alterations to the above-disclosed technical content to create equivalent embodiments without departing from the scope of the present invention. Any simple modifications, equivalent changes and alterations made to the above embodiments based on the technical essence of the present invention without departing from the scope of the present invention shall still fall within the scope of the present invention.

Claims

1. A method for self-evolutionary decoding of heterogeneous messages using dual evidence, characterized in that, The steps of this method are as follows: S100: Receive the original message, perform separation processing on the original message, generate original text for field value extraction and matching text for feature matching, and identify header information from the original text; S200. Based on the header information, perform header hard filtering in the activated rule base to obtain a candidate rule set corresponding to the original message; S300. Calculate the comprehensive score of the matching layer and the field extraction hit rate for each candidate rule in the candidate rule set, and perform conflict determination. S400. When the output gate is triggered, or the field layer extraction hit rate does not meet the preset extraction success threshold, or the header is unrecognizable, the large language model parsing service is called to perform semantic parsing on the original message, generate a structured element set, and perform normalization verification on the structured element set. S500. Generate a rule to be verified based on the structured element set, perform five quality checks on the rule to be verified, and if there is a failed item in the five quality checks, generate a correction record and perform targeted correction. S600. After the rule to be verified passes five quality checks, it is written into the activation rule library in an audit pending activation state. After audit confirmation, the status of the rule to be verified is changed to an activation state, so that the activation rule library can reuse the rule to be verified in subsequent message decoding.

2. The heterogeneous message dual-evidence self-evolution decoding method according to claim 1, characterized in that, In step S100, the separation process includes: The original message is received, and the original character encoding, original space distribution and original case status of the original message are retained. The retained text is determined as the original text, and the original text is used for field value extraction operation in S300. The original message is normalized, including converting full-width characters to half-width characters, lowercase letters to uppercase letters, removing extra spaces and control characters. The normalized text is then determined as the matching text, which is used for tag matching, required word matching, and prohibited word filtering operations in S200. The header information is extracted from a preset position range of the original text. The header information includes a report type identifier, a sending center code, and a sending timestamp. If the header information extraction fails or the header information is not in the preset header whitelist, the original message is marked as header unrecognizable, skipping S200 and S300 and directly proceeding to S400.

3. The heterogeneous message dual-evidence self-evolution decoding method according to claim 1, characterized in that, In S200, the header hard screening includes: Using the report type identifier and the reporting center code in the report header information as filtering keys, the report header information is compared one by one with the report header matching conditions of each rule in the activation rule base, and rules that do not meet the report header matching conditions are eliminated to obtain a preliminary candidate set; Tag matching operation: For each rule in the preliminary candidate set, perform a tag matching operation using the matching text, and count the number of times the tag phrases defined by each rule are matched in the matching text; Required word matching operation: For each rule in the preliminary candidate set, perform a required word matching operation using the matching text to verify whether the required words defined by each rule appear in the matching text; Forbidden word filtering operation: For each rule in the preliminary candidate set, perform a forbidden word filtering operation using the matching text. If any forbidden word defined by any rule is matched in the matching text, it is removed from the preliminary candidate set. After the tag matching operation, the required word matching operation, and the prohibited word filtering operation, the remaining set of rules is determined as the candidate rule set. When the candidate rule set is empty, the original message is marked as having no available rules and directly enters S400.

4. The heterogeneous message dual-evidence self-evolution decoding method according to claim 1, characterized in that, In step S300, the first rule in the candidate rule set... Candidate rules Based on the matched text, the tag hit score, required word hit score, priority contribution score, header matching bonus, and prohibited word penalty deduction are calculated respectively to calculate the candidate rules. The matching layer comprehensive score ,in, For the candidate rules The number of times the defined tag phrases are matched in the matched text. This is the tag hit weight coefficient. For the candidate rules The number of times the defined required words are actually matched in the matched text. For the candidate rules The total number of defined required words, This refers to the hit weight coefficient for required words. For the candidate rules The preset priority score, Truncate the upper bound for priority. For the candidate rules A score is awarded for header matching when the header information matches the candidate rule. If the header matching conditions are completely consistent, a preset bonus value is applied; otherwise, zero is applied. For the candidate rules The penalty points for prohibited words are deducted, and a preset penalty value is accumulated for each prohibited word hit. The comprehensive scores of the matching layer of all candidate rules in the candidate rule set are sorted in descending order, and the top-ranked rules are selected. The candidate rules constitute a scoring optimization subset, which is used to calculate the field layer extraction hit rate, wherein... This is the preset upper limit for the preferred quantity.

5. The heterogeneous message dual-evidence self-evolution decoding method according to claim 4, characterized in that, In step S300, the first [item] in the set of preferred scores is [the [item]... Candidate rules A trial extraction operation is performed on the original text, and the extraction result is determined field by field. The conditions for determining the validity of the extraction result are: the extracted value is not empty, the extracted value passes the preset format validation, and the extracted value passes the preset value range validation. The candidate rules are statistically analyzed. The candidate rule is calculated by considering the number of successfully extracted required fields and the total number of required fields. The field layer extracts the hit rate. ,in, For the candidate rules When performing a trial extraction operation on the original text, the number of valid fields in the required fields for the extraction result is as follows: For the candidate rules Total number of required fields defined; When the candidate rules The above If the value is zero, then the candidate rule will be... Mark as invalid candidates and remove from the preferred subset of scores; The field-level extraction hit rate of each candidate rule in the score optimization subset is associated with the comprehensive score of the matching layer and stored to form a dual-evidence scoring table, which is used for conflict determination.

6. The heterogeneous message dual-evidence self-evolution decoding method according to claim 1, characterized in that, In S300, the conflict determination includes: Read the candidate rule ranked first in the overall matching score from the dual evidence scoring table. and the second-ranked candidate rule , denote the candidate rules The overall score of the matching layer is The field layer extraction hit rate is , denote the candidate rules The overall score of the matching layer is The field layer extraction hit rate is Calculate the score difference separately. Difference between hit rate and accuracy ; When the number of valid candidate rules M in the candidate rule set is greater than or equal to 2, and simultaneously satisfies and When a conflict is found between the rules, it is determined that a conflict exists. The preset score difference threshold, The preset hit rate difference threshold is used to trigger output gating, preventing the output of the candidate rules. The rule parsing results should prohibit the output of the candidate rules. The rules are parsed, and the original message is transferred to S400; When the number of valid candidate rules M in the candidate rule set is less than 2, , If any one of the conditions is met, it is determined that there is no rule conflict, and further determination is made based on the absence of rule conflict: when When, then the candidate rules are... The candidate rule is determined as the target rule and output. The result of rule parsing; when Then switch to S400, where, This is the preset threshold for successful extraction.

7. The heterogeneous message dual-evidence self-evolution decoding method according to claim 1, characterized in that, In S400, the semantic parsing process includes: Construct a prompt word template, in which the original text, the header information, and preset output format constraints are embedded; The large language model parsing service is invoked according to the preset service scheduling strategy. The structured element set returned by the large language model parsing service is received. The normalization verification is performed on each element field in the structured element set. The normalization verification includes: numerical range verification, time format verification, and unit consistency verification. When all the normalization checks pass, the structured element set is marked as parsed successfully, and it is determined whether there is an activation rule corresponding to the original message format in the activation rule base. If there is no activation rule corresponding to the original message format, S500 is triggered. If the normalization check fails, the original message is marked as parsing failed, and a manual processing work order is generated.

8. The heterogeneous message dual-evidence self-evolution decoding method according to claim 1, characterized in that, The S500 includes five quality checks: compilation check, context anchor check, number of matches check, match span check, and field extraction rate check. When any of the five quality checks fails, a targeted correction instruction is generated based on the error type marked in the correction record.

9. A heterogeneous message dual-evidence self-evolution decoding system, applicable to the heterogeneous message dual-evidence self-evolution decoding method according to any one of claims 1-8, characterized in that, The system includes: The message access module is used to receive raw messages, generate raw text and matching text, and identify header information; The rule filtering module is used to perform hard filtering of the header based on the header information in the active rule base and output a set of candidate rules. The dual-evidence adjudication module is used to calculate the comprehensive score of the matching layer and the field extraction hit rate of each candidate rule, perform conflict determination, and trigger output gating when there is a rule conflict; The large language model parsing service module is used to perform semantic parsing on the original message and output a set of structured elements when the output gate is triggered or the field layer extraction hit rate does not meet the preset extraction success threshold. The rule self-evolution module includes a rule generation unit, a quality verification unit, and a targeted correction unit. The rule generation unit generates rules to be verified based on a set of structured elements. The quality verification unit performs compilation verification, context anchor verification, matching count verification, matching span verification, and field extraction rate verification on the rules to be verified. The targeted correction unit performs targeted correction based on the correction records. The rule review and activation module is used to write the rules to be reviewed and activated into the activation rule library after they have passed the five quality checks, and to change the status of the rules to be reviewed and activated after the review is confirmed.

Citation Information

Patent Citations

  • Meteorological message analysis method and device, equipment, storage medium and program product

    CN121092600A

  • Meteorological message abnormity positioning method and system

    CN121278604A

  • Message decoding method and device based on statistical characteristic analysis

    CN122093129A

  • Bidding document structured processing method based on analysis credibility feedback and rule self-evolution mechanism

    CN122414158A