A method, system and electronic device for inventory system intelligent agentization revitalization

By generating quintuple tool descriptors and mining frequent sequences in operation logs, the problems of unified intelligent invocation of existing systems and convergence of differences between old and new systems were solved, realizing the intelligent revitalization and safe, gradual migration of existing systems.

CN123177802APending Publication Date: 2026-11-27INSPUR SOFTWARE TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing technologies cannot uniformly transform business functions in existing systems into business rules that can be invoked, executed, and compared by intelligent agents. Furthermore, the lack of automatic comparison and difference convergence mechanisms at the business rule level during the parallel migration of old and new systems leads to high migration risks.

Method used

By generating a five-tuple tool descriptor through multimodal access steps, frequently occurring operation sequences in operation logs are mined and semantically transformed into natural language rules. The differences between operation sequences and outputs of the old and new systems are quantified, enabling automatic comparison and convergence of business rules.

Benefits of technology

It enables unified invocation of existing systems of different forms, makes implicit rules explicit, reduces the cost of intelligent agent transformation, and completes the migration in batches according to business domains and with controllable risks during the parallel operation of new and old systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123177802A_ABST
    Figure CN123177802A_ABST
Patent Text Reader

Abstract

The present application relates to the cross field of artificial intelligence, software engineering and knowledge discovery, and specifically provides a method and system for intelligent agentization of inventory system revitalization and electronic equipment, which generates intermediate representations for inventory systems respectively, and unifies the intermediate representations into five-tuple tool descriptors, calculates tool confidence of the five-tuple tool descriptors according to a tool confidence formula, and marks them as automatically executable, manually confirmed and executed, or only provides operation instructions; calculates the associated confidence of frequent operation sequences to generate candidate business rules, semantically converts the operation sequence mode of the frequent operation sequences into natural language business rules, and stores them into a rule library after being verified by business experts; marks the business rules as three levels of converged, small difference or unconverged according to a threshold value, and triggers the offline of the old system in the business domain when the proportion of the converged rules in the total number of rules in the business domain reaches a convergence rate threshold. Compared with the prior art, the present application can realize automatic comparison and difference convergence at the business rule level.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the interdisciplinary fields of artificial intelligence, software engineering, and knowledge discovery, and specifically provides a method, system, and electronic device for the intelligent activation of existing systems. Background Technology

[0002] Regarding the construction and adjustment of existing systems, the existing patent CN122614333A, "Business System Construction Method," discloses a method for generating construction instructions based on semantic parsing of business requirements and supporting incremental adjustments to existing systems. However, its limitations are: it only covers systems with source code that can be built, and cannot handle black-box systems without source code; it does not involve the automatic conversion of existing system functions into intelligent agent tools.

[0003] Regarding legacy system documentation completion, existing patent CN122672764A discloses a method for generating preliminary design documents based on RAG, which automatically generates design documents for legacy systems using RAG. However, its limitations are: it only generates documents and does not transform them into executable business rules or intelligent agent tools; it does not involve mining implicit rules from operational behaviors.

[0004] In the area of ​​source code-free system analysis, existing patents CN122653960A (pointer-tracking memory access pattern recognition) and CN122595311A (bytecode analysis fuzzy testing) disclose methods for analyzing legacy system binary data without source code. However, their limitations are: they only perform low-level instruction-level analysis and do not rise to the level of business rules; they do not implement intelligent encapsulation of business functions.

[0005] The core flaw of existing technology: ① Inconsistent access abstraction: The output formats of the three paths, API access, UI operation, and document reverse engineering, are different, and the intelligent agent cannot call them in a consistent way; ② Business rules are implicit and invisible: The business rules of the existing system are solidified in the code or operation process, and there is a lack of technical means to automatically extract rules from the running behavior; ③ Lack of convergence mechanism during migration: When the old and new systems are running in parallel, there is a lack of automatic comparison and difference convergence methods at the business rule level, resulting in high migration risk.

[0006] Therefore, as can be seen from the above, how to unify the business functions of existing systems, legacy systems, and black-box systems without source code into business rules or tools that can be called, executed, and compared by intelligent agents, and achieve automatic comparison and difference convergence at the business rule level during the parallel migration of old and new systems, is a problem that urgently needs to be solved by those skilled in the art. Summary of the Invention

[0007] This invention addresses the shortcomings of the prior art by providing a highly practical method, system, and electronic device for the intelligent revitalization of existing systems.

[0008] The technical solution adopted by this invention to solve its technical problem is: A method for revitalizing existing systems through intelligent agents includes: The multimodal access step involves generating intermediate representations for existing systems with three forms: open interfaces, only graphical interfaces, and only operation documents. These intermediate representations are generated through interface parsing, interface visual operation recognition, and document semantic role labeling. The intermediate representations are then uniformly normalized into five-tuple tool descriptors. The tool confidence of the five-tuple tool descriptors is calculated according to the tool confidence formula, and tools are classified and marked as automatically executable, requiring manual confirmation before execution, or only providing operation guidance. The business rule mining steps include: collecting operation logs generated by intelligent agents and manual operations on the existing system; segmenting the operation logs by business sessions and filtering navigation-type operations; recursively mining frequent operation sequences that meet the minimum support using the prefix projection sequence pattern; calculating the association confidence of frequent operation sequences according to the rule confidence formula to generate candidate business rules; semanticizing the operation sequence pattern of the frequent operation sequences into natural language business rules; and storing them in the rule base after verification by business experts. The rule difference convergence step involves recording the operation sequence and output of the old system and the operation sequence and output of the new system for the same business input. The consistency difference of each business rule is quantified by a three-dimensional weighted difference formula of structural difference, semantic difference, and output difference. The business rules are marked as converged, slightly different, or not converged according to a threshold. When the proportion of converged rules to the total number of rules in the business domain reaches the convergence rate threshold, the old system of that business domain is taken offline.

[0009] Furthermore, the five-tuple tool descriptor includes the tool name, natural language function description, input parameter pattern, execution logic, and tool confidence. The execution logic corresponds to the three processing methods: interface parsing, interface visual operation recognition, and document semantic role labeling, respectively: The interface call script corresponding to the interface parsing is used to assemble parameters and initiate the call according to the calling specification of the open interface; The interface operation sequence corresponding to the interface visual operation recognition consists of an interface element locator, an action triggered for the interface element, and an input value filled in for the interface element, which is used to simulate the user's operation on the graphical interface. The operation guidance template corresponding to the document semantic role label is used to output to the user terminal when the tool confidence is lower than the preset guidance threshold, as the basis for manually performing the operation of the existing system; The intermediate representations generated by the three access methods are uniformly inferred through parameter type inference, mandatory field marking, and value range inference to generate the input parameter pattern containing a unified parameter name, parameter type, whether it is mandatory, and value range fields.

[0010] Furthermore, the confidence level of the tool is calculated by weighting three aspects: source reliability, business expert verification pass rate, and historical call success rate. The expression is conf=w1×src_rel+w2×val_score+w3×succ_rate, and w1+w2+w3=1. The source reliability is determined by the access path: 1.0 for the interface path, 0.85 for the web interface path, and 0.7 for the document path; the default weights are w1=0.3, w2=0.4, and w3=0.3. Tools with a confidence level of 0.8 or higher are marked as automatically executable, those between 0.6 and 0.8 are marked as requiring manual confirmation before execution, and those below 0.6 are marked as only providing operation guidance. The tool confidence level is dynamically updated as business experts verify and successfully execute the tool.

[0011] Furthermore, the operation log is recorded as a sequence of four-tuples with timestamps, the sequence of four-tuples including operation time, operation name, parameters and execution result; The operation log is divided into several business sessions representing the complete processing trajectory, based on the threshold of login events, events of entering a certain business, or the time interval of continuous operations. Filter navigation operations such as clicking menus, turning pages, and switching tabs that do not change the state, and retain only the operation nodes that produce business effects to obtain the business operation sequence.

[0012] Furthermore, the support of the frequent operation sequence is the ratio of the number of service sessions containing the operation sequence pattern to the total number of service sessions, denoted as sup(seq) = number of service sessions containing seq / total number of service sessions. The minimum support min_sup is set to 0.15. A suffix projection database is recursively constructed with each frequent service operation as a prefix, and the database is further grown to mine frequent operation sequences that satisfy the minimum support. For a frequent operation sequence A→B consisting of an antecedent operation sequence A and a consequent operation sequence B, the rule confidence conf(A→B)=sup(A∪B) / sup(A), where sup(A∪B) is the support of a business session that simultaneously contains A and B in the correct order, and sup(A) is the support of a business session that contains A. Frequent operation sequences with a rule confidence level of not less than 0.8 are selected as candidate business rules.

[0013] Furthermore, the operation sequence pattern is semantically transformed into natural language business rules, including translating the operation sequence pattern corresponding to the candidate business rules into natural language business rules by a large model; The translated candidate business rules are pushed to business experts for review. Those that pass the review are marked as verified and stored in the rule base. Those that fail the review are marked as pending, and the differences are fed back to the business rule mining step so that the mining threshold can be adjusted and mining can be carried out again.

[0014] Furthermore, the formula for the degree of difference is diff = α × d_struct + β × d_sem + γ × d_out, and α + β + γ = 1, with the default values ​​of α = 0.3, β = 0.4, and γ = 0.3; Wherein, the structural difference d_struct=1-|LCS(R_o,R_n)| / (max(|R_o|,|R_n|)+ε), ε is a division-by-zero constant greater than 0, R_o is the operation sequence of the old system, R_n is the operation sequence of the new system, LCS is the Longest Common Subsequence (LCS), which refers to the longest subsequence that is simultaneously a subsequence of R_o and R_n while maintaining the relative order of elements and not requiring contiguity, |LCS(R_o,R_n)| is the length of the longest common subsequence, and max(|R_o|,|R_n|) is the length of the longer sequence between R_o and R_n; Semantic difference d_sem=(1-cos(embed(T_o),embed(T_n)) / 2, T_o is the natural language business rule description corresponding to the old system, T_n is the natural language business rule description corresponding to the new system, embed is the process of encoding the input text into a fixed-dimensional semantic vector through a text embedding model, and cos is the cosine similarity between two semantic vectors, which is used to characterize the degree of closeness between the directions of the two vectors; The output difference d_out = |out_o - out_n| / (max(|out_o|,|out_n|) + ε), where out_o is the key output of the old system under the same business input, and out_n is the key output of the new system under the same business input.

[0015] Furthermore, the step of marking the business rules into three levels—converged, slightly different, or non-converged—based on a threshold includes: When the difference degree (diff) is less than 0.01, it is marked as converged, and the business rule is switched to the new system; When the difference degree diff is between 0.01 and 0.05, it is marked as a minor difference. A difference report is automatically generated, indicating whether the difference falls into the structural difference, semantic difference, or output difference dimension. This report is then submitted to business experts for confirmation as a reasonable difference or defect within expectations. When the difference degree diff is not less than 0.05, it is marked as non-converged. The corresponding business domain keeps the old system running and feeds back the difference samples to the business rule mining step and the new system development stage for re-mining and correction. When the number of converged rules in a certain business domain reaches 99% of the total number of rules, the old system in that business domain is taken offline, realizing a gradual replacement in batches by business domain with controllable risks.

[0016] A system for intelligent revitalization of existing systems includes a multimodal access unified tool descriptor generation module that is sequentially connected and interconnected with data, a business rule frequent sequence mining module, and a new and old system rule difference convergence module. The multimodal access unified tool descriptor generation module is used to encapsulate the capabilities of existing systems in three forms: open interface, only graphical interface, and only operation document, into a five-tuple tool descriptor with tool confidence. The frequent sequence mining module for business rules is used to mine hidden business rules from operation logs, semantically convert them into natural language business rules, and then store them in the rule base. The new and old system rule difference convergence module is used to quantify the behavioral differences between the new and old systems and converge them one by one according to business rules; the system is used to implement the above method.

[0017] An electronic device includes a memory and a processor; the memory stores a computer program, and the processor executes the computer program to implement the method for intelligent revitalization of existing systems.

[0018] Compared with existing technologies, the method and system for intelligent revitalization of existing systems proposed in this invention have the following outstanding advantages: This invention generates intermediate representations for existing systems in three forms: open interfaces, graphical interfaces, and operation documents, through interface parsing, interface visual operation recognition, and document semantic role labeling. These intermediate representations are then uniformly normalized into five-tuple tool descriptors. Simultaneously, a consistent input parameter pattern is generated through parameter type inference, mandatory field marking, and value range inference. This enables intelligent agents to invoke the capabilities of different forms of existing systems in a consistent manner, reducing the adaptation cost of intelligent agent transformation.

[0019] Operation logs are segmented by business sessions and navigation-type operations are filtered. Frequent operation sequences are mined using the prefix projection sequence pattern. Candidate rules are filtered by rule confidence and then semantically transformed into natural language business rules by the large model. These rules are then verified by business experts and stored in the database. This process automatically mines and makes explicit the implicit rules that are embedded in the code and manual operation process, transforming them into executable and comparable business rules.

[0020] During the parallel operation of the old and new systems, this invention records the operation sequences and outputs of the same business input records from both sides, and quantifies the consistency difference degree according to three dimensions: structural difference, semantic difference, and output difference. Based on this, the business rules are marked as converged, slightly different, or not converged. When the proportion of converged rules in the business domain reaches the convergence rate threshold, the old system is triggered to go offline. This achieves automatic comparison and difference convergence at the business rule level, making the replacement process batch by business domain, risk controllable, and reducing the risk of migration failure and business interruption.

[0021] The confidence level of the tool is calculated by weighting the reliability of the source, the pass rate of business expert verification, and the success rate of historical calls, and then the automatic execution, manual confirmation, or only operation guidance is provided are controlled in a hierarchical manner to avoid business accidents caused by misoperation. At the same time, the differences that fail the expert review are fed back to the mining step to adjust the threshold and re-mining, forming a closed loop and improving the accuracy of the rule base. Attached Figure Description

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

[0023] Figure 1 This is a flowchart illustrating a method for intelligently revitalizing existing systems. Detailed Implementation

[0024] To enable those skilled in the art to better understand the present invention, the present invention will be further described in detail below with reference to specific embodiments. Obviously, the described embodiments are merely some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0025] The following is a preferred embodiment: like Figure 1As shown, this invention provides a method and system for the intelligent agent-based revitalization of existing systems. Targeting existing information systems that lack usable source code, open interfaces, and complete documentation ("three no's"), the invention follows the main line of "unified access first, rule mining second, and gradual convergence third." Through three core technologies—multimodal access unified tool descriptor generation, frequent sequence mining of business rules based on operation logs, and automatic convergence of parallel rule differences between old and new systems—it achieves the safe and gradual revitalization of existing system functions into tools that can be called by intelligent agents.

[0026] The system consists of a multimodal access unified tool descriptor generation module, a business rule frequent sequence mining module, and a new and old system rule difference convergence module, which are connected in sequence and have data interoperability, forming a spiral closed loop of "access-cognition-replacement". The whole process does not require obtaining the source code or complete documentation of the existing system at once, but gradually approaches a complete understanding of the old system in continuous operation.

[0027] Example 1:

[0028] The generation of the unified tool descriptor for multimodal access includes: (1) Unified mapping of access paths; Regardless of the access path, all data is ultimately normalized to a five-tuple tool descriptor T=(name,desc,param_schema,exec_logic,conf), where name is the normalized tool name, desc is the natural language function description for semantic matching by the agent, param_schema is the input parameter JSON schema containing parameter names, types, mandatory fields, and value constraints, exec_logic is the execution logic categorized by access path, and conf is the tool confidence level ranging from 0 to 1. This example uses three existing items in a hall as an example to illustrate the effect of unified representation.

[0029] For existing systems with open interfaces, follow the interface path: parse the interface description file (OpenAPI / WADL / SOAPWSDL), extract the method name, parameter list, parameter type and return structure, map them to the first four dimensions of a 5-tuple, and generate the interface call script using exec_logic; For existing systems with only a graphical interface, the interface path is followed: the interface visual understanding model is used to identify controls such as buttons, input boxes, and drop-down boxes, as well as their types and labels. The manual demonstration operation is encoded into an interface operation sequence consisting of element locators, actions, and input values ​​as exec_logic, and the input parameters are inferred from the input control labels. For existing systems with only operational documentation, the documentation path is followed: semantic role annotation is performed on the operation manual, and expressions such as "click the X button" and "fill in Z in column Y" are converted into abstract operation sequences. Parameters are extracted from the step descriptions, and exec_logic is generated as an operation guidance template for humans or UI agents to refer to and execute. The outputs of the three paths are uniformly processed through parameter type inference, required field marking, and value range inference to generate a param_schema with a consistent structure.

[0030] (2) Quantification and grading of instrument confidence; The confidence level of a tool is determined by a weighted average of three factors: source reliability, business verification level, and historical execution success rate: conf = w1 × src_rel + w2 × val_score + w3 × succ_rate; In the formula, w1+w2+w3=1, with the default values ​​of w1=0.3, w2=0.4, and w3=0.3. Business verification has the highest weight because even if the source is reliable, it still needs to be confirmed by the business. `src_rel` represents the source reliability, determined by the access path. For interface paths directly connecting to the system interface, a value of 1.0 is used; for interface paths dependent on visual recognition and interface stability, a value of 0.85 is used; and for documentation paths based on manually written materials that may differ from the current system, a value of 0.7 is used. `val_score` represents the percentage of tool parameters and execution logic that have been individually confirmed by business experts. `succ_rate` represents the ratio of recent successful executions to total calls. The tool is categorized into three levels based on `conf`: `conf ≥ 0.8` indicates "can be executed automatically," `0.6 ≤ conf < 0.8` indicates "requires manual confirmation before execution," and `conf < 0.6` indicates "only provides operation guidance." The tool's confidence level dynamically increases with each successful execution and verification during use.

[0031] (3) An example of accessing three existing items in a certain hall; Firstly, the "Insurance Certificate Inquiry" function has an open REST interface. After using the interface path parsing tool, src_rel=1.0, the parameters and logic have been fully confirmed by business experts (val_score=1.0), and all 500 historical calls have been successful (succ_rate=1.0). conf=0.3×1.0+0.4×1.0+0.3×1.0=1.0, and it is marked as automatically executable.

[0032] Secondly, the "Acceptance of Asset Registration" function only has a B / S interface and no API. The interface path identifies input controls such as "Name of the Right Holder", "ID Number", and "Location" and records the operation sequence. src_rel=0.85. Business experts confirmed 80% of the parameters (val_score=0.8). After 20 trial runs, 18 were successful (succ_rate=0.9). conf=0.3×0.85+0.4×0.8+0.3×0.9=0.845. It is marked as automatically executable, but confirmation points are reserved for unconfirmed controls.

[0033] Thirdly, the original vendor of a certain historical archive retrieval system has withdrawn from the market, leaving only a paper operation manual. Using a document path generation tool, `src_rel=0.7`, business experts have not yet verified it (`val_score=0.3`), there are no historical calls (`succ_rate=0`), and `conf=0.3×0.7+0.4×0.3+0.3×0=0.33`. It is marked as providing only operation guidance and will be upgraded after verification and accumulation. These three capabilities from completely different sources are all structurally consistent quintuples for the intelligent agent, differing only in `conf`, thus achieving unified scheduling and differentiated risk control.

[0034] Example 2:

[0035] Frequent sequence mining of business rules based on operation logs: (1) Log collection and session segmentation; This embodiment uses a certain existing approval system as an example. The structured operation logs accumulated by the intelligent agent and manual operation systems are timestamped four-tuple sequences (t, op, params, result), representing the operation time, operation name, parameters, and execution result, respectively. Before data mining, the logs are segmented by business session: starting with logging in or entering a certain business, and ending when the time interval between consecutive operations exceeds a preset threshold, the logs are segmented into complete processing paths. Then, navigation operations that do not change the business state, such as clicking menus, turning pages, and switching tabs, are filtered out, and only operation nodes that produce business effects are retained, resulting in a pure business operation sequence. This embodiment uses 10,000 processing sessions from this system over one month.

[0036] (2) Support, improved PrefixSpan mining and rule confidence; An improved PrefixSpan prefix projection sequence pattern mining algorithm is used to recursively mine frequent operation sequences. The support of an operation sequence pattern seq is defined as sup(seq) = number of sessions containing that sequence pattern / total number of sessions N_session, where " "" indicates that all operations in the pattern appear in sequence during the session, with other operations allowed in between; the minimum support min_sup defaults to 0.15, meaning that at least 15% of sessions contain the pattern to be considered frequent. The improved PrefixSpan recursively builds a suffix projection database with each frequent operation as a prefix, and continues to grow on the projection database, avoiding the overhead of Apriori-like algorithms repeatedly scanning the entire dataset and generating a large number of candidate sets.

[0037] For the frequently mined sequence A→B (operation sequence A appears first, followed by B), its rule confidence is calculated as conf(A→B)=sup(A∪B) / sup(A), where sup(A∪B) is the session support that simultaneously contains A and B in the correct order, and sup(A) is the session support that contains A. This ratio represents the conditional probability of "B occurring after A occurs"; frequent sequences with conf≥0.8 are marked as candidate business rules.

[0038] The semanticization of rules involves a large model translating operation sequence patterns into natural language business rules. Candidate rules are then pushed to business experts for verification: if they pass, they are marked as verified and added to the rule base; if they fail, they are marked as pending and feedback is provided to adjust the mining threshold.

[0039] (3) Examples of mining; After filtering the navigation operation, the algorithm found that the sequence pattern "submit application → departmental preliminary review → supervisor approval → completion and archiving" appeared in 6200 sessions, with sup=0.62, which is much higher than min_sup=0.15; among them, "submit application → departmental preliminary review" appeared in 6800 sessions. Therefore, the rule "submit application must undergo departmental preliminary review" has conf=0.62 / 0.68≈0.91, which is higher than the 0.8 threshold, and becomes a candidate rule. It is semantically transformed from the large model into "application must undergo departmental preliminary review after submission".

[0040] Further analysis revealed an undocumented implicit rule: when "application materials contain identifiers," the sequence always proceeds from "departmental initial review" to "confidentiality review" and then to "supervisor approval." This pattern has sup=0.18 and conf=0.93, revealing a pre-review rule that only exists in the experience of veteran employees. This type of rule, after confirmation by business experts, was added to the database and became a business constraint that the new system must reproduce, effectively preventing errors in business processes due to the new system's ignorance of implicit rules. The accuracy rate of the rules automatically mined and verified by business experts in this embodiment is greater than 95%.

[0041] Example 3:

[0042] The automatic convergence of parallel rule differences between the old and new systems includes: (1) Calculation of three-dimensional difference; During the parallel operation of the old and new systems, for the same business rule, the operation sequence of the old system is denoted as R_o, and the operation sequence of the new system is denoted as R_n. The natural language business rule description corresponding to the old system is denoted as T_o, and the natural language business rule description corresponding to the new system is denoted as T_n. The comprehensive difference is defined as diff = α × d_struct + β × d_sem + γ × d_out. In the formula, α, β, and γ are three-dimensional weights, and α + β + γ = 1. The default values ​​are α = 0.3, β = 0.4, and γ = 0.3. The semantic dimension has the highest weight because the structure allows for reasonable differences, and the output result serves as the final fallback verification.

[0043] The structural difference d_struct is calculated based on the longest common subsequence (LCS) of the two operation sequences: d_struct = 1 - |LCS(R_o,R_n)| / (max(|R_o|,|R_n|) + ε), where LCS is the longest common subsequence, referring to the longest sequence that simultaneously belongs to both R_o and R_n while maintaining the relative order of elements and not requiring contiguity. |LCS(R_o,R_n)| is the length of this longest common subsequence, and max(|R_o|,|R_n|) is the length of the longer of R_o and R_n, which can be obtained by dynamic programming. The longer the common part, the smaller the structural difference, and it is used to measure the degree of structural similarity between the operational steps of two systems to complete the same business.

[0044] The semantic difference d_sem is calculated based on the cosine similarity of two rule-based natural language descriptions encoded into vectors by a large model: d_sem = (1 - cos(embed(T_o), embed(T_n))) / 2, where embed represents the process of encoding the input text into fixed-dimensional semantic vectors using a text embedding model, and cos represents the cosine similarity between the two semantic vectors, which is equal to the ratio of the dot product of the two semantic vectors to the product of their magnitudes. Even if the operation steps of the new system are added or removed, as long as the business semantics are equivalent, the semantic difference can still be low, avoiding misjudging reasonable differences in the implementation of "different paths leading to the same destination" as inconsistencies.

[0045] The output difference d_out compares the actual outputs of the two systems with the same input: d_out=|out_o-out_n| / (max(|out_o|,|out_n|)+ε), where out_o and out_n are the key outputs of the old and new systems under the same input, such as amount, status, number, etc., and ε is a very small positive number set to prevent the denominator from being zero.

[0046] (2) Three-level convergence determination and iteration; During parallel operation, the same business request drives both the old and new systems separately, recording their respective operation sequences and outputs, and calculating the diff according to the above formula for each rule. If diff < 0.01, it is determined to be "converged," and the rule can be safely switched to the new system; if 0.01 ≤ diff < 0.05, it is determined to be "minor difference," and a difference report is automatically generated, indicating whether the difference falls in the structural, semantic, or output dimension. Business experts confirm whether it is a reasonable difference within expectations or a defect; if diff ≥ 0.05, it is determined to be "unconverged," and the business domain continues to run on the old system. At the same time, the difference sample is fed back to the rule mining and new system development stages, and after re-mining and correction, it is compared again.

[0047] When the convergence rate (i.e., the percentage of converged rules in a business domain that is greater than 99%), the old system for that business domain is decommissioned, achieving a phased replacement by domain with controllable risks. Here, business domains are defined based on the business functions carried by the existing system, and the total number of rules refers to the number of rules recorded in the rule base of that business domain.

[0048] (3) Convergence instance; Taking the "renewal" business rule as an example, the operation sequence of the old system R_o is "acceptance → payment verification → departmental review → certificate production → certificate issuance", while the new system R_n, after reconstruction, is "acceptance → automatic payment verification → departmental review → electronic certificate production → certificate issuance". Structurally, the LCS length of the two sequences is 4, and the length of the longer sequence is 5, d_struct=1-4 / 5=0.2; the large model determines that the two are semantically equivalent (automatic payment verification and electronic certificate production are reasonable technical upgrades), the semantic vector cosine is 0.96, d_sem=0.04; for 100 identical application samples, the renewal document number, validity period, and status output by the old and new systems are completely identical, d_out=0. With α=0.3, β=0.4, and γ=0.3, diff=0.3×0.2+0.4×0.04+0.3×0=0.076, which falls into the "non-converged" range above 0.05. The discrepancy report clearly points out that the disagreement comes from the structural dimension. After the business experts confirm that this is a reasonable optimization within expectations, the structural weight of the rule can be lowered for re-evaluation according to the business agreement.

[0049] Regarding the other rule, "Cancellation of Registration," the cancellation status output by the new system for a certain type of special entity differed from that of the old system. d_out=0.12 resulted in a diff=0.06, indicating non-convergence. The old system was kept running, and the discrepancy samples were returned for correction, preventing a potential business incident. The old system for this business domain was only taken offline when 198 out of 200 rules had a diff < 0.01, achieving a convergence rate of 99%. In this embodiment, the convergence period for a single business domain rule is approximately 6 to 8 weeks.

[0050] Example 4:

[0051] This invention also provides a system for intelligent revitalization of existing systems, including a multimodal access unified tool descriptor generation module, a business rule frequent sequence mining module, and a new and old system rule difference convergence module, which are sequentially connected and interconnected, respectively used to execute the methods described in Embodiments 1, 2, and 3 above.

[0052] Among them, the multimodal access unified tool descriptor generation module solves the problem of "accessibility" by encapsulating existing capabilities, regardless of whether they have interfaces or documentation, into a standard tool with confidence, enabling agents to obtain a unified entry point for calling existing systems; the business rule frequent sequence mining module solves the problem of "understanding" by reverse mining the business rules embedded in the old system from the operation logs generated by repeated tool calls, and precipitating implicit experience into explicit rule assets; the new and old system rule difference convergence module solves the problem of "stable transition" by quantifying the behavioral differences between the new and old systems based on the mined rules, converging rules by business domain, and only taking the old system offline after meeting the standards.

[0053] This embodiment also provides an electronic device, including a memory and a processor. The memory stores a computer program, and when the processor executes the computer program, it implements the method for intelligent revitalization of existing systems as described in the foregoing method embodiments. This embodiment also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the method described in the foregoing method embodiments.

[0054] The key technical parameters of this embodiment are as follows: tool descriptor generation time: less than 1 minute / interface for interface path, less than 10 minutes / scenario for interface path, and less than 30 minutes / scenario for document path; source reliability is set to 1.0, 0.85, and 0.7 for interface, interface, and document paths respectively; confidence level thresholds are 0.8 and 0.6, with weights w1=0.3, w2=0.4, and w3=0.3; minimum support of frequent sequences min_sup=0.15; candidate rule confidence threshold is 0.8; rule accuracy after automatic mining and business expert verification is greater than 95%; rule convergence threshold diff<0.01; small difference interval is 0.01 to 0.05; three-dimensional weights α=0.3, β=0.4, γ=0.3; business domain convergence rate of 99% triggers shutdown; single business domain rule convergence cycle is approximately 6 to 8 weeks.

[0055] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for intelligently revitalizing existing systems, characterized in that, include: The multimodal access step involves generating intermediate representations for existing systems with three forms: open interfaces, only graphical interfaces, and only operation documents. These intermediate representations are generated through interface parsing, interface visual operation recognition, and document semantic role labeling. The intermediate representations are then uniformly normalized into five-tuple tool descriptors. The tool confidence of the five-tuple tool descriptors is calculated according to the tool confidence formula, and tools are classified and marked as automatically executable, requiring manual confirmation before execution, or only providing operation guidance. The business rule mining steps include: collecting operation logs generated by intelligent agents and manual operations on the existing system; segmenting the operation logs by business sessions and filtering navigation-type operations; recursively mining frequent operation sequences that meet the minimum support using the prefix projection sequence pattern; calculating the association confidence of frequent operation sequences according to the rule confidence formula to generate candidate business rules; semanticizing the operation sequence pattern of the frequent operation sequences into natural language business rules; and storing them in the rule base after verification by business experts. The rule difference convergence step involves recording the operation sequence and output of the old system and the operation sequence and output of the new system for the same business input. The consistency difference of each business rule is quantified by a three-dimensional weighted difference formula of structural difference, semantic difference, and output difference. The business rules are marked as converged, slightly different, or not converged according to a threshold. When the proportion of converged rules to the total number of rules in the business domain reaches the convergence rate threshold, the old system of that business domain is taken offline.

2. The method according to claim 1, characterized in that, The five-tuple tool descriptor includes the tool name, natural language function description, input parameter pattern, execution logic, and tool confidence. The execution logic corresponds to the three processing methods: interface parsing, interface visual operation recognition, and document semantic role labeling, respectively: The interface call script corresponding to the interface parsing is used to assemble parameters and initiate the call according to the calling specification of the open interface; The interface operation sequence corresponding to the interface visual operation recognition consists of an interface element locator, an action triggered for the interface element, and an input value filled in for the interface element, which is used to simulate the user's operation on the graphical interface. The operation guidance template corresponding to the document semantic role label is used to output to the user terminal when the tool confidence is lower than the preset guidance threshold, as the basis for manually performing the operation of the existing system; The intermediate representations generated by the three access methods are uniformly inferred through parameter type inference, mandatory field marking, and value range inference to generate the input parameter pattern containing a unified parameter name, parameter type, whether it is mandatory, and value range fields.

3. The method according to claim 1, characterized in that, The confidence level of the tool is calculated by weighting three aspects: source reliability, business expert verification pass rate and historical call success rate. The expression is conf=w1×src_rel+w2×val_score+w3×succ_rate, and w1+w2+w3=1. The source reliability is determined by the access path: 1.0 for the interface path, 0.85 for the web interface path, and 0.7 for the document path; the default weights are w1=0.3, w2=0.4, and w3=0.

3. Tools with a confidence level of 0.8 or higher are marked as automatically executable, those between 0.6 and 0.8 are marked as requiring manual confirmation before execution, and those below 0.6 are marked as only providing operation guidance. The tool confidence level is dynamically updated as business experts verify and successfully execute the tool.

4. The method according to claim 1, characterized in that, The operation log is recorded as a sequence of four-tuples with timestamps, and the sequence of four-tuples includes operation time, operation name, parameters and execution result; The operation log is divided into several business sessions representing the complete processing trajectory, based on the threshold of login events, events of entering a certain business, or the time interval of continuous operations. Filter navigation operations such as clicking menus, turning pages, and switching tabs that do not change the state, and retain only the operation nodes that produce business effects to obtain the business operation sequence.

5. The method according to claim 4, characterized in that, The support of the frequent operation sequence is the ratio of the number of service sessions containing the operation sequence pattern to the total number of service sessions, denoted as sup(seq) = number of service sessions containing seq / total number of service sessions. The minimum support min_sup is set to 0.

15. A suffix projection database is recursively constructed with each frequent service operation as a prefix, and the database is further expanded to mine frequent operation sequences that satisfy the minimum support. For a frequent operation sequence A→B consisting of an antecedent operation sequence A and a consequent operation sequence B, the rule confidence conf(A→B)=sup(A∪B) / sup(A), where sup(A∪B) is the support of a business session that simultaneously contains A and B in the correct order, and sup(A) is the support of a business session that contains A. Frequent operation sequences with a rule confidence level of not less than 0.8 are selected as candidate business rules.

6. The method according to claim 5, characterized in that, Semantizing the operation sequence pattern into natural language business rules includes translating the operation sequence pattern corresponding to the candidate business rules into natural language business rules by a large model; The translated candidate business rules are pushed to business experts for review. Those that pass the review are marked as verified and stored in the rule base. Those that fail the review are marked as pending, and the differences are fed back to the business rule mining step so that the mining threshold can be adjusted and mining can be carried out again.

7. The method according to claim 1, characterized in that, The formula for the degree of difference is diff = α × d_struct + β × d_sem + γ × d_out, where α + β + γ = 1, and the default values ​​are α = 0.3, β = 0.4, and γ = 0.

3. Wherein, the structural difference d_struct=1-|LCS(R_o,R_n)| / (max(|R_o|,|R_n|)+ε), ε is a division-to-zero constant greater than 0, R_o is the operation sequence of the old system, R_n is the operation sequence of the new system, LCS is the longest common subsequence, which refers to the longest subsequence that is simultaneously a subsequence of R_o and R_n while maintaining the relative order of elements and not requiring continuity, |LCS(R_o,R_n)| is the length of the longest common subsequence, and max(|R_o|,|R_n|) is the length of the longer sequence between R_o and R_n; Semantic difference d_sem=(1-cos(embed(T_o),embed(T_n)) / 2, T_o is the natural language business rule description corresponding to the old system, T_n is the natural language business rule description corresponding to the new system, embed is the process of encoding the input text into a fixed-dimensional semantic vector through a text embedding model, and cos is the cosine similarity between two semantic vectors, which is used to characterize the degree of closeness between the directions of the two vectors; The output difference d_out = |out_o - out_n| / (max(|out_o|,|out_n|) + ε), where out_o is the key output of the old system under the same business input, and out_n is the key output of the new system under the same business input.

8. The method according to claim 7, characterized in that, The step of marking the business rules into three levels—converged, slightly different, or non-converged—based on a threshold includes: When the difference degree diff is less than 0.01, it is marked as converged, and the business rule is switched to the new system; When the difference degree diff is between 0.01 and 0.05, it is marked as a minor difference. A difference report is automatically generated, indicating whether the difference falls into the structural difference, semantic difference, or output difference dimension. This report is then submitted to business experts for confirmation as a reasonable difference or defect within expectations. When the difference degree diff is not less than 0.05, it is marked as non-converged. The corresponding business domain keeps the old system running and feeds back the difference samples to the business rule mining step and the new system development stage for re-mining and correction. When the number of converged rules in a certain business domain reaches 99% of the total number of rules, the old system in that business domain is taken offline, realizing a gradual replacement in batches by business domain with controllable risks.

9. A system for intelligently revitalizing existing systems, characterized in that, This includes a multimodal access unified tool descriptor generation module that is sequentially connected and interconnected with data, a business rule frequent sequence mining module, and a new and old system rule difference convergence module; The multimodal access unified tool descriptor generation module is used to encapsulate the capabilities of existing systems in three forms: open interface, only graphical interface, and only operation document, into a five-tuple tool descriptor with tool confidence. The frequent sequence mining module for business rules is used to mine hidden business rules from operation logs, semantically convert them into natural language business rules, and then store them in the rule base. The new and old system rule difference convergence module is used to quantify the behavioral differences between the new and old systems and converge them one by one according to business rules; the system is used to implement the method of any one of claims 1 to 8.

10. An electronic device, characterized in that, It includes a memory and a processor; the memory stores a computer program, and the processor executes the computer program to implement the method for intelligent revitalization of existing systems as described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Java fuzzy test automatic test drive adaptation method based on byte code analysis

    CN122595311A